Hi "Gustavo, Thank you for the patch! Yet something to improve: [auto build test ERROR on tip/perf/core] [also build test ERROR on linux/master v5.15] [cannot apply to rostedt-trace/for-next linus/master next-20211105] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Gustavo-A-R-Silva/ftrace-Fix-Wcast-function-type-warnings-on-powerpc64/20211005-133606 base: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git 41100833cdd8b1bef363b81a6482d74711c116ad config: arm-randconfig-r012-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 # install arm cross compiling tool for clang build # apt-get install binutils-arm-linux-gnueabi # https://github.com/0day-ci/linux/commit/9c10c0713155955bf1170eea3904cfcfb6d2d832 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Gustavo-A-R-Silva/ftrace-Fix-Wcast-function-type-warnings-on-powerpc64/20211005-133606 git checkout 9c10c0713155955bf1170eea3904cfcfb6d2d832 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=arm If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): >> kernel/trace/ftrace.c:6925:12: error: incompatible function pointer types initializing 'ftrace_func_t' (aka 'void (*)(unsigned long, unsigned long)') with an expression of type 'void (unsigned long, unsigned long, struct ftrace_ops *, struct ftrace_regs *)' [-Werror,-Wincompatible-function-pointer-types] .func = ftrace_stub, ^~~~~~~~~~~ 1 error generated. -- >> kernel/trace/trace_irqsoff.c:567:28: error: incompatible function pointer types passing 'void (unsigned long, unsigned long, struct ftrace_ops *, struct ftrace_regs *)' to parameter of type 'ftrace_func_t' (aka 'void (*)(unsigned long, unsigned long)') [-Werror,-Wincompatible-function-pointer-types] ftrace_init_array_ops(tr, irqsoff_tracer_call); ^~~~~~~~~~~~~~~~~~~ kernel/trace/trace.h:981:66: note: passing argument to parameter 'func' here void ftrace_init_array_ops(struct trace_array *tr, ftrace_func_t func); ^ 1 error generated. vim +6925 kernel/trace/ftrace.c 0b6e4d56bf7186 Frederic Weisbecker 2008-10-28 6923 3306fc4aff464f Steven Rostedt (VMware 2018-11-15 6924) struct ftrace_ops global_ops = { bd69c30b1d0803 Steven Rostedt 2011-05-03 @6925 .func = ftrace_stub, a25d036d939a30 Steven Rostedt (VMware 2020-11-05 6926) .flags = FTRACE_OPS_FL_INITIALIZED | e3eea1404f5ff7 Steven Rostedt (Red Hat 2015-07-24 6927) FTRACE_OPS_FL_PID, bd69c30b1d0803 Steven Rostedt 2011-05-03 6928 }; bd69c30b1d0803 Steven Rostedt 2011-05-03 6929 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org