[lustre-discuss] Lustre Client on Fedora 23

Michael Watters wattersm at watters.ws
Mon Oct 3 10:25:50 PDT 2016


Thanks.  It looks like the checkpatch.pl script has already been updated 
however I did have to change the lustre/osd-ldiskfs/osd_io.c 
b/lustre/osd-ldiskfs/osd_io.c file which contained two references to the 
old function names.

make is now failing with a different error as shown below.

   CC [M] /home/00/d861703/projects/lustre-release-build/lustre/llite/file.o
/home/00/d861703/projects/lustre-release-build/lustre/llite/file.c:3841:14: 
error: initialization from incompatible pointer type 
[-Werror=incompatible-pointer-types]
   .setxattr = ll_setxattr,
               ^
/home/00/d861703/projects/lustre-release-build/lustre/llite/file.c:3841:14: 
note: (near initialization for ‘ll_file_inode_operations.setxattr’)
/home/00/d861703/projects/lustre-release-build/lustre/llite/file.c:3842:14: 
error: initialization from incompatible pointer type 
[-Werror=incompatible-pointer-types]
   .getxattr = ll_getxattr,
               ^
/home/00/d861703/projects/lustre-release-build/lustre/llite/file.c:3842:14: 
note: (near initialization for ‘ll_file_inode_operations.getxattr’)
cc1: all warnings being treated as errors
scripts/Makefile.build:289: recipe for target 
'/home/00/d861703/projects/lustre-release-build/lustre/llite/file.o' failed

Any idea how to fix this?


On 09/30/2016 09:51 PM, Dilger, Andreas wrote:
> The current Lustre hasn't been updated to the 4.7 kernel yet.  As you
> see the newer kernel replaced PAGE_CACHE_* with PAGE_*.  A patch to
> fix that (basically simple search and replace) would be welcome.  You
> should also add PAGE_CACHE_SHIFT and PAGE_CACHE_SIZE into
> contrib/scripts/checkpatch.pl::dep_functions so that any future patches
> trying to add them will be flagged.
>
> See http://wiki.lustre.org/Submitting_Changes for details.  I've filed
> LU-8661 to track patches needed for Linux 4.7 kernels so you can use
> that for your patch submission.
>
> Cheers, Andreas



More information about the lustre-discuss mailing list