From patchwork Sat Nov 14 02:54:23 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yaowei Bai X-Patchwork-Id: 7616481 Return-Path: X-Original-To: patchwork-linux-fsdevel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 0C52DBF90C for ; Sat, 14 Nov 2015 03:06:37 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2F4A020638 for ; Sat, 14 Nov 2015 03:06:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5D6042063E for ; Sat, 14 Nov 2015 03:06:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752493AbbKNDFe (ORCPT ); Fri, 13 Nov 2015 22:05:34 -0500 Received: from cmccmta1.chinamobile.com ([221.176.66.79]:4354 "EHLO cmccmta1.chinamobile.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751184AbbKNDFd (ORCPT ); Fri, 13 Nov 2015 22:05:33 -0500 X-Greylist: delayed 545 seconds by postgrey-1.27 at vger.kernel.org; Fri, 13 Nov 2015 22:05:32 EST Received: from spf.mail.chinamobile.com (unknown[172.16.121.19]) by rmmx-syy-dmz-app04-12004 (RichMail) with SMTP id 2ee45646a2d8001-2ca1c; Sat, 14 Nov 2015 10:56:25 +0800 (CST) X-RM-TRANSID: 2ee45646a2d8001-2ca1c X-RM-SPAM-FLAG: 00000000 Received: from localhost.localdomain (unknown[117.81.159.31]) by rmsmtp-syy-appsvr10-12010 (RichMail) with SMTP id 2eea5646a2d70de-9d976; Sat, 14 Nov 2015 10:56:25 +0800 (CST) X-RM-TRANSID: 2eea5646a2d70de-9d976 From: Yaowei Bai To: viro@zeniv.linux.org.uk, akpm@linux-foundation.org, mikulas@twibright.com, ooo@electrozaur.com Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] include/linux/kdev_t.h: remove new_valid_dev() Date: Sat, 14 Nov 2015 10:54:23 +0800 Message-Id: <1447469663-3631-2-git-send-email-baiyaowei@cmss.chinamobile.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1447469663-3631-1-git-send-email-baiyaowei@cmss.chinamobile.com> References: <1447469663-3631-1-git-send-email-baiyaowei@cmss.chinamobile.com> Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org X-Spam-Status: No, score=-7.2 required=5.0 tests=BAYES_00,HK_RANDOM_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP As all new_valid_dev() checks have been removed it's time to drop new_valid_dev() itself. No functional change. Signed-off-by: Yaowei Bai --- include/linux/kdev_t.h | 5 ----- 1 file changed, 5 deletions(-) diff --git a/include/linux/kdev_t.h b/include/linux/kdev_t.h index 052c7b3..8e9e288b 100644 --- a/include/linux/kdev_t.h +++ b/include/linux/kdev_t.h @@ -35,11 +35,6 @@ static inline dev_t old_decode_dev(u16 val) return MKDEV((val >> 8) & 255, val & 255); } -static inline bool new_valid_dev(dev_t dev) -{ - return 1; -} - static inline u32 new_encode_dev(dev_t dev) { unsigned major = MAJOR(dev);