lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202206220419.A7URFBQr-lkp@intel.com>
Date:   Wed, 22 Jun 2022 04:14:47 +0800
From:   kernel test robot <lkp@...el.com>
To:     Jiaxun Yang <jiaxun.yang@...goat.com>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
        Thomas Bogendoerfer <tsbogend@...ha.franken.de>
Subject: drivers/platform/mips/rs780e-acpi.c:35:6: warning: no previous
 prototype for 'pm_iowrite'

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   78ca55889a549a9a194c6ec666836329b774ab6d
commit: 0cfd2440aa03ea3d4b04cc2565561cecadcb1257 MIPS: Loongson64: Make RS780E ACPI as a platform driver
date:   2 years, 2 months ago
config: mips-randconfig-r011-20220622 (https://download.01.org/0day-ci/archive/20220622/202206220419.A7URFBQr-lkp@intel.com/config)
compiler: mips-linux-gcc (GCC) 11.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/torvalds/linux.git/commit/?id=0cfd2440aa03ea3d4b04cc2565561cecadcb1257
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 0cfd2440aa03ea3d4b04cc2565561cecadcb1257
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.3.0 make.cross W=1 O=build_dir ARCH=mips SHELL=/bin/bash drivers/platform/mips/

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@...el.com>

All warnings (new ones prefixed by >>):

>> drivers/platform/mips/rs780e-acpi.c:35:6: warning: no previous prototype for 'pm_iowrite' [-Wmissing-prototypes]
      35 | void pm_iowrite(u8 reg, u8 value)
         |      ^~~~~~~~~~
>> drivers/platform/mips/rs780e-acpi.c:41:4: warning: no previous prototype for 'pm_ioread' [-Wmissing-prototypes]
      41 | u8 pm_ioread(u8 reg)
         |    ^~~~~~~~~
>> drivers/platform/mips/rs780e-acpi.c:47:6: warning: no previous prototype for 'pm2_iowrite' [-Wmissing-prototypes]
      47 | void pm2_iowrite(u8 reg, u8 value)
         |      ^~~~~~~~~~~
>> drivers/platform/mips/rs780e-acpi.c:53:4: warning: no previous prototype for 'pm2_ioread' [-Wmissing-prototypes]
      53 | u8 pm2_ioread(u8 reg)
         |    ^~~~~~~~~~
   drivers/platform/mips/rs780e-acpi.c:72:6: warning: no previous prototype for 'acpi_registers_setup' [-Wmissing-prototypes]
      72 | void acpi_registers_setup(void)
         |      ^~~~~~~~~~~~~~~~~~~~


vim +/pm_iowrite +35 drivers/platform/mips/rs780e-acpi.c

9c057b3e02184b1 drivers/platform/mips/acpi_init.c Huacai Chen 2015-03-29  34  
9c057b3e02184b1 drivers/platform/mips/acpi_init.c Huacai Chen 2015-03-29 @35  void pm_iowrite(u8 reg, u8 value)
9c057b3e02184b1 drivers/platform/mips/acpi_init.c Huacai Chen 2015-03-29  36  {
9c057b3e02184b1 drivers/platform/mips/acpi_init.c Huacai Chen 2015-03-29  37  	pmio_write_index(PM_INDEX, reg, value);
9c057b3e02184b1 drivers/platform/mips/acpi_init.c Huacai Chen 2015-03-29  38  }
9c057b3e02184b1 drivers/platform/mips/acpi_init.c Huacai Chen 2015-03-29  39  EXPORT_SYMBOL(pm_iowrite);
9c057b3e02184b1 drivers/platform/mips/acpi_init.c Huacai Chen 2015-03-29  40  
9c057b3e02184b1 drivers/platform/mips/acpi_init.c Huacai Chen 2015-03-29 @41  u8 pm_ioread(u8 reg)
9c057b3e02184b1 drivers/platform/mips/acpi_init.c Huacai Chen 2015-03-29  42  {
9c057b3e02184b1 drivers/platform/mips/acpi_init.c Huacai Chen 2015-03-29  43  	return pmio_read_index(PM_INDEX, reg);
9c057b3e02184b1 drivers/platform/mips/acpi_init.c Huacai Chen 2015-03-29  44  }
9c057b3e02184b1 drivers/platform/mips/acpi_init.c Huacai Chen 2015-03-29  45  EXPORT_SYMBOL(pm_ioread);
9c057b3e02184b1 drivers/platform/mips/acpi_init.c Huacai Chen 2015-03-29  46  
9c057b3e02184b1 drivers/platform/mips/acpi_init.c Huacai Chen 2015-03-29 @47  void pm2_iowrite(u8 reg, u8 value)
9c057b3e02184b1 drivers/platform/mips/acpi_init.c Huacai Chen 2015-03-29  48  {
9c057b3e02184b1 drivers/platform/mips/acpi_init.c Huacai Chen 2015-03-29  49  	pmio_write_index(PM2_INDEX, reg, value);
9c057b3e02184b1 drivers/platform/mips/acpi_init.c Huacai Chen 2015-03-29  50  }
9c057b3e02184b1 drivers/platform/mips/acpi_init.c Huacai Chen 2015-03-29  51  EXPORT_SYMBOL(pm2_iowrite);
9c057b3e02184b1 drivers/platform/mips/acpi_init.c Huacai Chen 2015-03-29  52  
9c057b3e02184b1 drivers/platform/mips/acpi_init.c Huacai Chen 2015-03-29 @53  u8 pm2_ioread(u8 reg)
9c057b3e02184b1 drivers/platform/mips/acpi_init.c Huacai Chen 2015-03-29  54  {
9c057b3e02184b1 drivers/platform/mips/acpi_init.c Huacai Chen 2015-03-29  55  	return pmio_read_index(PM2_INDEX, reg);
9c057b3e02184b1 drivers/platform/mips/acpi_init.c Huacai Chen 2015-03-29  56  }
9c057b3e02184b1 drivers/platform/mips/acpi_init.c Huacai Chen 2015-03-29  57  EXPORT_SYMBOL(pm2_ioread);
9c057b3e02184b1 drivers/platform/mips/acpi_init.c Huacai Chen 2015-03-29  58  

:::::: The code at line 35 was first introduced by commit
:::::: 9c057b3e02184b111d3392be75efc7c94f0fdf20 MIPS: Loongson-3: Add chipset ACPI platform driver

:::::: TO: Huacai Chen <chenhc@...ote.com>
:::::: CC: Ralf Baechle <ralf@...ux-mips.org>

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ