From patchwork Sat Nov 23 16:36:32 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 180119 Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp919473ilf; Sat, 23 Nov 2019 08:37:23 -0800 (PST) X-Google-Smtp-Source: APXvYqyM271tutJP8rx+HMucImJc4pAyTI+NNbtP2mC4zkTWax7WmEnS/kfcqGxoWCYjeNmpPGDB X-Received: by 2002:aa7:cf8b:: with SMTP id z11mr8018537edx.294.1574527043541; Sat, 23 Nov 2019 08:37:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574527043; cv=none; d=google.com; s=arc-20160816; b=iNenIJYPbtYiD5dAfK3NzMCm9SV0pZao7T4B/m2EnPqZWhE0iRJ4GtNBSfXpKzSLPA wMFeLrHuO4hKBEXOR3Y8to1JejpDrHmOgv6xShvkLx+wnWbZbCo8QVpwByxdXr1TC5fV 2hzCoal6YoPSgGafPhiSa9B4whCyb+AhmEVspAXwO8HXvtBKAg1TYpzwkp8D3jRGE+Lr qG39JvCDTkTVyxTRe73qFLMQYgWlnPj+PlcgCbZy9kjNku+4sdxqTl5GpLNKi79ZxxUP 4LDr4sEneIapNx15uHosX64tPh/nrtPSHmu7kX2wYvteWIIxNN9wg6oZPdL30aTmqfvE 2V9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:dkim-filter; bh=b2XnY177SuO8gk06SbcWRoYrsHQQpflhu5zyta4ZfZY=; b=kTe2jJdb0T9tjiWh0z4YVEXMAW19kTgg7big7RMnDASfpdLLfqLcf7SXx8vZijifLQ kJ4y3T7wX+2mNVOOidik0zdy5bT2mnkfHPuAcCU8FftQQeHs1hYwwXfCHzTp37fS3+q3 nDLXRMGajlOvzEgqgdFzzT8sdahPnyqPqTmev+jU9zxRcDa1Wg2kyctN33Wvy7VnBCh3 6koG5NeLClxH2DYdFQHe7Mg6muaJLFiBAlCjbMvsCMb2hkzZtgbQsINSU4iuKo2WAS4f Wa0C/+5uQs97LVab4PHkXGAfZ+jPFi/H7JpWQillTHme+Eom2PJLn1VA6IIH45R4dTkG UE/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=JxW6GxU8; 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 c11si1072551edb.425.2019.11.23.08.37.23; Sat, 23 Nov 2019 08:37:23 -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=JxW6GxU8; 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 S1726907AbfKWQhI (ORCPT + 26 others); Sat, 23 Nov 2019 11:37:08 -0500 Received: from conuserg-08.nifty.com ([210.131.2.75]:64651 "EHLO conuserg-08.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726759AbfKWQhH (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 xANGaggc001459; Sun, 24 Nov 2019 01:36:43 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-08.nifty.com xANGaggc001459 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1574527003; bh=b2XnY177SuO8gk06SbcWRoYrsHQQpflhu5zyta4ZfZY=; h=From:To:Cc:Subject:Date:From; b=JxW6GxU8YEMUD+vsN/b/GH4gC1gIX6GzqB/QXDCzJfamqA7fRWHPiPBEd80DJ3CW5 tt5onb3HX9yT0+gfM/E7xDyf8Gh4WDDgsp5sP5maiziCuwJ2hS+40uy2MtvYdwGOz1 kKfu9weh2DpAuef6J0P/N5WkmZQsJwvJA/sEgsa9ZDKkZreHVgvT5GTFeKVcD3B7qi VxIKdgHdVXJmi7ofTsZRYm34XDa2HcpHya8L1rhVUiLdhBxLmPMVCdf0DDIudet4Op 4PmBqndX20kKhQynYWYhm+2Q4J4JotK0IcfZ3lLAan80+sDq6fS628fAuTjgVvG15O WRfrBuIawSJug== 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 1/2] drivers/component: remove modular code Date: Sun, 24 Nov 2019 01:36:32 +0900 Message-Id: <20191123163633.27227-1-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org component.o is added to obj-y. Hence this is never compiled as a module. Remove meaningless modular code. Signed-off-by: Masahiro Yamada --- drivers/base/component.c | 3 --- 1 file changed, 3 deletions(-) -- 2.17.1 diff --git a/drivers/base/component.c b/drivers/base/component.c index 532a3a5d8f63..3a09036e772a 100644 --- a/drivers/base/component.c +++ b/drivers/base/component.c @@ -11,7 +11,6 @@ #include #include #include -#include #include #include #include @@ -775,5 +774,3 @@ void component_del(struct device *dev, const struct component_ops *ops) kfree(component); } EXPORT_SYMBOL_GPL(component_del); - -MODULE_LICENSE("GPL v2"); From patchwork Sat Nov 23 16:36:33 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 180118 Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp919465ilf; Sat, 23 Nov 2019 08:37:23 -0800 (PST) X-Google-Smtp-Source: APXvYqxjFC3vqhcLdDx/ajqgGDo6Ql1yTuCIRZ9axft4NEGD24wvCAAvW4woXUnCY4LSf0iXamoo X-Received: by 2002:a17:906:52d3:: with SMTP id w19mr28651355ejn.268.1574527043057; Sat, 23 Nov 2019 08:37:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574527043; cv=none; d=google.com; s=arc-20160816; b=c7iY7yv5TkISZxbFs3nXBSGG+XoJddLmaPGOMoBv6x7Bl+uxew8MC+TiB/RkVdrtoA 6p+mt8KuWy0GSH1/ZRrP30pRIWpNWiMR7vDYTkUAqsroNYBZmTDgyjTRyl/r6YYRvYau hqk/l4oVpatiXwm1Cte+9j1bzzXjO1jQrc1Hh++j/D2709UOAV00LaZMomEm10M15anj gGi1VxB6F+1zr4PMgJXVSbeNrxv/gWaqxpMLKERbqV9oTFrBBcJABBrqgI2fIBI7mEj5 zLjOcnn6e3u2MBh0YDJrn6gf6UEQm4+E+y/xfLq6kg1pIcGnUzpjIucdONynA/jNkG7e pSUA== 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 c11si1072551edb.425.2019.11.23.08.37.22; Sat, 23 Nov 2019 08:37:23 -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 S1726855AbfKWQhH (ORCPT + 26 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(-) -- 2.17.1 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