lkml.org 
[lkml]   [2013]   [Jun]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 2/7] irq: fix checkpatch error
Date
Change printk(KERN_WARNING ... to pr_warn(...
Fix ERROR: space required after that ',' (ctx:VxV)

Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
---
kernel/irq/handle.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/kernel/irq/handle.c b/kernel/irq/handle.c
index 131ca17..07a1c15 100644
--- a/kernel/irq/handle.c
+++ b/kernel/irq/handle.c
@@ -47,7 +47,7 @@ static void warn_no_thread(unsigned int irq, struct irqaction *action)
if (test_and_set_bit(IRQTF_WARNED, &action->thread_flags))
return;

- printk(KERN_WARNING "IRQ %d device %s returned IRQ_WAKE_THREAD "
+ pr_warn("IRQ %d device %s returned IRQ_WAKE_THREAD "
"but no thread function available.", irq, action->name);
}

@@ -142,8 +142,9 @@ handle_irq_event_percpu(struct irq_desc *desc, struct irqaction *action)
res = action->handler(irq, action->dev_id);
trace_irq_handler_exit(irq, action, res);

- if (WARN_ONCE(!irqs_disabled(),"irq %u handler %pF enabled interrupts\n",
- irq, action->handler))
+ if (WARN_ONCE(!irqs_disabled(),
+ "irq %u handler %pF enabled interrupts\n",
+ irq, action->handler))
local_irq_disable();

switch (res) {
--
1.8.2.1



\
 
 \ /
  Last update: 2013-06-06 19:21    [W:0.142 / U:0.440 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site