objtool: make orc_types.h headers match
PATCH 1/1 objtool: make orc_types.h headers match
Building objtool causes a warning on the latest linux-next kernels:
warning: objtool: orc_types.h differs from kernel
Quoted 1 line
From what I can tell, we have two slightly different copies of the same
header, and we try to ensure they are the same with the warning.
This picks the copy from the x86 headers (without the __packed annotation), by roll of dice.
--- tools/objtool/orc_types.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tools/objtool/orc_types.h +1 -1
@@ -88,7 +88,7 @@ struct orc_entry { unsigned sp_reg:4; unsigned bp_reg:4; unsigned type:2; -} __packed; +};/* * This struct is used by asm and inline asm code to manually annotate the
Signature · 1 line
2.9.0
Quoted 6 lines · Arnd Bergmann
Building objtool causes a warning on the latest linux-next kernels:
warning: objtool:
orc_types.hdiffers from kernelFrom what I can tell, we have two slightly different copies of the same header, and we try to ensure they are the same with the warning.
Oops!
Quoted 2 lines
This picks the copy from the x86 headers (without the
__packedannotation), by roll of dice.
You lost ;-) It should be __packed.
BTW this will also be fixed when the ORC unwinder gets merged, which will presumably be soon.
Quoted 1 line
Fixes 39358a033b2e ("objtool, x86: Add facility for asm code to provide unwind hints")
^^^ This is the one that introduced the bug.
Signature · 1 line
Josh