Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1585424

[PATCH 1/2] Correct function definition for C++

From Joakim Tjernlund <joakim.tjernlund@infinera.com>
Newsgroups linux.kernel
Subject [PATCH 1/2] Correct function definition for C++
Date 2017-02-21 16:40 +0100
Message-ID <tdkHM-4r9-27@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


C++ does does not like the extra extern before asmlinkage, remove it.

Signed-off-by: Joakim Tjernlund <joakim.tjernlund@infinera.com>
---
 include/linux/printk.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/linux/printk.h b/include/linux/printk.h
index 3472cc6..be823f5 100644
--- a/include/linux/printk.h
+++ b/include/linux/printk.h
@@ -139,7 +139,7 @@ struct va_format {
 })
 
 #ifdef CONFIG_EARLY_PRINTK
-extern asmlinkage __printf(1, 2)
+asmlinkage  __printf(1, 2)
 void early_printk(const char *fmt, ...);
 #else
 static inline __printf(1, 2) __cold
@@ -270,7 +270,7 @@ static inline void show_regs_print_info(const char *log_lvl)
 }
 #endif
 
-extern asmlinkage void dump_stack(void) __cold;
+asmlinkage void dump_stack(void) __cold;
 
 #ifndef pr_fmt
 #define pr_fmt(fmt) fmt
-- 
2.10.2

Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

[PATCH 1/2] Correct function definition for C++ Joakim Tjernlund <joakim.tjernlund@infinera.com> - 2017-02-21 16:40 +0100
  [PATCH 2/2] compiler.h: fix C++ uninitialized const issue Joakim Tjernlund <joakim.tjernlund@infinera.com> - 2017-02-21 16:40 +0100
  Re: [PATCH 1/2] Correct function definition for C++ Greg KH <greg@kroah.com> - 2017-02-22 08:20 +0100
    Re: [PATCH 1/2] Correct function definition for C++ "greg@kroah.com" <greg@kroah.com> - 2017-02-22 14:10 +0100
      Re: [PATCH 1/2] Correct function definition for C++ "greg@kroah.com" <greg@kroah.com> - 2017-02-22 15:30 +0100
    Re: [PATCH 1/2] Correct function definition for C++ Thomas Backlund <tmb@mageia.org> - 2017-03-01 02:00 +0100

csiph-web