lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:   Sat,  6 Jun 2020 16:27:21 +0200
From:   Benjamin Thiel <b.thiel@...teo.de>
To:     Borislav Petkov <bp@...en8.de>,
        Boris Ostrovsky <boris.ostrovsky@...cle.com>,
        Juergen Gross <jgross@...e.com>
Cc:     x86 ML <x86@...nel.org>, LKML <linux-kernel@...r.kernel.org>,
        Benjamin Thiel <b.thiel@...teo.de>
Subject: [PATCH] x86/xen: Fix a -Wmissing prototypes warning for xen_start_kernel()

Fix:

  arch/x86/xen/enlighten_pv.c:1212:34:
  warning: no previous prototype for ‘xen_start_kernel’ [-Wmissing-prototypes]
  asmlinkage __visible void __init xen_start_kernel(void)

Add a prototype for xen_start_kernel() in a separate xen-specific header.

Signed-off-by: Benjamin Thiel <b.thiel@...teo.de>
---
 arch/x86/include/asm/xen/setup.h | 7 +++++++
 arch/x86/xen/enlighten_pv.c      | 1 +
 2 files changed, 8 insertions(+)
 create mode 100644 arch/x86/include/asm/xen/setup.h

diff --git a/arch/x86/include/asm/xen/setup.h b/arch/x86/include/asm/xen/setup.h
new file mode 100644
index 000000000000..b7bd97f4b837
--- /dev/null
+++ b/arch/x86/include/asm/xen/setup.h
@@ -0,0 +1,7 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+#ifndef _ASM_X86_XEN_SETUP_H
+#define _ASM_X86_XEN_SETUP_H
+
+asmlinkage __visible void __init xen_start_kernel(void);
+
+#endif /*_ASM_X86_XEN_SETUP_H */
diff --git a/arch/x86/xen/enlighten_pv.c b/arch/x86/xen/enlighten_pv.c
index 35321f4d49f1..dc0850f09c70 100644
--- a/arch/x86/xen/enlighten_pv.c
+++ b/arch/x86/xen/enlighten_pv.c
@@ -55,6 +55,7 @@
 #include <asm/xen/hypercall.h>
 #include <asm/xen/hypervisor.h>
 #include <asm/xen/cpuid.h>
+#include <asm/xen/setup.h>
 #include <asm/fixmap.h>
 #include <asm/processor.h>
 #include <asm/proto.h>
-- 
2.20.1

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ