All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-next:master 1851/4903] drivers/soc/samsung/s3c-pm-debug.c:41:2: error: implicit declaration of function 'debug_ll_addr'
@ 2020-09-07 22:05 kernel test robot
  2020-09-10 12:37 ` Krzysztof Kozlowski
  0 siblings, 1 reply; 2+ messages in thread
From: kernel test robot @ 2020-09-07 22:05 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 3289 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   7a6956579ce6950890ea706f6fcf7874a7981f50
commit: 17132da70eb766785b9b4677bacce18cc11ea442 [1851/4903] ARM: samsung: move pm check code to drivers/soc
config: arm-randconfig-r001-20200908 (attached as .config)
compiler: arm-linux-gnueabi-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
        git checkout 17132da70eb766785b9b4677bacce18cc11ea442
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm 

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

All errors (new ones prefixed by >>):

   drivers/soc/samsung/s3c-pm-debug.c: In function 's3c_pm_dbg':
   drivers/soc/samsung/s3c-pm-debug.c:30:2: warning: function 's3c_pm_dbg' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format]
      30 |  vsnprintf(buff, sizeof(buff), fmt, va);
         |  ^~~~~~~~~
   drivers/soc/samsung/s3c-pm-debug.c: In function 's3c_pm_uart_base':
>> drivers/soc/samsung/s3c-pm-debug.c:41:2: error: implicit declaration of function 'debug_ll_addr' [-Werror=implicit-function-declaration]
      41 |  debug_ll_addr(&paddr, &vaddr);
         |  ^~~~~~~~~~~~~
   cc1: some warnings being treated as errors

# https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=17132da70eb766785b9b4677bacce18cc11ea442
git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git fetch --no-tags linux-next master
git checkout 17132da70eb766785b9b4677bacce18cc11ea442
vim +/debug_ll_addr +41 drivers/soc/samsung/s3c-pm-debug.c

72551f6cf13e2f arch/arm/plat-samsung/pm-debug.c Tomasz Figa 2014-03-18  35  
72551f6cf13e2f arch/arm/plat-samsung/pm-debug.c Tomasz Figa 2014-03-18  36  static inline void __iomem *s3c_pm_uart_base(void)
72551f6cf13e2f arch/arm/plat-samsung/pm-debug.c Tomasz Figa 2014-03-18  37  {
72551f6cf13e2f arch/arm/plat-samsung/pm-debug.c Tomasz Figa 2014-03-18  38  	unsigned long paddr;
72551f6cf13e2f arch/arm/plat-samsung/pm-debug.c Tomasz Figa 2014-03-18  39  	unsigned long vaddr;
72551f6cf13e2f arch/arm/plat-samsung/pm-debug.c Tomasz Figa 2014-03-18  40  
72551f6cf13e2f arch/arm/plat-samsung/pm-debug.c Tomasz Figa 2014-03-18 @41  	debug_ll_addr(&paddr, &vaddr);
72551f6cf13e2f arch/arm/plat-samsung/pm-debug.c Tomasz Figa 2014-03-18  42  
72551f6cf13e2f arch/arm/plat-samsung/pm-debug.c Tomasz Figa 2014-03-18  43  	return (void __iomem *)vaddr;
72551f6cf13e2f arch/arm/plat-samsung/pm-debug.c Tomasz Figa 2014-03-18  44  }
72551f6cf13e2f arch/arm/plat-samsung/pm-debug.c Tomasz Figa 2014-03-18  45  

:::::: The code at line 41 was first introduced by commit
:::::: 72551f6cf13e2f3a1d273b7007b5d7d7fd69c554 ARM: SAMSUNG: Move Samsung PM debug code into separate file

:::::: TO: Tomasz Figa <t.figa@samsung.com>
:::::: CC: Kukjin Kim <kgene.kim@samsung.com>

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

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 26964 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [linux-next:master 1851/4903] drivers/soc/samsung/s3c-pm-debug.c:41:2: error: implicit declaration of function 'debug_ll_addr'
  2020-09-07 22:05 [linux-next:master 1851/4903] drivers/soc/samsung/s3c-pm-debug.c:41:2: error: implicit declaration of function 'debug_ll_addr' kernel test robot
@ 2020-09-10 12:37 ` Krzysztof Kozlowski
  0 siblings, 0 replies; 2+ messages in thread
From: Krzysztof Kozlowski @ 2020-09-10 12:37 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 1803 bytes --]

On Tue, Sep 08, 2020 at 06:05:59AM +0800, kernel test robot wrote:
> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
> head:   7a6956579ce6950890ea706f6fcf7874a7981f50
> commit: 17132da70eb766785b9b4677bacce18cc11ea442 [1851/4903] ARM: samsung: move pm check code to drivers/soc
> config: arm-randconfig-r001-20200908 (attached as .config)
> compiler: arm-linux-gnueabi-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
>         git checkout 17132da70eb766785b9b4677bacce18cc11ea442
>         # save the attached .config to linux build tree
>         COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm 
> 
> If you fix the issue, kindly add following tag as appropriate
> Reported-by: kernel test robot <lkp@intel.com>
> 
> All errors (new ones prefixed by >>):
> 
>    drivers/soc/samsung/s3c-pm-debug.c: In function 's3c_pm_dbg':
>    drivers/soc/samsung/s3c-pm-debug.c:30:2: warning: function 's3c_pm_dbg' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format]
>       30 |  vsnprintf(buff, sizeof(buff), fmt, va);
>          |  ^~~~~~~~~
>    drivers/soc/samsung/s3c-pm-debug.c: In function 's3c_pm_uart_base':
> >> drivers/soc/samsung/s3c-pm-debug.c:41:2: error: implicit declaration of function 'debug_ll_addr' [-Werror=implicit-function-declaration]
>       41 |  debug_ll_addr(&paddr, &vaddr);
>          |  ^~~~~~~~~~~~~
>    cc1: some warnings being treated as errors

The error is there also on v5.9-rc1. It comes from missing dependency on
MMU by either SAMSUNG_PM_DEBUG or by DEBUG_LL. I'll send a fix.

Best regards,
Krzysztof

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-09-10 12:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-07 22:05 [linux-next:master 1851/4903] drivers/soc/samsung/s3c-pm-debug.c:41:2: error: implicit declaration of function 'debug_ll_addr' kernel test robot
2020-09-10 12:37 ` Krzysztof Kozlowski

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.