On 12/3/25 9:25 AM, Shuah wrote:
> On 12/2/25 22:20, Guenter Roeck wrote:
>> Hi,
>>
>> when trying to build tools/testing/selftests, I get a lot of warnings such as
>>
>> mount-notify_test.c: In function ‘fanotify_fsmount’:
>> mount-notify_test.c:360:14: warning: implicit declaration of function 
>> ‘fsopen’; did you mean ‘fdopen’?
>>
>> and subsequent build errors.
>>
>> testing/selftests/filesystems/mount-notify/mount-notify_test.c:360: 
>> undefined reference to `fsopen'
>> /usr/bin/ld: 
>> tools/testing/selftests/filesystems/mount-notify/mount-notify_test.c:363: 
>> undefined reference to `fsconfig'
>> /usr/bin/ld:tools/testing/selftests/filesystems/mount-notify/mount-notify_test.c:366:
>>  undefined reference to `fsmount'
>> /usr/bin/ld: 
>> tools/testing/selftests/filesystems/mount-notify/mount-notify_test.c:371: 
>> undefined reference to `move_mount'
>>
>> This does not just affect a single file, but several of them.
>>
>> What am I missing ? Is there some magic needed to build the selftests ?
> 
> Not sure. It built fine for me on Linux 6.18 latest. Are you missing
> a library possibly?

Guenter, did you follow Documentation/dev-tools/kselftest.rst?

Shuah, is that document what you recommend?

-- 
~Randy


Reply via email to