public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* x86/MCE: drop bogus const modifier from AMD's bank4_names()
@ 2015-01-23  8:32 Jan Beulich
  2015-01-23  9:58 ` Borislav Petkov
  0 siblings, 1 reply; 5+ messages in thread
From: Jan Beulich @ 2015-01-23  8:32 UTC (permalink / raw)
  To: Borislav Petkov, tony.luck; +Cc: linux-kernel

The compiler validly warns about it being ignored.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
---
 arch/x86/kernel/cpu/mcheck/mce_amd.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- 3.19-rc5/arch/x86/kernel/cpu/mcheck/mce_amd.c
+++ 3.19-rc5-x86-MCE-AMD-bank4_names/arch/x86/kernel/cpu/mcheck/mce_amd.c
@@ -79,7 +79,7 @@ static inline bool is_shared_bank(int ba
 	return (bank == 4);
 }
 
-static const char * const bank4_names(struct threshold_block *b)
+static const char *bank4_names(const struct threshold_block *b)
 {
 	switch (b->address) {
 	/* MSR4_MISC0 */




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-01-23 15:10 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-23  8:32 x86/MCE: drop bogus const modifier from AMD's bank4_names() Jan Beulich
2015-01-23  9:58 ` Borislav Petkov
2015-01-23 10:05   ` Jan Beulich
2015-01-23 10:16     ` Borislav Petkov
2015-01-23 15:04       ` U.Mutlu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox