public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] trace, RAS: remove unnecessary const
@ 2015-03-19  8:50 Xie XiuQi
  2015-03-19 10:33 ` Borislav Petkov
  0 siblings, 1 reply; 7+ messages in thread
From: Xie XiuQi @ 2015-03-19  8:50 UTC (permalink / raw)
  To: akpm
  Cc: n-horiguchi, rostedt, gong.chen, bhelgaas, bp, tony.luck,
	linux-kernel, jingle.chen

These parameters are passed by value. There's no need to make them const.

Signed-off-by: Xie XiuQi <xiexiuqi@huawei.com>
---
 include/ras/ras_event.h | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/include/ras/ras_event.h b/include/ras/ras_event.h
index 79abb9c..b714b22 100644
--- a/include/ras/ras_event.h
+++ b/include/ras/ras_event.h
@@ -95,16 +95,16 @@ TRACE_EVENT(extlog_mem_event,
  */
 TRACE_EVENT(mc_event,
 
-	TP_PROTO(const unsigned int err_type,
+	TP_PROTO(unsigned int err_type,
 		 const char *error_msg,
 		 const char *label,
-		 const int error_count,
-		 const u8 mc_index,
-		 const s8 top_layer,
-		 const s8 mid_layer,
-		 const s8 low_layer,
+		 int error_count,
+		 u8 mc_index,
+		 s8 top_layer,
+		 s8 mid_layer,
+		 s8 low_layer,
 		 unsigned long address,
-		 const u8 grain_bits,
+		 u8 grain_bits,
 		 unsigned long syndrome,
 		 const char *driver_detail),
 
@@ -205,8 +205,8 @@ TRACE_EVENT(mc_event,
 
 TRACE_EVENT(aer_event,
 	TP_PROTO(const char *dev_name,
-		 const u32 status,
-		 const u8 severity),
+		 u32 status,
+		 u8 severity),
 
 	TP_ARGS(dev_name, status, severity),
 
-- 
1.8.3.1


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

end of thread, other threads:[~2015-03-20  4:06 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-19  8:50 [PATCH] trace, RAS: remove unnecessary const Xie XiuQi
2015-03-19 10:33 ` Borislav Petkov
2015-03-19 11:57   ` Xie XiuQi
2015-03-19 13:00     ` Steven Rostedt
2015-03-20  4:05       ` Xie XiuQi
2015-03-19 12:57   ` Steven Rostedt
2015-03-19 13:10     ` Borislav Petkov

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