From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 91FF015E87 for ; Sat, 23 Sep 2023 14:38:11 +0000 (UTC) Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 45647136 for ; Sat, 23 Sep 2023 07:38:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1695479890; x=1727015890; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=6iL2iP0bBLGGdY/x7CtPH02IZCPiOIq0/jaWpVKDZWk=; b=MBGcI/OJJ4octPW/OVkA1HH0PtYORO93He6wrjDYx7X5BzG5hYL2+nIx oh1NLB2/02+o8NsNIS9FkNxqWlzUI8O2zvgW6DAc+KxUo0CtLIXB5Ki8q 1DlN/yiu9mPu65nSZc3IvzhHg3/asNyKdvKhuO1IgWvFj3s8J+tp3t0M+ pJDYx76jJXManXEw2gFji/QPobGD/HZxzMjBGOxbFKt2yy51c5FAbi5qv haw1Ym9X4dMa3zJl7/9MLcC4SF9ZN9566MEg8IbP/NyTdyY9QdFK514RJ gJFUu6f3W/sRBjgZ8YG4HtK6NLFTXQyqd8UsV7s94AKoaC/lfsaqp0y6f Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10842"; a="371340217" X-IronPort-AV: E=Sophos;i="6.03,171,1694761200"; d="scan'208";a="371340217" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Sep 2023 07:38:09 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10842"; a="777181741" X-IronPort-AV: E=Sophos;i="6.03,171,1694761200"; d="scan'208";a="777181741" Received: from lkp-server02.sh.intel.com (HELO 493f6c7fed5d) ([10.239.97.151]) by orsmga008.jf.intel.com with ESMTP; 23 Sep 2023 07:38:07 -0700 Received: from kbuild by 493f6c7fed5d with local (Exim 4.96) (envelope-from ) id 1qk3lg-0002Tv-0R; Sat, 23 Sep 2023 14:38:02 +0000 Date: Sat, 23 Sep 2023 22:37:15 +0800 From: kernel test robot To: liuhaoran , davem@davemloft.net Cc: oe-kbuild-all@lists.linux.dev, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, netdev@vger.kernel.org, liuhaoran Subject: Re: [PATCH] net: phonet: Add error handling in phonet_device_init Message-ID: <202309232243.cyUNs2XY-lkp@intel.com> References: <20230923115847.32740-1-liuhaoran14@163.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230923115847.32740-1-liuhaoran14@163.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 | 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