]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
selftests/mount_setattr: fix redefine struct mount_attr build error
authorShuah Khan <skhan@linuxfoundation.org>
Mon, 13 Feb 2023 18:20:07 +0000 (11:20 -0700)
committerRoxana Nicolescu <roxana.nicolescu@canonical.com>
Mon, 2 Oct 2023 15:19:17 +0000 (17:19 +0200)
commit7a015178b9eca4bc7eae9075826a36a1660eff87
tree7d3623671aaeccdff5d98ab84a7576b65b74fee1
parent91cf7217e69c23b9ad97bb8da63eaff0e2b53699
selftests/mount_setattr: fix redefine struct mount_attr build error

BugLink: https://bugs.launchpad.net/bugs/2033931
commit d8e45bf1aed2e5fddd8985b5bb1aaf774a97aba8 upstream.

Fix the following build error due to redefining struct mount_attr by
removing duplicate define from mount_setattr_test.c

gcc -g -isystem .../tools/testing/selftests/../../../usr/include -Wall -O2 -pthread     mount_setattr_test.c  -o .../tools/testing/selftests/mount_setattr/mount_setattr_test
mount_setattr_test.c:107:8: error: redefinition of â€˜struct mount_attr’
  107 | struct mount_attr {
      |        ^~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/sys/mount.h:32,
                 from mount_setattr_test.c:10:
.../usr/include/linux/mount.h:129:8: note: originally defined here
  129 | struct mount_attr {
      |        ^~~~~~~~~~
make: *** [../lib.mk:145: .../tools/testing/selftests/mount_setattr/mount_setattr_test] Error 1

Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Cc: Hardik Garg <hargar@linux.microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
tools/testing/selftests/mount_setattr/mount_setattr_test.c