lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Wed, 20 May 2015 07:03:00 +0200
From:	Bart Van Assche <bart.vanassche@...disk.com>
To:	Joe Perches <joe@...ches.com>, <linux-kernel@...r.kernel.org>,
	Jens Axboe <axboe@...nel.dk>,
	"James E.J. Bottomley" <JBottomley@...n.com>
CC:	<linux-scsi@...r.kernel.org>
Subject: Re: [PATCH 10/12] scsi: Use DECLARE_BITMAP

On 05/20/15 03:37, Joe Perches wrote:
> Use the generic mechanism to declare a bitmap instead of unsigned long.
>
> Signed-off-by: Joe Perches <joe@...ches.com>
> ---
>   drivers/scsi/sr.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/scsi/sr.c b/drivers/scsi/sr.c
> index 8bd54a6..f40c957 100644
> --- a/drivers/scsi/sr.c
> +++ b/drivers/scsi/sr.c
> @@ -99,7 +99,7 @@ static struct scsi_driver sr_template = {
>   	.done			= sr_done,
>   };
>
> -static unsigned long sr_index_bits[SR_DISKS / BITS_PER_LONG];
> +static DECLARE_BITMAP(sr_index_bits, SR_DISKS);
>   static DEFINE_SPINLOCK(sr_index_lock);
>
>   /* This semaphore is used to mediate the 0->1 reference get in the

Reviewed-by: Bart Van Assche <bart.vanassche@...disk.com>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ