[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202309252145.ivuYn1BU-lkp@intel.com>
Date: Mon, 25 Sep 2023 21:08:46 +0800
From: kernel test robot <lkp@...el.com>
To: Jiaxun Yang <jiaxun.yang@...goat.com>
Cc: oe-kbuild-all@...ts.linux.dev, 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'
Hi Jiaxun,
First bad commit (maybe != root cause):
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 6465e260f48790807eef06b583b38ca9789b6072
commit: 0cfd2440aa03ea3d4b04cc2565561cecadcb1257 MIPS: Loongson64: Make RS780E ACPI as a platform driver
date: 3 years, 5 months ago
config: mips-allmodconfig (https://download.01.org/0day-ci/archive/20230925/202309252145.ivuYn1BU-lkp@intel.com/config)
compiler: mips-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20230925/202309252145.ivuYn1BU-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202309252145.ivuYn1BU-lkp@intel.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
9c057b3e02184b drivers/platform/mips/acpi_init.c Huacai Chen 2015-03-29 34
9c057b3e02184b drivers/platform/mips/acpi_init.c Huacai Chen 2015-03-29 @35 void pm_iowrite(u8 reg, u8 value)
9c057b3e02184b drivers/platform/mips/acpi_init.c Huacai Chen 2015-03-29 36 {
9c057b3e02184b drivers/platform/mips/acpi_init.c Huacai Chen 2015-03-29 37 pmio_write_index(PM_INDEX, reg, value);
9c057b3e02184b drivers/platform/mips/acpi_init.c Huacai Chen 2015-03-29 38 }
9c057b3e02184b drivers/platform/mips/acpi_init.c Huacai Chen 2015-03-29 39 EXPORT_SYMBOL(pm_iowrite);
9c057b3e02184b drivers/platform/mips/acpi_init.c Huacai Chen 2015-03-29 40
9c057b3e02184b drivers/platform/mips/acpi_init.c Huacai Chen 2015-03-29 @41 u8 pm_ioread(u8 reg)
9c057b3e02184b drivers/platform/mips/acpi_init.c Huacai Chen 2015-03-29 42 {
9c057b3e02184b drivers/platform/mips/acpi_init.c Huacai Chen 2015-03-29 43 return pmio_read_index(PM_INDEX, reg);
9c057b3e02184b drivers/platform/mips/acpi_init.c Huacai Chen 2015-03-29 44 }
9c057b3e02184b drivers/platform/mips/acpi_init.c Huacai Chen 2015-03-29 45 EXPORT_SYMBOL(pm_ioread);
9c057b3e02184b drivers/platform/mips/acpi_init.c Huacai Chen 2015-03-29 46
9c057b3e02184b drivers/platform/mips/acpi_init.c Huacai Chen 2015-03-29 @47 void pm2_iowrite(u8 reg, u8 value)
9c057b3e02184b drivers/platform/mips/acpi_init.c Huacai Chen 2015-03-29 48 {
9c057b3e02184b drivers/platform/mips/acpi_init.c Huacai Chen 2015-03-29 49 pmio_write_index(PM2_INDEX, reg, value);
9c057b3e02184b drivers/platform/mips/acpi_init.c Huacai Chen 2015-03-29 50 }
9c057b3e02184b drivers/platform/mips/acpi_init.c Huacai Chen 2015-03-29 51 EXPORT_SYMBOL(pm2_iowrite);
9c057b3e02184b drivers/platform/mips/acpi_init.c Huacai Chen 2015-03-29 52
9c057b3e02184b drivers/platform/mips/acpi_init.c Huacai Chen 2015-03-29 @53 u8 pm2_ioread(u8 reg)
9c057b3e02184b drivers/platform/mips/acpi_init.c Huacai Chen 2015-03-29 54 {
9c057b3e02184b drivers/platform/mips/acpi_init.c Huacai Chen 2015-03-29 55 return pmio_read_index(PM2_INDEX, reg);
9c057b3e02184b drivers/platform/mips/acpi_init.c Huacai Chen 2015-03-29 56 }
9c057b3e02184b drivers/platform/mips/acpi_init.c Huacai Chen 2015-03-29 57 EXPORT_SYMBOL(pm2_ioread);
9c057b3e02184b 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://github.com/intel/lkp-tests/wiki
Powered by blists - more mailing lists