From: Matthew Wilcox <matthew@wil.cx>
To: "YOSHIFUJI Hideaki / ?$B5HF#1QL@" <yoshfuji@linux-ipv6.org>
Cc: michaelc@cs.wisc.edu, linux-scsi@vger.kernel.org,
netdev@oss.sgi.com, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 2/3] add open iscsi netlink interface to iscsi transport class
Date: Thu, 5 May 2005 13:22:04 +0100 [thread overview]
Message-ID: <20050505122204.GL19678@parcelfarce.linux.theplanet.co.uk> (raw)
In-Reply-To: <20050505.185503.78606493.yoshfuji@linux-ipv6.org>
On Thu, May 05, 2005 at 06:55:03PM +0900, YOSHIFUJI Hideaki / ?$B5HF#1QL@ wrote:
> In article <42798AC1.2010308@cs.wisc.edu> (at Wed, 04 May 2005 19:53:53 -0700), Mike Christie <michaelc@cs.wisc.edu> says:
>
> > +struct iscsi_uevent {
> :
> > +} __attribute__ ((aligned (sizeof(unsigned long))));
>
> I think it'd be better to use sizeof(uint64_t) or something.
Actually, it's completely unnecessary. iscsi_uevent contains a uint64_t
element, and the GCC docs (in the 'Type attribute' section, documenting
aligned) say:
Note that the alignment of any given `struct' or `union' type is
required by the ISO C standard to be at least a perfect multiple of
the lowest common multiple of the alignments of all of the members
of the `struct' or `union' in question. This means that you _can_
So best to just delete it. It has no effect.
> Please check other spots, too. e.g.:
>
> > + struct iscsi_stats_custom custom[0]
> > + __attribute__ ((aligned (sizeof(unsigned long))));
This one's probably useless too, but it's hard to tell since the patches
weren't sent inline thus making them difficult to cross-reference.
--
"Next the statesmen will invent cheap lies, putting the blame upon
the nation that is attacked, and every man will be glad of those
conscience-soothing falsities, and will diligently study them, and refuse
to examine any refutations of them; and thus he will by and by convince
himself that the war is just, and will thank God for the better sleep
he enjoys after this process of grotesque self-deception." -- Mark Twain
next prev parent reply other threads:[~2005-05-05 12:22 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-05 2:53 [PATCH 2/3] add open iscsi netlink interface to iscsi transport class Mike Christie
2005-05-05 9:55 ` YOSHIFUJI Hideaki / 吉藤英明
2005-05-05 11:39 ` Herbert Xu
2005-05-05 11:45 ` Arjan van de Ven
2005-05-05 11:55 ` YOSHIFUJI Hideaki / 吉藤英明
2005-05-05 12:22 ` Matthew Wilcox [this message]
-- strict thread matches above, loose matches on Subject: below --
2005-05-15 19:30 Mike Christie
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=20050505122204.GL19678@parcelfarce.linux.theplanet.co.uk \
--to=matthew@wil.cx \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=michaelc@cs.wisc.edu \
--cc=netdev@oss.sgi.com \
--cc=yoshfuji@linux-ipv6.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;
as well as URLs for NNTP newsgroup(s).