* Re: [PATCH 01/20] x86: move prepare_ftrace_return prototype to header
[not found] ` <20230516193549.544673-2-arnd@kernel.org>
@ 2023-05-16 21:44 ` Steven Rostedt
0 siblings, 0 replies; 7+ messages in thread
From: Steven Rostedt @ 2023-05-16 21:44 UTC (permalink / raw)
To: Arnd Bergmann
Cc: Mark Rutland, Rafael J. Wysocki, VMware PV-Drivers Reviewers,
linux-pci, Dave Hansen, virtualization, linux-mm, Alexey Makhalov,
Thomas Gleixner, H. Peter Anvin, x86, Peter Zijlstra, Ingo Molnar,
Darren Hart, linux-trace-kernel, Arnd Bergmann, linux-pm,
Borislav Petkov, Andy Lutomirski, xen-devel, Boris Ostrovsky,
platform-driver-x86, Juergen Gross, linux-kernel,
Masami Hiramatsu, Andy Shevchenko
On Tue, 16 May 2023 21:35:30 +0200
Arnd Bergmann <arnd@kernel.org> wrote:
> From: Arnd Bergmann <arnd@arndb.de>
>
> On 32-bit builds, the prepare_ftrace_return() function only has a global
> definition, but no prototype before it, which causes a warning:
>
> arch/x86/kernel/ftrace.c:625:6: warning: no previous prototype for ‘prepare_ftrace_return’ [-Wmissing-prototypes]
> 625 | void prepare_ftrace_return(unsigned long ip, unsigned long *parent,
>
> Move the prototype that is already needed for some configurations into
> a header file where it can be seen unconditionally.
>
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> ---
> arch/x86/include/asm/ftrace.h | 3 +++
> arch/x86/kernel/ftrace.c | 3 ---
> 2 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/arch/x86/include/asm/ftrace.h b/arch/x86/include/asm/ftrace.h
> index 5061ac98ffa1..b8d4a07f9595 100644
> --- a/arch/x86/include/asm/ftrace.h
> +++ b/arch/x86/include/asm/ftrace.h
Acked-by: Steven Rostedt (Google) <rostedt@goodmis.org>
-- Steve
_______________________________________________
Virtualization mailing list
Virtualization@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/virtualization
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 10/20] x86: xen: add missing prototypes
[not found] ` <20230516193549.544673-11-arnd@kernel.org>
@ 2023-05-18 17:28 ` Dave Hansen
2023-05-19 11:04 ` Arnd Bergmann
0 siblings, 1 reply; 7+ messages in thread
From: Dave Hansen @ 2023-05-18 17:28 UTC (permalink / raw)
To: Arnd Bergmann, x86
Cc: Mark Rutland, Rafael J. Wysocki, VMware PV-Drivers Reviewers,
linux-pci, Dave Hansen, virtualization, linux-mm, Alexey Makhalov,
Thomas Gleixner, H. Peter Anvin, Peter Zijlstra, Ingo Molnar,
Darren Hart, linux-trace-kernel, Arnd Bergmann, linux-pm,
Steven Rostedt, Borislav Petkov, Andy Lutomirski, xen-devel,
Boris Ostrovsky, platform-driver-x86, Juergen Gross, linux-kernel,
Masami Hiramatsu, Andy Shevchenko
On 5/16/23 12:35, Arnd Bergmann wrote:
> From: Arnd Bergmann <arnd@arndb.de>
>
> arch/x86/xen/enlighten_pv.c:1233:34: error: no previous prototype for 'xen_start_kernel' [-Werror=missing-prototypes]
> arch/x86/xen/irq.c:22:14: error: no previous prototype for 'xen_force_evtchn_callback' [-Werror=missing-prototypes]
> arch/x86/xen/mmu_pv.c:358:20: error: no previous prototype for 'xen_pte_val' [-Werror=missing-prototypes]
> arch/x86/xen/mmu_pv.c:366:20: error: no previous prototype for 'xen_pgd_val' [-Werror=missing-prototypes]
What's the deal with this one?
The patch is doing a bunch functions on top of the ones from the commit
message. Were you just showing a snippet of what the actual set of
warnings is?
Also, fwiw, it would be nice to have actual words in the changelog, even
for these maddeningly repetitive series. Even something like:
Xen has a bunch of these because of how the paravirt code uses
inline assembly.
_______________________________________________
Virtualization mailing list
Virtualization@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/virtualization
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 00/20] x86: address -Wmissing-prototype warnings
[not found] <20230516193549.544673-1-arnd@kernel.org>
[not found] ` <20230516193549.544673-2-arnd@kernel.org>
[not found] ` <20230516193549.544673-11-arnd@kernel.org>
@ 2023-05-18 17:31 ` Dave Hansen
2023-05-18 21:56 ` Dave Hansen
3 siblings, 0 replies; 7+ messages in thread
From: Dave Hansen @ 2023-05-18 17:31 UTC (permalink / raw)
To: Arnd Bergmann, x86
Cc: Mark Rutland, Rafael J. Wysocki, VMware PV-Drivers Reviewers,
linux-pci, Dave Hansen, virtualization, linux-mm, Alexey Makhalov,
Thomas Gleixner, H. Peter Anvin, Peter Zijlstra, Ingo Molnar,
Darren Hart, linux-trace-kernel, Arnd Bergmann, linux-pm,
Steven Rostedt, Borislav Petkov, Andy Lutomirski, xen-devel,
Boris Ostrovsky, platform-driver-x86, Juergen Gross, linux-kernel,
Masami Hiramatsu, Andy Shevchenko
On 5/16/23 12:35, Arnd Bergmann wrote:
> The ones that are a bit awkward are those that just add a prototype to
> shut up the warning, but the prototypes are never used for calling the
> function because the only caller is in assembler code. I tried to come up
> with other ways to shut up the compiler using the asmlinkage annotation,
> but with no success.
I went looking for the same thing. It's too bad gcc doesn't have an
__attribute__ for it.
_______________________________________________
Virtualization mailing list
Virtualization@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/virtualization
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 00/20] x86: address -Wmissing-prototype warnings
[not found] <20230516193549.544673-1-arnd@kernel.org>
` (2 preceding siblings ...)
2023-05-18 17:31 ` [PATCH 00/20] x86: address -Wmissing-prototype warnings Dave Hansen
@ 2023-05-18 21:56 ` Dave Hansen
2023-05-19 9:51 ` Andy Shevchenko
2023-05-19 12:09 ` Arnd Bergmann
3 siblings, 2 replies; 7+ messages in thread
From: Dave Hansen @ 2023-05-18 21:56 UTC (permalink / raw)
To: Arnd Bergmann, x86
Cc: Mark Rutland, Rafael J. Wysocki, VMware PV-Drivers Reviewers,
linux-pci, Dave Hansen, virtualization, linux-mm, Alexey Makhalov,
Thomas Gleixner, H. Peter Anvin, Peter Zijlstra, Ingo Molnar,
Darren Hart, linux-trace-kernel, Arnd Bergmann, linux-pm,
Steven Rostedt, Borislav Petkov, Andy Lutomirski, xen-devel,
Boris Ostrovsky, platform-driver-x86, Juergen Gross, linux-kernel,
Masami Hiramatsu, Andy Shevchenko
On 5/16/23 12:35, Arnd Bergmann wrote:
> From: Arnd Bergmann <arnd@arndb.de>
>
> This addresses all x86 specific prototype warnings. The majority of the
> patches should be straightforward, either adding an #include statement
> to get the right header, or ensuring that an unused global function is
> left out of the build when the prototype is hidden.
>
> The ones that are a bit awkward are those that just add a prototype to
> shut up the warning, but the prototypes are never used for calling the
> function because the only caller is in assembler code. I tried to come up
> with other ways to shut up the compiler using the asmlinkage annotation,
> but with no success.
>
> All of the warnings have to be addressed in some form before the warning
> can be enabled by default.
I picked up the ones that were blatantly obvious, but left out 03, 04,
10, 12 and 19 for the moment.
BTW, I think the i386 allyesconfig is getting pretty lightly tested
these days. I think you and I hit the same mlx4 __bad_copy_from()
compile issue.
_______________________________________________
Virtualization mailing list
Virtualization@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/virtualization
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 00/20] x86: address -Wmissing-prototype warnings
2023-05-18 21:56 ` Dave Hansen
@ 2023-05-19 9:51 ` Andy Shevchenko
2023-05-19 12:09 ` Arnd Bergmann
1 sibling, 0 replies; 7+ messages in thread
From: Andy Shevchenko @ 2023-05-19 9:51 UTC (permalink / raw)
To: Dave Hansen
Cc: Mark Rutland, Rafael J. Wysocki, VMware PV-Drivers Reviewers,
linux-pci, Dave Hansen, virtualization, linux-mm, Alexey Makhalov,
Thomas Gleixner, H. Peter Anvin, x86, Peter Zijlstra, Ingo Molnar,
Darren Hart, linux-trace-kernel, Arnd Bergmann, linux-pm,
Steven Rostedt, Borislav Petkov, Andy Lutomirski, xen-devel,
Boris Ostrovsky, platform-driver-x86, Juergen Gross,
Arnd Bergmann, linux-kernel, Masami Hiramatsu, Andy Shevchenko
On Fri, May 19, 2023 at 12:56 AM Dave Hansen <dave.hansen@intel.com> wrote:
> On 5/16/23 12:35, Arnd Bergmann wrote:
> I picked up the ones that were blatantly obvious, but left out 03, 04,
> 10, 12 and 19 for the moment.
Btw, there is series that went unnoticed
https://lore.kernel.org/all/20211119110017.48510-1-andriy.shevchenko@linux.intel.com/
I dunno why.
--
With Best Regards,
Andy Shevchenko
_______________________________________________
Virtualization mailing list
Virtualization@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/virtualization
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 10/20] x86: xen: add missing prototypes
2023-05-18 17:28 ` [PATCH 10/20] x86: xen: add missing prototypes Dave Hansen
@ 2023-05-19 11:04 ` Arnd Bergmann
0 siblings, 0 replies; 7+ messages in thread
From: Arnd Bergmann @ 2023-05-19 11:04 UTC (permalink / raw)
To: Dave Hansen, Arnd Bergmann, x86
Cc: Mark Rutland, Rafael J . Wysocki, VMware PV-Drivers Reviewers,
linux-pci, Dave Hansen, virtualization, linux-mm, Alexey Makhalov,
Thomas Gleixner, H. Peter Anvin, Peter Zijlstra, Ingo Molnar,
Darren Hart, linux-trace-kernel, linux-pm, Steven Rostedt,
Borislav Petkov, Andy Lutomirski, xen-devel, Boris Ostrovsky,
platform-driver-x86, Juergen Gross, linux-kernel,
Masami Hiramatsu, Andy Shevchenko
On Thu, May 18, 2023, at 19:28, Dave Hansen wrote:
> On 5/16/23 12:35, Arnd Bergmann wrote:
>>
>> arch/x86/xen/enlighten_pv.c:1233:34: error: no previous prototype for 'xen_start_kernel' [-Werror=missing-prototypes]
>> arch/x86/xen/irq.c:22:14: error: no previous prototype for 'xen_force_evtchn_callback' [-Werror=missing-prototypes]
>> arch/x86/xen/mmu_pv.c:358:20: error: no previous prototype for 'xen_pte_val' [-Werror=missing-prototypes]
>> arch/x86/xen/mmu_pv.c:366:20: error: no previous prototype for 'xen_pgd_val' [-Werror=missing-prototypes]
>
> What's the deal with this one?
>
> The patch is doing a bunch functions on top of the ones from the commit
> message. Were you just showing a snippet of what the actual set of
> warnings is?
I missed this one going through the changelogs before sending them out,
I thought I had added a proper text to each one, but it fell through the
cracks. I've followed up with a v2 patch that has a proper changelog
now.
Arnd
_______________________________________________
Virtualization mailing list
Virtualization@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/virtualization
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 00/20] x86: address -Wmissing-prototype warnings
2023-05-18 21:56 ` Dave Hansen
2023-05-19 9:51 ` Andy Shevchenko
@ 2023-05-19 12:09 ` Arnd Bergmann
1 sibling, 0 replies; 7+ messages in thread
From: Arnd Bergmann @ 2023-05-19 12:09 UTC (permalink / raw)
To: Dave Hansen, Arnd Bergmann, x86
Cc: Mark Rutland, Rafael J . Wysocki, VMware PV-Drivers Reviewers,
linux-pci, Dave Hansen, virtualization, linux-mm, Alexey Makhalov,
Thomas Gleixner, H. Peter Anvin, Peter Zijlstra, Ingo Molnar,
Darren Hart, linux-trace-kernel, linux-pm, Steven Rostedt,
Borislav Petkov, Andy Lutomirski, xen-devel, Boris Ostrovsky,
platform-driver-x86, Juergen Gross, linux-kernel,
Masami Hiramatsu, Andy Shevchenko
On Thu, May 18, 2023, at 23:56, Dave Hansen wrote:
> On 5/16/23 12:35, Arnd Bergmann wrote:
>>
>> All of the warnings have to be addressed in some form before the warning
>> can be enabled by default.
>
> I picked up the ones that were blatantly obvious, but left out 03, 04,
> 10, 12 and 19 for the moment.
Ok, thanks!
I've already sent a fixed version of patch 10, let me know if you
need anything else for the other ones.
> BTW, I think the i386 allyesconfig is getting pretty lightly tested
> these days. I think you and I hit the same mlx4 __bad_copy_from()
> compile issue.
I did all my testing on randconfig builds, so I probably caught a lot
of the more obscure corner cases, but it doesn't always hit everything
that is in allyesconfig/allmodconfig.
Arnd
_______________________________________________
Virtualization mailing list
Virtualization@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/virtualization
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2023-05-19 12:09 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20230516193549.544673-1-arnd@kernel.org>
[not found] ` <20230516193549.544673-2-arnd@kernel.org>
2023-05-16 21:44 ` [PATCH 01/20] x86: move prepare_ftrace_return prototype to header Steven Rostedt
[not found] ` <20230516193549.544673-11-arnd@kernel.org>
2023-05-18 17:28 ` [PATCH 10/20] x86: xen: add missing prototypes Dave Hansen
2023-05-19 11:04 ` Arnd Bergmann
2023-05-18 17:31 ` [PATCH 00/20] x86: address -Wmissing-prototype warnings Dave Hansen
2023-05-18 21:56 ` Dave Hansen
2023-05-19 9:51 ` Andy Shevchenko
2023-05-19 12:09 ` Arnd Bergmann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox