From: Valdis.Kletnieks@vt.edu
To: Andrew Morton <akpm@linux-foundation.org>, Nick Piggin <npiggin@suse.de>
Cc: linux-kernel@vger.kernel.org, mm-commits@vger.kernel.org
Subject: Re: mmotm 2009-04-24-18-14 uploaded - NVidia indigestion
Date: Fri, 24 Apr 2009 23:06:40 -0400 [thread overview]
Message-ID: <5622.1240628800@turing-police.cc.vt.edu> (raw)
In-Reply-To: Your message of "Fri, 24 Apr 2009 18:14:22 PDT." <200904250133.n3P1XBJn006790@imap1.linux-foundation.org>
[-- Attachment #1: Type: text/plain, Size: 2708 bytes --]
On Fri, 24 Apr 2009 18:14:22 PDT, akpm@linux-foundation.org said:
> The mm-of-the-moment snapshot 2009-04-24-18-14 has been uploaded to
>
> http://userweb.kernel.org/~akpm/mmotm/
This jumped out and asked if I wanted SLQB as the default allocator (even
though I've had SLAB defined for ages). I said to myself "what the heck"
and accepted the change...
Tried to build the NVidia binary, and it choked during config on something
that will likely give a *lot* of programs indigestion.
The test program:
#include <linux/autoconf.h>
#if defined(CONFIG_XEN) && defined(CONFIG_XEN_INTERFACE_VERSION) && !defined(__XEN_INTERFACE_VERSION__)
#define __XEN_INTERFACE_VERSION__ CONFIG_XEN_INTERFACE_VERSION
#endif
#include <linux/version.h>
#include <linux/utsname.h>
int main() {
if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)) {
return 0;
} else {
return 1;
}
}
The command line:
cc -D__KERNEL__ -DKBUILD_BASENAME="#conftest23112" -DKBUILD_MODNAME="#conftest23112" -nostdinc -isystem /usr/lib/gcc/x86_64-redhat-linux/4.4.0/include -I/lib/modules/2.6.30-rc3-mmotm0424/source/include/asm-x86_64/mach-default -I/lib/modules/2.6.30-rc3-mmotm0424/source/include/asm-x86/mach-default -I/lib/modules/2.6.30-rc3-mmotm0424/source/arch/x86/include/asm/mach-default -I/lib/modules/2.6.30-rc3-mmotm0424/build/include2 -I/lib/modules/2.6.30-rc3-mmotm0424/build/include -I/lib/modules/2.6.30-rc3-mmotm0424/source/include -I/lib/modules/2.6.30-rc3-mmotm0424/source/arch/x86/include -o conftest23112 conftest23112.c
and the joy it got me:
In file included from /lib/modules/2.6.30-rc3-mmotm0424/build/include/linux/slab.h:161,
from /lib/modules/2.6.30-rc3-mmotm0424/build/include/linux/percpu.h:5,
from /lib/modules/2.6.30-rc3-mmotm0424/build/include/linux/sched.h:76,
from /lib/modules/2.6.30-rc3-mmotm0424/build/include/linux/utsname.h:35,
from conftest2465.c:6:
/lib/modules/2.6.30-rc3-mmotm0424/build/include/linux/slqb_def.h: In function ‘kmalloc_slab’:
/lib/modules/2.6.30-rc3-mmotm0424/build/include/linux/slqb_def.h:240: error: size of array ‘type name’ is negative
Why does utsname.h care about SLAB versus SLUB? (Looks to me like somebody
forgot to add a #include to slqb_def.h for all the headers it needed, and
it choked. Interestingly enough, line 240 reads:
BUILD_BUG_ON(!__builtin_constant_p(size));
but I didn't think this was the way BUILD_BUG_ON worked?
Changed back to SLAB, and things built just fine after that...
[-- Attachment #2: Type: application/pgp-signature, Size: 226 bytes --]
next parent reply other threads:[~2009-04-25 3:07 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <200904250133.n3P1XBJn006790@imap1.linux-foundation.org>
2009-04-25 3:06 ` Valdis.Kletnieks [this message]
2009-04-25 5:24 ` Nick Piggin
2009-04-27 18:45 ` Valdis.Kletnieks
2009-04-28 6:15 ` Nick Piggin
2009-04-28 16:01 ` Valdis.Kletnieks
2009-04-29 7:03 ` Nick Piggin
2009-04-30 10:36 ` Nick Piggin
2009-04-30 11:03 ` Pekka Enberg
2009-04-25 3:52 ` mmotm 2009-04-24-18-14 uploaded - pulseaudio causes BUG Valdis.Kletnieks
2009-04-25 4:41 ` Andrew Morton
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=5622.1240628800@turing-police.cc.vt.edu \
--to=valdis.kletnieks@vt.edu \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mm-commits@vger.kernel.org \
--cc=npiggin@suse.de \
/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®