drivers/usb/typec/ucsi/ucsi.h:331:59: warning: 'struct device' declared inside parameter list

From: kbuild test robot
Date: Tue Jul 11 2017 - 08:59:06 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 548aa0e3c516d906dae5edb1fc9a1ad2e490120a
commit: c1b0bc2dabfa884dea49c02adaf3cd6b52b33d2f usb: typec: Add support for UCSI interface
date: 2 weeks ago
config: x86_64-randconfig-in0-07111558 (attached as .config)
compiler: gcc-4.6 (Debian 4.6.4-7) 4.6.4
reproduce:
git checkout c1b0bc2dabfa884dea49c02adaf3cd6b52b33d2f
# save the attached .config to linux build tree
make ARCH=x86_64

All warnings (new ones prefixed by >>):

In file included from drivers/usb/typec/ucsi/trace.h:9:0,
from drivers/usb/typec/ucsi/trace.c:2:
>> drivers/usb/typec/ucsi/ucsi.h:331:59: warning: 'struct device' declared inside parameter list [enabled by default]
>> drivers/usb/typec/ucsi/ucsi.h:331:59: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default]

vim +331 drivers/usb/typec/ucsi/ucsi.h

330
> 331 struct ucsi *ucsi_register_ppm(struct device *dev, struct ucsi_ppm *ppm);
332 void ucsi_unregister_ppm(struct ucsi *ucsi);
333 void ucsi_notify(struct ucsi *ucsi);
334

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

Attachment: .config.gz
Description: application/gzip