From: "John W. Linville" <linville-2XuSBdqkA4R54TAoqtyWWQ@public.gmane.org>
To: Johannes Berg <johannes-cdvu00un1VgdHxzADdlk8Q@public.gmane.org>
Cc: Michael Buesch <mb-fseUSCV1ubazQB+pC5nmwQ@public.gmane.org>,
David Miller <davem-fT/PcQaiUtIeIZ0/mPfg9Q@public.gmane.org>,
gordonfarquharson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org,
netdev-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-wireless-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
Andrew Morton
<akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public.gmane.org>
Subject: Re: pull request: wireless-2.6 2008-02-27
Date: Fri, 29 Feb 2008 16:42:40 -0500 [thread overview]
Message-ID: <20080229214240.GH3234@tuxdriver.com> (raw)
In-Reply-To: <20080229191058.GD3234-2XuSBdqkA4R54TAoqtyWWQ@public.gmane.org>
On Fri, Feb 29, 2008 at 02:10:58PM -0500, John W. Linville wrote:
> On Fri, Feb 29, 2008 at 05:34:13PM +0100, Johannes Berg wrote:
> >
> > On Fri, 2008-02-29 at 11:26 -0500, John W. Linville wrote:
> > > On Fri, Feb 29, 2008 at 01:16:59PM +0100, Michael Buesch wrote:
> > >
> > > > I'm wondering if we can't simply pass a commandline parameter to file2alias
> > > > that tells it whether we are crosscompiling. It should simply omit the sanity check
> > >
> > > Sounds reasonable to me.
> >
> > In fact, file2alias shouldn't need a command line argument ...
> >
> > > > in that case. Is there any easy and reliable way to find out whether we
> > > > are crosscompiling from a makefile (I don't know the makefile core that much)?
> > >
> > > Non-empty CROSS_COMPILE definition?
> >
> > ... it can just check whether CROSS_COMPILE is set in its environment.
> > No?
>
> Not a bad idea...something like this?
That version didn't work -- it seems CROSS_COMPILE is always set,
even if it is empty.
This version seems to work, but it is a bit chatty when CROSS_COMPILE
is set and you build lots of modules...thoughts?
John
---
modpost: avoid user/kernel struct size compat check if cross-compiling
Signed-off-by: John W. Linville <linville-2XuSBdqkA4R54TAoqtyWWQ@public.gmane.org>
---
scripts/mod/file2alias.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/scripts/mod/file2alias.c b/scripts/mod/file2alias.c
index 9ddf944..37f311e 100644
--- a/scripts/mod/file2alias.c
+++ b/scripts/mod/file2alias.c
@@ -10,6 +10,7 @@
* of the GNU General Public License, incorporated herein by reference.
*/
+#include <stdlib.h>
#include "modpost.h"
/* We use the ELF typedefs for kernel_ulong_t but bite the bullet and
@@ -62,6 +63,14 @@ static void device_id_check(const char *modname, const char *device_id,
void *symval)
{
int i;
+ char *cross_compile;
+
+ cross_compile = getenv("CROSS_COMPILE");
+ if (cross_compile && strlen(cross_compile)) {
+ warn("%s: cross-compile cannot verify userspace/kernel "
+ "structure size compatibility.\n", modname);
+ return;
+ }
if (size % id_size || size < id_size) {
fatal("%s: sizeof(struct %s_device_id)=%lu is not a modulo "
--
1.5.3.3
--
John W. Linville
linville-2XuSBdqkA4R54TAoqtyWWQ@public.gmane.org
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2008-02-29 21:42 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-28 1:41 pull request: wireless-2.6 2008-02-27 John W. Linville
2008-02-28 7:51 ` David Miller
[not found] ` <20080227.235110.242439399.davem-fT/PcQaiUtIeIZ0/mPfg9Q@public.gmane.org>
2008-02-28 14:51 ` pull request: wireless-2.6 2008-02-28 John W. Linville
[not found] ` <20080228145136.GD3063-2XuSBdqkA4R54TAoqtyWWQ@public.gmane.org>
2008-02-28 19:22 ` David Miller
2008-02-28 21:21 ` pull request: wireless-2.6 2008-02-27 Gordon Farquharson
2008-02-28 21:30 ` David Miller
[not found] ` <20080228.133008.228590007.davem-fT/PcQaiUtIeIZ0/mPfg9Q@public.gmane.org>
2008-02-28 23:56 ` Gordon Farquharson
[not found] ` <97a0a9ac0802281556q2d65ea0fu9f59e02b989fffcf-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2008-02-29 0:15 ` David Miller
2008-02-29 12:16 ` Michael Buesch
[not found] ` <200802291316.59738.mb-fseUSCV1ubazQB+pC5nmwQ@public.gmane.org>
2008-02-29 16:26 ` John W. Linville
2008-02-29 16:34 ` Johannes Berg
[not found] ` <1204302853.3938.40.camel-YfaajirXv214zXjbi5bjpg@public.gmane.org>
2008-02-29 19:10 ` John W. Linville
2008-02-29 19:54 ` Johannes Berg
[not found] ` <20080229191058.GD3234-2XuSBdqkA4R54TAoqtyWWQ@public.gmane.org>
2008-02-29 21:42 ` John W. Linville [this message]
2008-03-01 13:01 ` Sam Ravnborg
[not found] ` <20080301130133.GA14250-QabhHTsIXMSnlFQ6Q1D1Y0B+6BGkLq7r@public.gmane.org>
2008-03-01 15:51 ` Michael Buesch
2008-03-02 11:58 ` Sam Ravnborg
2008-03-02 20:00 ` Gordon Farquharson
[not found] ` <97a0a9ac0803021200v117379b6x1c4bc0f8ae580040-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2008-03-02 20:25 ` Michael Buesch
[not found] ` <20080302115828.GA15820-QabhHTsIXMSnlFQ6Q1D1Y0B+6BGkLq7r@public.gmane.org>
2008-03-18 4:07 ` Gordon Farquharson
2008-03-23 20:51 ` Sam Ravnborg
[not found] ` <20080323205126.GB5087-QabhHTsIXMSnlFQ6Q1D1Y0B+6BGkLq7r@public.gmane.org>
2008-03-23 21:23 ` Gordon Farquharson
2008-03-01 22:59 ` David Miller
2008-03-02 15:44 ` Adrian Bunk
2008-02-29 23:13 ` Michael Buesch
[not found] ` <200803010013.11458.mb-fseUSCV1ubazQB+pC5nmwQ@public.gmane.org>
2008-02-29 23:51 ` Randy Dunlap
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=20080229214240.GH3234@tuxdriver.com \
--to=linville-2xusbdqka4r54taoqtywwq@public.gmane.org \
--cc=akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public.gmane.org \
--cc=davem-fT/PcQaiUtIeIZ0/mPfg9Q@public.gmane.org \
--cc=gordonfarquharson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=johannes-cdvu00un1VgdHxzADdlk8Q@public.gmane.org \
--cc=linux-wireless-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=mb-fseUSCV1ubazQB+pC5nmwQ@public.gmane.org \
--cc=netdev-u79uwXL29TY76Z2rM5mHXA@public.gmane.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).