lkml.org 
[lkml]   [2017]   [Jul]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] objtool: make orc_types.h headers match
Date
Building objtool causes a warning on the latest linux-next kernels:

warning: objtool: orc_types.h differs from kernel

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.

Fixes: 39358a033b2e ("objtool, x86: Add facility for asm code to provide unwind hints")
Fixes: 627fce14809b ("objtool: Add ORC unwind table generation")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
tools/objtool/orc_types.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/objtool/orc_types.h b/tools/objtool/orc_types.h
index 9c9dc579bd7d..7dc777a6cb40 100644
--- a/tools/objtool/orc_types.h
+++ b/tools/objtool/orc_types.h
@@ -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
--
2.9.0
\
 
 \ /
  Last update: 2017-07-25 17:29    [W:0.794 / U:0.000 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site