]> www.infradead.org Git - users/dwmw2/linux.git/commit
arm64: Update __NR_compat_syscalls for statmount/listmount
authorFlorian Fainelli <florian.fainelli@broadcom.com>
Tue, 9 Jan 2024 01:09:04 +0000 (17:09 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 9 Jan 2024 02:09:54 +0000 (18:09 -0800)
commitf0a78b3e2a0c842cc7b4c2686f4a35681f02ca72
tree409a03e2034ccd22ed1e224fd6675951bc9ff7e2
parent2fdbcf715a1b9dd1468317f7cd4b4cd327a09781
arm64: Update __NR_compat_syscalls for statmount/listmount

Commit d8b0f5465012 ("wire up syscalls for statmount/listmount") added
two new system calls to arch/arm64/include/asm/unistd32.h but forgot to
update the __NR_compat_syscalls number, thus causing the following build
failures:

  arch/arm64/include/asm/unistd32.h:922:24: error: array index in initializer exceeds array bounds
    922 | #define __NR_statmount 457
        |                        ^~~
  arch/arm64/kernel/sys32.c:130:34: note: in definition of macro '__SYSCALL'
    130 | #define __SYSCALL(nr, sym)      [nr] = __arm64_##sym,
        |                                  ^~

Bump up the number by two to accomodate for the new system calls added.

Fixes: d8b0f5465012 ("wire up syscalls for statmount/listmount")
Signed-off-by: Florian Fainelli <florian.fainelli@broadcom.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/arm64/include/asm/unistd.h