Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp802854ybc; Sat, 23 Nov 2019 08:40:25 -0800 (PST) X-Google-Smtp-Source: APXvYqwNePUyn2GpEM98gX0DS1cg8LrWEuhx1Aj/jxmzo3yVMS87DuycKLBCH2kSiGJhr3Auctvy X-Received: by 2002:aa7:c314:: with SMTP id l20mr8016160edq.34.1574527225228; Sat, 23 Nov 2019 08:40:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574527225; cv=none; d=google.com; s=arc-20160816; b=pu/AaeS+4hNFxoXRMHcO1Ev6ORdfWkrK1aEe8UVeHrKkBvi9AVbVFYqzK58IwCLVLu VK0S0a4LbRsce7ijwepAOdBFY/kRXBcx7M7rJ0+rquyPN8Tjpvkgj3U2oxBSCbO9d85C WqL9pOOB6BeJ0PyB2CBVKniFiB+C3SDazDHZ2E5O/0zAUBfPrWek3tjZDpFd3eg2pgE3 7Uvw9DZ7BlA74L3zDtIsuyU9sjt2/ndpteQiVNtktDKykiQOAlDYxOxnQ6LfjUgKaYCD 8+3OUFEaf6CFs3bPNwH1ZmAempIWQxLblDdEOTEVnmZaRkrBwsupQrxdN2RgYooisPkK bxOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter; bh=jrbt1QEkqhIaRtOZNi98ujxsBHB0idjKNS+OyxTL/hw=; b=DFUjms2OufOajIZkRH3QFMpTAbOWw0qHKhKSWAofoQySBvzaxIA4id4Soebb10Doow ez8J22isd8BLpzP+4mZcbHJk7fHCQCNz2PDIIRYeRcq/zrR2NzL1i2RM9PnLTrsnJXW/ 8d/awebjzx6z8Qaxkn4/WpQC3LZP0lD6505Lvwh9U16KEHFpxeTI+3btGPJzTS9FJJ0s BzVwkY9g5d1OrCZJ+F+t+10yVwYVLjHQ6kPMrc74mB6kzeEeib8sJqV9kJ7Ch4ov7lZM mlhR1WkNOefqYvmMaVo5/mv4LSKPgbmmQhfKFhDZ6HA2iOAJyw/4tLhItBMJ8UuFXA+V XMsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=BDYqmbmU; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m14si1077294edp.78.2019.11.23.08.40.01; Sat, 23 Nov 2019 08:40:25 -0800 (PST) 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=@nifty.com header.s=dec2015msa header.b=BDYqmbmU; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726825AbfKWQhH (ORCPT + 99 others); Sat, 23 Nov 2019 11:37:07 -0500 Received: from conuserg-08.nifty.com ([210.131.2.75]:64650 "EHLO conuserg-08.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726757AbfKWQhH (ORCPT ); Sat, 23 Nov 2019 11:37:07 -0500 Received: from grover.flets-west.jp (softbank126093102113.bbtec.net [126.93.102.113]) (authenticated) by conuserg-08.nifty.com with ESMTP id xANGaggd001459; Sun, 24 Nov 2019 01:36:43 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-08.nifty.com xANGaggd001459 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1574527004; bh=jrbt1QEkqhIaRtOZNi98ujxsBHB0idjKNS+OyxTL/hw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BDYqmbmUPVGJzTgpMrQnm6OkUxml0x363j/ZXGqrAKwcLKCYBEdZRzgXJ6ySGL6uM rC81yfmHUcDn4d9S1xt8bp3gZJcDIJosZk+J3SWnefHZ4rmETRFd3QLJxrgArb6PCK GN12pDFuuTZDuLpiJBg+BWsIQoQ3BQLfMVnxCGgN41bsDYFZhg0aw0l+r6dNIFjEfF xCFqVDKJcJTMHDE+7iXWdZR7WxnnS4JdI7tfAWL2m+uzZIMU9DjbjVjRr9tX89rK1z GBO9GzVNS1gNCMNlBwzO6p4VS/m7lXTtYhvQRxfnAG/XfGaWSR5DM2zMOkwjcEWWLE oDeG3SVYKSOXA== X-Nifty-SrcIP: [126.93.102.113] From: Masahiro Yamada To: Greg Kroah-Hartman , "Rafael J . Wysocki" Cc: Paul Gortmaker , Masahiro Yamada , "Rafael J. Wysocki" , linux-kernel@vger.kernel.org Subject: [PATCH 2/2] debugfs: remove modular code Date: Sun, 24 Nov 2019 01:36:33 +0900 Message-Id: <20191123163633.27227-2-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191123163633.27227-1-yamada.masahiro@socionext.com> References: <20191123163633.27227-1-yamada.masahiro@socionext.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The compilation of the code in fs/debugfs/ is controlled by CONFIG_DEBUG_FS, which is a bool type option. Hence it is never compiled as a module. Remove meaningless modular code. Signed-off-by: Masahiro Yamada --- fs/debugfs/file.c | 3 --- fs/debugfs/inode.c | 3 --- 2 files changed, 6 deletions(-) diff --git a/fs/debugfs/file.c b/fs/debugfs/file.c index 87846aad594b..46e55037c0f9 100644 --- a/fs/debugfs/file.c +++ b/fs/debugfs/file.c @@ -9,7 +9,6 @@ * See Documentation/filesystems/ for more details. */ -#include #include #include #include @@ -1005,7 +1004,6 @@ static int u32_array_release(struct inode *inode, struct file *file) } static const struct file_operations u32_array_fops = { - .owner = THIS_MODULE, .open = u32_array_open, .release = u32_array_release, .read = u32_array_read, @@ -1149,7 +1147,6 @@ static int debugfs_devm_entry_open(struct inode *inode, struct file *f) } static const struct file_operations debugfs_devm_entry_ops = { - .owner = THIS_MODULE, .open = debugfs_devm_entry_open, .release = single_release, .read = seq_read, diff --git a/fs/debugfs/inode.c b/fs/debugfs/inode.c index 7b975dbb2bb4..f3478f7caab6 100644 --- a/fs/debugfs/inode.c +++ b/fs/debugfs/inode.c @@ -12,7 +12,6 @@ #define pr_fmt(fmt) "debugfs: " fmt -#include #include #include #include @@ -270,12 +269,10 @@ static struct dentry *debug_mount(struct file_system_type *fs_type, } static struct file_system_type debug_fs_type = { - .owner = THIS_MODULE, .name = "debugfs", .mount = debug_mount, .kill_sb = kill_litter_super, }; -MODULE_ALIAS_FS("debugfs"); /** * debugfs_lookup() - look up an existing debugfs file -- 2.17.1