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: <202102231555.12C2po65-lkp@intel.com>
Date:   Tue, 23 Feb 2021 15:08:10 +0800
From:   kernel test robot <lkp@...el.com>
To:     Vaibhav Gupta <vaibhavgupta40@...il.com>
Cc:     kbuild-all@...ts.01.org, clang-built-linux@...glegroups.com,
        linux-kernel@...r.kernel.org,
        Daniel Vetter <daniel.vetter@...ll.ch>
Subject: drivers/video/fbdev/aty/atyfb_base.c:2002:7: error: implicit
 declaration of function 'aty_ld_lcd'

Hi Vaibhav,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   3b9cdafb5358eb9f3790de2f728f765fef100731
commit: 4e139a9abb007370e8d0266ea31192e606c800cf fbdev: aty: remove CONFIG_PM container
date:   5 months ago
config: powerpc64-randconfig-r036-20210223 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project c9439ca36342fb6013187d0a69aef92736951476)
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 powerpc64 cross compiling tool for clang build
        # apt-get install binutils-powerpc64-linux-gnu
        # 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=clang 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:2002:7: error: implicit declaration of function 'aty_ld_lcd' [-Werror,-Wimplicit-function-declaration]
           pm = aty_ld_lcd(POWER_MANAGEMENT, par);
                ^
>> drivers/video/fbdev/aty/atyfb_base.c:2004:2: error: implicit declaration of function 'aty_st_lcd' [-Werror,-Wimplicit-function-declaration]
           aty_st_lcd(POWER_MANAGEMENT, pm, par);
           ^
   drivers/video/fbdev/aty/atyfb_base.c:2004:2: note: did you mean 'aty_ld_lcd'?
   drivers/video/fbdev/aty/atyfb_base.c:2002:7: note: 'aty_ld_lcd' declared here
           pm = aty_ld_lcd(POWER_MANAGEMENT, par);
                ^
   2 errors generated.


vim +/aty_ld_lcd +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" (29509 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ