login
Header Space

 
 

Re: Linux 2.6.24-rc7 Build-Failure at __you_cannot_kmalloc_that_much

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Christoph Lameter <clameter@...>
Cc: Kamalesh Babulal <kamalesh@...>, Linux Kernel Mailing List <linux-kernel@...>, <bunk@...>, Andrew Morton <akpm@...>, Andy Whitcroft <apw@...>, Balbir Singh <balbir@...>
Date: Tuesday, January 8, 2008 - 12:20 am

On Mon, 7 Jan 2008 10:31:53 -0800 (PST)
Christoph Lameter <clameter@sgi.com> wrote:


sounds like a bad idea; a compile time failure is of course nicer than
a runtime failure for the cases we can find the bug at compile-time already.

We should however investigate using one of the two following gcc function attributes;
they can give the user a lot better diagnostic information than what we have
right now:


error ("message")
    If this attribute is used on a function declaration and a call to
such a function is not eliminated through dead code elimination or
other optimizations, an error which will include message will be
diagnosed. This is useful for compile time checking, especially
together with __builtin_constant_p and inline functions where checking
the inline function arguments is not possible through extern char
[(condition) ? 1 : -1]; tricks. While it is possible to leave the
function undefined and thus invoke a link failure, when using this
attribute the problem will be diagnosed earlier and with exact location
of the call even in presence of inline functions or when not emitting
debugging information.

warning ("message")
    If this attribute is used on a function declaration and a call to
such a function is not eliminated through dead code elimination or
other optimizations, a warning which will include message will be
diagnosed. This is useful for compile time checking, especially
together with __builtin_constant_p and inline functions. While it is
possible to define the function with a message in .gnu.warning*
section, when using this attribute the problem will be diagnosed
earlier and with exact location of the call even in presence of inline
functions or when not emitting debugging information. 

-- 
If you want to reach me at my work email, use arjan@linux.intel.com
For development, discussion and tips for power savings, 
visit http://www.lesswatts.org
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Linux 2.6.24-rc7, Linus Torvalds, (Sun Jan 6, 6:19 pm)
Re: Linux 2.6.24-rc7, Willy Tarreau, (Tue Jan 8, 9:17 pm)
Re: Linux 2.6.24-rc7: sparc64: WARNING: at kernel/lockdep_pr..., Mariusz Kozlowski, (Wed Jan 9, 12:31 pm)
Re: Linux 2.6.24-rc7, J.A. , (Mon Jan 7, 8:50 pm)
Re: Linux 2.6.24-rc7, Tejun Heo, (Tue Jan 8, 9:56 pm)
Re: Linux 2.6.24-rc7, J.A. , (Thu Jan 10, 5:25 am)
Re: Linux 2.6.24-rc7, Tejun Heo, (Thu Jan 10, 9:10 am)
Re: Linux 2.6.24-rc7, J.A. , (Sun Jan 13, 7:19 pm)
Re: Linux 2.6.24-rc7, Tejun Heo, (Sun Jan 13, 7:57 pm)
Re: Linux 2.6.24-rc7, J.A. , (Mon Jan 14, 7:38 pm)
Re: Linux 2.6.24-rc7, Tejun Heo, (Mon Jan 14, 7:56 pm)
Re: Linux 2.6.24-rc7, Avuton Olrich, (Tue Jan 8, 9:32 pm)
Re: Linux 2.6.24-rc7, Alejandro Riveira , (Mon Jan 7, 12:14 pm)
Re: Linux 2.6.24-rc7, Michael Buesch, (Mon Jan 7, 12:24 pm)
Re: Linux 2.6.24-rc7, Alejandro Riveira , (Mon Jan 7, 12:52 pm)
Re: Linux 2.6.24-rc7, Michael Buesch, (Mon Jan 7, 1:30 pm)
Re: Linux 2.6.24-rc7, Alejandro Riveira , (Mon Jan 7, 4:23 pm)
Re: Linux 2.6.24-rc7, Michael Buesch, (Tue Jan 8, 11:30 am)
Re: Linux 2.6.24-rc7, Alejandro Riveira , (Tue Jan 8, 11:55 am)
Re: Linux 2.6.24-rc7, Alejandro Riveira , (Mon Jan 7, 11:53 am)
section mismatch warning in head_64.S, Sam Ravnborg, (Mon Jan 7, 12:31 pm)
Re: section mismatch warning in head_64.S, Alejandro Riveira , (Tue Jan 15, 6:18 am)
smpboot_64 section mismatch warning, Sam Ravnborg, (Mon Jan 7, 12:27 pm)
Re: smpboot_64 section mismatch warning, David Howells, (Tue Jan 8, 7:17 am)
Re: smpboot_64 section mismatch warning, David Howells, (Mon Jan 7, 7:27 pm)
Re: smpboot_64 section mismatch warning, Alejandro Riveira , (Tue Jan 8, 5:14 am)
Re: Linux 2.6.24-rc7 kernel BUG at kernel/sched.c:5156!, Kamalesh Babulal, (Mon Jan 7, 8:13 am)
Re: Linux 2.6.24-rc7 Build-Failure at __you_cannot_kmalloc_t..., Arjan van de Ven, (Tue Jan 8, 12:20 am)
Re: Linux 2.6.24-rc7 Build Failure on headers_install, Kamalesh Babulal, (Mon Jan 7, 4:48 am)
Re: Linux 2.6.24-rc7 Build Failure on headers_install, Sam Ravnborg, (Mon Jan 7, 6:12 am)
Re: Linux 2.6.24-rc7 Build Failure on headers_install, Kamalesh Babulal, (Tue Jan 8, 6:51 am)
Re: Linux 2.6.24-rc7 Build Failure on headers_install, Sam Ravnborg, (Tue Jan 8, 9:10 am)
Re: Linux 2.6.24-rc7, Mark Lord, (Sun Jan 6, 7:52 pm)
Re: Linux 2.6.24-rc7, Linus Torvalds, (Sun Jan 6, 8:08 pm)
Re: Linux 2.6.24-rc7, Tejun Heo, (Sun Jan 6, 8:35 pm)
speck-geostationary