diff options
author | David Gow <[email protected]> | 2023-07-04 16:30:21 +0800 |
---|---|---|
committer | Richard Weinberger <[email protected]> | 2023-08-26 22:38:49 +0200 |
commit | 760ee8f83825f6b6ee711bb50b61a2e9a89209a0 (patch) | |
tree | d30cb0aea8c8ed3e228fb2944ce1431f521fb68f /lib/test_fortify/write_overflow-strncpy-src.c | |
parent | 11ae290ee6b824607cf5a837d1e893442ed0ba88 (diff) |
asm-generic: current: Don't include thread-info.h if building asm
asm/current.h is included by some assembly files (either directly, or
indirectly). This works on some architectures (such as x86), as their
implementation of current.h is careful to not include any C, but the
asm-generic version includes linux/thread-info.h unconditionally, which
leads to errors when either C code or non-asm-compatible preprocessor
directives are included.
Just wrap the contents behind an #ifndef __ASSEMBLY__ to avoid any C
code making its way in.
Signed-off-by: David Gow <[email protected]>
Acked-by: Arnd Bergmann <[email protected]>
Signed-off-by: Richard Weinberger <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions