mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jan Blunck <jblunck@suse.de>
To: akpm@osdl.org, dhowells@redhat.com
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH 2/3] Remove unnecessary __attribute__ ((packed))
Date: Tue, 3 Jan 2006 12:31:00 +0100	[thread overview]
Message-ID: <20060103113059.GC24131@hasse.suse.de> (raw)

[-- 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 */

             reply	other threads:[~2006-01-03 11:31 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-03 11:31 Jan Blunck [this message]
2006-01-03 14:23 ` David Howells

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=20060103113059.GC24131@hasse.suse.de \
    --to=jblunck@suse.de \
    --cc=akpm@osdl.org \
    --cc=dhowells@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    /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

Powered by JetHome