[gpio:gpio-descriptors-fwnode-children 39/39] drivers/gpio/gpiolib.c:4052:27: error: 'con_id' undeclared

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-gpio.git gpio-descriptors-fwnode-children
head:   6dbbf4ea6a14737e6174cffadef8427c33204b11
commit: 6dbbf4ea6a14737e6174cffadef8427c33204b11 [39/39] slask
config: i386-randconfig-s0-201835 (attached as .config)
compiler: gcc-6 (Debian 6.4.0-9) 6.4.0 20171026
reproduce:
        git checkout 6dbbf4ea6a14737e6174cffadef8427c33204b11
        # save the attached .config to linux build tree
        make ARCH=i386 

All errors (new ones prefixed by >>):

   drivers/gpio/gpiolib.c: In function 'fwnode_get_named_gpiod':
>> drivers/gpio/gpiolib.c:4052:27: error: 'con_id' undeclared (first use in this function)
      desc = gpiod_find(NULL, con_id, idx, &lookupflags);
                              ^~~~~~
   drivers/gpio/gpiolib.c:4052:27: note: each undeclared identifier is reported only once for each function it appears in
>> drivers/gpio/gpiolib.c:4052:35: error: 'idx' undeclared (first use in this function)
      desc = gpiod_find(NULL, con_id, idx, &lookupflags);
                                      ^~~

vim +/con_id +4052 drivers/gpio/gpiolib.c

  3995	
  3996	/**
  3997	 * fwnode_get_named_gpiod - obtain a GPIO from firmware node
  3998	 * @fwnode:	handle of the firmware node
  3999	 * @propname:	name of the firmware property representing the GPIO
  4000	 * @index:	index of the GPIO to obtain for the consumer
  4001	 * @dflags:	GPIO initialization flags
  4002	 * @label:	label to attach to the requested GPIO
  4003	 *
  4004	 * This function can be used for drivers that get their configuration
  4005	 * from opaque firmware.
  4006	 *
  4007	 * The function properly finds the corresponding GPIO using whatever is the
  4008	 * underlying firmware interface and then makes sure that the GPIO
  4009	 * descriptor is requested before it is returned to the caller.
  4010	 *
  4011	 * Returns:
  4012	 * On successful request the GPIO pin is configured in accordance with
  4013	 * provided @dflags.
  4014	 *
  4015	 * In case of error an ERR_PTR() is returned.
  4016	 */
  4017	struct gpio_desc *fwnode_get_named_gpiod(struct fwnode_handle *fwnode,
  4018						 const char *propname, int index,
  4019						 enum gpiod_flags dflags,
  4020						 const char *label)
  4021	{
  4022		struct gpio_desc *desc = ERR_PTR(-ENODEV);
  4023		unsigned long lflags = 0;
  4024		int ret;
  4025	
  4026		if (!fwnode)
  4027			return ERR_PTR(-EINVAL);
  4028	
  4029		if (is_of_node(fwnode)) {
  4030			desc = gpiod_get_from_of_node(to_of_node(fwnode),
  4031						      propname, index,
  4032						      dflags,
  4033						      label);
  4034			return desc;
  4035		} else if (is_acpi_node(fwnode)) {
  4036			struct acpi_gpio_info info;
  4037	
  4038			desc = acpi_node_get_gpiod(fwnode, propname, index, &info);
  4039	
  4040			if (IS_ERR(desc))
  4041				return desc;
  4042	
  4043			acpi_gpio_update_gpiod_flags(&dflags, &info);
  4044	
  4045			if (info.polarity == GPIO_ACTIVE_LOW)
  4046				lflags |= GPIO_ACTIVE_LOW;
  4047	
  4048		} else {
  4049			/* This is with static definitions in a board file */
  4050			enum gpio_lookup_flags lookupflags = 0;
  4051	
> 4052			desc = gpiod_find(NULL, con_id, idx, &lookupflags);
  4053			if (!IS_ERR(desc)) {
  4054			}
  4055		}
  4056	
  4057		/* Currently only ACPI takes this path */
  4058		ret = gpiod_request(desc, label);
  4059		if (ret)
  4060			return ERR_PTR(ret);
  4061	
  4062		ret = gpiod_configure_flags(desc, propname, lflags, dflags);
  4063		if (ret < 0) {
  4064			gpiod_put(desc);
  4065			return ERR_PTR(ret);
  4066		}
  4067	
  4068		return desc;
  4069	}
  4070	EXPORT_SYMBOL_GPL(fwnode_get_named_gpiod);
  4071	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Linux SPI]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux