Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp2987926ybg; Sat, 6 Jun 2020 07:30:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzhIRzN4ivdIr4qyonNQ0oXmst1l60mgZqLnkeEA4QdzgFMZeYTD7RS93XzEP1rzVuLO0Sh X-Received: by 2002:a17:906:7c82:: with SMTP id w2mr12945594ejo.296.1591453833345; Sat, 06 Jun 2020 07:30:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591453833; cv=none; d=google.com; s=arc-20160816; b=AQTltR5xJ3vd0SRqrRejbTncGIXDd45rm03gaF9NvPdqcDTQTqnM1nwtk+7IzvGHtQ RaVgIk+HcGboi48wRQT/RnXZdf77MNBm4L5FuNwneEpgAeYSqhSyTHe/6jIzxRKE9YxX VtXQd3awWPNfxLENml/Mjd8DCCpZ9tayIdh8H6dps/rFnHDoRBfyMBpoB+O+q3llOQ1N ADoEZ2/QQVWZjp9w4l/KUI9COwNcAECDMtSphDef5C9LI3PsJ3VsBmsWnL4zzsNTsDcn zEFHBnzdHeYILnUExKra4XnwksiC5sdj0djiROTgR+nIIT+QJQKUNDnyhIxfERbtzrKC kRFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=qdzxm9qZRDId7OJbVdh5olGGoJ/0XSMMKiXrX0rhHTQ=; b=z6wOz5zBZ2CIeGoT045f11SvalbGd0rOgkA50kpsuRRn/NMr2l2rc4Dm4nDcurIG1T DzjtYjB0HexPhEtr2kCkFcfXqOky+e1NPNGX4oeb0W17lRdH+E7vJ2ZEaOQhIdV2NFGz gk9Cu/FZ6Gfd1XaFACqHwZGVXz2HugTN6qwlVzn7z48ukLyRJzZM2pNGXPMegjxtLBLv GfHGkOwS+HdMqzi0gvbpHBhbwK4q5wcSBo2NiKaxfZ7a42Nf+Oy3i4htkt6rjf58CPOO 211A2BohjBlhQf9Eb8vV/N5R8k9btngiFVHr2EkCeu1b18tgFfCu1NC7se1/+9qh22zJ 6qyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@posteo.de header.s=2017 header.b=J41o5AQf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v1si5257217edx.37.2020.06.06.07.30.10; Sat, 06 Jun 2020 07:30:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@posteo.de header.s=2017 header.b=J41o5AQf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728629AbgFFO11 (ORCPT + 99 others); Sat, 6 Jun 2020 10:27:27 -0400 Received: from mout01.posteo.de ([185.67.36.65]:53748 "EHLO mout01.posteo.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726133AbgFFO11 (ORCPT ); Sat, 6 Jun 2020 10:27:27 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 929E516005C for ; Sat, 6 Jun 2020 16:27:25 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1591453645; bh=4nxpxQrUWni6STaypYRZCfXgD235Nbb9ZEifOwmXI6I=; h=From:To:Cc:Subject:Date:From; b=J41o5AQfeYKrF+eCdIXC1X4Q7fFBGDuVRijSshR/5HJKUZMIAmgqfKpJXqStPPK8G tGRdStu7e44eyfa4ECw32IFVHvSyvzBG9h8V7udejiOcpPd1r9CHmAYT/WXEpcu8HE SPsGx53E+Ot0tDdwYTVd1FjoJXz4dadlytpWffwREDT3DXsn7bubk51GL2n3EBUCU+ TOqZkRLUD8KU7iq223hWQPadmgz0otbcw3B+YXqXJSyPVmrFFCYOD7CZCh5kwQWdcV bX4826Rp3uyS3L6K6y2LJJLyd2/YcJuUbkF+E1YZs2N6uxuLybtrZUxH38ZSxvw3Qv RIzw92R7x8qVg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 49fMKm4sdDz6tmH; Sat, 6 Jun 2020 16:27:24 +0200 (CEST) From: Benjamin Thiel To: Borislav Petkov , Boris Ostrovsky , Juergen Gross Cc: x86 ML , LKML , Benjamin Thiel Subject: [PATCH] x86/xen: Fix a -Wmissing prototypes warning for xen_start_kernel() Date: Sat, 6 Jun 2020 16:27:21 +0200 Message-Id: <20200606142721.19486-1-b.thiel@posteo.de> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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 #include #include +#include #include #include #include -- 2.20.1