• Linus Torvalds's avatar
    Un-inline the core-dump helper functions · 3aa0ce82
    Linus Torvalds authored
    Tony Luck reports that the addition of the access_ok() check in commit
    0eead9ab ("Don't dump task struct in a.out core-dumps") broke the
    ia64 compile due to missing the necessary header file includes.
    
    Rather than add yet another include (<asm/unistd.h>) to make everything
    happy, just uninline the silly core dump helper functions and move the
    bodies to fs/exec.c where they make a lot more sense.
    
    dump_seek() in particular was too big to be an inline function anyway,
    and none of them are in any way performance-critical.  And we really
    don't need to mess up our include file headers more than they already
    are.
    Reported-and-tested-by: default avatarTony Luck <tony.luck@gmail.com>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    3aa0ce82
exec.c 47.4 KB