objtool: Only include valid definitions depending on source file type
authorJulien Thierry <jthierry@redhat.com>
Fri, 4 Sep 2020 15:30:26 +0000 (16:30 +0100)
committerJosh Poimboeuf <jpoimboe@redhat.com>
Thu, 10 Sep 2020 15:43:13 +0000 (10:43 -0500)
commit5567c6c39f3404e4492c18c0c1abff5556684f6e
treee068022415fc085c99b81554c7131824998c0b63
parent00089c048eb4a8250325efb32a2724fd0da68cce
objtool: Only include valid definitions depending on source file type

Header include/linux/objtool.h contains both C and assembly definition that
are visible regardless of the file including them.

Place definition under conditional __ASSEMBLY__.

Reviewed-by: Miroslav Benes <mbenes@suse.cz>
Signed-off-by: Julien Thierry <jthierry@redhat.com>
Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
include/linux/objtool.h