From: kernel test robot <lkp@intel.com>
To: liuhaoran <liuhaoran14@163.com>, davem@davemloft.net
Cc: oe-kbuild-all@lists.linux.dev, edumazet@google.com,
kuba@kernel.org, pabeni@redhat.com, netdev@vger.kernel.org,
liuhaoran <liuhaoran14@163.com>
Subject: Re: [PATCH] net: phonet: Add error handling in phonet_device_init
Date: Sat, 23 Sep 2023 22:37:15 +0800 [thread overview]
Message-ID: <202309232243.cyUNs2XY-lkp@intel.com> (raw)
In-Reply-To: <20230923115847.32740-1-liuhaoran14@163.com>
Hi liuhaoran,
kernel test robot noticed the following build warnings:
[auto build test WARNING on net-next/main]
[also build test WARNING on net/main linus/master horms-ipvs/master v6.6-rc2 next-20230921]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/liuhaoran/net-phonet-Add-error-handling-in-phonet_device_init/20230923-200141
base: net-next/main
patch link: https://lore.kernel.org/r/20230923115847.32740-1-liuhaoran14%40163.com
patch subject: [PATCH] net: phonet: Add error handling in phonet_device_init
config: m68k-allmodconfig (https://download.01.org/0day-ci/archive/20230923/202309232243.cyUNs2XY-lkp@intel.com/config)
compiler: m68k-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20230923/202309232243.cyUNs2XY-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/202309232243.cyUNs2XY-lkp@intel.com/
All warnings (new ones prefixed by >>):
net/phonet/pn_dev.c: In function 'phonet_device_init':
>> net/phonet/pn_dev.c:339:13: warning: assignment to 'int' from 'struct proc_dir_entry *' makes integer from pointer without a cast [-Wint-conversion]
339 | err = proc_create_net("pnresource", 0, init_net.proc_net, &pn_res_seq_ops,
| ^
vim +339 net/phonet/pn_dev.c
331
332 /* Initialize Phonet devices list */
333 int __init phonet_device_init(void)
334 {
335 int err = register_pernet_subsys(&phonet_net_ops);
336 if (err)
337 return err;
338
> 339 err = proc_create_net("pnresource", 0, init_net.proc_net, &pn_res_seq_ops,
340 sizeof(struct seq_net_private));
341
342 if (!err)
343 return err;
344
345 err = register_netdevice_notifier(&phonet_device_notifier);
346
347 if (!err)
348 return err;
349
350 err = phonet_netlink_register();
351
352 if (err)
353 phonet_device_exit();
354 return err;
355 }
356
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2023-09-23 14:38 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-23 11:58 [PATCH] net: phonet: Add error handling in phonet_device_init liuhaoran
2023-09-23 14:37 ` kernel test robot [this message]
2023-09-23 17:08 ` Andrew Lunn
2023-09-24 6:21 ` kernel test robot
2023-09-25 15:58 ` kernel test robot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202309232243.cyUNs2XY-lkp@intel.com \
--to=lkp@intel.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=kuba@kernel.org \
--cc=liuhaoran14@163.com \
--cc=netdev@vger.kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=pabeni@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.