• Ross Zwisler's avatar
    dax: fix build warnings with FS_DAX and !FS_IOMAP · 6affb9d7
    Ross Zwisler authored
    As reported by Arnd:
    
      https://lkml.org/lkml/2017/1/10/756
    
    Compiling with the following configuration:
    
      # CONFIG_EXT2_FS is not set
      # CONFIG_EXT4_FS is not set
      # CONFIG_XFS_FS is not set
      # CONFIG_FS_IOMAP depends on the above filesystems, as is not set
      CONFIG_FS_DAX=y
    
    generates build warnings about unused functions in fs/dax.c:
    
      fs/dax.c:878:12: warning: `dax_insert_mapping' defined but not used [-Wunused-function]
       static int dax_insert_mapping(struct address_space *mapping,
                  ^~~~~~~~~~~~~~~~~~
      fs/dax.c:572:12: warning: `copy_user_dax' defined but not used [-Wunused-function]
       static int copy_user_dax(struct block_device *bdev, sector_t sector, size_t size,
                  ^~~~~~~~~~~~~
      fs/dax.c:542:12: warning: `dax_load_hole' defined but not used [-Wunused-function]
       static int dax_load_hole(struct address_space *mapping, void **entry,
                  ^~~~~~~~~~~~~
      fs/dax.c:312:14: warning: `grab_mapping_entry' define...
    6affb9d7
Kconfig 7.16 KB