[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20190321220009.29334-13-andi@firstfloor.org>
Date: Thu, 21 Mar 2019 15:00:04 -0700
From: Andi Kleen <andi@...stfloor.org>
To: x86@...nel.org
Cc: akpm@...ux-foundation.org, linux-kernel@...r.kernel.org,
Andi Kleen <ak@...ux.intel.com>, dhowells@...hat.com,
viro@...iv.linux.org.uk
Subject: [PATCH 12/17] afs: Avoid section confusion in CM_NAME
From: Andi Kleen <ak@...ux.intel.com>
__tracepoint_str cannot be const because the tracepoint_str
section is not read-only. Remove the stray const.
Cc: dhowells@...hat.com
Cc: viro@...iv.linux.org.uk
Signed-off-by: Andi Kleen <ak@...ux.intel.com>
---
fs/afs/cmservice.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/afs/cmservice.c b/fs/afs/cmservice.c
index 8ee5972893ed..2f8acb4c556d 100644
--- a/fs/afs/cmservice.c
+++ b/fs/afs/cmservice.c
@@ -34,7 +34,7 @@ static void SRXAFSCB_TellMeAboutYourself(struct work_struct *);
static int afs_deliver_yfs_cb_callback(struct afs_call *);
#define CM_NAME(name) \
- const char afs_SRXCB##name##_name[] __tracepoint_string = \
+ char afs_SRXCB##name##_name[] __tracepoint_string = \
"CB." #name
/*
--
2.20.1
Powered by blists - more mailing lists