From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugme-daemon@bugzilla.kernel.org Subject: [Bug 11800] building SES support fails w/ gcc-3.4.5 Date: Wed, 22 Oct 2008 13:31:57 -0700 (PDT) Message-ID: <20081022203157.B9AF2108047@picon.linux-foundation.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT Return-path: Received: from smtp1.linux-foundation.org ([140.211.169.13]:40728 "EHLO smtp1.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754486AbYJVUcI convert rfc822-to-8bit (ORCPT ); Wed, 22 Oct 2008 16:32:08 -0400 Received: from picon.linux-foundation.org (picon.linux-foundation.org [140.211.169.79]) by smtp1.linux-foundation.org (8.14.2/8.13.5/Debian-3ubuntu1.1) with ESMTP id m9MKVvsk011107 for ; Wed, 22 Oct 2008 13:31:58 -0700 In-Reply-To: Sender: linux-scsi-owner@vger.kernel.org List-Id: linux-scsi@vger.kernel.org To: linux-scsi@vger.kernel.org http://bugzilla.kernel.org/show_bug.cgi?id=11800 ------- Comment #3 from anonymous@kernel-bugs.osdl.org 2008-10-22 13:31 ------- Reply-To: akpm@linux-foundation.org On Wed, 22 Oct 2008 15:43:05 -0400 Marc Bejarano wrote: > At 18:52 10/21/2008, Andrew Morton wrote: > >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 > >> > >> 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. > > attached > OK, it's here: buf = kmalloc(vpd_len, GFP_KERNEL); it's a gcc bug. Please see if you can find some way to make it go away - perhaps change vpd_len's type to `int', things like that. Or use a different compiler version :( -- Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.