tree: https://git.kernel.org/pub/scm/linux/kernel/git/peter.chen/usb add_pwrseq_for_usb head: 236dd95c9a8872af797cc504ea9d0fe74b8c55d3 commit: 210f01d924a442bc83b11f8bb2c0ee6845fa2e20 [9/16] power: pwrseq: change common helpers as generic config: x86_64-allyesdebian (attached as .config) compiler: gcc-6 (Debian 6.1.1-1) 6.1.1 20160430 reproduce: git checkout 210f01d924a442bc83b11f8bb2c0ee6845fa2e20 # save the attached .config to linux build tree make ARCH=x86_64
All errors (new ones prefixed by >>):
In file included from drivers/mmc/core/host.c:24:0:
include/linux/pwrseq.h: In function 'pwrseq_pre_power_on':
include/linux/pwrseq.h:43: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:47: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:48: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/mmc/core/host.c: In function 'mmc_free_host':
>> drivers/mmc/core/host.c:473:14: error: passing argument 1 of 'pwrseq_free'
>> from incompatible pointer type [-Werror=incompatible-pointer-types]
pwrseq_free(host->pwrseq);
^~~~
In file included from drivers/mmc/core/host.c:24:0:
include/linux/pwrseq.h:48: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 +473 drivers/mmc/core/host.c
467 * @host: mmc host
468 *
469 * Free the host once all references to it have been dropped.
470 */
471 void mmc_free_host(struct mmc_host *host)
472 {
> 473 pwrseq_free(host->pwrseq);
474 put_device(&host->class_dev);
475 }
476
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
.config.gz
Description: Binary data
