[gpio:devel-gpio-driver-isolation 65/66] include/asm-generic/gpio.h:60:9: error: implicit declaration of function 'gpiod_to_chip'; did you mean 'gpio_to_chip'?

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

 



tree:   https://kernel.googlesource.com/pub/scm/linux/kernel/git/linusw/linux-gpio.git devel-gpio-driver-isolation
head:   6c5bf689e0dca2a882193a202a96222dcba184e9
commit: f8a386f66ebfc32891f2af31b7474e31cdabd90d [65/66] gpio: Drop driver header from legacy header include
config: sparc64-allmodconfig (attached as .config)
compiler: sparc64-linux-gcc (GCC) 7.4.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout f8a386f66ebfc32891f2af31b7474e31cdabd90d
        # save the attached .config to linux build tree
        GCC_VERSION=7.4.0 make.cross ARCH=sparc64 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@xxxxxxxxx>

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

   In file included from include/linux/gpio.h:62:0,
                    from drivers//usb/typec/tcpm/fusb302.c:12:
   include/asm-generic/gpio.h: In function 'gpio_to_chip':
>> include/asm-generic/gpio.h:60:9: error: implicit declaration of function 'gpiod_to_chip'; did you mean 'gpio_to_chip'? [-Werror=implicit-function-declaration]
     return gpiod_to_chip(gpio_to_desc(gpio));
            ^~~~~~~~~~~~~
            gpio_to_chip
>> include/asm-generic/gpio.h:60:9: warning: return makes pointer from integer without a cast [-Wint-conversion]
     return gpiod_to_chip(gpio_to_desc(gpio));
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from drivers//usb/typec/tcpm/fusb302.c:19:0:
   include/linux/of_gpio.h: At top level:
>> include/linux/of_gpio.h:41:19: error: field 'gc' has incomplete type
     struct gpio_chip gc;
                      ^~
   In file included from include/linux/kernel.h:11:0,
                    from include/linux/list.h:9,
                    from include/linux/wait.h:7,
                    from include/linux/wait_bit.h:8,
                    from include/linux/fs.h:6,
                    from include/linux/debugfs.h:15,
                    from drivers//usb/typec/tcpm/fusb302.c:8:
   include/linux/of_gpio.h: In function 'to_of_mm_gpio_chip':
>> include/linux/kernel.h:970:32: error: dereferencing pointer to incomplete type 'struct gpio_chip'
     BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
                                   ^~~~~~
   include/linux/compiler.h:325:9: note: in definition of macro '__compiletime_assert'
      if (!(condition))     \
            ^~~~~~~~~
   include/linux/compiler.h:345:2: note: in expansion of macro '_compiletime_assert'
     _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
     ^~~~~~~~~~~~~~~~~~~
   include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
    #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
                                        ^~~~~~~~~~~~~~~~~~
   include/linux/kernel.h:970:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
     BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
     ^~~~~~~~~~~~~~~~
   include/linux/kernel.h:970:20: note: in expansion of macro '__same_type'
     BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
                       ^~~~~~~~~~~
>> include/linux/of_gpio.h:48:9: note: in expansion of macro 'container_of'
     return container_of(gc, struct of_mm_gpio_chip, gc);
            ^~~~~~~~~~~~
   cc1: some warnings being treated as errors
--
   In file included from include/linux/gpio.h:62:0,
                    from drivers//media/platform/sti/c8sectpfe/c8sectpfe-common.h:15,
                    from drivers//media/platform/sti/c8sectpfe/c8sectpfe-common.c:30:
   include/asm-generic/gpio.h: In function 'gpio_to_chip':
>> include/asm-generic/gpio.h:60:9: error: implicit declaration of function 'gpiod_to_chip'; did you mean 'gpio_to_chip'? [-Werror=implicit-function-declaration]
     return gpiod_to_chip(gpio_to_desc(gpio));
            ^~~~~~~~~~~~~
            gpio_to_chip
>> include/asm-generic/gpio.h:60:9: warning: return makes pointer from integer without a cast [-Wint-conversion]
     return gpiod_to_chip(gpio_to_desc(gpio));
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors
--
   In file included from include/linux/gpio.h:62:0,
                    from include/linux/bcma/bcma_driver_chipcommon.h:6,
                    from include/linux/bcma/bcma.h:9,
                    from drivers//net/ethernet/broadcom/bgmac-bcma.c:11:
   include/asm-generic/gpio.h: In function 'gpio_to_chip':
>> include/asm-generic/gpio.h:60:9: error: implicit declaration of function 'gpiod_to_chip'; did you mean 'gpio_to_chip'? [-Werror=implicit-function-declaration]
     return gpiod_to_chip(gpio_to_desc(gpio));
            ^~~~~~~~~~~~~
            gpio_to_chip
>> include/asm-generic/gpio.h:60:9: warning: return makes pointer from integer without a cast [-Wint-conversion]
     return gpiod_to_chip(gpio_to_desc(gpio));
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from include/linux/bcma/bcma.h:9:0,
                    from drivers//net/ethernet/broadcom/bgmac-bcma.c:11:
   include/linux/bcma/bcma_driver_chipcommon.h: At top level:
>> include/linux/bcma/bcma_driver_chipcommon.h:647:19: error: field 'gpio' has incomplete type
     struct gpio_chip gpio;
                      ^~~~
   In file included from include/linux/bcma/bcma.h:14:0,
                    from drivers//net/ethernet/broadcom/bgmac-bcma.c:11:
>> include/linux/ssb/ssb.h:496:19: error: field 'gpio' has incomplete type
     struct gpio_chip gpio;
                      ^~~~
   cc1: some warnings being treated as errors
--
   In file included from include/linux/gpio.h:62:0,
                    from include/linux/ssb/ssb.h:10,
                    from drivers//net/ethernet/broadcom/b44.c:31:
   include/asm-generic/gpio.h: In function 'gpio_to_chip':
>> include/asm-generic/gpio.h:60:9: error: implicit declaration of function 'gpiod_to_chip'; did you mean 'gpio_to_chip'? [-Werror=implicit-function-declaration]
     return gpiod_to_chip(gpio_to_desc(gpio));
            ^~~~~~~~~~~~~
            gpio_to_chip
>> include/asm-generic/gpio.h:60:9: warning: return makes pointer from integer without a cast [-Wint-conversion]
     return gpiod_to_chip(gpio_to_desc(gpio));
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from drivers//net/ethernet/broadcom/b44.c:31:0:
   include/linux/ssb/ssb.h: At top level:
>> include/linux/ssb/ssb.h:496:19: error: field 'gpio' has incomplete type
     struct gpio_chip gpio;
                      ^~~~
   cc1: some warnings being treated as errors
--
   In file included from include/linux/gpio.h:62:0,
                    from drivers/media/dvb-frontends/cxd2820r_priv.h:16,
                    from drivers/media/dvb-frontends/cxd2820r_c.c:9:
   include/asm-generic/gpio.h: In function 'gpio_to_chip':
>> include/asm-generic/gpio.h:60:9: error: implicit declaration of function 'gpiod_to_chip'; did you mean 'gpio_to_chip'? [-Werror=implicit-function-declaration]
     return gpiod_to_chip(gpio_to_desc(gpio));
            ^~~~~~~~~~~~~
            gpio_to_chip
>> include/asm-generic/gpio.h:60:9: warning: return makes pointer from integer without a cast [-Wint-conversion]
     return gpiod_to_chip(gpio_to_desc(gpio));
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from drivers/media/dvb-frontends/cxd2820r_c.c:9:0:
   drivers/media/dvb-frontends/cxd2820r_priv.h: At top level:
>> drivers/media/dvb-frontends/cxd2820r_priv.h:46:19: error: field 'gpio_chip' has incomplete type
     struct gpio_chip gpio_chip;
                      ^~~~~~~~~
   cc1: some warnings being treated as errors
--
   In file included from include/linux/gpio.h:62:0,
                    from drivers/media/dvb-frontends/cxd2820r_priv.h:16,
                    from drivers/media/dvb-frontends/cxd2820r_core.c:9:
   include/asm-generic/gpio.h: In function 'gpio_to_chip':
>> include/asm-generic/gpio.h:60:9: error: implicit declaration of function 'gpiod_to_chip'; did you mean 'gpio_to_chip'? [-Werror=implicit-function-declaration]
     return gpiod_to_chip(gpio_to_desc(gpio));
            ^~~~~~~~~~~~~
            gpio_to_chip
>> include/asm-generic/gpio.h:60:9: warning: return makes pointer from integer without a cast [-Wint-conversion]
     return gpiod_to_chip(gpio_to_desc(gpio));
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from drivers/media/dvb-frontends/cxd2820r_core.c:9:0:
   drivers/media/dvb-frontends/cxd2820r_priv.h: At top level:
>> drivers/media/dvb-frontends/cxd2820r_priv.h:46:19: error: field 'gpio_chip' has incomplete type
     struct gpio_chip gpio_chip;
                      ^~~~~~~~~
   drivers/media/dvb-frontends/cxd2820r_core.c: In function 'cxd2820r_gpio_direction_output':
>> drivers/media/dvb-frontends/cxd2820r_core.c:424:31: error: implicit declaration of function 'gpiochip_get_data'; did you mean 'gpio_get_value'? [-Werror=implicit-function-declaration]
     struct cxd2820r_priv *priv = gpiochip_get_data(chip);
                                  ^~~~~~~~~~~~~~~~~
                                  gpio_get_value
>> drivers/media/dvb-frontends/cxd2820r_core.c:424:31: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
   drivers/media/dvb-frontends/cxd2820r_core.c: In function 'cxd2820r_gpio_set':
   drivers/media/dvb-frontends/cxd2820r_core.c:438:31: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
     struct cxd2820r_priv *priv = gpiochip_get_data(chip);
                                  ^~~~~~~~~~~~~~~~~
   drivers/media/dvb-frontends/cxd2820r_core.c: In function 'cxd2820r_gpio_get':
   drivers/media/dvb-frontends/cxd2820r_core.c:454:31: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
     struct cxd2820r_priv *priv = gpiochip_get_data(chip);
                                  ^~~~~~~~~~~~~~~~~
   drivers/media/dvb-frontends/cxd2820r_core.c: In function 'cxd2820r_probe':
>> drivers/media/dvb-frontends/cxd2820r_core.c:661:9: error: implicit declaration of function 'gpiochip_add_data'; did you mean 'proc_create_data'? [-Werror=implicit-function-declaration]
      ret = gpiochip_add_data(&priv->gpio_chip, priv);
            ^~~~~~~~~~~~~~~~~
            proc_create_data
   drivers/media/dvb-frontends/cxd2820r_core.c: In function 'cxd2820r_remove':
>> drivers/media/dvb-frontends/cxd2820r_core.c:717:3: error: implicit declaration of function 'gpiochip_remove'; did you mean 'proc_remove'? [-Werror=implicit-function-declaration]
      gpiochip_remove(&priv->gpio_chip);
      ^~~~~~~~~~~~~~~
      proc_remove
   cc1: some warnings being treated as errors
--
   In file included from include/linux/gpio.h:62:0,
                    from drivers//media/dvb-frontends/cxd2820r_priv.h:16,
                    from drivers//media/dvb-frontends/cxd2820r_t.c:9:
   include/asm-generic/gpio.h: In function 'gpio_to_chip':
>> include/asm-generic/gpio.h:60:9: error: implicit declaration of function 'gpiod_to_chip'; did you mean 'gpio_to_chip'? [-Werror=implicit-function-declaration]
     return gpiod_to_chip(gpio_to_desc(gpio));
            ^~~~~~~~~~~~~
            gpio_to_chip
>> include/asm-generic/gpio.h:60:9: warning: return makes pointer from integer without a cast [-Wint-conversion]
     return gpiod_to_chip(gpio_to_desc(gpio));
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from drivers//media/dvb-frontends/cxd2820r_t.c:9:0:
   drivers//media/dvb-frontends/cxd2820r_priv.h: At top level:
   drivers//media/dvb-frontends/cxd2820r_priv.h:46:19: error: field 'gpio_chip' has incomplete type
     struct gpio_chip gpio_chip;
                      ^~~~~~~~~
   cc1: some warnings being treated as errors
--
   In file included from include/linux/gpio.h:62:0,
                    from drivers//media/dvb-frontends/cxd2820r_priv.h:16,
                    from drivers//media/dvb-frontends/cxd2820r_core.c:9:
   include/asm-generic/gpio.h: In function 'gpio_to_chip':
>> include/asm-generic/gpio.h:60:9: error: implicit declaration of function 'gpiod_to_chip'; did you mean 'gpio_to_chip'? [-Werror=implicit-function-declaration]
     return gpiod_to_chip(gpio_to_desc(gpio));
            ^~~~~~~~~~~~~
            gpio_to_chip
>> include/asm-generic/gpio.h:60:9: warning: return makes pointer from integer without a cast [-Wint-conversion]
     return gpiod_to_chip(gpio_to_desc(gpio));
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from drivers//media/dvb-frontends/cxd2820r_core.c:9:0:
   drivers//media/dvb-frontends/cxd2820r_priv.h: At top level:
   drivers//media/dvb-frontends/cxd2820r_priv.h:46:19: error: field 'gpio_chip' has incomplete type
     struct gpio_chip gpio_chip;
                      ^~~~~~~~~
   drivers//media/dvb-frontends/cxd2820r_core.c: In function 'cxd2820r_gpio_direction_output':
   drivers//media/dvb-frontends/cxd2820r_core.c:424:31: error: implicit declaration of function 'gpiochip_get_data'; did you mean 'gpio_get_value'? [-Werror=implicit-function-declaration]
     struct cxd2820r_priv *priv = gpiochip_get_data(chip);
                                  ^~~~~~~~~~~~~~~~~
                                  gpio_get_value
   drivers//media/dvb-frontends/cxd2820r_core.c:424:31: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
   drivers//media/dvb-frontends/cxd2820r_core.c: In function 'cxd2820r_gpio_set':
   drivers//media/dvb-frontends/cxd2820r_core.c:438:31: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
     struct cxd2820r_priv *priv = gpiochip_get_data(chip);
                                  ^~~~~~~~~~~~~~~~~
   drivers//media/dvb-frontends/cxd2820r_core.c: In function 'cxd2820r_gpio_get':
   drivers//media/dvb-frontends/cxd2820r_core.c:454:31: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
     struct cxd2820r_priv *priv = gpiochip_get_data(chip);
                                  ^~~~~~~~~~~~~~~~~
   drivers//media/dvb-frontends/cxd2820r_core.c: In function 'cxd2820r_probe':
   drivers//media/dvb-frontends/cxd2820r_core.c:661:9: error: implicit declaration of function 'gpiochip_add_data'; did you mean 'proc_create_data'? [-Werror=implicit-function-declaration]
      ret = gpiochip_add_data(&priv->gpio_chip, priv);
            ^~~~~~~~~~~~~~~~~
            proc_create_data
   drivers//media/dvb-frontends/cxd2820r_core.c: In function 'cxd2820r_remove':
   drivers//media/dvb-frontends/cxd2820r_core.c:717:3: error: implicit declaration of function 'gpiochip_remove'; did you mean 'proc_remove'? [-Werror=implicit-function-declaration]
      gpiochip_remove(&priv->gpio_chip);
      ^~~~~~~~~~~~~~~
      proc_remove
   cc1: some warnings being treated as errors
--
   In file included from include/linux/gpio.h:62:0,
                    from drivers/leds/leds-pca9532.c:23:
   include/asm-generic/gpio.h: In function 'gpio_to_chip':
>> include/asm-generic/gpio.h:60:9: error: implicit declaration of function 'gpiod_to_chip'; did you mean 'gpio_to_chip'? [-Werror=implicit-function-declaration]
     return gpiod_to_chip(gpio_to_desc(gpio));
            ^~~~~~~~~~~~~
            gpio_to_chip
>> include/asm-generic/gpio.h:60:9: warning: return makes pointer from integer without a cast [-Wint-conversion]
     return gpiod_to_chip(gpio_to_desc(gpio));
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/leds/leds-pca9532.c: At top level:
>> drivers/leds/leds-pca9532.c:48:19: error: field 'gpio' has incomplete type
     struct gpio_chip gpio;
                      ^~~~
   drivers/leds/leds-pca9532.c: In function 'pca9532_gpio_request_pin':
>> drivers/leds/leds-pca9532.c:275:30: error: implicit declaration of function 'gpiochip_get_data'; did you mean 'gpio_get_value'? [-Werror=implicit-function-declaration]
     struct pca9532_data *data = gpiochip_get_data(gc);
                                 ^~~~~~~~~~~~~~~~~
                                 gpio_get_value
>> drivers/leds/leds-pca9532.c:275:30: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
   drivers/leds/leds-pca9532.c: In function 'pca9532_gpio_set_value':
   drivers/leds/leds-pca9532.c:286:30: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
     struct pca9532_data *data = gpiochip_get_data(gc);
                                 ^~~~~~~~~~~~~~~~~
   drivers/leds/leds-pca9532.c: In function 'pca9532_gpio_get_value':
   drivers/leds/leds-pca9532.c:299:30: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
     struct pca9532_data *data = gpiochip_get_data(gc);
                                 ^~~~~~~~~~~~~~~~~
   drivers/leds/leds-pca9532.c: In function 'pca9532_destroy_devices':
>> drivers/leds/leds-pca9532.c:349:3: error: implicit declaration of function 'gpiochip_remove'; did you mean 'proc_remove'? [-Werror=implicit-function-declaration]
      gpiochip_remove(&data->gpio);
      ^~~~~~~~~~~~~~~
      proc_remove
   drivers/leds/leds-pca9532.c: In function 'pca9532_configure':
>> drivers/leds/leds-pca9532.c:449:9: error: implicit declaration of function 'gpiochip_add_data'; did you mean 'proc_create_data'? [-Werror=implicit-function-declaration]
      err = gpiochip_add_data(&data->gpio, data);
            ^~~~~~~~~~~~~~~~~
            proc_create_data
   cc1: some warnings being treated as errors
--
   In file included from include/linux/gpio.h:62:0,
                    from drivers/leds/leds-tca6507.c:96:
   include/asm-generic/gpio.h: In function 'gpio_to_chip':
>> include/asm-generic/gpio.h:60:9: error: implicit declaration of function 'gpiod_to_chip'; did you mean 'gpio_to_chip'? [-Werror=implicit-function-declaration]
     return gpiod_to_chip(gpio_to_desc(gpio));
            ^~~~~~~~~~~~~
            gpio_to_chip
>> include/asm-generic/gpio.h:60:9: warning: return makes pointer from integer without a cast [-Wint-conversion]
     return gpiod_to_chip(gpio_to_desc(gpio));
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/leds/leds-tca6507.c: At top level:
>> drivers/leds/leds-tca6507.c:191:20: error: field 'gpio' has incomplete type
     struct gpio_chip  gpio;
                       ^~~~
   drivers/leds/leds-tca6507.c: In function 'tca6507_gpio_set_value':
>> drivers/leds/leds-tca6507.c:609:29: error: implicit declaration of function 'gpiochip_get_data'; did you mean 'gpio_get_value'? [-Werror=implicit-function-declaration]
     struct tca6507_chip *tca = gpiochip_get_data(gc);
                                ^~~~~~~~~~~~~~~~~
                                gpio_get_value
>> drivers/leds/leds-tca6507.c:609:29: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
   drivers/leds/leds-tca6507.c: In function 'tca6507_probe_gpios':
>> drivers/leds/leds-tca6507.c:661:8: error: implicit declaration of function 'gpiochip_add_data'; did you mean 'proc_create_data'? [-Werror=implicit-function-declaration]
     err = gpiochip_add_data(&tca->gpio, tca);
           ^~~~~~~~~~~~~~~~~
           proc_create_data
   drivers/leds/leds-tca6507.c: In function 'tca6507_remove_gpio':
>> drivers/leds/leds-tca6507.c:674:3: error: implicit declaration of function 'gpiochip_remove'; did you mean 'proc_remove'? [-Werror=implicit-function-declaration]
      gpiochip_remove(&tca->gpio);
      ^~~~~~~~~~~~~~~
      proc_remove
   cc1: some warnings being treated as errors
--
   In file included from include/linux/gpio.h:62:0,
                    from drivers/leds/leds-pca955x.c:46:
   include/asm-generic/gpio.h: In function 'gpio_to_chip':
>> include/asm-generic/gpio.h:60:9: error: implicit declaration of function 'gpiod_to_chip'; did you mean 'gpio_to_chip'? [-Werror=implicit-function-declaration]
     return gpiod_to_chip(gpio_to_desc(gpio));
            ^~~~~~~~~~~~~
            gpio_to_chip
>> include/asm-generic/gpio.h:60:9: warning: return makes pointer from integer without a cast [-Wint-conversion]
     return gpiod_to_chip(gpio_to_desc(gpio));
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/leds/leds-pca955x.c: At top level:
>> drivers/leds/leds-pca955x.c:118:19: error: field 'gpio' has incomplete type
     struct gpio_chip gpio;
                      ^~~~
   drivers/leds/leds-pca955x.c: In function 'pca955x_gpio_request_pin':
>> drivers/leds/leds-pca955x.c:310:28: error: implicit declaration of function 'gpiochip_get_data'; did you mean 'gpio_get_value'? [-Werror=implicit-function-declaration]
     struct pca955x *pca955x = gpiochip_get_data(gc);
                               ^~~~~~~~~~~~~~~~~
                               gpio_get_value
>> drivers/leds/leds-pca955x.c:310:28: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
   drivers/leds/leds-pca955x.c: In function 'pca955x_set_value':
   drivers/leds/leds-pca955x.c:322:28: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
     struct pca955x *pca955x = gpiochip_get_data(gc);
                               ^~~~~~~~~~~~~~~~~
   drivers/leds/leds-pca955x.c: In function 'pca955x_gpio_get_value':
   drivers/leds/leds-pca955x.c:339:28: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
     struct pca955x *pca955x = gpiochip_get_data(gc);
                               ^~~~~~~~~~~~~~~~~
   drivers/leds/leds-pca955x.c: In function 'pca955x_gpio_direction_input':
   drivers/leds/leds-pca955x.c:352:28: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
     struct pca955x *pca955x = gpiochip_get_data(gc);
                               ^~~~~~~~~~~~~~~~~
   drivers/leds/leds-pca955x.c: In function 'pca955x_probe':
>> drivers/leds/leds-pca955x.c:557:9: error: implicit declaration of function 'devm_gpiochip_add_data'; did you mean 'devm_gpiod_put'? [-Werror=implicit-function-declaration]
      err = devm_gpiochip_add_data(&client->dev, &pca955x->gpio,
            ^~~~~~~~~~~~~~~~~~~~~~
            devm_gpiod_put
   cc1: some warnings being treated as errors
..

vim +60 include/asm-generic/gpio.h

d2876d08 David Brownell    2008-02-04  56  
79a9becd Alexandre Courbot 2013-10-17  57  /* caller holds gpio_lock *OR* gpio is marked as requested */
79a9becd Alexandre Courbot 2013-10-17  58  static inline struct gpio_chip *gpio_to_chip(unsigned gpio)
79a9becd Alexandre Courbot 2013-10-17  59  {
79a9becd Alexandre Courbot 2013-10-17 @60  	return gpiod_to_chip(gpio_to_desc(gpio));
79a9becd Alexandre Courbot 2013-10-17  61  }
d2876d08 David Brownell    2008-02-04  62  

:::::: The code at line 60 was first introduced by commit
:::::: 79a9becda8940deb2274b5aa4577c86d52ee7ecb gpiolib: export descriptor-based GPIO interface

:::::: TO: Alexandre Courbot <acourbot@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