From: Larry Finger <Larry.Finger@lwfinger.net>
To: Baole Ni <baolex.ni@intel.com>,
konrad.wilk@oracle.com, boris.ostrovsky@oracle.com,
david.vrabel@citrix.com, jgross@suse.com, bhelgaas@google.com,
m.chehab@samsung.com, pawel@osciak.com, m.szyprowski@samsung.com,
kyungmin.park@samsung.com, k.kozlowski@samsung.com
Cc: chuansheng.liu@intel.com, linux-pcmcia@lists.infradead.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 0829/1285] Replace numeric parameter like 0444 with macro
Date: Tue, 2 Aug 2016 09:50:23 -0500 [thread overview]
Message-ID: <dc0c309b-1219-caab-b8fc-dd049f76f14d@lwfinger.net> (raw)
In-Reply-To: <20160802115027.5246-1-baolex.ni@intel.com>
On 08/02/2016 06:50 AM, Baole Ni wrote:
> I find that the developers often just specified the numeric value
> when calling a macro which is defined with a parameter for access permission.
> As we know, these numeric value for access permission have had the corresponding macro,
> and that using macro can improve the robustness and readability of the code,
> thus, I suggest replacing the numeric parameter with the macro.
>
> Signed-off-by: Chuansheng Liu <chuansheng.liu@intel.com>
> Signed-off-by: Baole Ni <baolex.ni@intel.com>
I'm not sure how much these changes improve robustness and/or readability, but
they cause no harm. For that reason, the changes in rtlwifi drivers is acked.
Acked-by: Larry Finger <Larry.Finger@lwfinger.net>
Larry
> ---
> drivers/pcmcia/cistpl.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/pcmcia/cistpl.c b/drivers/pcmcia/cistpl.c
> index 55ef7d1..ac6f619 100644
> --- a/drivers/pcmcia/cistpl.c
> +++ b/drivers/pcmcia/cistpl.c
> @@ -57,7 +57,7 @@ static const u_int exponent[] = {
>
> /* 16-bit CIS? */
> static int cis_width;
> -module_param(cis_width, int, 0444);
> +module_param(cis_width, int, S_IRUSR | S_IRGRP | S_IROTH);
>
> void release_cis_mem(struct pcmcia_socket *s)
> {
>
prev parent reply other threads:[~2016-08-02 14:51 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-02 11:50 Baole Ni
2016-08-02 12:36 ` Juergen Gross
2016-08-02 14:50 ` Larry Finger [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=dc0c309b-1219-caab-b8fc-dd049f76f14d@lwfinger.net \
--to=larry.finger@lwfinger.net \
--cc=baolex.ni@intel.com \
--cc=bhelgaas@google.com \
--cc=boris.ostrovsky@oracle.com \
--cc=chuansheng.liu@intel.com \
--cc=david.vrabel@citrix.com \
--cc=jgross@suse.com \
--cc=k.kozlowski@samsung.com \
--cc=konrad.wilk@oracle.com \
--cc=kyungmin.park@samsung.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pcmcia@lists.infradead.org \
--cc=m.chehab@samsung.com \
--cc=m.szyprowski@samsung.com \
--cc=pawel@osciak.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®