Re: [PATCH v3 1/3] btrfs: Move btrfs_check_super_valid() to avoid forward declaration

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, May 11, 2018 at 11:36:54AM +0200, David Sterba wrote:
> On Fri, May 11, 2018 at 01:35:25PM +0800, Qu Wenruo wrote:
> > Just move btrfs_check_super_valid() before its single caller to avoid
> > forward declaration.
> 
> Please don't move functions just to get rid of the forward declarations.
> 
> Moving functions to make them static or if they're in a wrong .c is OK,
> but the extra forward declaration is not that bad and moving code
> without any change just pollutest the git history. I'll drop the patch,
> sorry.

Hm, OK I now see why you did it. Fixing up the order of the related
static functions would need new forward declarations, so I'll apply the
patch after all.
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux