From: Christoph Lameter <christoph@lameter.com>
To: Andrew Morton <akpm@osdl.org>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] Replace zone padding with a definition in cache.h
Date: Tue, 15 Mar 2005 21:04:24 -0800 (PST) [thread overview]
Message-ID: <Pine.LNX.4.58.0503152103580.6087@server.graphe.net> (raw)
In-Reply-To: <20050315202331.008ec856.akpm@osdl.org>
On Tue, 15 Mar 2005, Andrew Morton wrote:
> Christoph Lameter <christoph@lameter.com> wrote:
> >
> > +#ifndef ____cacheline_pad_in_smp
> > +#if defined(CONFIG_SMP)
> > +#define ____cacheline_pad_in_smp struct { char x; } ____cacheline_maxaligned_in_smp
> > +#else
> > +#define ____cacheline_pad_in_smp
> > +#endif
> > +#endif
>
> That's going to spit a warning with older gcc's. "warning: unnamed
> struct/union that defines no instances".
>
Is it really that important? If the struct is named then there may be
conflicts if its used repeatedly.
next prev parent reply other threads:[~2005-03-16 5:04 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-16 4:12 Christoph Lameter
2005-03-16 4:23 ` Andrew Morton
2005-03-16 5:04 ` Christoph Lameter [this message]
2005-03-16 5:23 ` Andrew Morton
2005-03-16 5:27 ` Christoph Lameter
2005-03-16 4:24 ` Nick Piggin
2005-03-16 5:05 ` Christoph Lameter
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=Pine.LNX.4.58.0503152103580.6087@server.graphe.net \
--to=christoph@lameter.com \
--cc=akpm@osdl.org \
--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
all inboxes | Powered by JetHome®