mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 2/3] Remove unnecessary __attribute__ ((packed))
@ 2006-01-03 11:31 Jan Blunck
  2006-01-03 14:23 ` David Howells
  0 siblings, 1 reply; 2+ messages in thread
From: Jan Blunck @ 2006-01-03 11:31 UTC (permalink / raw)
  To: akpm, dhowells; +Cc: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 170 bytes --]

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>

[-- Attachment #2: afs-eliminate-packed-warnings.diff --]
[-- Type: text/plain, Size: 930 bytes --]

 fs/afs/volume.h |    4 +---
 1 files changed, 1 insertion(+), 3 deletions(-)

Index: linux-2.6/fs/afs/volume.h
===================================================================
--- linux-2.6.orig/fs/afs/volume.h
+++ linux-2.6/fs/afs/volume.h
@@ -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 */
@@ -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 */

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH 2/3] Remove unnecessary __attribute__ ((packed))
  2006-01-03 11:31 [PATCH 2/3] Remove unnecessary __attribute__ ((packed)) Jan Blunck
@ 2006-01-03 14:23 ` David Howells
  0 siblings, 0 replies; 2+ messages in thread
From: David Howells @ 2006-01-03 14:23 UTC (permalink / raw)
  To: Jan Blunck; +Cc: akpm, dhowells, linux-kernel


Jan Blunck <jblunck@suse.de> wrote:

> Remove the unnecessary __attribute__ ((packed)) since the enum itself is
> packed and not the location of it in the structure.

Fair enough.

David

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-01-03 14:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-03 11:31 [PATCH 2/3] Remove unnecessary __attribute__ ((packed)) Jan Blunck
2006-01-03 14:23 ` David Howells

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome