[gpio:devel 71/74] drivers/gpio/gpio-tegra.c:210:27: error: 'GPIOF_DIR_OUT' undeclared; did you mean 'GPIO_MSK_OUT'?

[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 devel
head:   4e76068b2f47fd13de3868f8b631539aadb81b4e
commit: c97740bb0e4684b0db4627024f6acc482c81fd0f [71/74] gpio: tegra: Include the right header
config: i386-allmodconfig (attached as .config)
compiler: gcc-7 (Debian 7.3.0-16) 7.3.0
reproduce:
        git checkout c97740bb0e4684b0db4627024f6acc482c81fd0f
        # save the attached .config to linux build tree
        make ARCH=i386 

All error/warnings (new ones prefixed by >>):

   drivers/gpio/gpio-tegra.c: In function 'tegra_gpio_get_direction':
>> drivers/gpio/gpio-tegra.c:210:27: error: 'GPIOF_DIR_OUT' undeclared (first use in this function); did you mean 'GPIO_MSK_OUT'?
     return (oe & pin_mask) ? GPIOF_DIR_OUT : GPIOF_DIR_IN;
                              ^~~~~~~~~~~~~
                              GPIO_MSK_OUT
   drivers/gpio/gpio-tegra.c:210:27: note: each undeclared identifier is reported only once for each function it appears in
>> drivers/gpio/gpio-tegra.c:210:43: error: 'GPIOF_DIR_IN' undeclared (first use in this function); did you mean 'GPIOF_DIR_OUT'?
     return (oe & pin_mask) ? GPIOF_DIR_OUT : GPIOF_DIR_IN;
                                              ^~~~~~~~~~~~
                                              GPIOF_DIR_OUT
>> drivers/gpio/gpio-tegra.c:211:1: warning: control reaches end of non-void function [-Wreturn-type]
    }
    ^

vim +210 drivers/gpio/gpio-tegra.c

3c92db9a arch/arm/mach-tegra/gpio.c Erik Gilling    2010-03-15  196  
4bc17860 drivers/gpio/gpio-tegra.c  Thierry Reding  2017-07-24  197  static int tegra_gpio_get_direction(struct gpio_chip *chip,
4bc17860 drivers/gpio/gpio-tegra.c  Thierry Reding  2017-07-24  198  				    unsigned int offset)
f002d07c drivers/gpio/gpio-tegra.c  Laxman Dewangan 2016-04-29  199  {
f002d07c drivers/gpio/gpio-tegra.c  Laxman Dewangan 2016-04-29  200  	struct tegra_gpio_info *tgi = gpiochip_get_data(chip);
f002d07c drivers/gpio/gpio-tegra.c  Laxman Dewangan 2016-04-29  201  	u32 pin_mask = BIT(GPIO_BIT(offset));
f002d07c drivers/gpio/gpio-tegra.c  Laxman Dewangan 2016-04-29  202  	u32 cnf, oe;
f002d07c drivers/gpio/gpio-tegra.c  Laxman Dewangan 2016-04-29  203  
f002d07c drivers/gpio/gpio-tegra.c  Laxman Dewangan 2016-04-29  204  	cnf = tegra_gpio_readl(tgi, GPIO_CNF(tgi, offset));
f002d07c drivers/gpio/gpio-tegra.c  Laxman Dewangan 2016-04-29  205  	if (!(cnf & pin_mask))
f002d07c drivers/gpio/gpio-tegra.c  Laxman Dewangan 2016-04-29  206  		return -EINVAL;
f002d07c drivers/gpio/gpio-tegra.c  Laxman Dewangan 2016-04-29  207  
f002d07c drivers/gpio/gpio-tegra.c  Laxman Dewangan 2016-04-29  208  	oe = tegra_gpio_readl(tgi, GPIO_OE(tgi, offset));
f002d07c drivers/gpio/gpio-tegra.c  Laxman Dewangan 2016-04-29  209  
f002d07c drivers/gpio/gpio-tegra.c  Laxman Dewangan 2016-04-29 @210  	return (oe & pin_mask) ? GPIOF_DIR_OUT : GPIOF_DIR_IN;
f002d07c drivers/gpio/gpio-tegra.c  Laxman Dewangan 2016-04-29 @211  }
f002d07c drivers/gpio/gpio-tegra.c  Laxman Dewangan 2016-04-29  212  

:::::: The code at line 210 was first introduced by commit
:::::: f002d07c56c7b7007328e8fff2adf04db1c81e90 gpio: tegra: Implement gpio_get_direction callback

:::::: TO: Laxman Dewangan <ldewangan@xxxxxxxxxx>
:::::: CC: Linus Walleij <linus.walleij@xxxxxxxxxx>

---
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