Re: [PATCH] fix "no member named 'sect_attrs' of strcut module"

From: Ingo Molnar
Date: Fri Sep 04 2009 - 01:04:55 EST

* Wu Zhangjin <wuzhangjin@xxxxxxxxx> wrote:

> From: Wu Zhangjin <wuzhangjin@xxxxxxxxx>
> The commit(1b364bf438cf337a3818aee77d68c0713f3e1fc4, "module: workaround
> duplicate section names") introduced a condition to avoid null pointer
> reference:
> - add_notes_attrs(mod, hdr->e_shnum, secstrings, sechdrs);
> + if (mod->sect_attrs)
> + add_notes_attrs(mod, hdr->e_shnum, secstrings, sechdrs);
> but sect_attrs is only defined when CONFIG_KALLSYMS enabled, so this
> patch is need to fix the following error:
> error: 'struct module' has no member named 'sect_attrs'
> Signed-off-by: Wu Zhangjin <wuzhangjin@xxxxxxxxx>

This has been fixed already, see this upstream fix:

ea6bff3: modules: Fix build error in the !CONFIG_KALLSYMS case

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at