arch/arm/mach-omap2/cpuidle44xx.c:88: warning: expecting prototype for omap_enter_idle_[simple/coupled](). Prototype was for omap_enter_idle_simple() instead

From: kernel test robot
Date: Sat Apr 29 2023 - 08:59:51 EST


Hi Arnd,

First bad commit (maybe != root cause):

tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 89d77f71f493a3663b10fa812d17f472935d24be
commit: 09f6b27d5ddd9ad0ec096d1b0f8decdacc70f0f8 ARM: dove: multiplatform support
date: 1 year, 1 month ago
config: arm-randconfig-r034-20230429 (https://download.01.org/0day-ci/archive/20230429/202304292001.RvJU7sWm-lkp@xxxxxxxxx/config)
compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project 437b7602e4a998220871de78afcb020b9c14a661)
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 arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=09f6b27d5ddd9ad0ec096d1b0f8decdacc70f0f8
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 09f6b27d5ddd9ad0ec096d1b0f8decdacc70f0f8
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Link: https://lore.kernel.org/oe-kbuild-all/202304292001.RvJU7sWm-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

>> arch/arm/mach-omap2/cpuidle44xx.c:88: warning: expecting prototype for omap_enter_idle_[simple/coupled](). Prototype was for omap_enter_idle_simple() instead


vim +88 arch/arm/mach-omap2/cpuidle44xx.c

9db316b6bf0234 Paul Walmsley 2012-12-15 74
98272660970a71 Santosh Shilimkar 2011-08-16 75 /**
db4f3dab629109 Santosh Shilimkar 2013-04-05 76 * omap_enter_idle_[simple/coupled] - OMAP4PLUS cpuidle entry functions
98272660970a71 Santosh Shilimkar 2011-08-16 77 * @dev: cpuidle device
98272660970a71 Santosh Shilimkar 2011-08-16 78 * @drv: cpuidle driver
98272660970a71 Santosh Shilimkar 2011-08-16 79 * @index: the index of state to be entered
98272660970a71 Santosh Shilimkar 2011-08-16 80 *
98272660970a71 Santosh Shilimkar 2011-08-16 81 * Called from the CPUidle framework to program the device to the
98272660970a71 Santosh Shilimkar 2011-08-16 82 * specified low power state selected by the governor.
98272660970a71 Santosh Shilimkar 2011-08-16 83 * Returns the amount of time spent in the low power state.
98272660970a71 Santosh Shilimkar 2011-08-16 84 */
db4f3dab629109 Santosh Shilimkar 2013-04-05 85 static int omap_enter_idle_simple(struct cpuidle_device *dev,
dd3ad97c5621aa Santosh Shilimkar 2011-12-25 86 struct cpuidle_driver *drv,
dd3ad97c5621aa Santosh Shilimkar 2011-12-25 87 int index)
dd3ad97c5621aa Santosh Shilimkar 2011-12-25 @88 {
dd3ad97c5621aa Santosh Shilimkar 2011-12-25 89 omap_do_wfi();
dd3ad97c5621aa Santosh Shilimkar 2011-12-25 90 return index;
dd3ad97c5621aa Santosh Shilimkar 2011-12-25 91 }
dd3ad97c5621aa Santosh Shilimkar 2011-12-25 92

:::::: The code at line 88 was first introduced by commit
:::::: dd3ad97c5621aa853843dd5e6783ca787466158c ARM: OMAP4: CPUidle: Use coupled cpuidle states to implement SMP cpuidle.

:::::: TO: Santosh Shilimkar <santosh.shilimkar@xxxxxx>
:::::: CC: Kevin Hilman <khilman@xxxxxx>

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests