linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Linus Walleij <linus.walleij@linaro.org>
Cc: kbuild-all@lists.01.org, linux-arm-kernel@lists.infradead.org
Subject: [nomadik:ixp4xx-cleanup-v5.13-rc1 10/25] arch/arm/mach-ixp4xx/common-pci.c:143:5: warning: no previous prototype for 'ixp4xx_pci_write'
Date: Thu, 20 May 2021 10:58:32 +0800	[thread overview]
Message-ID: <202105201024.mrid69VJ-lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 7073 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-nomadik.git ixp4xx-cleanup-v5.13-rc1
head:   8574f87706366e1de4541fff047660ac06462cd3
commit: b758cf1a8b4e468b6a58d49620dd163ff88fdab4 [10/25] ARM/ixp4xx: Make NEED_MACH_IO_H optional
config: arm-ixp4xx_defconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 9.3.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/linusw/linux-nomadik.git/commit/?id=b758cf1a8b4e468b6a58d49620dd163ff88fdab4
        git remote add nomadik https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-nomadik.git
        git fetch --no-tags nomadik ixp4xx-cleanup-v5.13-rc1
        git checkout b758cf1a8b4e468b6a58d49620dd163ff88fdab4
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm 

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 >>):

   arch/arm/mach-ixp4xx/common-pci.c:94:5: warning: no previous prototype for 'ixp4xx_pci_read_errata' [-Wmissing-prototypes]
      94 | int ixp4xx_pci_read_errata(u32 addr, u32 cmd, u32* data)
         |     ^~~~~~~~~~~~~~~~~~~~~~
   arch/arm/mach-ixp4xx/common-pci.c:121:5: warning: no previous prototype for 'ixp4xx_pci_read_no_errata' [-Wmissing-prototypes]
     121 | int ixp4xx_pci_read_no_errata(u32 addr, u32 cmd, u32* data)
         |     ^~~~~~~~~~~~~~~~~~~~~~~~~
>> arch/arm/mach-ixp4xx/common-pci.c:143:5: warning: no previous prototype for 'ixp4xx_pci_write' [-Wmissing-prototypes]
     143 | int ixp4xx_pci_write(u32 addr, u32 cmd, u32 data)
         |     ^~~~~~~~~~~~~~~~


vim +/ixp4xx_pci_write +143 arch/arm/mach-ixp4xx/common-pci.c

^1da177e4c3f41 Linus Torvalds  2005-04-16   93  
^1da177e4c3f41 Linus Torvalds  2005-04-16  @94  int ixp4xx_pci_read_errata(u32 addr, u32 cmd, u32* data)
^1da177e4c3f41 Linus Torvalds  2005-04-16   95  {
^1da177e4c3f41 Linus Torvalds  2005-04-16   96  	unsigned long flags;
^1da177e4c3f41 Linus Torvalds  2005-04-16   97  	int retval = 0;
^1da177e4c3f41 Linus Torvalds  2005-04-16   98  	int i;
^1da177e4c3f41 Linus Torvalds  2005-04-16   99  
bd31b85960a7fc Thomas Gleixner 2009-07-03  100  	raw_spin_lock_irqsave(&ixp4xx_pci_lock, flags);
^1da177e4c3f41 Linus Torvalds  2005-04-16  101  
^1da177e4c3f41 Linus Torvalds  2005-04-16  102  	*PCI_NP_AD = addr;
^1da177e4c3f41 Linus Torvalds  2005-04-16  103  
^1da177e4c3f41 Linus Torvalds  2005-04-16  104  	/* 
^1da177e4c3f41 Linus Torvalds  2005-04-16  105  	 * PCI workaround  - only works if NP PCI space reads have 
^1da177e4c3f41 Linus Torvalds  2005-04-16  106  	 * no side effects!!! Read 8 times. last one will be good.
^1da177e4c3f41 Linus Torvalds  2005-04-16  107  	 */
^1da177e4c3f41 Linus Torvalds  2005-04-16  108  	for (i = 0; i < 8; i++) {
^1da177e4c3f41 Linus Torvalds  2005-04-16  109  		*PCI_NP_CBE = cmd;
^1da177e4c3f41 Linus Torvalds  2005-04-16  110  		*data = *PCI_NP_RDATA;
^1da177e4c3f41 Linus Torvalds  2005-04-16  111  		*data = *PCI_NP_RDATA;
^1da177e4c3f41 Linus Torvalds  2005-04-16  112  	}
^1da177e4c3f41 Linus Torvalds  2005-04-16  113  
^1da177e4c3f41 Linus Torvalds  2005-04-16  114  	if(check_master_abort())
^1da177e4c3f41 Linus Torvalds  2005-04-16  115  		retval = 1;
^1da177e4c3f41 Linus Torvalds  2005-04-16  116  
bd31b85960a7fc Thomas Gleixner 2009-07-03  117  	raw_spin_unlock_irqrestore(&ixp4xx_pci_lock, flags);
^1da177e4c3f41 Linus Torvalds  2005-04-16  118  	return retval;
^1da177e4c3f41 Linus Torvalds  2005-04-16  119  }
^1da177e4c3f41 Linus Torvalds  2005-04-16  120  
^1da177e4c3f41 Linus Torvalds  2005-04-16  121  int ixp4xx_pci_read_no_errata(u32 addr, u32 cmd, u32* data)
^1da177e4c3f41 Linus Torvalds  2005-04-16  122  {
^1da177e4c3f41 Linus Torvalds  2005-04-16  123  	unsigned long flags;
^1da177e4c3f41 Linus Torvalds  2005-04-16  124  	int retval = 0;
^1da177e4c3f41 Linus Torvalds  2005-04-16  125  
bd31b85960a7fc Thomas Gleixner 2009-07-03  126  	raw_spin_lock_irqsave(&ixp4xx_pci_lock, flags);
^1da177e4c3f41 Linus Torvalds  2005-04-16  127  
^1da177e4c3f41 Linus Torvalds  2005-04-16  128  	*PCI_NP_AD = addr;
^1da177e4c3f41 Linus Torvalds  2005-04-16  129  
^1da177e4c3f41 Linus Torvalds  2005-04-16  130  	/* set up and execute the read */    
^1da177e4c3f41 Linus Torvalds  2005-04-16  131  	*PCI_NP_CBE = cmd;
^1da177e4c3f41 Linus Torvalds  2005-04-16  132  
^1da177e4c3f41 Linus Torvalds  2005-04-16  133  	/* the result of the read is now in NP_RDATA */
^1da177e4c3f41 Linus Torvalds  2005-04-16  134  	*data = *PCI_NP_RDATA; 
^1da177e4c3f41 Linus Torvalds  2005-04-16  135  
^1da177e4c3f41 Linus Torvalds  2005-04-16  136  	if(check_master_abort())
^1da177e4c3f41 Linus Torvalds  2005-04-16  137  		retval = 1;
^1da177e4c3f41 Linus Torvalds  2005-04-16  138  
bd31b85960a7fc Thomas Gleixner 2009-07-03  139  	raw_spin_unlock_irqrestore(&ixp4xx_pci_lock, flags);
^1da177e4c3f41 Linus Torvalds  2005-04-16  140  	return retval;
^1da177e4c3f41 Linus Torvalds  2005-04-16  141  }
^1da177e4c3f41 Linus Torvalds  2005-04-16  142  
^1da177e4c3f41 Linus Torvalds  2005-04-16 @143  int ixp4xx_pci_write(u32 addr, u32 cmd, u32 data)
^1da177e4c3f41 Linus Torvalds  2005-04-16  144  {    
^1da177e4c3f41 Linus Torvalds  2005-04-16  145  	unsigned long flags;
^1da177e4c3f41 Linus Torvalds  2005-04-16  146  	int retval = 0;
^1da177e4c3f41 Linus Torvalds  2005-04-16  147  
bd31b85960a7fc Thomas Gleixner 2009-07-03  148  	raw_spin_lock_irqsave(&ixp4xx_pci_lock, flags);
^1da177e4c3f41 Linus Torvalds  2005-04-16  149  
^1da177e4c3f41 Linus Torvalds  2005-04-16  150  	*PCI_NP_AD = addr;
^1da177e4c3f41 Linus Torvalds  2005-04-16  151  
^1da177e4c3f41 Linus Torvalds  2005-04-16  152  	/* set up the write */
^1da177e4c3f41 Linus Torvalds  2005-04-16  153  	*PCI_NP_CBE = cmd;
^1da177e4c3f41 Linus Torvalds  2005-04-16  154  
^1da177e4c3f41 Linus Torvalds  2005-04-16  155  	/* execute the write by writing to NP_WDATA */
^1da177e4c3f41 Linus Torvalds  2005-04-16  156  	*PCI_NP_WDATA = data;
^1da177e4c3f41 Linus Torvalds  2005-04-16  157  
^1da177e4c3f41 Linus Torvalds  2005-04-16  158  	if(check_master_abort())
^1da177e4c3f41 Linus Torvalds  2005-04-16  159  		retval = 1;
^1da177e4c3f41 Linus Torvalds  2005-04-16  160  
bd31b85960a7fc Thomas Gleixner 2009-07-03  161  	raw_spin_unlock_irqrestore(&ixp4xx_pci_lock, flags);
^1da177e4c3f41 Linus Torvalds  2005-04-16  162  	return retval;
^1da177e4c3f41 Linus Torvalds  2005-04-16  163  }
^1da177e4c3f41 Linus Torvalds  2005-04-16  164  

:::::: The code at line 143 was first introduced by commit
:::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2

:::::: TO: Linus Torvalds <torvalds@ppc970.osdl.org>
:::::: CC: Linus Torvalds <torvalds@ppc970.osdl.org>

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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 21800 bytes --]

[-- Attachment #3: Type: text/plain, Size: 176 bytes --]

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

                 reply	other threads:[~2021-05-20  3:00 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=202105201024.mrid69VJ-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linus.walleij@linaro.org \
    --cc=linux-arm-kernel@lists.infradead.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).