From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755211AbcAHOtN (ORCPT ); Fri, 8 Jan 2016 09:49:13 -0500 Received: from bh-25.webhostbox.net ([208.91.199.152]:51547 "EHLO bh-25.webhostbox.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755164AbcAHOtL (ORCPT ); Fri, 8 Jan 2016 09:49:11 -0500 Subject: Re: [patch] watchdog: pnx833x_wdt: fix typo in MODULE_PARM_DESC To: Dan Carpenter , Wim Van Sebroeck References: <20160108110239.GI32195@mwanda> Cc: linux-watchdog@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org From: Guenter Roeck Message-ID: <568FCC65.6010106@roeck-us.net> Date: Fri, 8 Jan 2016 06:49:09 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 In-Reply-To: <20160108110239.GI32195@mwanda> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Authenticated_sender: linux@roeck-us.net X-OutGoing-Spam-Status: No, score=-1.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - bh-25.webhostbox.net X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - roeck-us.net X-Get-Message-Sender-Via: bh-25.webhostbox.net: authenticated_id: linux@roeck-us.net X-Authenticated-Sender: bh-25.webhostbox.net: linux@roeck-us.net X-Source: X-Source-Args: X-Source-Dir: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 01/08/2016 03:02 AM, Dan Carpenter wrote: > The module_param() is "pnx833x_wdt_timeout" and MODULE_PARM_DESC() > should match. > > Signed-off-by: Dan Carpenter > > diff --git a/drivers/watchdog/pnx833x_wdt.c b/drivers/watchdog/pnx833x_wdt.c > index 882fdcb..69da25a 100644 > --- a/drivers/watchdog/pnx833x_wdt.c > +++ b/drivers/watchdog/pnx833x_wdt.c > @@ -52,8 +52,9 @@ static int pnx833x_wdt_alive; > /* Set default timeout in MHZ.*/ > static int pnx833x_wdt_timeout = PNX_WATCHDOG_TIMEOUT; > module_param(pnx833x_wdt_timeout, int, 0); > -MODULE_PARM_DESC(timeout, "Watchdog timeout in Mhz. (68Mhz clock), default=" > - __MODULE_STRING(PNX_TIMEOUT_VALUE) "(30 seconds)."); > +MODULE_PARM_DESC(pnx833x_wdt_timeout, > + "Watchdog timeout in Mhz. (68Mhz clock), default=" > + __MODULE_STRING(PNX_TIMEOUT_VALUE) "(30 seconds)."); The intent here was to have a module parameter named 'timeout'. Of course that was never the case. Wonder if anyone ever noticed. The correct fix would be to use something like module_param_named(timeout, pnx833x_wdt_timeout, int, 0); but of course that would change the ABI. On the other side, 'timeout' is the documented module parameter in Documentation/watchdog/watchdog-parameters.txt, so one could argue that using module_param_named() would be a bug fix and not an ABI change. Not really sure what the best approach is here. Wim, any comments ? Provide module_param_named() in _addition_ to the existing module_param(), maybe, if that is possible ? Guenter