Re: sd.h: copy error in sd_first_printk() ?

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

 



Hi Dietmar,

This didn't cause any real grief since all callers have an sdkp. But
it's definitely a typo on my part. I applied your patch to
5.1/scsi-queue.

Your contribution didn't quite follow the Linux kernel patch submission
guidelines. I fixed up the warnings before committing but I encourage
you to read:

	Documentation/process/submitting-patches.rst

Thanks!

> commit b2bff6ceb61a9 added the macro sd_first_printk().
> It seems there is a copy error:
>
> diff --git a/drivers/scsi/sd.h b/drivers/scsi/sd.h
> index 7f43e6839bce..cce0e96191e7 100644
> --- a/drivers/scsi/sd.h
> +++ b/drivers/scsi/sd.h
> @@ -132,7 +132,7 @@ static inline struct scsi_disk *scsi_disk(struct gendisk *disk)
>  
>  #define sd_first_printk(prefix, sdsk, fmt, a...)                       \
>         do {                                                            \
> -               if ((sdkp)->first_scan)                                 \
> +               if ((sdsk)->first_scan)                                 \
>                         sd_printk(prefix, sdsk, fmt, ##a);              \
>         } while (0)
>  
> Dietmar.

-- 
Martin K. Petersen	Oracle Linux Engineering



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]

  Powered by Linux