Re: [PATCH] modpost: simplify sec_name()

2017-08-08 Thread Kees Cook
On Tue, Aug 8, 2017 at 8:18 PM, Masahiro Yamada wrote: > There is code duplication between sec_name() and sech_name(). > Simplify sec_name() by re-using sech_name(). Also, move them up > to remove the forward declaration of sec_name(). > > Signed-off-by: Masahiro

Re: [PATCH] modpost: simplify sec_name()

2017-08-08 Thread Kees Cook
On Tue, Aug 8, 2017 at 8:18 PM, Masahiro Yamada wrote: > There is code duplication between sec_name() and sech_name(). > Simplify sec_name() by re-using sech_name(). Also, move them up > to remove the forward declaration of sec_name(). > > Signed-off-by: Masahiro Yamada Reviewed-by: Kees Cook

[PATCH] modpost: simplify sec_name()

2017-08-08 Thread Masahiro Yamada
There is code duplication between sec_name() and sech_name(). Simplify sec_name() by re-using sech_name(). Also, move them up to remove the forward declaration of sec_name(). Signed-off-by: Masahiro Yamada --- scripts/mod/modpost.c | 27

[PATCH] modpost: simplify sec_name()

2017-08-08 Thread Masahiro Yamada
There is code duplication between sec_name() and sech_name(). Simplify sec_name() by re-using sech_name(). Also, move them up to remove the forward declaration of sec_name(). Signed-off-by: Masahiro Yamada --- scripts/mod/modpost.c | 27 +++ 1 file changed, 11