Message ID | 20180706115458.7792-1-anders.roxell@linaro.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp3021717ljj; Fri, 6 Jul 2018 04:55:21 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeRTVf2p3TSdHiiKPtMqkQnnfcT8jKJkWkxNRzxbcWl3TuO6377oFHWICZcSyRTKxgfL9Zy X-Received: by 2002:a63:4002:: with SMTP id n2-v6mr4446035pga.285.1530878120985; Fri, 06 Jul 2018 04:55:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530878120; cv=none; d=google.com; s=arc-20160816; b=N7gfPnKEWRb79hW0BzxlDwbiL2NI9vL91slwBiiqtcBe2xL/OKBOsXYsqYP9xrSBhi NEQhvk+S4i/if+6kBqClYL+SfclUn1+hS26AAdJMq4Tw/6/LB9Der6cGKvtq0lPFstsS kiTeQZWTbm9C5XGvELNp4hVXdfxho/juDvQKUQt0zODrjN0KxUvi6EeV+VsTvMKtF/R9 5bKI6tGDTxRsWCKdABjkKPhqobPG+wLH/y6X6AH2xPp0tr7X9vi2twfstIyvQYVibdS2 2cAFg7itbN2Kp8LYd/xDQkQ8vkTc4tiQYDv1FkZMhh4C9sPh+yquYYtcu4q/JQKOH8Sc yS7w== 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:arc-authentication-results; bh=yFgmhAEN5T/kQI4KTP/dupJRtjZaMlk6K4+2n/Xul40=; b=CqXoprj3uwO0Wf2xFz4D7vvk2jcclxxJ4rB/muxwWPN4LV67Zjr5phvR73mrIvC6h8 a+/A4V2m0rCafxJSBzSd87eKplqIQhJijY6UHLyZllHyeocsVmB39frRQPsSeopVLIb9 iVOnxSj/vK+t7GPvfs6M4TTGo9CRzEXrXBo07ZZRX0KjumRmF/8J9iW4arMmpWZvt9rO 4LukaT6hoglml9eAehOgeOtChw706p0w09outDebyiWC/082V2sBa9SC/+RgcSuFlJEt 6kWoUj0h61vvlMINWCFPWPnCPHkDGIq9awb7dqMDAOXGvsjBr60ncWZPUbfju5qWdgJg kwUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bVOrnvE1; 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=linaro.org Return-Path: <linux-kernel-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f21-v6si8985776plj.180.2018.07.06.04.55.20; Fri, 06 Jul 2018 04:55:20 -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=@linaro.org header.s=google header.b=bVOrnvE1; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932646AbeGFLzT (ORCPT <rfc822; heyi.guo@linaro.org> + 30 others); Fri, 6 Jul 2018 07:55:19 -0400 Received: from mail-lj1-f193.google.com ([209.85.208.193]:36743 "EHLO mail-lj1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932502AbeGFLzR (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 6 Jul 2018 07:55:17 -0400 Received: by mail-lj1-f193.google.com with SMTP id u7-v6so6337131lji.3 for <linux-kernel@vger.kernel.org>; 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=tT7khL3f1XEj7US858pHILONmW9Dx9ATKh0W8cjR6qKu4qjCDIaYk/N/8hvx74ImAC DOGCQ/3380q1kghaSzmv+BLo51i1U9HUyC+gwn54Q3ijDimbaV36cy51+I/RsBPsgEdL QJQm6and2LTEEMDMSdPzoIzkFyxcZFHMkDKgBaE7dzr8JRdn/wKuAmy31uNMB338WK6t o83O+7VHoTP88HQ3j/nGpMiYBNQnuO/6/ACMf3Sr+i5uX3nvUpHQqohsDz9SfFOfwXjL S3xuUHrKw0zOKk/Ceks5NMt641ogMxpT7fmuWBRtj8C4oyvRXVbDBhyKGk7Ttf1/8rzt 6SEA== X-Gm-Message-State: APt69E1+d2YoQ4H+SKBXhq1YFu43+b2qOjlv+Ra9Ju/25uSokppTs2Fy 83s0aIxtUzPpZAA94zFPYmD6gg== 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 <anders.roxell@linaro.org> 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 <anders.roxell@linaro.org> 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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org |
Series |
fs/dax: remove unused function
|
expand
|
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;
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 <ross.zwisler@linux.intel.com> Signed-off-by: Anders Roxell <anders.roxell@linaro.org> --- fs/dax.c | 6 ------ 1 file changed, 6 deletions(-) -- 2.18.0