From: "David S. Miller" <davem@davemloft.net>
To: torvalds@osdl.org
Cc: akpm@osdl.org, linux-kernel@vger.kernel.org,
rmk@arm.linux.org.uk, ak@muc.de
Subject: Re: [NET]: Shut up warnings in net/core/flow.c
Date: Wed, 23 Nov 2005 16:53:14 -0800 (PST) [thread overview]
Message-ID: <20051123.165314.125752078.davem@davemloft.net> (raw)
In-Reply-To: <Pine.LNX.4.64.0511231526340.13959@g5.osdl.org>
From: Linus Torvalds <torvalds@osdl.org>
Date: Wed, 23 Nov 2005 15:29:53 -0800 (PST)
> Add a new "__smp_only__" thing, and do something like
>
> #ifdef CONFIG_SMP
> #define __smp_only__
> #else
> #define __smp_only \
> __attribute__((__unused__, section("discard")))
> #endif
>
> (Yeah, I didn't look up the section syntax, because I'm lazy, but you get
> the point - put it explicitly in some section that will be thrown away,
> and that we can make the build-checking tools verify isn't linked to).
If we mark it correctly, the linker will not even try to link it in to
the final object, and we'll get a flat out link failure.
Yes, something like this would be great.
next prev parent reply other threads:[~2005-11-24 0:53 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <200511230159.jAN1xeMl003154@hera.kernel.org>
2005-11-23 8:21 ` Andrew Morton
2005-11-23 8:55 ` David S. Miller
2005-11-23 9:11 ` Arjan van de Ven
2005-11-23 21:24 ` David S. Miller
2005-11-23 21:28 ` Arjan van de Ven
2005-11-23 22:02 ` David S. Miller
2005-11-23 16:54 ` Linus Torvalds
2005-11-23 23:20 ` David S. Miller
2005-11-23 23:29 ` Linus Torvalds
2005-11-24 0:53 ` David S. Miller [this message]
2005-11-24 7:46 ` Arjan van de Ven
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=20051123.165314.125752078.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=ak@muc.de \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rmk@arm.linux.org.uk \
--cc=torvalds@osdl.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®