Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3101365ybi; Thu, 18 Jul 2019 21:03:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqwRQAqA9mzyRQG+8Cu6olCpKAVb7fv7NKwTF5vwwMXs7NcE70LB0hLokZE7Z0NwZyOnz2PV X-Received: by 2002:a17:902:b70e:: with SMTP id d14mr53783016pls.309.1563509012667; Thu, 18 Jul 2019 21:03:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563509012; cv=none; d=google.com; s=arc-20160816; b=MfhyMaiUL2vU/+8B2NFmADQNSUuRkCcmYrKqSRrqHiyt3nPmfqlNZ5HRPwhkW3zQsA 0zZtLVGA+FHLDWZA2iCatnlB9ePN+3sv8uO/CPYUJ7XNEh82wMi78vofc9aINu+cYq8V 6eTPFvdUHja0XUK+mE40Wa2i1CogpFReJwxDmsgw8EgN4Bk6X+fbZdA2eAheFf5zSXvU x7J3eKniM2bpgkIWCJpEhtDerntH3omy/s2ZrA1bHZCOjbpgr4Uc9IP3Aol8Vd2eYgIm 1pppK1Zz+t/XAKrxqAdMuVU2saw1kTkSfJ1b2Z66lOlArER9jxnjlfzDgwoZGpCx/4q3 z/GA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=2SnQEihZXmbCxz7kEjeO3BZKTDlYsqkYF5GhuqOadJg=; b=E69pW07yyZnHMtTlHWQZplkfYitNUbl3ucYMWUD7ISpfBBAz9OS9o4i/Yx5mr0Rt3Z rlhEvx1xM85XdhUaIaMnCquu52P3ZsukMQ0CH2R019YBZBMyQq6s4JnTN9ghC9boBrcN RLP0b/5ViAZ4Yf4oPg6rFAXxF4eBJ3RpwXIWP47VsULJ228AjQ24hiibOoHfzoV4LGSE 1SzYIk+E98VKo6Fnyj5g3b0zMZt/6EWoW+NdhUXOpWBSSY1ewE4boMyZ0OxmjTsMY91x lmiPvq5QPLPCBCnjgVustfZAyyPCsvhZIVgTGl6CfRBsH8mFtifG0AKOvOdSSvZYPaVA VfPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=aPtYU8Hx; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t3si476164pfh.218.2019.07.18.21.03.17; Thu, 18 Jul 2019 21:03:32 -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=aPtYU8Hx; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729005AbfGSECO (ORCPT + 99 others); Fri, 19 Jul 2019 00:02:14 -0400 Received: from mail.kernel.org ([198.145.29.99]:33832 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729786AbfGSECC (ORCPT ); Fri, 19 Jul 2019 00:02:02 -0400 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id DAFF321873; Fri, 19 Jul 2019 04:02:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1563508921; bh=WIX+4yTSGgjulMaBlod+LF0gOGyUWTgf6fht0yor7qc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=aPtYU8HxzHVezx+iHN7CBfdflr/ZwCO2zUtpUjWE4DcNwA7stwb7PMaSkNp4W07Dn W2Cocakhvrw3d3LLrVNDJSNS7WQGlYVQdNxZhNRMosGmexSkKUoyg1Fu3YMBIBnhzd dpcFeU+2e7aseK5gCTavbp3TDeVh8AXlAShLDh7o= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Guenter Roeck , Andrew Morton , Stephen Rothwell , Robin Murphy , "Kirill A . Shutemov" , Linus Torvalds , Sasha Levin , linux-mm@kvack.org Subject: [PATCH AUTOSEL 5.2 159/171] mm/gup.c: mark undo_dev_pagemap as __maybe_unused Date: Thu, 18 Jul 2019 23:56:30 -0400 Message-Id: <20190719035643.14300-159-sashal@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190719035643.14300-1-sashal@kernel.org> References: <20190719035643.14300-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Guenter Roeck [ 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