Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp728482imm; Thu, 13 Sep 2018 06:56:08 -0700 (PDT) X-Google-Smtp-Source: ANB0VdazZte4oZD7JScIhWUOALR3YCdgZSGu10HfXNEZZrY3ENkiX3yhUQWvbcd+z8TnC+3yTbO9 X-Received: by 2002:a63:e914:: with SMTP id i20-v6mr7346717pgh.10.1536846967993; Thu, 13 Sep 2018 06:56:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536846967; cv=none; d=google.com; s=arc-20160816; b=jvGNA9t/3H28TJkbsZaS38inTc9CloW94KlG4suHnXci0xeS2z9mL7j9f77MNyPSrE QwJ4+aS3/1TKXkr2haDKsiVv5KA79tj+IdrE68Q099pt/0qAeumEtofZhwTeXkqrZhRo 0qvYCTvcygfCeuYSwgyYpjZ4KkQxlTifdZFoYbu/JtySAdMGbhJuwmSrXmDvM430vGSH 9f0IskzKX7WeKvTsuau1CrArQ+BtAQQEykDFayZ88Bhoxl2fMQ/Ci78bWdUqvw6tZ6l/ NknSars9sZyclbQf6zqdfM6SCBA372odnQ+4rfNP1rF/fx3auQ7po1JXCQ24H9a7ffrM 4aSA== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from; bh=WtpQXvgRfv3c7bEH7lya7P8hMFRIvaeOctQ5VJLBeiI=; b=hQ76TUnyHoowO+ubohFI6I4XMWOQrHueSc3iuYG+XRG4hC7hFVbtRU3jQwwLwjd+PP eBQ10Vi20/s6KUVqaMO75ZAew8Mzt0OpDQVak1ghldHtm54RhzVPtzKjNaulgIJEuEBI bn6k9uyysJzG5KokQKWZnvbJ5lU5MGeL4kISy3/DakG3CKb1v6W/W9R68LDXekK4nkuJ VQdr92DtoMjZ0+yl85Af7rlA++X5t62Boi9zKnRDp8TQndHM+vmrFN/a+ShImoABjK2/ wzdLaaYeQsa3zOVes6NPQBQ5gETQ9FFX10r7gm4CPyiRpgjDsomcEeMjCMFmPK91yFaH HhlA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 17-v6si4090630pgw.648.2018.09.13.06.55.52; Thu, 13 Sep 2018 06:56:07 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731274AbeIMTFT (ORCPT + 99 others); Thu, 13 Sep 2018 15:05:19 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:34030 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730616AbeIMTFT (ORCPT ); Thu, 13 Sep 2018 15:05:19 -0400 Received: from localhost (ip-213-127-77-73.ip.prioritytelecom.net [213.127.77.73]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 2E190D19; Thu, 13 Sep 2018 13:55:42 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Arnd Bergmann , Ganesh Goudar , "David S. Miller" , Rahul Lakkireddy , Alexey Dobriyan , Andrew Morton , Linus Torvalds , Sasha Levin Subject: [PATCH 4.18 042/197] fs/proc/vmcore.c: hide vmcoredd_mmap_dumps() for nommu builds Date: Thu, 13 Sep 2018 15:29:51 +0200 Message-Id: <20180913131843.229876419@linuxfoundation.org> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20180913131841.568116777@linuxfoundation.org> References: <20180913131841.568116777@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review 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 4.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: Arnd Bergmann [ Upstream commit a2036a1ef2ee91acab01a0ae4a534070691a42ec ] Without CONFIG_MMU, we get a build warning: fs/proc/vmcore.c:228:12: error: 'vmcoredd_mmap_dumps' defined but not used [-Werror=unused-function] static int vmcoredd_mmap_dumps(struct vm_area_struct *vma, unsigned long dst, The function is only referenced from an #ifdef'ed caller, so this uses the same #ifdef around it. Link: http://lkml.kernel.org/r/20180525213526.2117790-1-arnd@arndb.de Fixes: 7efe48df8a3d ("vmcore: append device dumps to vmcore as elf notes") Signed-off-by: Arnd Bergmann Cc: Ganesh Goudar Cc: "David S. Miller" Cc: Rahul Lakkireddy Cc: Alexey Dobriyan Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- fs/proc/vmcore.c | 2 ++ 1 file changed, 2 insertions(+) --- a/fs/proc/vmcore.c +++ b/fs/proc/vmcore.c @@ -225,6 +225,7 @@ out_unlock: return ret; } +#ifdef CONFIG_MMU static int vmcoredd_mmap_dumps(struct vm_area_struct *vma, unsigned long dst, u64 start, size_t size) { @@ -259,6 +260,7 @@ out_unlock: mutex_unlock(&vmcoredd_mutex); return ret; } +#endif /* CONFIG_MMU */ #endif /* CONFIG_PROC_VMCORE_DEVICE_DUMP */ /* Read from the ELF header and then the crash dump. On error, negative value is