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: <202210120430.wWHY4rBq-lkp@intel.com>
Date:   Wed, 12 Oct 2022 04:49:51 +0800
From:   kernel test robot <lkp@...el.com>
To:     Mark Rutland <mark.rutland@....com>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
        Florent Revest <revest@...omium.org>
Subject: [mark:arm64/ftrace/minimal-regs 4/5]
 arch/powerpc/include/asm/ftrace.h:50:42: error: invalid use of undefined
 type 'const struct ftrace_refs'

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git arm64/ftrace/minimal-regs
head:   1e840c7ba731d3b9fe5d23a41b3744fa8999ec1e
commit: 1907aee84bdc80f1126268b50d59e9cdc4d60d80 [4/5] ftrace: abstract DYNAMIC_FTRACE_WITH_ARGS accesses
config: powerpc-allyesconfig
compiler: powerpc-linux-gcc (GCC) 12.1.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/mark/linux.git/commit/?id=1907aee84bdc80f1126268b50d59e9cdc4d60d80
        git remote add mark https://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git
        git fetch --no-tags mark arm64/ftrace/minimal-regs
        git checkout 1907aee84bdc80f1126268b50d59e9cdc4d60d80
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=powerpc prepare

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

All error/warnings (new ones prefixed by >>):

   In file included from include/linux/ftrace.h:23,
                    from include/linux/kvm_host.h:32,
                    from arch/powerpc/include/asm/kvm_ppc.h:19,
                    from arch/powerpc/include/asm/dbell.h:17,
                    from arch/powerpc/kernel/asm-offsets.c:36:
>> arch/powerpc/include/asm/ftrace.h:48:50: warning: 'struct ftrace_refs' declared inside parameter list will not be visible outside of this definition or declaration
      48 | ftrace_regs_get_instruction_pointer(const struct ftrace_refs *fregs)
         |                                                  ^~~~~~~~~~~
   arch/powerpc/include/asm/ftrace.h: In function 'ftrace_regs_get_instruction_pointer':
>> arch/powerpc/include/asm/ftrace.h:50:42: error: invalid use of undefined type 'const struct ftrace_refs'
      50 |         return instruction_pointer(&fregs->regs)
         |                                          ^~
>> arch/powerpc/include/asm/ftrace.h:50:49: error: expected ';' before '}' token
      50 |         return instruction_pointer(&fregs->regs)
         |                                                 ^
         |                                                 ;
      51 | }
         | ~                                                
   make[2]: *** [scripts/Makefile.build:117: arch/powerpc/kernel/asm-offsets.s] Error 1
   make[2]: Target '__build' not remade because of errors.
   make[1]: *** [Makefile:1205: prepare0] Error 2
   make[1]: Target 'prepare' not remade because of errors.
   make: *** [Makefile:222: __sub-make] Error 2
   make: Target 'prepare' not remade because of errors.


vim +50 arch/powerpc/include/asm/ftrace.h

    46	
    47	static __always_inline unsigned long
  > 48	ftrace_regs_get_instruction_pointer(const struct ftrace_refs *fregs)
    49	{
  > 50		return instruction_pointer(&fregs->regs)
    51	}
    52	

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

View attachment "config" of type "text/plain" (325808 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ