tree:   https://git.kernel.org/pub/scm/linux/kernel/git/peter.chen/usb 
add_pwrseq_for_usb
head:   236dd95c9a8872af797cc504ea9d0fe74b8c55d3
commit: d178023ba59940c022fcd0be5b65a0b328fa368a [13/16] usb: core: add power 
sequence handling for USB devices
config: i386-defconfig (attached as .config)
compiler: gcc-6 (Debian 6.1.1-1) 6.1.1 20160430
reproduce:
        git checkout d178023ba59940c022fcd0be5b65a0b328fa368a
        # save the attached .config to linux build tree
        make ARCH=i386 

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

   In file included from drivers/usb/core/hub.c:29:0:
   include/linux/pwrseq.h: In function 'pwrseq_pre_power_on':
>> include/linux/pwrseq.h:49:46: warning: no return statement in function 
>> returning non-void [-Wreturn-type]
    static inline int pwrseq_pre_power_on(struct pwrseq *pwrseq) {}
                                                 ^~~~~~
   include/linux/pwrseq.h: In function 'pwrseq_alloc':
   include/linux/pwrseq.h:53:3: warning: no return statement in function 
returning non-void [-Wreturn-type]
      const char *dev_name) {}
      ^~~~~
   include/linux/pwrseq.h: At top level:
>> include/linux/pwrseq.h:54:39: warning: 'struct mmc_host' declared inside 
>> parameter list will not be visible outside of this definition or declaration
    static inline void pwrseq_free(struct mmc_host *host) {}
                                          ^~~~~~~~
   drivers/usb/core/hub.c: In function 'hub_of_pwrseq_off':
>> drivers/usb/core/hub.c:1698:15: error: passing argument 1 of 'pwrseq_free' 
>> from incompatible pointer type [-Werror=incompatible-pointer-types]
      pwrseq_free(hdev_pwrseq);
                  ^~~~~~~~~~~
   In file included from drivers/usb/core/hub.c:29:0:
   include/linux/pwrseq.h:54:20: note: expected 'struct mmc_host *' but 
argument is of type 'struct pwrseq *'
    static inline void pwrseq_free(struct mmc_host *host) {}
                       ^~~~~~~~~~~
   drivers/usb/core/hub.c: In function 'hub_of_pwrseq_on':
   drivers/usb/core/hub.c:1742:14: error: passing argument 1 of 'pwrseq_free' 
from incompatible pointer type [-Werror=incompatible-pointer-types]
     pwrseq_free(hdev_pwrseq);
                 ^~~~~~~~~~~
   In file included from drivers/usb/core/hub.c:29:0:
   include/linux/pwrseq.h:54:20: note: expected 'struct mmc_host *' but 
argument is of type 'struct pwrseq *'
    static inline void pwrseq_free(struct mmc_host *host) {}
                       ^~~~~~~~~~~
   cc1: some warnings being treated as errors

vim +/pwrseq_free +1698 drivers/usb/core/hub.c

  1692  
  1693          list_for_each_entry_safe(pwrseq_node, tmp_node,
  1694                          &hub->pwrseq_list, list) {
  1695                  hdev_pwrseq = pwrseq_node->pwrseq_on;
  1696                  pwrseq_power_off(hdev_pwrseq);
  1697                  list_del(&pwrseq_node->list);
> 1698                  pwrseq_free(hdev_pwrseq);
  1699                  kfree(pwrseq_node);
  1700          }
  1701  }

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

Attachment: .config.gz
Description: Binary data

Reply via email to