lkml.org 
[lkml]   [2017]   [Apr]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject[tip:WIP.sched/cpusallowed 4/13] arch/ia64/sn/kernel/sn2/sn_hwperf.c:640:26: error: passing argument 2 of 'work_on_cpu_safe' from incompatible pointer type
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git WIP.sched/cpusallowed
head: 4ba98c7ec4094a9123d0d6aabb4497290207b518
commit: ca631e2b69f859a8d51855b32dd45a65e78f2bfc [4/13] ia64/sn/hwperf: Use work_on_cpu_safe()
config: ia64-allyesconfig (attached as .config)
compiler: ia64-linux-gcc (GCC) 6.2.0
reproduce:
wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout ca631e2b69f859a8d51855b32dd45a65e78f2bfc
# save the attached .config to linux build tree
make.cross ARCH=ia64

All errors (new ones prefixed by >>):

arch/ia64/sn/kernel/sn2/sn_hwperf.c: In function 'sn_hwperf_op_cpu':
>> arch/ia64/sn/kernel/sn2/sn_hwperf.c:640:26: error: passing argument 2 of 'work_on_cpu_safe' from incompatible pointer type [-Werror=incompatible-pointer-types]
work_on_cpu_safe(cpu, sn_hwperf_call_sal, op_info);
^~~~~~~~~~~~~~~~~~
In file included from include/linux/fs.h:31:0,
from arch/ia64/sn/kernel/sn2/sn_hwperf.c:26:
include/linux/workqueue.h:617:6: note: expected 'long int (*)(void *)' but argument is of type 'void (*)(void *)'
long work_on_cpu_safe(int cpu, long (*fn)(void *), void *arg);
^~~~~~~~~~~~~~~~
arch/ia64/sn/kernel/sn2/sn_hwperf.c:612:12: warning: unused variable 'save_allowed' [-Wunused-variable]
cpumask_t save_allowed;
^~~~~~~~~~~~
At top level:
arch/ia64/sn/kernel/sn2/sn_hwperf.c:601:13: warning: 'sn_hwperf_call_sal_work' defined but not used [-Wunused-function]
static long sn_hwperf_call_sal_work(void *info)
^~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors

vim +/work_on_cpu_safe +640 arch/ia64/sn/kernel/sn2/sn_hwperf.c

634 if (use_ipi) {
635 /* use an interprocessor interrupt to call SAL */
636 smp_call_function_single(cpu, sn_hwperf_call_sal,
637 op_info, 1);
638 } else {
639 /* Call on the target CPU */
> 640 work_on_cpu_safe(cpu, sn_hwperf_call_sal, op_info);
641 }
642 }
643 r = op_info->ret;

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[unhandled content-type:application/gzip]
\
 
 \ /
  Last update: 2017-04-13 01:16    [W:0.040 / U:0.188 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site