* [sashal-linux-stable:queue-4.9 48/79] drivers/hwtracing/coresight/coresight-etb10.c:282:10: error: 'event' undeclared
@ 2020-01-10 16:39 kbuild test robot
0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2020-01-10 16:39 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 3169 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git queue-4.9
head: 4148278970e6bb725edb3fd5cc91c3d83cc16a97
commit: 952a760ef9c2b1d0781828b98d796d67b3faa543 [48/79] coresight: etb10: Do not call smp_processor_id from preemptible
config: arm-allmodconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 7.5.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 952a760ef9c2b1d0781828b98d796d67b3faa543
# save the attached .config to linux build tree
GCC_VERSION=7.5.0 make.cross ARCH=arm
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>
All error/warnings (new ones prefixed by >>):
drivers/hwtracing/coresight/coresight-etb10.c: In function 'etb_alloc_buffer':
>> drivers/hwtracing/coresight/coresight-etb10.c:282:10: error: 'event' undeclared (first use in this function)
node = (event->cpu == -1) ? NUMA_NO_NODE : cpu_to_node(event->cpu);
^~~~~
drivers/hwtracing/coresight/coresight-etb10.c:282:10: note: each undeclared identifier is reported only once for each function it appears in
In file included from arch/arm/include/asm/topology.h:34:0,
from include/linux/topology.h:35,
from include/linux/gfp.h:8,
from include/linux/percpu_counter.h:15,
from include/linux/quota.h:40,
from include/linux/fs.h:272,
from include/linux/seq_file.h:10,
from include/linux/pinctrl/consumer.h:17,
from include/linux/pinctrl/devinfo.h:21,
from include/linux/device.h:24,
from drivers/hwtracing/coresight/coresight-etb10.c:19:
include/asm-generic/topology.h:35:38: warning: left-hand operand of comma expression has no effect [-Wunused-value]
#define cpu_to_node(cpu) ((void)(cpu),0)
^
>> drivers/hwtracing/coresight/coresight-etb10.c:282:45: note: in expansion of macro 'cpu_to_node'
node = (event->cpu == -1) ? NUMA_NO_NODE : cpu_to_node(event->cpu);
^~~~~~~~~~~
vim +/event +282 drivers/hwtracing/coresight/coresight-etb10.c
275
276 static void *etb_alloc_buffer(struct coresight_device *csdev, int cpu,
277 void **pages, int nr_pages, bool overwrite)
278 {
279 int node;
280 struct cs_buffers *buf;
281
> 282 node = (event->cpu == -1) ? NUMA_NO_NODE : cpu_to_node(event->cpu);
283
284 buf = kzalloc_node(sizeof(struct cs_buffers), GFP_KERNEL, node);
285 if (!buf)
286 return NULL;
287
288 buf->snapshot = overwrite;
289 buf->nr_pages = nr_pages;
290 buf->data_pages = pages;
291
292 return buf;
293 }
294
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org Intel Corporation
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 58879 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-01-10 16:39 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-10 16:39 [sashal-linux-stable:queue-4.9 48/79] drivers/hwtracing/coresight/coresight-etb10.c:282:10: error: 'event' undeclared kbuild test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.