Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932522AbbFHTzW (ORCPT ); Mon, 8 Jun 2015 15:55:22 -0400 Received: from down.free-electrons.com ([37.187.137.238]:49456 "EHLO mail.free-electrons.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753548AbbFHTy5 (ORCPT ); Mon, 8 Jun 2015 15:54:57 -0400 Date: Mon, 8 Jun 2015 21:54:55 +0200 From: Alexandre Belloni To: Paul Gortmaker Cc: linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, Alessandro Zummo , rtc-linux@googlegroups.com Subject: Re: [42/73] rtc: delete non-required instances of include Message-ID: <20150608195455.GF5222@piout.net> References: <1390339396-3479-43-git-send-email-paul.gortmaker@windriver.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1390339396-3479-43-git-send-email-paul.gortmaker@windriver.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1146 Lines: 29 On 21/01/2014 at 16:22:45 -0500, Paul Gortmaker wrote : > None of these files are actually using any __init type directives > and hence don't need to include . Most are just a > left over from __devinit and __cpuinit removal, or simply due to > code getting copied from one driver to the next. > > Cc: Alessandro Zummo > Cc: rtc-linux@googlegroups.com > Signed-off-by: Paul Gortmaker I've contemplated applying that patch but I'm not sure it is actually a good idea because those 46 drivers are using a variant of module_driver which actually uses __init and __exit. After your patch it is still working simply because init.h gets included that way: linux/module.h:9 linux/list.h:8 linux/kernel.h:13 linux/printk.h:5 -- Alexandre Belloni, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/