From patchwork Fri Jul 6 11:54:58 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Anders Roxell X-Patchwork-Id: 10511421 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 61115603D7 for ; Fri, 6 Jul 2018 11:55:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 514EE2859A for ; Fri, 6 Jul 2018 11:55:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 458B5285C5; Fri, 6 Jul 2018 11:55:20 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DDF492859A for ; Fri, 6 Jul 2018 11:55:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932546AbeGFLzS (ORCPT ); Fri, 6 Jul 2018 07:55:18 -0400 Received: from mail-lj1-f193.google.com ([209.85.208.193]:44379 "EHLO mail-lj1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932498AbeGFLzR (ORCPT ); Fri, 6 Jul 2018 07:55:17 -0400 Received: by mail-lj1-f193.google.com with SMTP id q127-v6so8355284ljq.11 for ; Fri, 06 Jul 2018 04:55:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=yFgmhAEN5T/kQI4KTP/dupJRtjZaMlk6K4+2n/Xul40=; b=bVOrnvE1A26wmxZRKEHpyGssi6W7NgTAR5cJbS0rIYqCig9ymhK9kkJ19wwuYPkGsR 9aBnEoTg8B8EvRgy6u/RvEEsBeks5w7zlNx/GVebaRpl8ZODdFgl1wRSu9Q5KYaIdLlJ QkXoSBdNf6r/9ouIxSMYxepVcW6u53RjPG/6I= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=yFgmhAEN5T/kQI4KTP/dupJRtjZaMlk6K4+2n/Xul40=; b=VlTOjQXMq5oG2vaqyUFipa7Zm4haqdGiNhq6ZL2+06XdMcQHb+HhdDyd8BiX6L0FM3 4FHWs6FrQczZLWGrV8PE58Ik9DjB/OwOCmzI0mNFdlN304L9KyTHPPitDjQLy3K1Zt2b 4rcNFQ985lFnQmN6IjtttySIB/Js0tdhlSZ0qb7Cl5KeKRSdyNiF1Fdf8jgIyGlS4ILP joJNzvaADrKwzRf4YqwDVwIRK7RyGr1lMbAGfypt29UVw88Ur8C2RVqLCpHxV+KoC7FF 0L7u76OLhB38AU68u0tHrMl72SzHcYQ8wl21RWotmIvhdHTZlkrxgz7yBAxlgTwgrfq9 J+1Q== X-Gm-Message-State: APt69E1N/zKdYUuIvuBAsedQSaL5aSRMU1rpmpIizMhJmuZubjzCoyDr ljtHjBVqPANW4A7M+8eyqBmxHg== X-Google-Smtp-Source: AAOMgpfDxwRepiLJEloAqs8t+a1uOOyvT5kAryhvRueIbPi+fLM99lfrc5wpe4cuLbXPGfAyB0XRkw== X-Received: by 2002:a2e:80d3:: with SMTP id r19-v6mr4209593ljg.85.1530878115666; Fri, 06 Jul 2018 04:55:15 -0700 (PDT) Received: from localhost (c-2c3d70d5.07-21-73746f28.bbcust.telenor.se. [213.112.61.44]) by smtp.gmail.com with ESMTPSA id a5-v6sm2070973lfb.37.2018.07.06.04.55.14 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 06 Jul 2018 04:55:15 -0700 (PDT) From: Anders Roxell To: viro@zeniv.linux.org.uk, willy@infradead.org, ross.zwisler@linux.intel.com Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Anders Roxell Subject: [PATCH] fs/dax: remove unused function Date: Fri, 6 Jul 2018 13:54:58 +0200 Message-Id: <20180706115458.7792-1-anders.roxell@linaro.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180629173055.GA2973@linux.intel.com> References: <20180629173055.GA2973@linux.intel.com> MIME-Version: 1.0 Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP When CONFIG_FS_DAX is enabled we get this warning: fs/dax.c:106:14: warning: ‘dax_make_page_entry’ defined but not used [-Wunused-function] static void *dax_make_page_entry(struct page *page, void *entry) ^~~~~~~~~~~~~~~~~~~ Remove the unused function. Fixes: 9bfcbe5ef12f ("dax: Convert dax_lock_page to XArray") Reported-by: Ross Zwisler Signed-off-by: Anders Roxell --- fs/dax.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/fs/dax.c b/fs/dax.c index fcf1332dcb0a..6e6cae1db520 100644 --- a/fs/dax.c +++ b/fs/dax.c @@ -103,12 +103,6 @@ static void *dax_make_entry(pfn_t pfn, unsigned long flags) return xa_mk_value(flags | (pfn_t_to_pfn(pfn) << DAX_SHIFT)); } -static void *dax_make_page_entry(struct page *page, void *entry) -{ - pfn_t pfn = page_to_pfn_t(page); - return dax_make_entry(pfn, dax_is_pmd_entry(entry)); -} - static bool dax_is_locked(void *entry) { return xa_to_value(entry) & DAX_LOCKED;