Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3813022ybi; Mon, 29 Jul 2019 13:07:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqzc1aD8rmgXemD69o0qDKKyvb4kKTvJzqOuLn80Cf5twYylbAlDteod0DIEoHi5oOoTnxIT X-Received: by 2002:a17:90a:7f85:: with SMTP id m5mr113278888pjl.78.1564430846795; Mon, 29 Jul 2019 13:07:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564430846; cv=none; d=google.com; s=arc-20160816; b=oRWXccfNI5AKJvTY2s2vfnhQtHK4EI/5eOsjI2qLFDNTmNN0DTaip15jKrscLHH87v nQDJAwlzIKiNFp5hb9zId7xezSzYb++PWyZP6J17lpcPuSJ4t0/63WSXZmCW1z5B4GZL cweKagxfXCOH5cf0T0c4fP28K4uF60pc2fg6HX4/RLH0Vtx7HhPwcdsJ7i1wzmLgTVxC y4nsJpl1uW63Qmm8xEoe159zutC0tIimiEv0fmmdislp0rKFD9qJMJqOm6ft39343KkB yDc1xpj5cflnFxozZOA3yQD/73Hvabvf8RBKEpT/8fvPFS6uhrLBpKVpnoo3eNZu1GKn clqA== 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=gEROKlQS8n/JjXMUUpWMR+YTHZdCuSU3zOuNuiuojt4=; b=xR8t4wP09UpKHaheVm5uGlEnr9IkesA6acRiPyE7GKoDOq6AUOtfWvoyC47leF/Oys vXeKYoX0J/cjjAHPPmkSox9lag8bTaSB5xlu/kw0kzFcmI4hYBUYZ/L6lfBx38oVtwHO +8Pj1ugW9kFhm/u5awNNdcQW9+HRAfDm7HGlXNuECW8jqRxka6bTYLZuKMUkNqo76Ea2 sqyhA2wX00LZQzD97Pu5sScKbTF4Y4rt4nZ05l0R6QblmsCv6jcwtIjQ7XUXFKKGt+Z6 rLP9Ty2XbWsWAYJrbFBTF/hNSUVNYpvOB3KgVoXf0TPr/Pg3MfBE2RmgaHNU6nTTVoHI PaAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=meOYiZja; 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 p1si24586729plr.103.2019.07.29.13.07.11; Mon, 29 Jul 2019 13:07:26 -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=meOYiZja; 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 S1729430AbfG2TnT (ORCPT + 99 others); Mon, 29 Jul 2019 15:43:19 -0400 Received: from mail.kernel.org ([198.145.29.99]:59464 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389321AbfG2TnR (ORCPT ); Mon, 29 Jul 2019 15:43:17 -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 5AE1B21655; Mon, 29 Jul 2019 19:43:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1564429396; bh=75bIZkEY8lHjMkqWn5U4NGFfy/4ukdRLtigCv2Eknhw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=meOYiZjaZEOHZ6B46yAbMm884usdlNB7hPC/gcmO7KekxVGfGY8WzhTP3pNfJk4Rc VcOkmfKe2kgjktUAm4vbRmWllTPTnxk6eqyvmBiZrU8a0vK80UQrS8SJScDKC9g3SY ksqLk9S6lbNgT7VW2Yotqgr/tmCj5xwn7ovRBJqE= 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 4.19 085/113] mm/gup.c: mark undo_dev_pagemap as __maybe_unused Date: Mon, 29 Jul 2019 21:22:52 +0200 Message-Id: <20190729190715.840669831@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190729190655.455345569@linuxfoundation.org> References: <20190729190655.455345569@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 caadd31714a5..43c71397c7ca 100644 --- a/mm/gup.c +++ b/mm/gup.c @@ -1367,7 +1367,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