public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
* [soc:arm/soc 6/8] arch/arm/mach-pxa/include/mach/uncompress.h:62:6: error: expected expression
@ 2022-02-28 23:33 kernel test robot
  2022-03-01 12:14 ` Jonathan Cameron
  0 siblings, 1 reply; 3+ messages in thread
From: kernel test robot @ 2022-02-28 23:33 UTC (permalink / raw)
  To: Jonathan Cameron; +Cc: llvm, kbuild-all, linux-arm-kernel, arm, Arnd Bergmann

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/soc/soc.git arm/soc
head:   e6e6479c27aa22d11ff7109125dd5ec9ef276de8
commit: 28f74201e37ccf3063e359bfe346b09400af9bab [6/8] ARM: pxa: remove Intel Imote2 and Stargate 2 boards
config: arm-colibri_pxa300_defconfig (https://download.01.org/0day-ci/archive/20220301/202203010702.6TRDNN1H-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project d271fc04d5b97b12e6b797c6067d3c96a8d7470e)
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/soc/soc.git/commit/?id=28f74201e37ccf3063e359bfe346b09400af9bab
        git remote add soc https://git.kernel.org/pub/scm/linux/kernel/git/soc/soc.git
        git fetch --no-tags soc arm/soc
        git checkout 28f74201e37ccf3063e359bfe346b09400af9bab
        # save the config file to linux build tree
        mkdir build_dir
        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 as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   In file included from arch/arm/boot/compressed/misc.c:29:
>> arch/arm/mach-pxa/include/mach/uncompress.h:62:6: error: expected expression
               || machine_is_cm_x300() || machine_is_balloon3())
               ^
   arch/arm/boot/compressed/misc.c:126:17: warning: no previous prototype for function '__div0' [-Wmissing-prototypes]
   asmlinkage void __div0(void)
                   ^
   arch/arm/boot/compressed/misc.c:126:12: note: declare 'static' if the function is not intended to be used outside of this translation unit
   asmlinkage void __div0(void)
              ^
              static 
   arch/arm/boot/compressed/misc.c:133:6: warning: no previous prototype for function '__stack_chk_fail' [-Wmissing-prototypes]
   void __stack_chk_fail(void)
        ^
   arch/arm/boot/compressed/misc.c:133:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void __stack_chk_fail(void)
   ^
   static 
   arch/arm/boot/compressed/misc.c:142:1: warning: no previous prototype for function 'decompress_kernel' [-Wmissing-prototypes]
   decompress_kernel(unsigned long output_start, unsigned long free_mem_ptr_p,
   ^
   arch/arm/boot/compressed/misc.c:141:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void
   ^
   static 
   arch/arm/boot/compressed/misc.c:164:6: warning: no previous prototype for function 'fortify_panic' [-Wmissing-prototypes]
   void fortify_panic(const char *name)
        ^
   arch/arm/boot/compressed/misc.c:164:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void fortify_panic(const char *name)
   ^
   static 
   4 warnings and 1 error generated.


vim +62 arch/arm/mach-pxa/include/mach/uncompress.h

^1da177e4c3f41 include/asm-arm/arch-pxa/uncompress.h       Linus Torvalds    2005-04-16  53  
6d3dfe4a314147 include/asm-arm/arch-pxa/uncompress.h       Eric Miao         2008-06-02  54  static inline void arch_decomp_setup(void)
6d3dfe4a314147 include/asm-arm/arch-pxa/uncompress.h       Eric Miao         2008-06-02  55  {
2a8ac187e03027 arch/arm/mach-pxa/include/mach/uncompress.h Jonathan Cameron  2010-03-08  56  	/* initialize to default */
2a8ac187e03027 arch/arm/mach-pxa/include/mach/uncompress.h Jonathan Cameron  2010-03-08  57  	uart_base = FFUART_BASE;
2a8ac187e03027 arch/arm/mach-pxa/include/mach/uncompress.h Jonathan Cameron  2010-03-08  58  	uart_shift = 2;
2a8ac187e03027 arch/arm/mach-pxa/include/mach/uncompress.h Jonathan Cameron  2010-03-08  59  	uart_is_pxa = 1;
2a8ac187e03027 arch/arm/mach-pxa/include/mach/uncompress.h Jonathan Cameron  2010-03-08  60  
28f74201e37ccf arch/arm/mach-pxa/include/mach/uncompress.h Jonathan Cameron  2022-02-27  61  	if (machine_is_littleton() ||  machine_is_csb726() ||
2a23ec3679d84a arch/arm/mach-pxa/include/mach/uncompress.h Jonathan McDowell 2009-07-04 @62  	    || machine_is_cm_x300() || machine_is_balloon3())

:::::: The code at line 62 was first introduced by commit
:::::: 2a23ec3679d84ac243add761fa3d3872cf6dcb11 [ARM] pxa: balloon3 (http://balloonboard.org/) base machine support

:::::: TO: Jonathan McDowell <noodles@earth.li>
:::::: CC: Eric Miao <eric.y.miao@gmail.com>

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

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

* Re: [soc:arm/soc 6/8] arch/arm/mach-pxa/include/mach/uncompress.h:62:6: error: expected expression
  2022-02-28 23:33 [soc:arm/soc 6/8] arch/arm/mach-pxa/include/mach/uncompress.h:62:6: error: expected expression kernel test robot
@ 2022-03-01 12:14 ` Jonathan Cameron
  2022-03-01 12:50   ` Arnd Bergmann
  0 siblings, 1 reply; 3+ messages in thread
From: Jonathan Cameron @ 2022-03-01 12:14 UTC (permalink / raw)
  To: kernel test robot; +Cc: llvm, kbuild-all, linux-arm-kernel, arm, Arnd Bergmann

On Tue, 1 Mar 2022 07:33:39 +0800
kernel test robot <lkp@intel.com> wrote:

> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/soc/soc.git arm/soc
> head:   e6e6479c27aa22d11ff7109125dd5ec9ef276de8
> commit: 28f74201e37ccf3063e359bfe346b09400af9bab [6/8] ARM: pxa: remove Intel Imote2 and Stargate 2 boards
> config: arm-colibri_pxa300_defconfig (https://download.01.org/0day-ci/archive/20220301/202203010702.6TRDNN1H-lkp@intel.com/config)
> compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project d271fc04d5b97b12e6b797c6067d3c96a8d7470e)
> 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/soc/soc.git/commit/?id=28f74201e37ccf3063e359bfe346b09400af9bab
>         git remote add soc https://git.kernel.org/pub/scm/linux/kernel/git/soc/soc.git
>         git fetch --no-tags soc arm/soc
>         git checkout 28f74201e37ccf3063e359bfe346b09400af9bab
>         # save the config file to linux build tree
>         mkdir build_dir
>         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 as appropriate
> Reported-by: kernel test robot <lkp@intel.com>

Sorry!

> 
> All errors (new ones prefixed by >>):
> 
>    In file included from arch/arm/boot/compressed/misc.c:29:
> >> arch/arm/mach-pxa/include/mach/uncompress.h:62:6: error: expected expression  
>                || machine_is_cm_x300() || machine_is_balloon3())

I messed up a rebase so there is a stray || on the line above this

Arnd, new version or are you fine to tidy that up?

Thanks,

Jonathan

>                ^
>    arch/arm/boot/compressed/misc.c:126:17: warning: no previous prototype for function '__div0' [-Wmissing-prototypes]
>    asmlinkage void __div0(void)
>                    ^
>    arch/arm/boot/compressed/misc.c:126:12: note: declare 'static' if the function is not intended to be used outside of this translation unit
>    asmlinkage void __div0(void)
>               ^
>               static 
>    arch/arm/boot/compressed/misc.c:133:6: warning: no previous prototype for function '__stack_chk_fail' [-Wmissing-prototypes]
>    void __stack_chk_fail(void)
>         ^
>    arch/arm/boot/compressed/misc.c:133:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
>    void __stack_chk_fail(void)
>    ^
>    static 
>    arch/arm/boot/compressed/misc.c:142:1: warning: no previous prototype for function 'decompress_kernel' [-Wmissing-prototypes]
>    decompress_kernel(unsigned long output_start, unsigned long free_mem_ptr_p,
>    ^
>    arch/arm/boot/compressed/misc.c:141:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
>    void
>    ^
>    static 
>    arch/arm/boot/compressed/misc.c:164:6: warning: no previous prototype for function 'fortify_panic' [-Wmissing-prototypes]
>    void fortify_panic(const char *name)
>         ^
>    arch/arm/boot/compressed/misc.c:164:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
>    void fortify_panic(const char *name)
>    ^
>    static 
>    4 warnings and 1 error generated.
> 
> 
> vim +62 arch/arm/mach-pxa/include/mach/uncompress.h
> 
> ^1da177e4c3f41 include/asm-arm/arch-pxa/uncompress.h       Linus Torvalds    2005-04-16  53  
> 6d3dfe4a314147 include/asm-arm/arch-pxa/uncompress.h       Eric Miao         2008-06-02  54  static inline void arch_decomp_setup(void)
> 6d3dfe4a314147 include/asm-arm/arch-pxa/uncompress.h       Eric Miao         2008-06-02  55  {
> 2a8ac187e03027 arch/arm/mach-pxa/include/mach/uncompress.h Jonathan Cameron  2010-03-08  56  	/* initialize to default */
> 2a8ac187e03027 arch/arm/mach-pxa/include/mach/uncompress.h Jonathan Cameron  2010-03-08  57  	uart_base = FFUART_BASE;
> 2a8ac187e03027 arch/arm/mach-pxa/include/mach/uncompress.h Jonathan Cameron  2010-03-08  58  	uart_shift = 2;
> 2a8ac187e03027 arch/arm/mach-pxa/include/mach/uncompress.h Jonathan Cameron  2010-03-08  59  	uart_is_pxa = 1;
> 2a8ac187e03027 arch/arm/mach-pxa/include/mach/uncompress.h Jonathan Cameron  2010-03-08  60  
> 28f74201e37ccf arch/arm/mach-pxa/include/mach/uncompress.h Jonathan Cameron  2022-02-27  61  	if (machine_is_littleton() ||  machine_is_csb726() ||
> 2a23ec3679d84a arch/arm/mach-pxa/include/mach/uncompress.h Jonathan McDowell 2009-07-04 @62  	    || machine_is_cm_x300() || machine_is_balloon3())
> 
> :::::: The code at line 62 was first introduced by commit
> :::::: 2a23ec3679d84ac243add761fa3d3872cf6dcb11 [ARM] pxa: balloon3 (http://balloonboard.org/) base machine support
> 
> :::::: TO: Jonathan McDowell <noodles@earth.li>
> :::::: CC: Eric Miao <eric.y.miao@gmail.com>
> 
> ---
> 0-DAY CI Kernel Test Service, Intel Corporation
> https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org


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

* Re: [soc:arm/soc 6/8] arch/arm/mach-pxa/include/mach/uncompress.h:62:6: error: expected expression
  2022-03-01 12:14 ` Jonathan Cameron
@ 2022-03-01 12:50   ` Arnd Bergmann
  0 siblings, 0 replies; 3+ messages in thread
From: Arnd Bergmann @ 2022-03-01 12:50 UTC (permalink / raw)
  To: Jonathan Cameron
  Cc: kernel test robot, llvm, kbuild-all, Linux ARM, arm-soc,
	Arnd Bergmann

On Tue, Mar 1, 2022 at 1:14 PM Jonathan Cameron
<Jonathan.Cameron@huawei.com> wrote:
> > All errors (new ones prefixed by >>):
> >
> >    In file included from arch/arm/boot/compressed/misc.c:29:
> > >> arch/arm/mach-pxa/include/mach/uncompress.h:62:6: error: expected expression
> >                || machine_is_cm_x300() || machine_is_balloon3())
>
> I messed up a rebase so there is a stray || on the line above this
>
> Arnd, new version or are you fine to tidy that up?

I committed a fix on top now, thanks for asking.

        Arnd

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

end of thread, other threads:[~2022-03-01 12:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-28 23:33 [soc:arm/soc 6/8] arch/arm/mach-pxa/include/mach/uncompress.h:62:6: error: expected expression kernel test robot
2022-03-01 12:14 ` Jonathan Cameron
2022-03-01 12:50   ` Arnd Bergmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox