On Fri, May 08, 2020 at 06:55:59AM -0400, Brian Foster wrote: > The random buffer write failure errortag patch introduced a local > mount pointer variable for the test macro, but the macro is compiled > out on !DEBUG kernels. This results in an unused variable warning. > > Access the mount structure through the buffer pointer and remove the > local mount pointer to address the warning. > > Fixes: 7376d745473 ("xfs: random buffer write failure errortag") > Signed-off-by: Brian Foster <bfoster@xxxxxxxxxx> Looks good: Reviewed-by: Christoph Hellwig <hch@xxxxxx>