Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3801331ybi; Mon, 29 Jul 2019 12:54:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqx5NsL5EMHnMFCoSJU+EmK2estN/fHZ5XaXaNhhePh4igR4Jol6Q3ZIPCAaWDfu72Q1gpeH X-Received: by 2002:a62:ac11:: with SMTP id v17mr38304712pfe.236.1564430068962; Mon, 29 Jul 2019 12:54:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564430068; cv=none; d=google.com; s=arc-20160816; b=pd5LVyaTi47YmimEFHcTy1hFSh9NQ+J9UNezSDw6eo7FeAJhHokp20C91jqm/w7yUe QQopaOKAs9VGvePPW/S4fC5Kz1qn/9ux6RP/wqLYKZT+t2Pj9zvmniu8Vg+VHnPYf/Se RVvKDDM5WTwzjr4E8KNWNWDOiZt9X7i4/GhaqTJgDH0w1U71U4OsbZ2QB1mS+X1mMZ9C 4mOeXfK6Sc273ODZTeg28BA6gmfIrv87rFlF2/1AEydArCriYDnlLGzVfAbyfWsbOmuW VQCYg6NwDRDFHi2mkpia5whpIfk3CrneXQ4dXmTbqzBYyduIMOqylPUkb/IP6rbBghav zqvQ== 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:dkim-signature; bh=CjR2qgNqknoxJ11eD4OLSkGqI/BRmtn7Sict3ONkkfo=; b=HYkFQ5wKTRDIK8X0G+eKKnnoMj+Muq5zxt0ibOZfDCqzRZ1TmIZyXKVHc0m7xUy4Zg PajZBnumJzhYZJ7ONw/tM+mC34uNKqcOMxcSLrXM4+Gp69qI34vkXfEGPZWWck6n6Nr9 tsLKAcayixwNADZb/adFHCe2ti0Vy2vbI5AsPvXcwICJMRfycfBQH9gTBDOedWdUKYc2 w0eTn1dYM+hEftLg8BFpRHnRosU0HevYA0QqOwzxTdYSFMutyyRE3o97dcMWP5qaaETC 7+OQxcsW39LN5eQzh1yVqXxEw4baixny/KMKbFfHjSXG6TYDxiz5wlkg/8nxkQ0XyIgp scTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="NFH18Y/x"; 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 n17si25144455pgh.164.2019.07.29.12.54.14; Mon, 29 Jul 2019 12:54:28 -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; dkim=pass header.i=@kernel.org header.s=default header.b="NFH18Y/x"; 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 S2403944AbfG2Tw4 (ORCPT + 99 others); Mon, 29 Jul 2019 15:52:56 -0400 Received: from mail.kernel.org ([198.145.29.99]:44734 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390673AbfG2Twv (ORCPT ); Mon, 29 Jul 2019 15:52:51 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 72F4321655; Mon, 29 Jul 2019 19:52:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1564429970; bh=mpUrB5KfJ0643rT7LOiyqKYQaE6fRuC9yhPZj98bcEI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=NFH18Y/xmAhqpvK604s55vN28G8dYPPln65DSeb/ofzUTehKwV0nuNeAzGXXt5yx9 SnG0TqZLiDk+qYHQ27VbdxEB/cL1Pqs33l5OAo+FQ+XCP2nomd8Axd7TNFQx5ciSSa JO3+5dDAY1mUmoGAVSH1EdAsh2jji4/7/sJYLPoE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Guenter Roeck , Andrew Morton , Stephen Rothwell , Robin Murphy , "Kirill A. Shutemov" , Linus Torvalds , Sasha Levin Subject: [PATCH 5.2 153/215] mm/gup.c: mark undo_dev_pagemap as __maybe_unused Date: Mon, 29 Jul 2019 21:22:29 +0200 Message-Id: <20190729190806.302150907@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190729190739.971253303@linuxfoundation.org> References: <20190729190739.971253303@linuxfoundation.org> User-Agent: quilt/0.66 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 [ Upstream commit 790c73690c2bbecb3f6f8becbdb11ddc9bcff8cc ] Several mips builds generate the following build warning. mm/gup.c:1788:13: warning: 'undo_dev_pagemap' defined but not used The function is declared unconditionally but only called from behind various ifdefs. Mark it __maybe_unused. Link: http://lkml.kernel.org/r/1562072523-22311-1-git-send-email-linux@roeck-us.net Signed-off-by: Guenter Roeck Reviewed-by: Andrew Morton Cc: Stephen Rothwell Cc: Robin Murphy Cc: Kirill A. Shutemov Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds Signed-off-by: Sasha Levin --- mm/gup.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mm/gup.c b/mm/gup.c index ddde097cf9e4..22855ff0b448 100644 --- a/mm/gup.c +++ b/mm/gup.c @@ -1696,7 +1696,8 @@ static inline pte_t gup_get_pte(pte_t *ptep) } #endif -static void undo_dev_pagemap(int *nr, int nr_start, struct page **pages) +static void __maybe_unused undo_dev_pagemap(int *nr, int nr_start, + struct page **pages) { while ((*nr) - nr_start) { struct page *page = pages[--(*nr)]; -- 2.20.1