[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20111017201058.GA13916@elgon.mountain>
Date: Mon, 17 Oct 2011 23:10:58 +0300
From: Dan Carpenter <dan.carpenter@...cle.com>
To: Tomoya MORINAGA <tomoya-linux@....okisemi.com>
Cc: linux-kernel@...r.kernel.org,
Grant Likely <grant.likely@...retlab.ca>
Subject: re: gpio-ml-ioh: Support interrupt function
Hi,
The linux-next patch 54be566317b6 "gpio-ml-ioh: Support interrupt
function" generates a Sparse warning.
+ irq_base = irq_alloc_descs(-1, IOH_IRQ_BASE, num_ports[j],
+ GFP_KERNEL);
^^^^^^^^^^
The last argument should be a NUMA node, not a GFP_ flag. I'm not
sure what the right fix is. There are currently 5 callers in my
cscope for this function in linux-next.
2 pass GFP_KERNEL which is wrong.
2 pass 0 which maybe should be cpu_to_node(0)?
1 passes -1 which maybe could be NUMA_NO_NODE?
I'm probably embarrassing myself with my ignorance here, but I do
know that GFP_KERNEL isn't right.
regards,
dan carpenter
--
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