[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20161108145508.GA12519@lst.de>
Date: Tue, 8 Nov 2016 15:55:09 +0100
From: Christoph Hellwig <hch@....de>
To: Hannes Reinecke <hare@...e.de>
Cc: Christoph Hellwig <hch@....de>, tglx@...utronix.de,
axboe@...nel.dk, linux-block@...r.kernel.org,
linux-pci@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 3/7] genirq/affinity: Handle pre/post vectors in
irq_create_affinity_masks()
[please trim the f***king context in your replies, thanks..]
On Tue, Nov 08, 2016 at 09:15:27AM +0100, Hannes Reinecke wrote:
>> +irq_create_affinity_masks(int nvecs, const struct irq_affinity *affd)
>> {
>> - int n, nodes, vecs_per_node, cpus_per_vec, extra_vecs, curvec = 0;
>> + int n, nodes, vecs_per_node, cpus_per_vec, extra_vecs, curvec;
>> + int affv = nvecs - affd->pre_vectors - affd->post_vectors;
>> nodemask_t nodemsk = NODE_MASK_NONE;
>> struct cpumask *masks;
>> cpumask_var_t nmsk;
> Check for NULL affd?
We expect all callers to pass a valid one.
Powered by blists - more mailing lists