lkml.org 
[lkml]   [2020]   [Aug]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] include: Modify parameters that are not used in __local_bh_disable_ip()
Date
Signed-off-by: leesagacious <lizhe@cpu-os.ac.cn>
---
include/linux/bottom_half.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/linux/bottom_half.h b/include/linux/bottom_half.h
index ab54f34..edcdf3fa 100644
--- a/include/linux/bottom_half.h
+++ b/include/linux/bottom_half.h
@@ -7,7 +7,7 @@
#ifdef CONFIG_TRACE_IRQFLAGS
extern void __local_bh_disable_ip(unsigned long ip, unsigned int cnt);
#else
-static __always_inline void __local_bh_disable_ip(unsigned long __unused ip,
+static __always_inline void __local_bh_disable_ip(__attribute__((unused)) unsigned long ip,
unsigned int cnt)
{
preempt_count_add(cnt);
--
2.7.4
\
 
 \ /
  Last update: 2020-08-02 13:03    [W:0.027 / U:1.092 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site