Re: [PATCH] kallsyms: reduce size a little on 64-bit

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi.

2018-08-29 0:00 GMT+09:00 Jan Beulich <JBeulich@xxxxxxxx>:
> Both kallsyms_num_syms and kallsyms_markers[] don't really need to use
> unsigned long as their (base) types; unsigned int fully suffices.
>
> Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>
> ---



> --- 4.19-rc1/scripts/kallsyms.c
> +++ 4.19-rc1-kallsyms-reduce-size/scripts/kallsyms.c
> @@ -182,6 +182,8 @@ static int symbol_in_range(struct sym_en
>         for (i = 0; i < entries; ++i) {
>                 ar = &ranges[i];
>
> +               if (!ar->end)
> +                       continue;
>                 if (s->addr >= ar->start && s->addr <= ar->end)
>                         return 1;
>         }


What is this hunk doing?

At least, I cannot understand it from the patch description.



-- 
Best Regards
Masahiro Yamada



[Index of Archives]     [Linux&nblp;USB Development]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite Secrets]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux