Skip to content

Commit

Permalink
fanotify: remove packed from access response message
Browse files Browse the repository at this point in the history
Since fanotify has decided to be careful about alignment and packing
rather than rely on __attribute__((packed)) for multiarch support.
Since this attribute isn't doing anything on fanotify_response we just
drop it.  This does not break API/ABI.

Suggested-by: Tvrtko Ursulin <tvrtko.ursulin@sophos.com>
Signed-off-by: Eric Paris <eparis@redhat.com>
  • Loading branch information
Eric Paris committed Dec 7, 2010
1 parent ecf6f5e commit 88d60c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/linux/fanotify.h
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ struct fanotify_event_metadata {
struct fanotify_response {
__s32 fd;
__u32 response;
} __attribute__ ((packed));
};

/* Legit userspace responses to a _PERM event */
#define FAN_ALLOW 0x01
Expand Down

0 comments on commit 88d60c3

Please sign in to comment.