From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============5085812820114743068==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: [mingo-tip:master 2130/2300] drivers/net/fddi/defza.c:104:16: error: implicit declaration of function '__netdev_alloc_skb' Date: Sun, 09 Jan 2022 03:46:07 +0800 Message-ID: <202201090331.cHt3DdV5-lkp@intel.com> List-Id: --===============5085812820114743068== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable tree: git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git master head: 4e348e961395297bb17f101cc63bc133d8a348e9 commit: 849a5d0b76b20f2ffe001b8c745fe15441b98bc7 [2130/2300] headers/deps: = net: Optimize dependencies, remove various headers config: mips-decstation_defconfig (https://download.01.org/0day-ci/archive/= 20220109/202201090331.cHt3DdV5-lkp(a)intel.com/config) compiler: mipsel-linux-gcc (GCC) 11.2.0 reproduce (this is a W=3D1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/= make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git/com= mit/?id=3D849a5d0b76b20f2ffe001b8c745fe15441b98bc7 git remote add mingo-tip git://git.kernel.org/pub/scm/linux/kernel/= git/mingo/tip.git git fetch --no-tags mingo-tip master git checkout 849a5d0b76b20f2ffe001b8c745fe15441b98bc7 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=3D$HOME/0day COMPILER=3Dgcc-11.2.0 make.cross= O=3Dbuild_dir ARCH=3Dmips SHELL=3D/bin/bash If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): drivers/net/fddi/defza.c: In function 'fza_alloc_skb_irq': >> drivers/net/fddi/defza.c:104:16: error: implicit declaration of function= '__netdev_alloc_skb' [-Werror=3Dimplicit-function-declaration] 104 | return __netdev_alloc_skb(dev, length, GFP_ATOMIC); | ^~~~~~~~~~~~~~~~~~ drivers/net/fddi/defza.c:104:16: warning: returning 'int' from a functio= n with return type 'struct sk_buff *' makes pointer from integer without a = cast [-Wint-conversion] 104 | return __netdev_alloc_skb(dev, length, GFP_ATOMIC); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/net/fddi/defza.c: In function 'fza_alloc_skb': drivers/net/fddi/defza.c:110:16: warning: returning 'int' from a functio= n with return type 'struct sk_buff *' makes pointer from integer without a = cast [-Wint-conversion] 110 | return __netdev_alloc_skb(dev, length, GFP_KERNEL); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/net/fddi/defza.c: In function 'fza_skb_align': >> drivers/net/fddi/defza.c:120:9: error: implicit declaration of function = 'skb_reserve' [-Werror=3Dimplicit-function-declaration] 120 | skb_reserve(skb, y - x); | ^~~~~~~~~~~ drivers/net/fddi/defza.c: In function 'fza_rx': >> drivers/net/fddi/defza.c:757:25: error: implicit declaration of function= 'skb_put' [-Werror=3Dimplicit-function-declaration] 757 | skb_put(skb, pkt_len); /* And cut off F= CS. */ | ^~~~~~~ drivers/net/fddi/defza.c: In function 'fza_tx_smt': >> drivers/net/fddi/defza.c:827:33: error: implicit declaration of function= 'skb_reset_network_header'; did you mean 'skb_inner_network_header'? [-Wer= ror=3Dimplicit-function-declaration] 827 | skb_reset_network_header(skb); | ^~~~~~~~~~~~~~~~~~~~~~~~ | skb_inner_network_header drivers/net/fddi/defza.c: In function 'fza_start_xmit': >> drivers/net/fddi/defza.c:1091:9: error: implicit declaration of function= 'skb_push' [-Werror=3Dimplicit-function-declaration] 1091 | skb_push(skb, 3); /* Make room for= PRH. */ | ^~~~~~~~ >> drivers/net/fddi/defza.c:1148:9: error: implicit declaration of function= 'dev_kfree_skb'; did you mean 'dev_kfree_skb_any'? [-Werror=3Dimplicit-fun= ction-declaration] 1148 | dev_kfree_skb(skb); | ^~~~~~~~~~~~~ | dev_kfree_skb_any cc1: some warnings being treated as errors vim +/__netdev_alloc_skb +104 drivers/net/fddi/defza.c 61414f5ec9834d Maciej W. Rozycki 2018-10-09 100 = 61414f5ec9834d Maciej W. Rozycki 2018-10-09 101 static inline struct sk_b= uff *fza_alloc_skb_irq(struct net_device *dev, 61414f5ec9834d Maciej W. Rozycki 2018-10-09 102 unsigned int length) 61414f5ec9834d Maciej W. Rozycki 2018-10-09 103 { 61414f5ec9834d Maciej W. Rozycki 2018-10-09 @104 return __netdev_alloc_sk= b(dev, length, GFP_ATOMIC); 61414f5ec9834d Maciej W. Rozycki 2018-10-09 105 } 61414f5ec9834d Maciej W. Rozycki 2018-10-09 106 = 61414f5ec9834d Maciej W. Rozycki 2018-10-09 107 static inline struct sk_b= uff *fza_alloc_skb(struct net_device *dev, 61414f5ec9834d Maciej W. Rozycki 2018-10-09 108 unsigned int len= gth) 61414f5ec9834d Maciej W. Rozycki 2018-10-09 109 { 61414f5ec9834d Maciej W. Rozycki 2018-10-09 110 return __netdev_alloc_sk= b(dev, length, GFP_KERNEL); 61414f5ec9834d Maciej W. Rozycki 2018-10-09 111 } 61414f5ec9834d Maciej W. Rozycki 2018-10-09 112 = 61414f5ec9834d Maciej W. Rozycki 2018-10-09 113 static inline void fza_sk= b_align(struct sk_buff *skb, unsigned int v) 61414f5ec9834d Maciej W. Rozycki 2018-10-09 114 { 61414f5ec9834d Maciej W. Rozycki 2018-10-09 115 unsigned long x, y; 61414f5ec9834d Maciej W. Rozycki 2018-10-09 116 = 61414f5ec9834d Maciej W. Rozycki 2018-10-09 117 x =3D (unsigned long)skb= ->data; 61414f5ec9834d Maciej W. Rozycki 2018-10-09 118 y =3D ALIGN(x, v); 61414f5ec9834d Maciej W. Rozycki 2018-10-09 119 = 61414f5ec9834d Maciej W. Rozycki 2018-10-09 @120 skb_reserve(skb, y - x); 61414f5ec9834d Maciej W. Rozycki 2018-10-09 121 } 61414f5ec9834d Maciej W. Rozycki 2018-10-09 122 = :::::: The code at line 104 was first introduced by commit :::::: 61414f5ec9834df8aa4f55c90de16b71a3d6ca8d FDDI: defza: Add support fo= r DEC FDDIcontroller 700 TURBOchannel adapter :::::: TO: Maciej W. Rozycki :::::: CC: David S. Miller --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============5085812820114743068==-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 12C89C433F5 for ; Sat, 8 Jan 2022 19:47:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232518AbiAHTrK (ORCPT ); Sat, 8 Jan 2022 14:47:10 -0500 Received: from mga14.intel.com ([192.55.52.115]:62093 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232473AbiAHTrJ (ORCPT ); Sat, 8 Jan 2022 14:47:09 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1641671229; x=1673207229; h=date:from:to:cc:subject:message-id:mime-version; bh=ixXM5TGh3AOQknuVvJA5cWynFrolRB3/AHJXzvm2iVM=; b=f+pSCG6dIpwCkeEzjUm4fXSExPAYDxb/5yWMnvvYbCShjwBriakqrN4R hfgeQTow5K5ocCRN6ZxVk/t2tdtDWdtyTXYtNGDQvMmaz7MaYhh1V7YsQ 9oJ3lc18V+J8Pv4Hh9hop9A1ljp04FoK2Wfcguqtb7UHow0qNdqtY67WI sz//kyRpsNpHzZWzbkhPtfVG5zvPbg8GOqKJahRiTeFRpKPPuvW+YVC1S S/r8PWcVbXcGBg1qxnBDlrikSiISoDk/XDLmoYt6YmT03Ia6RHzWrUmRm sM2sc5aWoTlqnglZWP0cXFUA0aCMUshV/8XF4CVokHQRwdKew8Jyukko0 Q==; X-IronPort-AV: E=McAfee;i="6200,9189,10221"; a="243235254" X-IronPort-AV: E=Sophos;i="5.88,273,1635231600"; d="scan'208";a="243235254" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Jan 2022 11:47:09 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,273,1635231600"; d="scan'208";a="669096943" Received: from lkp-server01.sh.intel.com (HELO 276f1b88eecb) ([10.239.97.150]) by fmsmga001.fm.intel.com with ESMTP; 08 Jan 2022 11:47:08 -0800 Received: from kbuild by 276f1b88eecb with local (Exim 4.92) (envelope-from ) id 1n6HgB-0000za-Ch; Sat, 08 Jan 2022 19:47:07 +0000 Date: Sun, 9 Jan 2022 03:46:07 +0800 From: kernel test robot To: Ingo Molnar Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org Subject: [mingo-tip:master 2130/2300] drivers/net/fddi/defza.c:104:16: error: implicit declaration of function '__netdev_alloc_skb' Message-ID: <202201090331.cHt3DdV5-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org tree: git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git master head: 4e348e961395297bb17f101cc63bc133d8a348e9 commit: 849a5d0b76b20f2ffe001b8c745fe15441b98bc7 [2130/2300] headers/deps: net: Optimize dependencies, remove various headers config: mips-decstation_defconfig (https://download.01.org/0day-ci/archive/20220109/202201090331.cHt3DdV5-lkp@intel.com/config) compiler: mipsel-linux-gcc (GCC) 11.2.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git/commit/?id=849a5d0b76b20f2ffe001b8c745fe15441b98bc7 git remote add mingo-tip git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git git fetch --no-tags mingo-tip master git checkout 849a5d0b76b20f2ffe001b8c745fe15441b98bc7 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=mips SHELL=/bin/bash If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): drivers/net/fddi/defza.c: In function 'fza_alloc_skb_irq': >> drivers/net/fddi/defza.c:104:16: error: implicit declaration of function '__netdev_alloc_skb' [-Werror=implicit-function-declaration] 104 | return __netdev_alloc_skb(dev, length, GFP_ATOMIC); | ^~~~~~~~~~~~~~~~~~ drivers/net/fddi/defza.c:104:16: warning: returning 'int' from a function with return type 'struct sk_buff *' makes pointer from integer without a cast [-Wint-conversion] 104 | return __netdev_alloc_skb(dev, length, GFP_ATOMIC); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/net/fddi/defza.c: In function 'fza_alloc_skb': drivers/net/fddi/defza.c:110:16: warning: returning 'int' from a function with return type 'struct sk_buff *' makes pointer from integer without a cast [-Wint-conversion] 110 | return __netdev_alloc_skb(dev, length, GFP_KERNEL); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/net/fddi/defza.c: In function 'fza_skb_align': >> drivers/net/fddi/defza.c:120:9: error: implicit declaration of function 'skb_reserve' [-Werror=implicit-function-declaration] 120 | skb_reserve(skb, y - x); | ^~~~~~~~~~~ drivers/net/fddi/defza.c: In function 'fza_rx': >> drivers/net/fddi/defza.c:757:25: error: implicit declaration of function 'skb_put' [-Werror=implicit-function-declaration] 757 | skb_put(skb, pkt_len); /* And cut off FCS. */ | ^~~~~~~ drivers/net/fddi/defza.c: In function 'fza_tx_smt': >> drivers/net/fddi/defza.c:827:33: error: implicit declaration of function 'skb_reset_network_header'; did you mean 'skb_inner_network_header'? [-Werror=implicit-function-declaration] 827 | skb_reset_network_header(skb); | ^~~~~~~~~~~~~~~~~~~~~~~~ | skb_inner_network_header drivers/net/fddi/defza.c: In function 'fza_start_xmit': >> drivers/net/fddi/defza.c:1091:9: error: implicit declaration of function 'skb_push' [-Werror=implicit-function-declaration] 1091 | skb_push(skb, 3); /* Make room for PRH. */ | ^~~~~~~~ >> drivers/net/fddi/defza.c:1148:9: error: implicit declaration of function 'dev_kfree_skb'; did you mean 'dev_kfree_skb_any'? [-Werror=implicit-function-declaration] 1148 | dev_kfree_skb(skb); | ^~~~~~~~~~~~~ | dev_kfree_skb_any cc1: some warnings being treated as errors vim +/__netdev_alloc_skb +104 drivers/net/fddi/defza.c 61414f5ec9834d Maciej W. Rozycki 2018-10-09 100 61414f5ec9834d Maciej W. Rozycki 2018-10-09 101 static inline struct sk_buff *fza_alloc_skb_irq(struct net_device *dev, 61414f5ec9834d Maciej W. Rozycki 2018-10-09 102 unsigned int length) 61414f5ec9834d Maciej W. Rozycki 2018-10-09 103 { 61414f5ec9834d Maciej W. Rozycki 2018-10-09 @104 return __netdev_alloc_skb(dev, length, GFP_ATOMIC); 61414f5ec9834d Maciej W. Rozycki 2018-10-09 105 } 61414f5ec9834d Maciej W. Rozycki 2018-10-09 106 61414f5ec9834d Maciej W. Rozycki 2018-10-09 107 static inline struct sk_buff *fza_alloc_skb(struct net_device *dev, 61414f5ec9834d Maciej W. Rozycki 2018-10-09 108 unsigned int length) 61414f5ec9834d Maciej W. Rozycki 2018-10-09 109 { 61414f5ec9834d Maciej W. Rozycki 2018-10-09 110 return __netdev_alloc_skb(dev, length, GFP_KERNEL); 61414f5ec9834d Maciej W. Rozycki 2018-10-09 111 } 61414f5ec9834d Maciej W. Rozycki 2018-10-09 112 61414f5ec9834d Maciej W. Rozycki 2018-10-09 113 static inline void fza_skb_align(struct sk_buff *skb, unsigned int v) 61414f5ec9834d Maciej W. Rozycki 2018-10-09 114 { 61414f5ec9834d Maciej W. Rozycki 2018-10-09 115 unsigned long x, y; 61414f5ec9834d Maciej W. Rozycki 2018-10-09 116 61414f5ec9834d Maciej W. Rozycki 2018-10-09 117 x = (unsigned long)skb->data; 61414f5ec9834d Maciej W. Rozycki 2018-10-09 118 y = ALIGN(x, v); 61414f5ec9834d Maciej W. Rozycki 2018-10-09 119 61414f5ec9834d Maciej W. Rozycki 2018-10-09 @120 skb_reserve(skb, y - x); 61414f5ec9834d Maciej W. Rozycki 2018-10-09 121 } 61414f5ec9834d Maciej W. Rozycki 2018-10-09 122 :::::: The code at line 104 was first introduced by commit :::::: 61414f5ec9834df8aa4f55c90de16b71a3d6ca8d FDDI: defza: Add support for DEC FDDIcontroller 700 TURBOchannel adapter :::::: TO: Maciej W. Rozycki :::::: CC: David S. Miller --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org