Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3814641ybi; Mon, 29 Jul 2019 13:09:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqyJuzq41Td9e353pE1zNmNCZ83tnL/rnScFuLg25aYxXpXASPxGmy/344juE97CDfjZhGT5 X-Received: by 2002:a17:902:a417:: with SMTP id p23mr110344463plq.136.1564430950931; Mon, 29 Jul 2019 13:09:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564430950; cv=none; d=google.com; s=arc-20160816; b=xzywYpd9zFNPkyIGOUuXl3oxrIZ0xuZuA3i4quvvJwjIYiy9dIXS9jVHdMCd2BN/PY pdCcyp+yw5QNY1FZe9ROgHNAQ5Sz/wXDUISRIJxZQ/V/ogf0GrdL8zVm7ns7Ddd2hjWp RJ1fLJf+HHfoNxpS8Ud4altn9WEzPep8+avmiqN4/HQKQd2h2vSh2F01SyqqsEISVHrL pPNuUrq1II/LD5FrHhmm15b2aBvB8Gn/40U6MqGX5MlpH/wIavYEvkvS+Gv34SHZ/saH m4q2YId9BcoiOQaCT69AOnFzUDWyyDfpTIerVLiWJAO9vIfobk9Dqt3/nQxUxUDRn56R M0Dg== 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=ggKrwst30nw/mwWhyQiSTy6Sjxf+aITulS+e7CpjxkQ=; b=EsKizfzia/cIKUnazFHpwySaa7VRFoPZDT7CG60BsyIVT+vzq8e15lYS6A0M9VhffU OcrMnEh+vkpC6tz3gHxUNo310DMgurrGyaivei4j8cKrwkqxbb8jNYbVaTeP/NmSyEml MYLZ2A/yu+2Vjd6eNzo2M0yQsV36so/p/RvflIBh0ca0Boy9c2jcVAVCdMTZofwBwzEj UEpl9Rrbirpy3X/Si1zlnHOZwL+xm5ybqOs23fAud8umM6wH8zNTIfHc0j8GLzIPeUbO on2UngqEw5PZqaj15wONYN60r3cYdrwM3HjeTTNWTZo0ZvLUczocX8DNKqQ1amXNmjjZ DwXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=nbMnbzG4; 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 o8si27668904pgj.239.2019.07.29.13.08.55; Mon, 29 Jul 2019 13:09:10 -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=nbMnbzG4; 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 S1730111AbfG2UHi (ORCPT + 99 others); Mon, 29 Jul 2019 16:07:38 -0400 Received: from mail.kernel.org ([198.145.29.99]:54036 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388921AbfG2TjC (ORCPT ); Mon, 29 Jul 2019 15:39:02 -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 96C6E206DD; Mon, 29 Jul 2019 19:39:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1564429141; bh=hIvLzSMFIklJ8+m8wmolvyy/M8acELv/Jtlw11xSbsU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nbMnbzG4RU6gQasoqf7CSAGP4Lt4e720kABAS30DKStmHiZ/DOo9WanaG9EhGwJKv tcpDTfreW/HcpLvcUMe1iGKc4tEi+P5vO/FMljDorDmh+xmi4b6KZf70+01J65LvvW Sf82W43NIFfhPNOB5K42SbCRJzRwx5axJTY/i360= 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.14 273/293] mm/gup.c: mark undo_dev_pagemap as __maybe_unused Date: Mon, 29 Jul 2019 21:22:44 +0200 Message-Id: <20190729190845.233364232@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190729190820.321094988@linuxfoundation.org> References: <20190729190820.321094988@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 babcbd6d99c3..cee599d1692c 100644 --- a/mm/gup.c +++ b/mm/gup.c @@ -1364,7 +1364,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