lkml.org 
[lkml]   [2015]   [Apr]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH v4 2/8] init.h: add __read_mostly to early_param_on_off()
Date
From: "Luis R. Rodriguez" <mcgrof@suse.com>

Cc: Andy Walls <awalls@md.metrocast.net>
Cc: Doug Ledford <dledford@redhat.com>
Cc: Andy Lutomirski <luto@amacapital.net>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Juergen Gross <jgross@suse.com>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: Dave Airlie <airlied@redhat.com>
Cc: Bjorn Helgaas <bhelgaas@google.com>
Cc: Borislav Petkov <bp@suse.de>
Cc: Michael S. Tsirkin <mst@redhat.com>
Cc: linux-kernel@vger.kernel.org
Cc: x86@kernel.org
Signed-off-by: Luis R. Rodriguez <mcgrof@suse.com>
---
include/linux/init.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/linux/init.h b/include/linux/init.h
index 21b6d76..a0385cc 100644
--- a/include/linux/init.h
+++ b/include/linux/init.h
@@ -272,7 +272,7 @@ struct obs_kernel_param {

#define early_param_on_off(str_on, str_off, var, config) \
\
- int var = IS_ENABLED(config); \
+ int __read_mostly var = IS_ENABLED(config); \
\
static int __init parse_##var##_on(char *arg) \
{ \
--
2.3.2.209.gd67f9d5.dirty


\
 
 \ /
  Last update: 2015-04-30 00:21    [W:0.137 / U:0.784 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site