* arch/um/drivers/pcap_kern.c:18:6: warning: no previous prototype for 'pcap_init_kern'
@ 2023-06-16 15:21 kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2023-06-16 15:21 UTC (permalink / raw)
To: Peter Foley; +Cc: oe-kbuild-all, linux-kernel, Richard Weinberger
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 40f71e7cd3c6ac04293556ab0504a372393838ff
commit: 2c4d3841a82b88ae8a7b518dc6206f84f68e705a um: Avoid pcap multiple definition errors
date: 4 months ago
config: um-randconfig-r036-20230616 (https://download.01.org/0day-ci/archive/20230616/202306162327.v3SoLRFC-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce: (https://download.01.org/0day-ci/archive/20230616/202306162327.v3SoLRFC-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202306162327.v3SoLRFC-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> arch/um/drivers/pcap_kern.c:18:6: warning: no previous prototype for 'pcap_init_kern' [-Wmissing-prototypes]
18 | void pcap_init_kern(struct net_device *dev, void *data)
| ^~~~~~~~~~~~~~
arch/um/drivers/pcap_kern.c:53:5: warning: no previous prototype for 'pcap_setup' [-Wmissing-prototypes]
53 | int pcap_setup(char *str, char **mac_out, void *data)
| ^~~~~~~~~~
vim +/pcap_init_kern +18 arch/um/drivers/pcap_kern.c
17
> 18 void pcap_init_kern(struct net_device *dev, void *data)
19 {
20 struct uml_net_private *pri;
21 struct pcap_data *ppri;
22 struct pcap_init *init = data;
23
24 pri = netdev_priv(dev);
25 ppri = (struct pcap_data *) pri->user;
26 ppri->host_if = init->host_if;
27 ppri->promisc = init->promisc;
28 ppri->optimize = init->optimize;
29 ppri->filter = init->filter;
30
31 printk("pcap backend, host interface %s\n", ppri->host_if);
32 }
33
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 2+ messages in thread
* arch/um/drivers/pcap_kern.c:18:6: warning: no previous prototype for 'pcap_init_kern'
@ 2023-09-16 2:57 kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2023-09-16 2:57 UTC (permalink / raw)
To: Peter Foley; +Cc: oe-kbuild-all, linux-kernel, Richard Weinberger
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: d8d7cd656361529c334e3b90535e81d818fc1157
commit: 2c4d3841a82b88ae8a7b518dc6206f84f68e705a um: Avoid pcap multiple definition errors
date: 7 months ago
config: um-randconfig-001-20230916 (https://download.01.org/0day-ci/archive/20230916/202309161042.yT9kbpWB-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20230916/202309161042.yT9kbpWB-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202309161042.yT9kbpWB-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> arch/um/drivers/pcap_kern.c:18:6: warning: no previous prototype for 'pcap_init_kern' [-Wmissing-prototypes]
18 | void pcap_init_kern(struct net_device *dev, void *data)
| ^~~~~~~~~~~~~~
arch/um/drivers/pcap_kern.c:53:5: warning: no previous prototype for 'pcap_setup' [-Wmissing-prototypes]
53 | int pcap_setup(char *str, char **mac_out, void *data)
| ^~~~~~~~~~
vim +/pcap_init_kern +18 arch/um/drivers/pcap_kern.c
17
> 18 void pcap_init_kern(struct net_device *dev, void *data)
19 {
20 struct uml_net_private *pri;
21 struct pcap_data *ppri;
22 struct pcap_init *init = data;
23
24 pri = netdev_priv(dev);
25 ppri = (struct pcap_data *) pri->user;
26 ppri->host_if = init->host_if;
27 ppri->promisc = init->promisc;
28 ppri->optimize = init->optimize;
29 ppri->filter = init->filter;
30
31 printk("pcap backend, host interface %s\n", ppri->host_if);
32 }
33
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-09-16 2:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-16 15:21 arch/um/drivers/pcap_kern.c:18:6: warning: no previous prototype for 'pcap_init_kern' kernel test robot
-- strict thread matches above, loose matches on Subject: below --
2023-09-16 2:57 kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox