Skip to content

Commit 7ac6eb4

Browse files
author
Darrick J. Wong
committed
xfs: fix up build warnings when quotas are disabled
Fix some build warnings on gcc 10.2 when quotas are disabled. Signed-off-by: Darrick J. Wong <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Reviewed-by: Brian Foster <[email protected]>
1 parent ad4a747 commit 7ac6eb4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

fs/xfs/xfs_quota.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ xfs_qm_vop_dqalloc(struct xfs_inode *ip, kuid_t kuid, kgid_t kgid,
130130
}
131131
#define xfs_trans_dup_dqinfo(tp, tp2)
132132
#define xfs_trans_free_dqinfo(tp)
133-
#define xfs_trans_mod_dquot_byino(tp, ip, fields, delta)
133+
#define xfs_trans_mod_dquot_byino(tp, ip, fields, delta) do { } while (0)
134134
#define xfs_trans_apply_dquot_deltas(tp)
135135
#define xfs_trans_unreserve_and_mod_dquots(tp)
136136
static inline int xfs_trans_reserve_quota_nblks(struct xfs_trans *tp,
@@ -166,8 +166,8 @@ xfs_trans_reserve_quota_icreate(struct xfs_trans *tp, struct xfs_dquot *udqp,
166166
#define xfs_qm_dqattach(ip) (0)
167167
#define xfs_qm_dqattach_locked(ip, fl) (0)
168168
#define xfs_qm_dqdetach(ip)
169-
#define xfs_qm_dqrele(d)
170-
#define xfs_qm_statvfs(ip, s)
169+
#define xfs_qm_dqrele(d) do { (d) = (d); } while(0)
170+
#define xfs_qm_statvfs(ip, s) do { } while(0)
171171
#define xfs_qm_newmount(mp, a, b) (0)
172172
#define xfs_qm_mount_quotas(mp)
173173
#define xfs_qm_unmount(mp)

0 commit comments

Comments
 (0)