Thread (170 messages) 170 messages, 19 authors, 2012-09-16

[PATCH v2 21/31] arm64: 32-bit (compat) applications support

From: arnd@arndb.de (Arnd Bergmann)
Date: 2012-08-26 04:49:43
Also in: linux-arch, lkml

On Friday 24 August 2012, Catalin Marinas wrote:
quoted
What good is the run-time BUG() here? Nothing should be calling these
when CONFIG_COMPAT is disabled, so I think you should just remove
the #ifdef around the declarations, and the entire #else case.
They are called from handle_signal(), so that's to avoid #ifdef inside
functions. I can drop the BUG() (but keep the empty function) and
change the checks to is_compat_task() so that the compiler optimises the
condition out when !COMPAT.
Sounds good. Note that you can turn a lot of #ifdef into
if(IS_ENABLED(CONFIG_FOO)) as well, even if there is no other runtime
check for them.

	Arnd
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help