llvm.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Ingo Molnar <mingo@kernel.org>
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
Date: Tue, 25 Jan 2022 03:24:25 +0800	[thread overview]
Message-ID: <202201250317.7RaTIwIn-lkp@intel.com> (raw)

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 <linux/if_ether.h>
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 <lkp@intel.com>

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 <mbizon@freebox.fr>
:::::: CC: Ralf Baechle <ralf@linux-mips.org>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

                 reply	other threads:[~2022-01-24 19:25 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=202201250317.7RaTIwIn-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=llvm@lists.linux.dev \
    --cc=mingo@kernel.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).