drivers/video/fbdev/aty/atyfb_base.c:2002:7: error: implicit declaration of function 'aty_ld_lcd'; did you mean

From: kernel test robot
Date: Wed Nov 11 2020 - 08:55:23 EST


Hi Vaibhav,

FYI, the error/warning still remains.

tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: eccc876724927ff3b9ff91f36f7b6b159e948f0c
commit: 4e139a9abb007370e8d0266ea31192e606c800cf fbdev: aty: remove CONFIG_PM container
date: 8 weeks ago
config: powerpc-randconfig-r013-20201111 (attached as .config)
compiler: powerpc-linux-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/torvalds/linux.git/commit/?id=4e139a9abb007370e8d0266ea31192e606c800cf
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 4e139a9abb007370e8d0266ea31192e606c800cf
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=powerpc

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All errors (new ones prefixed by >>):

drivers/video/fbdev/aty/atyfb_base.c: In function 'aty_power_mgmt':
>> drivers/video/fbdev/aty/atyfb_base.c:2002:7: error: implicit declaration of function 'aty_ld_lcd'; did you mean 'aty_ld_8'? [-Werror=implicit-function-declaration]
2002 | pm = aty_ld_lcd(POWER_MANAGEMENT, par);
| ^~~~~~~~~~
| aty_ld_8
>> drivers/video/fbdev/aty/atyfb_base.c:2004:2: error: implicit declaration of function 'aty_st_lcd'; did you mean 'aty_st_8'? [-Werror=implicit-function-declaration]
2004 | aty_st_lcd(POWER_MANAGEMENT, pm, par);
| ^~~~~~~~~~
| aty_st_8
drivers/video/fbdev/aty/atyfb_base.c: In function 'aty_init':
drivers/video/fbdev/aty/atyfb_base.c:2363:6: warning: variable 'dac_type' set but not used [-Wunused-but-set-variable]
2363 | u8 dac_type, dac_subtype, clk_type;
| ^~~~~~~~
cc1: some warnings being treated as errors

vim +2002 drivers/video/fbdev/aty/atyfb_base.c

^1da177e4c3f415 drivers/video/aty/atyfb_base.c Linus Torvalds 2005-04-16 1993
efc08a75d3a2d44 drivers/video/aty/atyfb_base.c Ville Syrjala 2006-12-08 1994 #ifdef CONFIG_PPC_PMAC
^1da177e4c3f415 drivers/video/aty/atyfb_base.c Linus Torvalds 2005-04-16 1995 /* Power management routines. Those are used for PowerBook sleep.
^1da177e4c3f415 drivers/video/aty/atyfb_base.c Linus Torvalds 2005-04-16 1996 */
^1da177e4c3f415 drivers/video/aty/atyfb_base.c Linus Torvalds 2005-04-16 1997 static int aty_power_mgmt(int sleep, struct atyfb_par *par)
^1da177e4c3f415 drivers/video/aty/atyfb_base.c Linus Torvalds 2005-04-16 1998 {
^1da177e4c3f415 drivers/video/aty/atyfb_base.c Linus Torvalds 2005-04-16 1999 u32 pm;
^1da177e4c3f415 drivers/video/aty/atyfb_base.c Linus Torvalds 2005-04-16 2000 int timeout;
^1da177e4c3f415 drivers/video/aty/atyfb_base.c Linus Torvalds 2005-04-16 2001
^1da177e4c3f415 drivers/video/aty/atyfb_base.c Linus Torvalds 2005-04-16 @2002 pm = aty_ld_lcd(POWER_MANAGEMENT, par);
^1da177e4c3f415 drivers/video/aty/atyfb_base.c Linus Torvalds 2005-04-16 2003 pm = (pm & ~PWR_MGT_MODE_MASK) | PWR_MGT_MODE_REG;
^1da177e4c3f415 drivers/video/aty/atyfb_base.c Linus Torvalds 2005-04-16 @2004 aty_st_lcd(POWER_MANAGEMENT, pm, par);
^1da177e4c3f415 drivers/video/aty/atyfb_base.c Linus Torvalds 2005-04-16 2005 pm = aty_ld_lcd(POWER_MANAGEMENT, par);
^1da177e4c3f415 drivers/video/aty/atyfb_base.c Linus Torvalds 2005-04-16 2006
^1da177e4c3f415 drivers/video/aty/atyfb_base.c Linus Torvalds 2005-04-16 2007 timeout = 2000;
^1da177e4c3f415 drivers/video/aty/atyfb_base.c Linus Torvalds 2005-04-16 2008 if (sleep) {
^1da177e4c3f415 drivers/video/aty/atyfb_base.c Linus Torvalds 2005-04-16 2009 /* Sleep */
^1da177e4c3f415 drivers/video/aty/atyfb_base.c Linus Torvalds 2005-04-16 2010 pm &= ~PWR_MGT_ON;
^1da177e4c3f415 drivers/video/aty/atyfb_base.c Linus Torvalds 2005-04-16 2011 aty_st_lcd(POWER_MANAGEMENT, pm, par);
^1da177e4c3f415 drivers/video/aty/atyfb_base.c Linus Torvalds 2005-04-16 2012 pm = aty_ld_lcd(POWER_MANAGEMENT, par);
^1da177e4c3f415 drivers/video/aty/atyfb_base.c Linus Torvalds 2005-04-16 2013 udelay(10);
^1da177e4c3f415 drivers/video/aty/atyfb_base.c Linus Torvalds 2005-04-16 2014 pm &= ~(PWR_BLON | AUTO_PWR_UP);
^1da177e4c3f415 drivers/video/aty/atyfb_base.c Linus Torvalds 2005-04-16 2015 pm |= SUSPEND_NOW;
^1da177e4c3f415 drivers/video/aty/atyfb_base.c Linus Torvalds 2005-04-16 2016 aty_st_lcd(POWER_MANAGEMENT, pm, par);
^1da177e4c3f415 drivers/video/aty/atyfb_base.c Linus Torvalds 2005-04-16 2017 pm = aty_ld_lcd(POWER_MANAGEMENT, par);
^1da177e4c3f415 drivers/video/aty/atyfb_base.c Linus Torvalds 2005-04-16 2018 udelay(10);
^1da177e4c3f415 drivers/video/aty/atyfb_base.c Linus Torvalds 2005-04-16 2019 pm |= PWR_MGT_ON;
^1da177e4c3f415 drivers/video/aty/atyfb_base.c Linus Torvalds 2005-04-16 2020 aty_st_lcd(POWER_MANAGEMENT, pm, par);
^1da177e4c3f415 drivers/video/aty/atyfb_base.c Linus Torvalds 2005-04-16 2021 do {
^1da177e4c3f415 drivers/video/aty/atyfb_base.c Linus Torvalds 2005-04-16 2022 pm = aty_ld_lcd(POWER_MANAGEMENT, par);
^1da177e4c3f415 drivers/video/aty/atyfb_base.c Linus Torvalds 2005-04-16 2023 mdelay(1);
^1da177e4c3f415 drivers/video/aty/atyfb_base.c Linus Torvalds 2005-04-16 2024 if ((--timeout) == 0)
^1da177e4c3f415 drivers/video/aty/atyfb_base.c Linus Torvalds 2005-04-16 2025 break;
^1da177e4c3f415 drivers/video/aty/atyfb_base.c Linus Torvalds 2005-04-16 2026 } while ((pm & PWR_MGT_STATUS_MASK) != PWR_MGT_STATUS_SUSPEND);
^1da177e4c3f415 drivers/video/aty/atyfb_base.c Linus Torvalds 2005-04-16 2027 } else {
^1da177e4c3f415 drivers/video/aty/atyfb_base.c Linus Torvalds 2005-04-16 2028 /* Wakeup */
^1da177e4c3f415 drivers/video/aty/atyfb_base.c Linus Torvalds 2005-04-16 2029 pm &= ~PWR_MGT_ON;
^1da177e4c3f415 drivers/video/aty/atyfb_base.c Linus Torvalds 2005-04-16 2030 aty_st_lcd(POWER_MANAGEMENT, pm, par);
^1da177e4c3f415 drivers/video/aty/atyfb_base.c Linus Torvalds 2005-04-16 2031 pm = aty_ld_lcd(POWER_MANAGEMENT, par);
^1da177e4c3f415 drivers/video/aty/atyfb_base.c Linus Torvalds 2005-04-16 2032 udelay(10);
^1da177e4c3f415 drivers/video/aty/atyfb_base.c Linus Torvalds 2005-04-16 2033 pm &= ~SUSPEND_NOW;
^1da177e4c3f415 drivers/video/aty/atyfb_base.c Linus Torvalds 2005-04-16 2034 pm |= (PWR_BLON | AUTO_PWR_UP);
^1da177e4c3f415 drivers/video/aty/atyfb_base.c Linus Torvalds 2005-04-16 2035 aty_st_lcd(POWER_MANAGEMENT, pm, par);
^1da177e4c3f415 drivers/video/aty/atyfb_base.c Linus Torvalds 2005-04-16 2036 pm = aty_ld_lcd(POWER_MANAGEMENT, par);
^1da177e4c3f415 drivers/video/aty/atyfb_base.c Linus Torvalds 2005-04-16 2037 udelay(10);
^1da177e4c3f415 drivers/video/aty/atyfb_base.c Linus Torvalds 2005-04-16 2038 pm |= PWR_MGT_ON;
^1da177e4c3f415 drivers/video/aty/atyfb_base.c Linus Torvalds 2005-04-16 2039 aty_st_lcd(POWER_MANAGEMENT, pm, par);
^1da177e4c3f415 drivers/video/aty/atyfb_base.c Linus Torvalds 2005-04-16 2040 do {
^1da177e4c3f415 drivers/video/aty/atyfb_base.c Linus Torvalds 2005-04-16 2041 pm = aty_ld_lcd(POWER_MANAGEMENT, par);
^1da177e4c3f415 drivers/video/aty/atyfb_base.c Linus Torvalds 2005-04-16 2042 mdelay(1);
^1da177e4c3f415 drivers/video/aty/atyfb_base.c Linus Torvalds 2005-04-16 2043 if ((--timeout) == 0)
^1da177e4c3f415 drivers/video/aty/atyfb_base.c Linus Torvalds 2005-04-16 2044 break;
^1da177e4c3f415 drivers/video/aty/atyfb_base.c Linus Torvalds 2005-04-16 2045 } while ((pm & PWR_MGT_STATUS_MASK) != 0);
^1da177e4c3f415 drivers/video/aty/atyfb_base.c Linus Torvalds 2005-04-16 2046 }
^1da177e4c3f415 drivers/video/aty/atyfb_base.c Linus Torvalds 2005-04-16 2047 mdelay(500);
^1da177e4c3f415 drivers/video/aty/atyfb_base.c Linus Torvalds 2005-04-16 2048
^1da177e4c3f415 drivers/video/aty/atyfb_base.c Linus Torvalds 2005-04-16 2049 return timeout ? 0 : -EIO;
^1da177e4c3f415 drivers/video/aty/atyfb_base.c Linus Torvalds 2005-04-16 2050 }
b7468168631e03c drivers/video/aty/atyfb_base.c Benjamin Herrenschmidt 2009-02-05 2051 #endif /* CONFIG_PPC_PMAC */
^1da177e4c3f415 drivers/video/aty/atyfb_base.c Linus Torvalds 2005-04-16 2052

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

:::::: TO: Linus Torvalds <torvalds@xxxxxxxxxxxxxxx>
:::::: CC: Linus Torvalds <torvalds@xxxxxxxxxxxxxxx>

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

Attachment: .config.gz
Description: application/gzip