From: Tom Rix <trix@redhat.com>
To: Greg KH <gregkh@linuxfoundation.org>
Cc: arnd@arndb.de, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] misc: altera-stapl: remove trailing semicolon in macro definition
Date: Fri, 27 Nov 2020 09:42:26 -0800 [thread overview]
Message-ID: <12cd047b-9826-d200-1c70-faea0a753755@redhat.com> (raw)
In-Reply-To: <X8ExfFYVcwsbBa81@kroah.com>
On 11/27/20 9:03 AM, Greg KH wrote:
> On Fri, Nov 27, 2020 at 08:54:21AM -0800, trix@redhat.com wrote:
>> From: Tom Rix <trix@redhat.com>
>>
>> The macro use will already have a semicolon.
>>
>> Signed-off-by: Tom Rix <trix@redhat.com>
>> ---
>> drivers/misc/altera-stapl/altera-jtag.c | 4 ++--
>> 1 file changed, 2 insertions(+), 2 deletions(-)
>>
>> diff --git a/drivers/misc/altera-stapl/altera-jtag.c b/drivers/misc/altera-stapl/altera-jtag.c
>> index 27e8e0c9e8cf..0238600107b0 100644
>> --- a/drivers/misc/altera-stapl/altera-jtag.c
>> +++ b/drivers/misc/altera-stapl/altera-jtag.c
>> @@ -17,9 +17,9 @@
>> #include "altera-jtag.h"
>>
>> #define alt_jtag_io(a, b, c)\
>> - astate->config->jtag_io(astate->config->dev, a, b, c);
>> + astate->config->jtag_io(astate->config->dev, a, b, c)
>>
>> -#define alt_malloc(a) kzalloc(a, GFP_KERNEL);
>> +#define alt_malloc(a) kzalloc(a, GFP_KERNEL)
> Ick, really? That macro should be removed entirely. Can you redo this
> as a 2 patch series, the first for the alt_jtag_io() change, and the
> other to remove all users of alt_malloc()?
yes.
It may be a bit, I would like to see if there are other similar wrappers.
Tom
>
> thanks,
>
> greg k-h
>
prev parent reply other threads:[~2020-11-27 17:42 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-27 16:54 trix
2020-11-27 17:03 ` Greg KH
2020-11-27 17:42 ` Tom Rix [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=12cd047b-9826-d200-1c70-faea0a753755@redhat.com \
--to=trix@redhat.com \
--cc=arnd@arndb.de \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
/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®