** Description changed:

  [Impact]
  While debugging bug 1910277, I found that the test compilation will print 
some warnings:
-   memfd_test.c:64:7: warning: implicit declaration of function ‘open’;
-   memfd_test.c:90:6: warning: implicit declaration of function ‘fcntl’ 
-   memfd_test.c:397:6: warning: implicit declaration of function ‘fallocate’;
-   fuse_test.c:67:6: warning: implicit declaration of function ‘fcntl’
-   fuse_test.c:261:7: warning: implicit declaration of function ‘open’;
+   memfd_test.c:64:7: warning: implicit declaration of function ‘open’;
+   memfd_test.c:90:6: warning: implicit declaration of function ‘fcntl’
+   memfd_test.c:397:6: warning: implicit declaration of function ‘fallocate’;
+   fuse_test.c:67:6: warning: implicit declaration of function ‘fcntl’
+   fuse_test.c:261:7: warning: implicit declaration of function ‘open’;
  
  [Fix]
  * 1c49e3783f8899 ("selftests/memfd: Fix implicit declaration warnings")
  
+ This fix can be cherry-picked into F/G/H and compiled without any issue.
+ 
  [Test Case]
  Build the memfd test in kselftests with:
-   sudo make TARGETS=memfd
+   sudo make TARGETS=memfd
  
  With this fix, these warnings will be gone.
  
  [Where problems could occur]
- This fix is just for fixing the test case compilation, it's beyond my 
imagination to see where the potential problems lies within.
+ This fix is just for fixing the test case compilation, if we need to fix it 
on older release X/B, this patch will cause compilation errors as they're 
missing some other vital commits, since we're not running this test on older 
releases I think it's fine to ignore them for now.

** Description changed:

  [Impact]
  While debugging bug 1910277, I found that the test compilation will print 
some warnings:
    memfd_test.c:64:7: warning: implicit declaration of function ‘open’;
    memfd_test.c:90:6: warning: implicit declaration of function ‘fcntl’
    memfd_test.c:397:6: warning: implicit declaration of function ‘fallocate’;
    fuse_test.c:67:6: warning: implicit declaration of function ‘fcntl’
    fuse_test.c:261:7: warning: implicit declaration of function ‘open’;
  
  [Fix]
  * 1c49e3783f8899 ("selftests/memfd: Fix implicit declaration warnings")
  
  This fix can be cherry-picked into F/G/H and compiled without any issue.
  
  [Test Case]
  Build the memfd test in kselftests with:
    sudo make TARGETS=memfd
  
  With this fix, these warnings will be gone.
  
  [Where problems could occur]
- This fix is just for fixing the test case compilation, if we need to fix it 
on older release X/B, this patch will cause compilation errors as they're 
missing some other vital commits, since we're not running this test on older 
releases I think it's fine to ignore them for now.
+ This fix is just for fixing the test case compilation, so it's not affecting 
real kernel functionality. If we need to fix it on older release X/B, this 
patch will cause compilation errors as they're missing some other vital 
commits, since we're not running this test on older releases I think it's fine 
to ignore them for now.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1910323

Title:
  Fix implicit declaration warnings for kselftests/memfd test on newer
  releases

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1910323/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to