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-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1337292816-10839-6-git-send-email-hjl.tools@gmail.com>
Date:	Thu, 17 May 2012 15:13:31 -0700
From:	"H.J. Lu" <hjl.tools@...il.com>
To:	linux-kernel@...r.kernel.org, linux-arch@...r.kernel.org
Cc:	torvalds@...ux-foundation.org, hpa@...or.com, mingo@...nel.org,
	tglx@...utronix.de, "H.J. Lu" <hjl.tools@...il.com>
Subject: [PATCH 05/10] Use __kernel_long_t in struct mq_attr

From: "H.J. Lu" <hjl.tools@...il.com>

Replace long with __kernel_long_t in struct mq_attr for user space.

Signed-off-by: H.J. Lu <hjl.tools@...il.com>
---
 include/linux/mqueue.h |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/include/linux/mqueue.h b/include/linux/mqueue.h
index 8b5a796..d89a735 100644
--- a/include/linux/mqueue.h
+++ b/include/linux/mqueue.h
@@ -23,11 +23,11 @@
 #define MQ_BYTES_MAX	819200
 
 struct mq_attr {
-	long	mq_flags;	/* message queue flags			*/
-	long	mq_maxmsg;	/* maximum number of messages		*/
-	long	mq_msgsize;	/* maximum message size			*/
-	long	mq_curmsgs;	/* number of messages currently queued	*/
-	long	__reserved[4];	/* ignored for input, zeroed for output */
+	__kernel_long_t mq_flags;	/* message queue flags			*/
+	__kernel_long_t mq_maxmsg;	/* maximum number of messages		*/
+	__kernel_long_t mq_msgsize;	/* maximum message size			*/
+	__kernel_long_t mq_curmsgs;	/* number of messages currently queued	*/
+	__kernel_long_t __reserved[4];	/* ignored for input, zeroed for output */
 };
 
 /*
-- 
1.7.6.5

--
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