Thread (37 messages) 37 messages, 7 authors, 2012-08-16

Re: [PATCH TRIVIAL] mm: Fix build warning in kmem_cache_create()

From: Pekka Enberg <penberg@kernel.org>
Date: 2012-07-30 20:41:40
Also in: lkml

On Mon, Jul 30, 2012 at 10:56 PM, David Rientjes [off-list ref] wrote:
-Wunused-label is overridden in gcc for a label that is conditionally
referenced by using __maybe_unused in the kernel.  I'm not sure what's so
obscure about

out: __maybe_unused

Are label attributes really that obsecure?
I think they are.

The real problem, however, is that label attributes would just paper
over the badly thought out control flow in the function and not make the
code any better or easier to read.

                        Pekka

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help