Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756529AbbFPIYG (ORCPT ); Tue, 16 Jun 2015 04:24:06 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:52765 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754325AbbFPIXq (ORCPT ); Tue, 16 Jun 2015 04:23:46 -0400 X-AuditID: cbfec7f4-f79c56d0000012ee-1c-557fdd0f9005 Message-id: <557FDD0E.8000000@samsung.com> Date: Tue, 16 Jun 2015 10:23:42 +0200 From: Jacek Anaszewski User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130804 Thunderbird/17.0.8 MIME-version: 1.0 To: Paul Gortmaker Cc: linux-kernel@vger.kernel.org, Bryan Wu , Richard Purdie , linux-leds@vger.kernel.org Subject: Re: [PATCH] drivers/leds: don't use module_init in non-modular leds-cobalt-raq.c References: <1434406367-32251-1-git-send-email-paul.gortmaker@windriver.com> In-reply-to: <1434406367-32251-1-git-send-email-paul.gortmaker@windriver.com> Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrLLMWRmVeSWpSXmKPExsVy+t/xq7r8d+tDDZas0bI4unMik8XlXXPY LLa+WcdocW3vcWaL3buesjqweuycdZfdY8/8H6wenzfJeazfspUpgCWKyyYlNSezLLVI3y6B K+PD8buMBY94KmavmMfYwLieq4uRk0NCwERi25/1rBC2mMSFe+vZuhi5OIQEljJKrL6+ggkk ISTwjFFi8qwYEJtXQEtizY5TYHEWAVWJzt4tzCA2m4ChxM8Xr8HiogIREn9O72OFqBeU+DH5 HguILQJUs+zNBlaQBcwCjYwS2zbvYwNJCAtESzzp6WGDWOYjcfvAVUYQm1PAV+JR33SwocwC 1hIrJ21jhLDlJTavecs8gVFgFpIds5CUzUJStoCReRWjaGppckFxUnquoV5xYm5xaV66XnJ+ 7iZGSCB/2cG4+JjVIUYBDkYlHt6IT7WhQqyJZcWVuYcYJTiYlUR4X5+rDxXiTUmsrEotyo8v Ks1JLT7EKM3BoiTOO3fX+xAhgfTEktTs1NSC1CKYLBMHp1QDI8Pf+23WN3urhTymde66UlqR uEPnp1RaTE+xgqT+lSPvN9+v8NPPk6pUvLtRd/O3qXu5GlTURMNrS3VYi6feX/JxRroA//s9 U+Vyn/t3TH55lWVLbYn5nZYlTUp+Ss/vVL0s/7NM00M01qvvXHjLxYK1Z9NsM/aVrnJbq62Z GFPzUq3dOt5eiaU4I9FQi7moOBEAec0hvGACAAA= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1836 Lines: 48 Hi Paul, On 06/16/2015 12:12 AM, Paul Gortmaker wrote: > This file is built for a bool Kconfig variable, and hence this > code is either present or absent. It currently can never be > modular, so using module_init as an alias for __initcall can be > somewhat misleading. > > Fix this up now, so that we can relocate module_init from > init.h into module.h in the future. If we don't do this, we'd > have to add module.h to obviously non-modular code, and that > would be a worse thing. > > Note that direct use of __initcall is discouraged, vs. one > of the priority categorized subgroups. As __initcall gets > mapped onto device_initcall, our use of device_initcall > directly in this change means that the runtime impact is > zero -- it will remain at level 6 in initcall ordering. > > And since it can't be modular, we remove all the __exitcall > stuff related to module_exit() -- it is dead code that won't > ever be executed. > > Cc: Bryan Wu > Cc: Richard Purdie > Cc: Jacek Anaszewski > Cc: linux-leds@vger.kernel.org > Signed-off-by: Paul Gortmaker > --- > [ > To be appended to the branch content originally sent as: > "Replace module_init with device_initcall in non modules" > https://lkml.kernel.org/r/1432860493-23831-1-git-send-email-paul.gortmaker@windriver.com > ] > > drivers/leds/leds-cobalt-raq.c | 15 +-------------- > 1 file changed, 1 insertion(+), 14 deletions(-) Acked-by: Jacek Anaszewski -- Best Regards, Jacek Anaszewski -- 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/