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  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]
Date:   Wed, 6 Oct 2021 04:26:22 +0800
From:   kernel test robot <lkp@...el.com>
To:     Steven Rostedt <rostedt@...dmis.org>
Cc:     llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
        linux-kernel@...r.kernel.org, 0day robot <lkp@...el.com>
Subject: kernel/trace/ftrace.c:7035:6: warning: no previous prototype for
 function 'arch_ftrace_ops_list_func'

tree:   https://github.com/0day-ci/linux/commits/UPDATE-20211006-003617/Gustavo-A-R-Silva/ftrace-Fix-Wcast-function-type-warnings-on-powerpc64/20211005-133606
head:   200d9dd9fd167dae7f84464ff025b6d9bb2bc635
commit: 200d9dd9fd167dae7f84464ff025b6d9bb2bc635 ftrace: Fix -Wcast-function-type warnings on powerpc64
date:   4 hours ago
config: x86_64-buildonly-randconfig-r006-20211004 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project c0039de2953d15815448b4b3c3bafb45607781e0)
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://github.com/0day-ci/linux/commit/200d9dd9fd167dae7f84464ff025b6d9bb2bc635
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review UPDATE-20211006-003617/Gustavo-A-R-Silva/ftrace-Fix-Wcast-function-type-warnings-on-powerpc64/20211005-133606
        git checkout 200d9dd9fd167dae7f84464ff025b6d9bb2bc635
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=x86_64 

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

All warnings (new ones prefixed by >>):

   kernel/trace/ftrace.c:579:5: warning: no previous prototype for function 'ftrace_profile_pages_init' [-Wmissing-prototypes]
   int ftrace_profile_pages_init(struct ftrace_profile_stat *stat)
       ^
   kernel/trace/ftrace.c:579:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   int ftrace_profile_pages_init(struct ftrace_profile_stat *stat)
   ^
   static 
>> kernel/trace/ftrace.c:7035:6: warning: no previous prototype for function 'arch_ftrace_ops_list_func' [-Wmissing-prototypes]
   void arch_ftrace_ops_list_func(unsigned long ip, unsigned long parent_ip)
        ^
   kernel/trace/ftrace.c:7035:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void arch_ftrace_ops_list_func(unsigned long ip, unsigned long parent_ip)
   ^
   static 
   kernel/trace/ftrace.c:6931:20: warning: unused function 'ftrace_startup_enable' [-Wunused-function]
   static inline void ftrace_startup_enable(int command) { }
                      ^
   3 warnings generated.


vim +/arch_ftrace_ops_list_func +7035 kernel/trace/ftrace.c

  7011	
  7012	/*
  7013	 * Some archs only support passing ip and parent_ip. Even though
  7014	 * the list function ignores the op parameter, we do not want any
  7015	 * C side effects, where a function is called without the caller
  7016	 * sending a third parameter.
  7017	 * Archs are to support both the regs and ftrace_ops at the same time.
  7018	 * If they support ftrace_ops, it is assumed they support regs.
  7019	 * If call backs want to use regs, they must either check for regs
  7020	 * being NULL, or CONFIG_DYNAMIC_FTRACE_WITH_REGS.
  7021	 * Note, CONFIG_DYNAMIC_FTRACE_WITH_REGS expects a full regs to be saved.
  7022	 * An architecture can pass partial regs with ftrace_ops and still
  7023	 * set the ARCH_SUPPORTS_FTRACE_OPS.
  7024	 *
  7025	 * In vmlinux.lds.h, ftrace_ops_list_func() is defined to be
  7026	 * arch_ftrace_ops_list_func.
  7027	 */
  7028	#if ARCH_SUPPORTS_FTRACE_OPS
  7029	void arch_ftrace_ops_list_func(unsigned long ip, unsigned long parent_ip,
  7030				       struct ftrace_ops *op, struct ftrace_regs *fregs)
  7031	{
  7032		__ftrace_ops_list_func(ip, parent_ip, NULL, fregs);
  7033	}
  7034	#else
> 7035	void arch_ftrace_ops_list_func(unsigned long ip, unsigned long parent_ip)
  7036	{
  7037		__ftrace_ops_list_func(ip, parent_ip, NULL, NULL);
  7038	}
  7039	#endif
  7040	NOKPROBE_SYMBOL(arch_ftrace_ops_list_func);
  7041	

---
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" (55201 bytes)

Powered by blists - more mailing lists