Skip to content
Unverified Commit 40b7835e authored by Hu Yadi's avatar Hu Yadi Committed by Mickaël Salaün
Browse files

selftests/landlock: Fix fs_test build with old libc



One issue comes up while building selftest/landlock/fs_test on my side
(gcc 7.3/glibc-2.28/kernel-4.19).

gcc -Wall -O2 -isystem   fs_test.c -lcap -o selftests/landlock/fs_test
fs_test.c:4575:9: error: initializer element is not constant
  .mnt = mnt_tmp,
         ^~~~~~~

Signed-off-by: default avatarHu Yadi <hu.yadi@h3c.com>
Suggested-by: default avatarJiao <jiaoxupo@h3c.com>
Reviewed-by: default avatarBerlin <berlin@h3c.com>
Link: https://lore.kernel.org/r/20240124022908.42100-1-hu.yadi@h3c.com


Fixes: 04f9070e ("selftests/landlock: Add tests for pseudo filesystems")
[mic: Factor out mount's data string and make mnt_tmp static]
Signed-off-by: default avatarMickaël Salaün <mic@digikod.net>
parent 116099ed
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment