[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4E1456D9.8090003@mvista.com>
Date: Wed, 06 Jul 2011 16:36:41 +0400
From: Vitaly Kuzmichev <vkuzmichev@...sta.com>
To: Arnd Bergmann <arnd@...db.de>
CC: linux-arm-kernel@...ts.infradead.org,
linux-watchdog@...r.kernel.org,
Russell King <linux@....linux.org.uk>,
Marc Zyngier <marc.zyngier@....com>,
Wim Van Sebroeck <wim@...ana.be>, arm@...nel.org,
linux-kernel@...r.kernel.org, John Stultz <johnstul@...ibm.com>,
Nicolas Pitre <nico@...xnic.net>,
Thomas Gleixner <tglx@...utronix.de>
Subject: Re: [PATCH V2 6/6] mpcore_wdt: Move declarations in a separate header
Hi Arnd,
On 07/06/2011 03:58 PM, Arnd Bergmann wrote:
> On Tuesday 05 July 2011, Vitaly Kuzmichev wrote:
>> Signed-off-by: Vitaly Kuzmichev <vkuzmichev@...sta.com>
>> ---
>> drivers/watchdog/mpcore_wdt.c | 26 +-------------------------
>> drivers/watchdog/mpcore_wdt.h | 40 ++++++++++++++++++++++++++++++++++++++++
>> 2 files changed, 41 insertions(+), 25 deletions(-)
>> create mode 100644 drivers/watchdog/mpcore_wdt.h
>
> I don't see the point in this. IMHO it's better to leave the definitions
> in the same file that uses them, because they are not shared across
> multiple files.
>
> If you intend to share them in the future, you should explain that
> in the changelog.
The patch is aimed to resolve checkpatch warning on "extern" function
prototype:
WARNING: externs should be avoided in .c files
#44: FILE: drivers/watchdog/mpcore_wdt.c:37:
+unsigned long twd_timer_get_rate(void);
If it's ok to leave this warning I would also like to throw out this patch.
Thanks,
Vitaly.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists