mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
modpost: reuse ARRAY_SIZE() macro for section_mismatch()
Move ARRAY_SIZE() from file2alias.c to modpost.h to reuse it in section_mismatch(). Also, move the variable 'check' inside the for-loop. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
This commit is contained in:
parent
76954527fe
commit
c5c468dcc2
3 changed files with 6 additions and 6 deletions
|
@ -734,8 +734,6 @@ static int do_vio_entry(const char *filename, void *symval,
|
|||
return 1;
|
||||
}
|
||||
|
||||
#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
|
||||
|
||||
static void do_input(char *alias,
|
||||
kernel_ulong_t *arr, unsigned int min, unsigned int max)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue