1. May 26, 2018
    • Arnd Bergmann's avatar
      xfs, proc: hide unused xfs procfs helpers · 5ef03dbd
      Arnd Bergmann authored
      These two functions now trigger a warning when CONFIG_PROC_FS is disabled:
      
      fs/xfs/xfs_stats.c:128:12: error: 'xqmstat_proc_show' defined but not used [-Werror=unused-function]
       static int xqmstat_proc_show(struct seq_file *m, void *v)
                  ^~~~~~~~~~~~~~~~~
      fs/xfs/xfs_stats.c:118:12: error: 'xqm_proc_show' defined but not used [-Werror=unused-function]
       static int xqm_proc_show(struct seq_file *m, void *v)
                  ^~~~~~~~~~~~~
      
      Previously, they were referenced from an unused 'static const' structure,
      which is silently dropped by gcc.
      
      We can address the warning by adding the same #ifdef around them that
      hides the reference.
      
      Fixes: 3f3942ac
      
       ("proc: introduce proc_create_single{,_data}")
      Cc: Christoph Hellwig <hch@lst.de>
      Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
      5ef03dbd
  2. May 18, 2018
  3. May 16, 2018