Re: AHCI_SHT(), ATA_BASE_SHT() and .can_queue

From: Tejun Heo
Date: Fri Jan 20 2012 - 12:45:43 EST


On Fri, Jan 20, 2012 at 05:38:45PM +0000, Bart Van Assche wrote:
> Unfortunately sparse complains about that construct. It is annoying
> when checking e.g. drivers/scsi with sparse to see sparse complain
> many times about two different values being specified for .can_queue.
> Should the sparse authors remove that warning ?

I really don't know. Maybe sparse can provide explicit annotation
(e.g. multiple initializers for this struct is okay)? Maybe we can
just exclude duplicate initializer check on the few affected files.
Or, we can just keep ignoring them.

Thanks.

--
tejun
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/