objtool: bump function name limit to 256 characters
diff mbox series

Message ID 20190920182503.GA15073@avx2
State New
Headers show
Series
  • objtool: bump function name limit to 256 characters
Related show

Commit Message

Alexey Dobriyan Sept. 20, 2019, 6:25 p.m. UTC
Fix the following warning:

net/core/devlink.o: warning: objtool: _ZL31devlink_nl_sb_tc_pool_bind_fillP7sk_buffP7devlinkP12devlink_portP10devlink_sbt20devlink_sb_pool_type15devlink_commandjji.constprop.0.cold(): parent function name exceeds maximum length of 128 characters

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
---

 tools/objtool/elf.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Josh Poimboeuf Sept. 20, 2019, 7:40 p.m. UTC | #1
On Fri, Sep 20, 2019 at 09:25:03PM +0300, Alexey Dobriyan wrote:
> Fix the following warning:
> 
> net/core/devlink.o: warning: objtool: _ZL31devlink_nl_sb_tc_pool_bind_fillP7sk_buffP7devlinkP12devlink_portP10devlink_sbt20devlink_sb_pool_type15devlink_commandjji.constprop.0.cold(): parent function name exceeds maximum length of 128 characters

Hm, since when do we have mangled symbols in the kernel?
Alexey Dobriyan Sept. 21, 2019, 8:34 a.m. UTC | #2
On Fri, Sep 20, 2019 at 02:40:35PM -0500, Josh Poimboeuf wrote:
> On Fri, Sep 20, 2019 at 09:25:03PM +0300, Alexey Dobriyan wrote:
> > Fix the following warning:
> > 
> > net/core/devlink.o: warning: objtool: _ZL31devlink_nl_sb_tc_pool_bind_fillP7sk_buffP7devlinkP12devlink_portP10devlink_sbt20devlink_sb_pool_type15devlink_commandjji.constprop.0.cold(): parent function name exceeds maximum length of 128 characters
> 
> Hm, since when do we have mangled symbols in the kernel?

We don't, yet :-)

Patch
diff mbox series

--- a/tools/objtool/elf.c
+++ b/tools/objtool/elf.c
@@ -19,7 +19,7 @@ 
 #include "elf.h"
 #include "warn.h"
 
-#define MAX_NAME_LEN 128
+#define MAX_NAME_LEN 256
 
 struct section *find_section_by_name(struct elf *elf, const char *name)
 {