lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:	Thu, 19 Mar 2015 16:50:04 +0800
From:	Xie XiuQi <xiexiuqi@...wei.com>
To:	<akpm@...ux-foundation.org>
CC:	<n-horiguchi@...jp.nec.com>, <rostedt@...dmis.org>,
	<gong.chen@...ux.intel.com>, <bhelgaas@...gle.com>, <bp@...e.de>,
	<tony.luck@...el.com>, <linux-kernel@...r.kernel.org>,
	<jingle.chen@...wei.com>
Subject: [PATCH] trace, RAS: remove unnecessary const

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

Signed-off-by: Xie XiuQi <xiexiuqi@...wei.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

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ