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 for Android: free password hash cracker in your pocket
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202102161317.dg3coFZ1-lkp@intel.com>
Date:   Tue, 16 Feb 2021 13:24:32 +0800
From:   kernel test robot <lkp@...el.com>
To:     Vaibhav Gupta <vaibhavgupta40@...il.com>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
        Bartlomiej Zolnierkiewicz <b.zolnierkie@...sung.com>
Subject: drivers/video/fbdev/aty/atyfb_base.c:2002:7: error: implicit
 declaration of function 'aty_ld_lcd'; did you mean

Hi Vaibhav,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   f40ddce88593482919761f74910f42f4b84c004b
commit: 348b2956d5e6d9876b567226184de598d00c9bd1 fbdev: aty: use generic power management
date:   5 months ago
config: powerpc64-randconfig-r031-20210216 (attached as .config)
compiler: powerpc64-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=348b2956d5e6d9876b567226184de598d00c9bd1
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 348b2956d5e6d9876b567226184de598d00c9bd1
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=powerpc64 

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

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

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

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

Download attachment ".config.gz" of type "application/gzip" (36472 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ