Fix netfs_read_sizes() for 32-bit SMP arches to not have a return value. Fixes: 756f72b6d8db ("netfs: Fix potential for tearing in ->remote_i_size and ->zero_point") Reported-by: Mark Brown Closes: https://lore.kernel.org/r/aeoIAXzqh0n54mxl@sirena.org.uk Signed-off-by: David Howells cc: Christian Brauner cc: Paulo Alcantara cc: netfs@lists.linux.dev cc: linux-fsdevel@vger.kernel.org --- include/linux/netfs.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/linux/netfs.h b/include/linux/netfs.h index d72bc2f11734..ad394c088578 100644 --- a/include/linux/netfs.h +++ b/include/linux/netfs.h @@ -669,7 +669,6 @@ static inline void netfs_read_sizes(const struct netfs_inode *ictx, *remote_i_size = ictx->_remote_i_size; *zero_point = ictx->_zero_point; } while (read_seqcount_retry(&inode->i_size_seqcount, seq)); - return zero_point; #elif BITS_PER_LONG==32 && defined(CONFIG_PREEMPTION) unsigned long long zero_point;