Use DEFINE_PROC_SHOW_ATTRIBUTE/DEFINE_SHOW_ATTRIBUTE helper macro to simplify the code. No functional change. ChenXiaoSong (5): nfsd: use DEFINE_PROC_SHOW_ATTRIBUTE to define nfsd_proc_ops nfsd: use DEFINE_SHOW_ATTRIBUTE to define export_features_fops and supported_enctypes_fops nfsd: use DEFINE_SHOW_ATTRIBUTE to define client_info_fops nfsd: use DEFINE_SHOW_ATTRIBUTE to define nfsd_reply_cache_stats_fops nfsd: use DEFINE_SHOW_ATTRIBUTE to define nfsd_file_cache_stats_fops fs/nfsd/cache.h | 2 +- fs/nfsd/filecache.c | 7 +------ fs/nfsd/filecache.h | 2 +- fs/nfsd/nfs4state.c | 14 ++------------ fs/nfsd/nfscache.c | 13 +++---------- fs/nfsd/nfsctl.c | 46 ++++++++------------------------------------- fs/nfsd/stats.c | 14 ++------------ 7 files changed, 18 insertions(+), 80 deletions(-) -- 2.31.1