Re: [PATCH] MD: fix missing cpu_to_le32 for MD_FEATURE_JOURNAL

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

 



Song Liu <songliubraving@xxxxxx> writes:

> sb->feature_map is __le32, add missing cpu_to_le32()
>
> Reported-by: kbuild test robot <fengguang.wu@xxxxxxxxx>
> Signed-off-by: Song Liu <songliubraving@xxxxxx>
> ---
>  drivers/md/md.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/md/md.c b/drivers/md/md.c
> index 378b9f0..163b548 100644
> --- a/drivers/md/md.c
> +++ b/drivers/md/md.c
> @@ -1812,7 +1812,7 @@ retry:
>  		sb->dev_roles[i] = cpu_to_le16(MD_DISK_ROLE_FAULTY);
>  
>  	if (test_bit(MD_HAS_JOURNAL, &mddev->flags))
> -		sb->feature_map |= MD_FEATURE_JOURNAL;
> +		sb->feature_map |= cpu_to_le32(MD_FEATURE_JOURNAL);
>  
>  	rdev_for_each(rdev2, mddev) {
>  		i = rdev2->desc_nr;
> -- 
> 2.4.6

Thanks.
I just emrged this in rather than create a new patch.

NeilBrown

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux