Skip to content

Commit 89348fc

Browse files
keestorvalds
authored andcommitted
bug: rename __WARN_printf_taint() to __WARN_printf()
This just renames the helper to improve readability. Link: http://lkml.kernel.org/r/20190819234111.9019-3-keescook@chromium.org Signed-off-by: Kees Cook <keescook@chromium.org> Cc: Arnd Bergmann <arnd@arndb.de> Cc: Borislav Petkov <bp@suse.de> Cc: Christophe Leroy <christophe.leroy@c-s.fr> Cc: Drew Davenport <ddavenport@chromium.org> Cc: Feng Tang <feng.tang@intel.com> Cc: Mauro Carvalho Chehab <mchehab+samsung@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Petr Mladek <pmladek@suse.com> Cc: "Steven Rostedt (VMware)" <rostedt@goodmis.org> Cc: YueHaibing <yuehaibing@huawei.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent ee87113 commit 89348fc

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎include/asm-generic/bug.h‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,14 +96,14 @@ void warn_slowpath_fmt(const char *file, const int line, unsigned taint,
9696
extern void warn_slowpath_null(const char *file, const int line);
9797
#define WANT_WARN_ON_SLOWPATH
9898
#define __WARN() warn_slowpath_null(__FILE__, __LINE__)
99-
#define __WARN_printf_taint(taint, arg...) \
99+
#define __WARN_printf(taint, arg...) \
100100
warn_slowpath_fmt(__FILE__, __LINE__, taint, arg)
101101
#else
102102
extern __printf(1, 2) void __warn_printk(const char *fmt, ...);
103103
#define __WARN() do { \
104104
printk(KERN_WARNING CUT_HERE); __WARN_TAINT(TAINT_WARN); \
105105
} while (0)
106-
#define __WARN_printf_taint(taint, arg...) \
106+
#define __WARN_printf(taint, arg...) \
107107
do { __warn_printk(arg); __WARN_TAINT(taint); } while (0)
108108
#endif
109109

@@ -127,15 +127,15 @@ void __warn(const char *file, int line, void *caller, unsigned taint,
127127
#define WARN(condition, format...) ({ \
128128
int __ret_warn_on = !!(condition); \
129129
if (unlikely(__ret_warn_on)) \
130-
__WARN_printf_taint(TAINT_WARN, format); \
130+
__WARN_printf(TAINT_WARN, format); \
131131
unlikely(__ret_warn_on); \
132132
})
133133
#endif
134134

135135
#define WARN_TAINT(condition, taint, format...) ({ \
136136
int __ret_warn_on = !!(condition); \
137137
if (unlikely(__ret_warn_on)) \
138-
__WARN_printf_taint(taint, format); \
138+
__WARN_printf(taint, format); \
139139
unlikely(__ret_warn_on); \
140140
})
141141

0 commit comments

Comments
 (0)