From: Somasundaram Krishnasamy Date: Fri, 12 May 2017 00:39:39 +0000 (-0700) Subject: x86/platform/uv/BAU: Remove __ro_after_init declaration X-Git-Tag: v4.1.12-102.0.20170529_2200~113 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=22aae893cbf2dc1d2a70f6011acb216af221538c;p=users%2Fjedix%2Flinux-maple.git x86/platform/uv/BAU: Remove __ro_after_init declaration Orabug: 25920237 The upstream commit 8e3b21b6dbf0 (x86/platform/uv/BAU: Cleanup bau_operations declaration and instances) has declared the bau_operations ops instance with __ro_after_init. It can be safely removed now as "ops" is an already existing variable and also the code that supports this "read-only after init" feature is not pulled in yet. The upstream commit c74ba8b3480d (arch: Introduce post-init read-only memory) and several of its associated commits introduce this feature from 4.6 kernel. When this feature is pulled in, this commit can be reverted to make "bau_operations ops" read-only. Signed-off-by: Somasundaram Krishnasamy Reviewed-by: Jack Vogel --- diff --git a/arch/x86/platform/uv/tlb_uv.c b/arch/x86/platform/uv/tlb_uv.c index 1b49fae9ec1c2..e4b6d8f417053 100644 --- a/arch/x86/platform/uv/tlb_uv.c +++ b/arch/x86/platform/uv/tlb_uv.c @@ -24,7 +24,7 @@ #include #include -static struct bau_operations ops __ro_after_init; +static struct bau_operations ops; /* timeouts in nanoseconds (indexed by UVH_AGING_PRESCALE_SEL urgency7 30:28) */ static int timeout_base_ns[] = {