Commit 4bb93983 authored by Gideon Israel Dsouza's avatar Gideon Israel Dsouza Committed by Paul Moore

security: Used macros from compiler.h instead of __attribute__((...))

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: default avatarGideon Israel Dsouza <gidisrael@gmail.com>
Signed-off-by: default avatarPaul Moore <pmoore@redhat.com>
parent 4b6f405f
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
#ifndef _SELINUX_SECURITY_H_ #ifndef _SELINUX_SECURITY_H_
#define _SELINUX_SECURITY_H_ #define _SELINUX_SECURITY_H_
#include <linux/compiler.h>
#include <linux/dcache.h> #include <linux/dcache.h>
#include <linux/magic.h> #include <linux/magic.h>
#include <linux/types.h> #include <linux/types.h>
...@@ -220,7 +221,7 @@ struct selinux_kernel_status { ...@@ -220,7 +221,7 @@ struct selinux_kernel_status {
/* /*
* The version > 0 supports above members. * The version > 0 supports above members.
*/ */
} __attribute__((packed)); } __packed;
extern void selinux_status_update_setenforce(int enforcing); extern void selinux_status_update_setenforce(int enforcing);
extern void selinux_status_update_policyload(int seqno); extern void selinux_status_update_policyload(int seqno);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment