From patchwork Tue Jul 2 13:02:03 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guenter Roeck X-Patchwork-Id: 11027809 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B613813B1 for ; Tue, 2 Jul 2019 13:02:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9C8B7288F7 for ; Tue, 2 Jul 2019 13:02:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 90D4D28901; Tue, 2 Jul 2019 13:02:10 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=2.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 25D75288F7 for ; Tue, 2 Jul 2019 13:02:09 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id D8B696B0005; Tue, 2 Jul 2019 09:02:08 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id D15378E0003; Tue, 2 Jul 2019 09:02:08 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id BDC498E0001; Tue, 2 Jul 2019 09:02:08 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-pg1-f200.google.com (mail-pg1-f200.google.com [209.85.215.200]) by kanga.kvack.org (Postfix) with ESMTP id 84EBE6B0005 for ; Tue, 2 Jul 2019 09:02:08 -0400 (EDT) Received: by mail-pg1-f200.google.com with SMTP id f18so2996359pgb.10 for ; Tue, 02 Jul 2019 06:02:08 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:dkim-signature:sender:from:to:cc:subject:date :message-id; bh=khyDU3y3brXaa9hnvY2oQK5kO8QsNPfjkHRRye2R9w0=; b=UOmDlTffmU1kmm5wjyTh9K0+eqD/NcXJpfbtl7KMDp8PaqwuGDMT/TAkyPF+iTW3v8 YKqefAaJQFoEiE6z3KKrrpV/B3sDlJhxiXxUy9y7LnBnOEui7lNPz0CGdLrC00KmNCJ1 07l4mO4xM3N+LfdV3XYeu4x0awa/TSaA7KTyZeruPAa8B/ucxSvLY2C0p/8wPSuGAmxO YPURygWm/fu6oXv3jdEWnyNOFm9LzyOHDuE7QMrU4LGyipiUzxdbMP4rzkC1WA5F3inq 5XfRoE+D7Jbs4/pZPCj/j+MJwOt5a71HOgz4TgigcxqhzyeqWNzUDXixcicvtJSPJPSP 5TTQ== X-Gm-Message-State: APjAAAVPEm6KhxsbvYMr/Dyt3a1aRPALW+54buX43+O71FyjllMpaXbF vdFni6UMyiTXzKoKdIYyK9uUMzG2bLdMdn7eejgWW04aTSsykXin1Rweh2kD7rShHW97DtY7tQt 1vKaEjMZxeT/7CM/zxJG2TAC3pDzV/8ssAiXkv7IK4G88v5yG2IOrNtERAJQOnB4= X-Received: by 2002:a17:90a:ac14:: with SMTP id o20mr5591895pjq.114.1562072528078; Tue, 02 Jul 2019 06:02:08 -0700 (PDT) X-Received: by 2002:a17:90a:ac14:: with SMTP id o20mr5591792pjq.114.1562072527122; Tue, 02 Jul 2019 06:02:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562072527; cv=none; d=google.com; s=arc-20160816; b=rrCFw2kqKyOdldKCp+0gC5MmTsbfTZV2T7mfTmWsh0Z7acYqwo50fxxhnZb8/8S5mb 7OLUP8ovcp3nCBL/GS8j+30cfDWCqpSVoJWu5ZNTj0jimwlDt8lyTMq8XnsnAynyxRwn fkhqitX+EIhyMsEAzM/bMvA7gVlEXg3dwciQAu6e+uwDpnl2uDeCarTHE2bVg5WSVcsi FEoWI67PYBSBPE1lKMcd5NcXqjC0r103CbZbHESypVt0GiJLdgLEusfLoIpLECZzkeZZ FmdaLh/yN6WsTHSGLho6oLEP2zdom3ti6fmPHuqGY5YPaeyELIqBBB7K/hT3V3Mk/exI 4ohg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:subject:cc:to:from:sender:dkim-signature; bh=khyDU3y3brXaa9hnvY2oQK5kO8QsNPfjkHRRye2R9w0=; b=g8VWNh9nc1D4HYABL5HUv9/tVIuMcJuhWABFtI+PsdCMKaYtFZPA1P/s8NAzN/8A0e la5L0cz4zlqd+eHyi1kFARMfIFLZ9rbdbWtejcCMzN4iBxljzWuMuF0PXcmeWZzhLrjM 2mDLXb/kuIizvV9G/j6Y7LHbjmWnJqtqkVQSscBbTWlv2gOLGrb/t6vJ9b1RLEMig+4p b58sfUo56w2xaeF9QmkEuZuksDBZHwi9YhPv3yqE6wSzyURhcyn0SYEKPDZcorkMRjFl 2N9ueWn59DcklIEzhcfWlt5omT1WMZv/TwbAStAJ9K29yoS6209NYwE4cExeLkMuFsV/ UGMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=pw4CVxvB; spf=pass (google.com: domain of groeck7@gmail.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=groeck7@gmail.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id m39sor16043483plg.49.2019.07.02.06.02.06 for (Google Transport Security); Tue, 02 Jul 2019 06:02:07 -0700 (PDT) Received-SPF: pass (google.com: domain of groeck7@gmail.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=pw4CVxvB; spf=pass (google.com: domain of groeck7@gmail.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=groeck7@gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id; bh=khyDU3y3brXaa9hnvY2oQK5kO8QsNPfjkHRRye2R9w0=; b=pw4CVxvBDMiI9DQXD67VcLNExsOKGO6Zdy5ZP+qlcS8miUB1MOr0/i+v96aAF6xyFM CmT33pBdJkWArwAqk/lsrdmlxAgq9gjOm3ExOQRf3ezYc4KwEC75XoeC3uZL9uMEzzFK sw4fO/94cXLyEkjHpEBHeDH9tuW4eSzm567+gvBGpnzwTUlEXuAjjnh48qq/00SgIozW 9P8TLdZgqvNMB9VodK6G0wU0A0n15/BCL3jEqCgyOD/QmI5xUfPdwA4G4evZQC+pfFxH kBX1ye9eVireEvfCwY7gTyNgH94dU2KrCFoXlxQJeePUOaUkFp5fWhyXz6mIUxtB+bkn rUVA== X-Google-Smtp-Source: APXvYqzB1pF/qUqyAlCHdAxDN/p/CNLQWGgTzgY98AvJhwovS+uWV6NhSEOB0TQnHROUBBMuc/ZzeA== X-Received: by 2002:a17:902:2868:: with SMTP id e95mr32933747plb.319.1562072526735; Tue, 02 Jul 2019 06:02:06 -0700 (PDT) Received: from localhost ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id z22sm10855267pgu.28.2019.07.02.06.02.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 02 Jul 2019 06:02:05 -0700 (PDT) From: Guenter Roeck To: Andrew Morton Cc: linux-mm@kvack.org, Stephen Rothwell , Robin Murphy , linux-kernel@vger.kernel.org, Guenter Roeck Subject: [PATCH -next] mm: Mark undo_dev_pagemap as __maybe_unused Date: Tue, 2 Jul 2019 06:02:03 -0700 Message-Id: <1562072523-22311-1-git-send-email-linux@roeck-us.net> X-Mailer: git-send-email 2.7.4 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: X-Virus-Scanned: ClamAV using ClamSMTP 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. Signed-off-by: Guenter Roeck --- mm/gup.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mm/gup.c b/mm/gup.c index 7dde2e3a1963..95a373bd8f21 100644 --- a/mm/gup.c +++ b/mm/gup.c @@ -1785,7 +1785,8 @@ static inline pte_t gup_get_pte(pte_t *ptep) } #endif /* CONFIG_GUP_GET_PTE_LOW_HIGH */ -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)];