From patchwork Tue Oct 22 12:52:51 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ben Dooks X-Patchwork-Id: 11204367 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2F51614ED for ; Tue, 22 Oct 2019 12:54:19 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 1569C2075A for ; Tue, 22 Oct 2019 12:54:19 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1569C2075A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=codethink.co.uk Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1iMten-00019T-6S; Tue, 22 Oct 2019 12:53:01 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1iMtel-00019N-Vv for xen-devel@lists.xenproject.org; Tue, 22 Oct 2019 12:53:00 +0000 X-Inumbo-ID: def3ed62-f4ca-11e9-9468-12813bfff9fa Received: from imap1.codethink.co.uk (unknown [176.9.8.82]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id def3ed62-f4ca-11e9-9468-12813bfff9fa; Tue, 22 Oct 2019 12:52:57 +0000 (UTC) Received: from [167.98.27.226] (helo=rainbowdash.codethink.co.uk) by imap1.codethink.co.uk with esmtpsa (Exim 4.84_2 #1 (Debian)) id 1iMteg-0002LV-0H; Tue, 22 Oct 2019 13:52:54 +0100 Received: from ben by rainbowdash.codethink.co.uk with local (Exim 4.92.3) (envelope-from ) id 1iMtef-00017r-GW; Tue, 22 Oct 2019 13:52:53 +0100 From: "Ben Dooks (Codethink)" To: linux-kernel@lists.codethink.co.uk Date: Tue, 22 Oct 2019 13:52:51 +0100 Message-Id: <20191022125251.4284-1-ben.dooks@codethink.co.uk> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Subject: [Xen-devel] [PATCH] xen: mm: make xen_mm_init static X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: xen-devel@lists.xenproject.org, "Ben Dooks \(Codethink\)" , Stefano Stabellini , linux-arm-kernel@lists.infradead.org, Russell King Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" The xen_mm_init is not exported or used outside of the file it is declared in, so make it static. This fixes the following sparse warning: arch/arm/xen/mm.c:136:12: warning: symbol 'xen_mm_init' was not declared. Should it be static? Signed-off-by: Ben Dooks (Codethink) Reviewed-by: Stefano Stabellini --- Cc: Stefano Stabellini Cc: Russell King Cc: xen-devel@lists.xenproject.org Cc: linux-arm-kernel@lists.infradead.org --- arch/arm/xen/mm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/xen/mm.c b/arch/arm/xen/mm.c index 6feb6b78b13c..3c7645d7b9b4 100644 --- a/arch/arm/xen/mm.c +++ b/arch/arm/xen/mm.c @@ -134,7 +134,7 @@ void xen_destroy_contiguous_region(phys_addr_t pstart, unsigned int order) return; } -int __init xen_mm_init(void) +static int __init xen_mm_init(void) { struct gnttab_cache_flush cflush; if (!xen_initial_domain())