Skip to content

Commit

Permalink
[PATCH] afs: remove unnecessary __attribute__((packed))
Browse files Browse the repository at this point in the history
Remove the unnecessary __attribute__((packed)) since the enum itself is packed
and not the location of it in the structure.

Signed-off-by: Jan Blunck <jblunck@suse.de>
Cc: David Howells <dhowells@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Jan Blunck authored and Linus Torvalds committed Jan 9, 2006
1 parent 6a87818 commit bfc090c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions fs/afs/volume.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@
#include "kafsasyncd.h"
#include "cache.h"

#define __packed __attribute__((packed))

typedef enum {
AFS_VLUPD_SLEEP, /* sleeping waiting for update timer to fire */
AFS_VLUPD_PENDING, /* on pending queue */
Expand Down Expand Up @@ -115,7 +113,7 @@ struct afs_volume
struct cachefs_cookie *cache; /* caching cookie */
#endif
afs_volid_t vid; /* volume ID */
afs_voltype_t __packed type; /* type of volume */
afs_voltype_t type; /* type of volume */
char type_force; /* force volume type (suppress R/O -> R/W) */
unsigned short nservers; /* number of server slots filled */
unsigned short rjservers; /* number of servers discarded due to -ENOMEDIUM */
Expand Down

0 comments on commit bfc090c

Please sign in to comment.