xfs: fix warnings with CONFIG_XFS_QUOTA disabled

Fix warnings about unitialized dquot variables by making sure
xfs_qm_vop_dqalloc touches it even when quotas are disabled.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Felix Blyakher <felixb@sgi.com>
Signed-off-by: Felix Blyakher <felixb@sgi.com>

authored by Christoph Hellwig and committed by Felix Blyakher 493b87e5 7747a0b0

+8 -1
+8 -1
fs/xfs/xfs_quota.h
··· 335 335 extern void xfs_qm_unmount_quotas(struct xfs_mount *); 336 336 337 337 #else 338 + static inline int 339 + xfs_qm_vop_dqalloc(struct xfs_inode *ip, uid_t uid, gid_t gid, prid_t prid, 340 + uint flags, struct xfs_dquot **udqp, struct xfs_dquot **gdqp) 341 + { 342 + *udqp = NULL; 343 + *gdqp = NULL; 344 + return 0; 345 + } 338 346 #define xfs_trans_dup_dqinfo(tp, tp2) 339 347 #define xfs_trans_free_dqinfo(tp) 340 348 #define xfs_trans_mod_dquot_byino(tp, ip, fields, delta) ··· 350 342 #define xfs_trans_unreserve_and_mod_dquots(tp) 351 343 #define xfs_trans_reserve_quota_nblks(tp, ip, nblks, ninos, flags) (0) 352 344 #define xfs_trans_reserve_quota_bydquots(tp, mp, u, g, nb, ni, fl) (0) 353 - #define xfs_qm_vop_dqalloc(ip, uid, gid, prid, fl, ou, og) (0) 354 345 #define xfs_qm_vop_create_dqattach(tp, ip, u, g) 355 346 #define xfs_qm_vop_rename_dqattach(it) (0) 356 347 #define xfs_qm_vop_chown(tp, ip, old, new) (NULL)