From: Paul Moore <paul@paul-moore.com>
To: Gideon Israel Dsouza <gidisrael@gmail.com>
Cc: sds@tycho.nsa.gov, eparis@parisplace.org,
akpm@linux-foundation.org, geert@linux-m68k.org,
linux-security-module@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/1] security: Used macros from compiler.h instead of __attribute__((...))
Date: Wed, 18 Jun 2014 14:50:44 -0400 [thread overview]
Message-ID: <3604441.fZpjWNppGq@sifl> (raw)
In-Reply-To: <1402502130-26400-2-git-send-email-gidisrael@gmail.com>
On Wednesday, June 11, 2014 09:25:30 PM Gideon Israel Dsouza wrote:
> To increase compiler portability there is <linux/compiler.h> which
> provides convenience macros for various gcc constructs. Eg: __packed
> for __attribute__((packed)).
>
> This patch is part of a large task I've taken to clean the gcc
> specific attributes and use the the macros instead.
>
> Signed-off-by: Gideon Israel Dsouza <gidisrael@gmail.com>
> ---
> security/selinux/include/security.h | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>From what I can tell this should still work with both the LLVM and Intel
compilers, is that correct?
> diff --git a/security/selinux/include/security.h
> b/security/selinux/include/security.h index ce7852c..ff19bcc 100644
> --- a/security/selinux/include/security.h
> +++ b/security/selinux/include/security.h
> @@ -8,6 +8,7 @@
> #ifndef _SELINUX_SECURITY_H_
> #define _SELINUX_SECURITY_H_
>
> +#include <linux/compiler.h>
> #include <linux/dcache.h>
> #include <linux/magic.h>
> #include <linux/types.h>
> @@ -220,7 +221,7 @@ struct selinux_kernel_status {
> /*
> * The version > 0 supports above members.
> */
> -} __attribute__((packed));
> +} __packed;
>
> extern void selinux_status_update_setenforce(int enforcing);
> extern void selinux_status_update_policyload(int seqno);
--
paul moore
www.paul-moore.com
next prev parent reply other threads:[~2014-06-18 18:50 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-11 15:55 [PATCH] security: Use macros from compiler.h instead of gcc specific attributes Gideon Israel Dsouza
2014-06-11 15:55 ` [PATCH 1/1] security: Used macros from compiler.h instead of __attribute__((...)) Gideon Israel Dsouza
2014-06-18 18:50 ` Paul Moore [this message]
2014-06-18 20:08 ` Geert Uytterhoeven
2014-06-18 20:58 ` Paul Moore
2014-06-26 11:45 ` Gideon D'souza
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3604441.fZpjWNppGq@sifl \
--to=paul@paul-moore.com \
--cc=akpm@linux-foundation.org \
--cc=eparis@parisplace.org \
--cc=geert@linux-m68k.org \
--cc=gidisrael@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-security-module@vger.kernel.org \
--cc=sds@tycho.nsa.gov \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox