From: Andrew Morton <akpm@linux-foundation.org>
To: bugme-daemon@bugzilla.kernel.org
Cc: linux-scsi@vger.kernel.org, bugzilla.kernel.org@beej.org
Subject: Re: [Bug 11800] New: building SES support fails w/ gcc-3.4.5
Date: Tue, 21 Oct 2008 15:52:40 -0700	[thread overview]
Message-ID: <20081021155240.851b69c3.akpm@linux-foundation.org> (raw)
In-Reply-To: <bug-11800-11613@http.bugzilla.kernel.org/>
(switched to email.  Please respond via emailed reply-to-all, not via the
bugzilla web interface).
On Tue, 21 Oct 2008 11:36:12 -0700 (PDT)
bugme-daemon@bugzilla.kernel.org wrote:
> http://bugzilla.kernel.org/show_bug.cgi?id=11800
> 
>            Summary: building SES support fails w/ gcc-3.4.5
>            Product: SCSI Drivers
>            Version: 2.5
>      KernelVersion: 2.6.27.1
>           Platform: All
>         OS/Version: Linux
>               Tree: Mainline
>             Status: NEW
>           Severity: normal
>           Priority: P1
>          Component: Other
>         AssignedTo: scsi_drivers-other@kernel-bugs.osdl.org
>         ReportedBy: bugzilla.kernel.org@beej.org
> 
> 
> [beej@dell ~]$ cat /etc/redhat-release
> CentOS release 4.3 (Final)
> [beej@dell ~]$ rpm -qf `which gcc`
> gcc-3.4.5-2
> [beej@dell linux-2.6.27.1]$ diff .config .config.old
> 4c4
> < # Tue Oct 21 14:07:00 2008
> ---
> > # Thu Oct 16 17:54:42 2008
> 1006c1006
> < # CONFIG_SCSI_ENCLOSURE is not set
> ---
> > CONFIG_SCSI_ENCLOSURE=m
> 
> using .config.old,
> [beej@dell linux-2.6.27.1]$ make
> <snip>
> Kernel: arch/x86/boot/bzImage is ready  (#2)
>   Building modules, stage 2.
>   MODPOST 668 modules
> ERROR: "__you_cannot_kmalloc_that_much" [drivers/scsi/ses.ko] undefined!
> make[1]: *** [__modpost] Error 1
> make: *** [modules] Error 2
> 
That's weird.  It means that we did a kmalloc(N, ...) where the value
of N is known at compile time, and N is too large.
But I can find no such kmalloc/kzalloc calls in ses.c.  It might be gcc
bustage - we've seen that before.
Please do
	make drivers/scsi/ses.s
then have a look in drivers/scsi/ses.s and see which function is
emitting a call to __you_cannot_kmalloc_that_much.  Or email me
drivers/scsi/ses.s and I'll take a look.
Thanks.
next prev parent reply	other threads:[~2008-10-21 22:52 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-21 18:36 [Bug 11800] New: building SES support fails w/ gcc-3.4.5 bugme-daemon
2008-10-21 22:52 ` Andrew Morton [this message]
     [not found]   ` <200810221943.m9MJh8bR031381@colby.verdasys.com>
2008-10-22 20:30     ` Andrew Morton
2008-10-22 21:17       ` James Bottomley
2008-10-23 16:14         ` Marc Bejarano
2008-10-23 16:35           ` James Bottomley
2008-10-27 17:48             ` Marc Bejarano
2008-10-21 22:52 ` [Bug 11800] " bugme-daemon
2008-10-22 19:43 ` bugme-daemon
2008-10-22 20:31 ` bugme-daemon
2008-10-22 21:17 ` bugme-daemon
2008-10-23 16:15 ` bugme-daemon
2008-10-23 16:35 ` bugme-daemon
2008-10-27 17:48 ` bugme-daemon
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=20081021155240.851b69c3.akpm@linux-foundation.org \
    --to=akpm@linux-foundation.org \
    --cc=bugme-daemon@bugzilla.kernel.org \
    --cc=bugzilla.kernel.org@beej.org \
    --cc=linux-scsi@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;
as well as URLs for NNTP newsgroup(s).