From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) (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 C76392CA8 for ; Mon, 24 Jan 2022 19:25:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1643052305; x=1674588305; h=date:from:to:cc:subject:message-id:mime-version; bh=92G7QDVUIZopiXhcTFwl2+WPw+P0JDGWz1LsH6KJXFQ=; b=EHJQaQzIwE+njlqXdq4vPWla1P5ixIYPjiFt+uaXuxT7lrm5tCITcnQQ ArvJSyjegTjdRzaGnmjIbHPreW7vcgMKWSCW0Mt0g/REOI+Smpr5hdSgp 9KbZfnOYwEcjglzYBvmgynV7R2cOlccnnoP9f9AXnpWIdfOHdmW1K22UA EkbrsFLgQFIBoGeTrffI3+25b56cv61EqW32Gx/VAVdzOlQks/h6tN2AC 6HuZPBPReWPuUJX7rk7Zn3wWg8M4Byi0zXvF1WWEI7B5G0GK7sHcJ23FQ A40ra+N0jB1EaBazEfXFZSyQFIIXeDrExGcxpKXYZNYQUZ0uSgwjkKXWW w==; X-IronPort-AV: E=McAfee;i="6200,9189,10237"; a="226108568" X-IronPort-AV: E=Sophos;i="5.88,311,1635231600"; d="scan'208";a="226108568" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Jan 2022 11:25:04 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,311,1635231600"; d="scan'208";a="695539896" Received: from lkp-server01.sh.intel.com (HELO 276f1b88eecb) ([10.239.97.150]) by orsmga005.jf.intel.com with ESMTP; 24 Jan 2022 11:25:03 -0800 Received: from kbuild by 276f1b88eecb with local (Exim 4.92) (envelope-from ) id 1nC4xa-000IoI-Lf; Mon, 24 Jan 2022 19:25:02 +0000 Date: Tue, 25 Jan 2022 03:24:25 +0800 From: kernel test robot To: Ingo Molnar Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, linux-kernel@vger.kernel.org Subject: [mingo-tip:sched/headers 1750/2384] arch/mips/include/asm/mach-bcm63xx/bcm63xx_dev_enet.h:38:27: warning: declaration of 'struct net_device' will not be visible outside of this function Message-ID: <202201250317.7RaTIwIn-lkp@intel.com> Precedence: bulk X-Mailing-List: llvm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) tree: git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git sched/headers head: 4c707c1c0de83967079b4e385012fa5b00e2cd11 commit: 665097d414cd5e34cf1c21585efc611205ab1efa [1750/2384] headers/deps: net: Optimize config: mips-bcm63xx_defconfig (https://download.01.org/0day-ci/archive/20220125/202201250317.7RaTIwIn-lkp@intel.com/config) compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 2e58a18910867ba6795066e044293e6daf89edf5) 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 # install mips cross compiling tool for clang build # apt-get install binutils-mips-linux-gnu # https://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git/commit/?id=665097d414cd5e34cf1c21585efc611205ab1efa git remote add mingo-tip git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git git fetch --no-tags mingo-tip sched/headers git checkout 665097d414cd5e34cf1c21585efc611205ab1efa # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=mips SHELL=/bin/bash arch/mips/ kernel// If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): In file included from arch/mips/bcm63xx/dev-enet.c:16: >> arch/mips/include/asm/mach-bcm63xx/bcm63xx_dev_enet.h:38:27: warning: declaration of 'struct net_device' will not be visible outside of this function [-Wvisibility] int (*mii_config)(struct net_device *dev, int probe, ^ 1 warning generated. vim +38 arch/mips/include/asm/mach-bcm63xx/bcm63xx_dev_enet.h 3dc6475c0c9e55 Florian Fainelli 2013-06-12 9 e7300d04bd0809 Maxime Bizon 2009-08-18 10 /* e7300d04bd0809 Maxime Bizon 2009-08-18 11 * on board ethernet platform data e7300d04bd0809 Maxime Bizon 2009-08-18 12 */ e7300d04bd0809 Maxime Bizon 2009-08-18 13 struct bcm63xx_enet_platform_data { e7300d04bd0809 Maxime Bizon 2009-08-18 14 char mac_addr[ETH_ALEN]; e7300d04bd0809 Maxime Bizon 2009-08-18 15 e7300d04bd0809 Maxime Bizon 2009-08-18 16 int has_phy; e7300d04bd0809 Maxime Bizon 2009-08-18 17 e7300d04bd0809 Maxime Bizon 2009-08-18 18 /* if has_phy, then set use_internal_phy */ e7300d04bd0809 Maxime Bizon 2009-08-18 19 int use_internal_phy; e7300d04bd0809 Maxime Bizon 2009-08-18 20 e7300d04bd0809 Maxime Bizon 2009-08-18 21 /* or fill phy info to use an external one */ e7300d04bd0809 Maxime Bizon 2009-08-18 22 int phy_id; e7300d04bd0809 Maxime Bizon 2009-08-18 23 int has_phy_interrupt; e7300d04bd0809 Maxime Bizon 2009-08-18 24 int phy_interrupt; e7300d04bd0809 Maxime Bizon 2009-08-18 25 e904b94a06c77a Andrea Gelmini 2016-05-21 26 /* if has_phy, use autonegotiated pause parameters or force e7300d04bd0809 Maxime Bizon 2009-08-18 27 * them */ e7300d04bd0809 Maxime Bizon 2009-08-18 28 int pause_auto; e7300d04bd0809 Maxime Bizon 2009-08-18 29 int pause_rx; e7300d04bd0809 Maxime Bizon 2009-08-18 30 int pause_tx; e7300d04bd0809 Maxime Bizon 2009-08-18 31 e7300d04bd0809 Maxime Bizon 2009-08-18 32 /* if !has_phy, set desired forced speed/duplex */ e7300d04bd0809 Maxime Bizon 2009-08-18 33 int force_speed_100; e7300d04bd0809 Maxime Bizon 2009-08-18 34 int force_duplex_full; e7300d04bd0809 Maxime Bizon 2009-08-18 35 e7300d04bd0809 Maxime Bizon 2009-08-18 36 /* if !has_phy, set callback to perform mii device e7300d04bd0809 Maxime Bizon 2009-08-18 37 * init/remove */ e7300d04bd0809 Maxime Bizon 2009-08-18 @38 int (*mii_config)(struct net_device *dev, int probe, e7300d04bd0809 Maxime Bizon 2009-08-18 39 int (*mii_read)(struct net_device *dev, e7300d04bd0809 Maxime Bizon 2009-08-18 40 int phy_id, int reg), e7300d04bd0809 Maxime Bizon 2009-08-18 41 void (*mii_write)(struct net_device *dev, e7300d04bd0809 Maxime Bizon 2009-08-18 42 int phy_id, int reg, int val)); 3dc6475c0c9e55 Florian Fainelli 2013-06-12 43 3dc6475c0c9e55 Florian Fainelli 2013-06-12 44 /* DMA channel enable mask */ 3dc6475c0c9e55 Florian Fainelli 2013-06-12 45 u32 dma_chan_en_mask; 3dc6475c0c9e55 Florian Fainelli 2013-06-12 46 3dc6475c0c9e55 Florian Fainelli 2013-06-12 47 /* DMA channel interrupt mask */ 3dc6475c0c9e55 Florian Fainelli 2013-06-12 48 u32 dma_chan_int_mask; 3dc6475c0c9e55 Florian Fainelli 2013-06-12 49 3dc6475c0c9e55 Florian Fainelli 2013-06-12 50 /* DMA engine has internal SRAM */ 3dc6475c0c9e55 Florian Fainelli 2013-06-12 51 bool dma_has_sram; 3dc6475c0c9e55 Florian Fainelli 2013-06-12 52 3dc6475c0c9e55 Florian Fainelli 2013-06-12 53 /* DMA channel register width */ 3dc6475c0c9e55 Florian Fainelli 2013-06-12 54 unsigned int dma_chan_width; 3dc6475c0c9e55 Florian Fainelli 2013-06-12 55 3dc6475c0c9e55 Florian Fainelli 2013-06-12 56 /* DMA descriptor shift */ 3dc6475c0c9e55 Florian Fainelli 2013-06-12 57 unsigned int dma_desc_shift; 1942e482258d8c Jonas Gorski 2017-12-17 58 1942e482258d8c Jonas Gorski 2017-12-17 59 /* dma channel ids */ 1942e482258d8c Jonas Gorski 2017-12-17 60 int rx_chan; 1942e482258d8c Jonas Gorski 2017-12-17 61 int tx_chan; e7300d04bd0809 Maxime Bizon 2009-08-18 62 }; e7300d04bd0809 Maxime Bizon 2009-08-18 63 :::::: The code at line 38 was first introduced by commit :::::: e7300d04bd0809eb7ea10a2ed8c729459f816e36 MIPS: BCM63xx: Add support for the Broadcom BCM63xx family of SOCs. :::::: TO: Maxime Bizon :::::: CC: Ralf Baechle --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org