From: Steven Rostedt <rostedt@goodmis.org>
To: Ian Abbott <abbotti@mev.co.uk>
Cc: linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org,
Alexander Potapenko <glider@google.com>,
Andrew Morton <akpm@linux-foundation.org>,
Arnd Bergmann <arnd@arndb.de>, Borislav Petkov <bp@suse.de>,
Hidehiro Kawai <hidehiro.kawai.ez@hitachi.com>,
Jakub Kicinski <jakub.kicinski@netronome.com>,
Johannes Berg <johannes.berg@intel.com>,
Kees Cook <keescook@chromium.org>,
Michal Nazarewicz <mina86@mina86.com>,
Peter Zijlstra <peterz@infradead.org>,
Rasmus Villemoes <linux@rasmusvillemoes.dk>
Subject: Re: [PATCH v5 1/6] asm-generic/bug.h: declare struct pt_regs; before function prototype
Date: Thu, 8 Jun 2017 10:07:31 -0400 [thread overview]
Message-ID: <20170608100731.43ee0323@gandalf.local.home> (raw)
In-Reply-To: <20170525120316.24473-2-abbotti@mev.co.uk>
On Thu, 25 May 2017 13:03:11 +0100
Ian Abbott <abbotti@mev.co.uk> wrote:
> The declaration of `__warn()` has `struct pt_regs *regs` as one of its
> parameters. This can result in compiler warnings if `struct regs` is
> not already declared. Add an empty declaration of `struct pt_regs` to
> avoid the warnings.
>
Not sure if this has been pulled already or not, but I have a small nit.
> Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
> Cc: Arnd Bergmann <arnd@arndb.de>
> Acked-by: Arnd Bergmann <arnd@arndb.de>
> Acked-by: Michal Nazarewicz <mina86@mina86.com>
> ---
> v3: Actually, there was no v1 or v2. I called this v3 to match the
> series.
> v4: Corrected 'Acked-by:' line in patch description.
> v5: Added Acked-by for Michal Nazarewicz.
> ---
> include/asm-generic/bug.h | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/include/asm-generic/bug.h b/include/asm-generic/bug.h
> index d6f4aed479a1..87191357d303 100644
> --- a/include/asm-generic/bug.h
> +++ b/include/asm-generic/bug.h
> @@ -97,6 +97,7 @@ extern void warn_slowpath_null(const char *file, const int line);
>
> /* used internally by panic.c */
> struct warn_args;
> +struct pt_regs;
Probably be better to move pt_regs above the comment. For one, it is
used before warn_args in the function below. Two, it's not defined
internally by panic.c like warn_args is.
-- Steve
>
> void __warn(const char *file, int line, void *caller, unsigned taint,
> struct pt_regs *regs, struct warn_args *args);
next prev parent reply other threads:[~2017-06-08 14:07 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-25 12:03 [PATCH v5 0/6] kernel.h: container_of() pointer checking Ian Abbott
2017-05-25 12:03 ` [PATCH v5 1/6] asm-generic/bug.h: declare struct pt_regs; before function prototype Ian Abbott
2017-05-25 12:03 ` Ian Abbott
2017-06-08 14:07 ` Steven Rostedt [this message]
2017-06-12 14:13 ` Ian Abbott
2017-06-12 14:15 ` Steven Rostedt
2017-06-12 14:15 ` Steven Rostedt
2017-05-25 12:03 ` [PATCH v5 2/6] linux/bug.h: correct formatting of block comment Ian Abbott
2017-05-25 13:58 ` Michal Nazarewicz
2017-05-25 13:58 ` Michal Nazarewicz
2017-05-25 12:03 ` [PATCH v5 3/6] linux/bug.h: correct "(foo*)" should be "(foo *)" Ian Abbott
2017-05-25 12:03 ` Ian Abbott
2017-05-25 13:59 ` Michal Nazarewicz
2017-05-25 13:59 ` Michal Nazarewicz
2017-05-25 12:03 ` [PATCH v5 4/6] linux/bug.h: correct "space required before that '-'" Ian Abbott
2017-05-25 14:01 ` Michal Nazarewicz
2017-05-25 14:01 ` Michal Nazarewicz
2017-05-25 14:02 ` Michal Nazarewicz
2017-05-25 14:02 ` Michal Nazarewicz
2017-05-25 12:03 ` [PATCH v5 5/6] bug: split BUILD_BUG stuff out into <linux/build_bug.h> Ian Abbott
2017-05-25 14:06 ` Michal Nazarewicz
2017-05-25 14:06 ` Michal Nazarewicz
2017-05-25 18:30 ` Kees Cook
2017-05-25 12:03 ` [PATCH v5 6/6] kernel.h: handle pointers to arrays better in container_of() Ian Abbott
2017-05-25 12:03 ` Ian Abbott
2017-05-25 14:07 ` Michal Nazarewicz
2017-05-25 14:07 ` Michal Nazarewicz
2017-05-25 18:35 ` Kees Cook
2017-05-25 18:35 ` Kees Cook
2017-05-26 13:57 ` Ian Abbott
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=20170608100731.43ee0323@gandalf.local.home \
--to=rostedt@goodmis.org \
--cc=abbotti@mev.co.uk \
--cc=akpm@linux-foundation.org \
--cc=arnd@arndb.de \
--cc=bp@suse.de \
--cc=glider@google.com \
--cc=hidehiro.kawai.ez@hitachi.com \
--cc=jakub.kicinski@netronome.com \
--cc=johannes.berg@intel.com \
--cc=keescook@chromium.org \
--cc=linux-arch@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@rasmusvillemoes.dk \
--cc=mina86@mina86.com \
--cc=peterz@infradead.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox