From: kernel test robot <lkp@intel.com>
To: Sven Schnelle <svens@stackframe.org>
Cc: kbuild-all@lists.01.org, linux-hwmon@vger.kernel.org,
Helge Deller <deller@gmx.de>
Subject: [groeck-staging:google-commits 5671/6115] arch/parisc/kernel/stacktrace.c:20:13: error: 'regs' undeclared
Date: Sat, 13 Nov 2021 02:43:02 +0800 [thread overview]
Message-ID: <202111130256.AxBGwUCe-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 4737 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git google-commits
head: cfb9e87ff8218995cac59c8225da1b31f2fb2507
commit: d5fd1c46a3cebbef254611682b95c315163e4620 [5671/6115] parisc/unwind: call callback with toplevel address
config: parisc-randconfig-r036-20211004 (attached as .config)
compiler: hppa-linux-gcc (GCC) 11.2.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/groeck/linux-staging.git/commit/?id=d5fd1c46a3cebbef254611682b95c315163e4620
git remote add groeck-staging https://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git
git fetch --no-tags groeck-staging google-commits
git checkout d5fd1c46a3cebbef254611682b95c315163e4620
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=parisc SHELL=/bin/bash arch/parisc/kernel/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
In file included from include/linux/kernel.h:11,
from include/linux/list.h:9,
from include/linux/module.h:12,
from arch/parisc/kernel/stacktrace.c:11:
arch/parisc/kernel/stacktrace.c: In function 'dump_trace':
>> arch/parisc/kernel/stacktrace.c:20:13: error: 'regs' undeclared (first use in this function)
20 | if (regs)
| ^~~~
include/linux/compiler.h:58:52: note: in definition of macro '__trace_if_var'
58 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
| ^~~~
arch/parisc/kernel/stacktrace.c:20:9: note: in expansion of macro 'if'
20 | if (regs)
| ^~
arch/parisc/kernel/stacktrace.c:20:13: note: each undeclared identifier is reported only once for each function it appears in
20 | if (regs)
| ^~~~
include/linux/compiler.h:58:52: note: in definition of macro '__trace_if_var'
58 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
| ^~~~
arch/parisc/kernel/stacktrace.c:20:9: note: in expansion of macro 'if'
20 | if (regs)
| ^~
>> arch/parisc/kernel/stacktrace.c:21:22: error: implicit declaration of function 'fn' [-Werror=implicit-function-declaration]
21 | if (!fn(cookie, regs->iaoq[0]))
| ^~
include/linux/compiler.h:58:52: note: in definition of macro '__trace_if_var'
58 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
| ^~~~
arch/parisc/kernel/stacktrace.c:21:17: note: in expansion of macro 'if'
21 | if (!fn(cookie, regs->iaoq[0]))
| ^~
>> arch/parisc/kernel/stacktrace.c:21:25: error: 'cookie' undeclared (first use in this function)
21 | if (!fn(cookie, regs->iaoq[0]))
| ^~~~~~
include/linux/compiler.h:58:52: note: in definition of macro '__trace_if_var'
58 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
| ^~~~
arch/parisc/kernel/stacktrace.c:21:17: note: in expansion of macro 'if'
21 | if (!fn(cookie, regs->iaoq[0]))
| ^~
cc1: some warnings being treated as errors
vim +/regs +20 arch/parisc/kernel/stacktrace.c
15
16 static void dump_trace(struct task_struct *task, struct stack_trace *trace)
17 {
18 struct unwind_frame_info info;
19
> 20 if (regs)
> 21 if (!fn(cookie, regs->iaoq[0]))
22 return;
23
24 unwind_frame_init_task(&info, task, NULL);
25
26 /* unwind stack and save entries in stack_trace struct */
27 trace->nr_entries = 0;
28 while (trace->nr_entries < trace->max_entries) {
29 if (unwind_once(&info) < 0 || info.ip == 0)
30 break;
31
32 if (__kernel_text_address(info.ip))
33 trace->entries[trace->nr_entries++] = info.ip;
34 }
35 }
36
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 29772 bytes --]
WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [groeck-staging:google-commits 5671/6115] arch/parisc/kernel/stacktrace.c:20:13: error: 'regs' undeclared
Date: Sat, 13 Nov 2021 02:43:02 +0800 [thread overview]
Message-ID: <202111130256.AxBGwUCe-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 4832 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git google-commits
head: cfb9e87ff8218995cac59c8225da1b31f2fb2507
commit: d5fd1c46a3cebbef254611682b95c315163e4620 [5671/6115] parisc/unwind: call callback with toplevel address
config: parisc-randconfig-r036-20211004 (attached as .config)
compiler: hppa-linux-gcc (GCC) 11.2.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/groeck/linux-staging.git/commit/?id=d5fd1c46a3cebbef254611682b95c315163e4620
git remote add groeck-staging https://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git
git fetch --no-tags groeck-staging google-commits
git checkout d5fd1c46a3cebbef254611682b95c315163e4620
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=parisc SHELL=/bin/bash arch/parisc/kernel/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
In file included from include/linux/kernel.h:11,
from include/linux/list.h:9,
from include/linux/module.h:12,
from arch/parisc/kernel/stacktrace.c:11:
arch/parisc/kernel/stacktrace.c: In function 'dump_trace':
>> arch/parisc/kernel/stacktrace.c:20:13: error: 'regs' undeclared (first use in this function)
20 | if (regs)
| ^~~~
include/linux/compiler.h:58:52: note: in definition of macro '__trace_if_var'
58 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
| ^~~~
arch/parisc/kernel/stacktrace.c:20:9: note: in expansion of macro 'if'
20 | if (regs)
| ^~
arch/parisc/kernel/stacktrace.c:20:13: note: each undeclared identifier is reported only once for each function it appears in
20 | if (regs)
| ^~~~
include/linux/compiler.h:58:52: note: in definition of macro '__trace_if_var'
58 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
| ^~~~
arch/parisc/kernel/stacktrace.c:20:9: note: in expansion of macro 'if'
20 | if (regs)
| ^~
>> arch/parisc/kernel/stacktrace.c:21:22: error: implicit declaration of function 'fn' [-Werror=implicit-function-declaration]
21 | if (!fn(cookie, regs->iaoq[0]))
| ^~
include/linux/compiler.h:58:52: note: in definition of macro '__trace_if_var'
58 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
| ^~~~
arch/parisc/kernel/stacktrace.c:21:17: note: in expansion of macro 'if'
21 | if (!fn(cookie, regs->iaoq[0]))
| ^~
>> arch/parisc/kernel/stacktrace.c:21:25: error: 'cookie' undeclared (first use in this function)
21 | if (!fn(cookie, regs->iaoq[0]))
| ^~~~~~
include/linux/compiler.h:58:52: note: in definition of macro '__trace_if_var'
58 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
| ^~~~
arch/parisc/kernel/stacktrace.c:21:17: note: in expansion of macro 'if'
21 | if (!fn(cookie, regs->iaoq[0]))
| ^~
cc1: some warnings being treated as errors
vim +/regs +20 arch/parisc/kernel/stacktrace.c
15
16 static void dump_trace(struct task_struct *task, struct stack_trace *trace)
17 {
18 struct unwind_frame_info info;
19
> 20 if (regs)
> 21 if (!fn(cookie, regs->iaoq[0]))
22 return;
23
24 unwind_frame_init_task(&info, task, NULL);
25
26 /* unwind stack and save entries in stack_trace struct */
27 trace->nr_entries = 0;
28 while (trace->nr_entries < trace->max_entries) {
29 if (unwind_once(&info) < 0 || info.ip == 0)
30 break;
31
32 if (__kernel_text_address(info.ip))
33 trace->entries[trace->nr_entries++] = info.ip;
34 }
35 }
36
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 29772 bytes --]
next reply other threads:[~2021-11-12 18:44 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-12 18:43 kernel test robot [this message]
2021-11-12 18:43 ` [groeck-staging:google-commits 5671/6115] arch/parisc/kernel/stacktrace.c:20:13: error: 'regs' undeclared kernel test robot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202111130256.AxBGwUCe-lkp@intel.com \
--to=lkp@intel.com \
--cc=deller@gmx.de \
--cc=kbuild-all@lists.01.org \
--cc=linux-hwmon@vger.kernel.org \
--cc=svens@stackframe.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.