* [PATCH] drivers: pcmcia: This patch fix the following checkpatch warning.
@ 2019-04-16 17:45 Mohan Kumar
2019-04-17 18:25 ` Dominik Brodowski
0 siblings, 1 reply; 2+ messages in thread
From: Mohan Kumar @ 2019-04-16 17:45 UTC (permalink / raw)
To: linux; +Cc: linux-kernel
Switch hardcoded function name with a reference to __func__ making the
code more maintainable
WARNING: Prefer using '"%s...", __func__' to using function's name, in a
string
Signed-off-by: Mohan Kumar <mohankumar718@gmail.com>
---
drivers/pcmcia/tcic.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/pcmcia/tcic.c b/drivers/pcmcia/tcic.c
index 1a0e3f0987..fc653e7 100644
--- a/drivers/pcmcia/tcic.c
+++ b/drivers/pcmcia/tcic.c
@@ -540,7 +540,7 @@ static irqreturn_t tcic_interrupt(int irq, void *dev)
} else
active = 1;
- pr_debug("tcic_interrupt()\n");
+ pr_debug("%s()\n", __func__);
for (i = 0; i < sockets; i++) {
psock = socket_table[i].psock;
@@ -583,7 +583,7 @@ static irqreturn_t tcic_interrupt(int irq, void *dev)
static void tcic_timer(struct timer_list *unused)
{
- pr_debug("tcic_timer()\n");
+ pr_debug("%s()\n", __func__);
tcic_timer_pending = 0;
tcic_interrupt(0, NULL);
} /* tcic_timer */
--
2.7.4
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] drivers: pcmcia: This patch fix the following checkpatch warning.
2019-04-16 17:45 [PATCH] drivers: pcmcia: This patch fix the following checkpatch warning Mohan Kumar
@ 2019-04-17 18:25 ` Dominik Brodowski
0 siblings, 0 replies; 2+ messages in thread
From: Dominik Brodowski @ 2019-04-17 18:25 UTC (permalink / raw)
To: Mohan Kumar; +Cc: linux-kernel
On Tue, Apr 16, 2019 at 08:45:44PM +0300, Mohan Kumar wrote:
> Switch hardcoded function name with a reference to __func__ making the
> code more maintainable
Thanks for your patch. Are there any other patches pending to this driver?
As noted in Kconfig, the TCIC host briges "are only found on a handful of
old systems". Therefore, I am a bit reluctant to apply this patch,
especially as the much more in this file does not adhere to current kernel
CodingStyle practices.
Thanks,
Dominik
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-04-17 19:07 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-04-16 17:45 [PATCH] drivers: pcmcia: This patch fix the following checkpatch warning Mohan Kumar
2019-04-17 18:25 ` Dominik Brodowski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox