public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* re: gpio-ml-ioh: Support interrupt function
@ 2011-10-17 20:10 Dan Carpenter
  2011-10-18  0:32 ` Tomoya MORINAGA
  0 siblings, 1 reply; 7+ messages in thread
From: Dan Carpenter @ 2011-10-17 20:10 UTC (permalink / raw)
  To: Tomoya MORINAGA; +Cc: linux-kernel, Grant Likely

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-10-18 12:12 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-17 20:10 gpio-ml-ioh: Support interrupt function Dan Carpenter
2011-10-18  0:32 ` Tomoya MORINAGA
2011-10-18  5:56   ` David Rientjes
2011-10-18  6:38     ` Tomoya MORINAGA
2011-10-18  6:52       ` David Rientjes
2011-10-18  7:03         ` Tomoya MORINAGA
2011-10-18 12:12     ` Tomoya MORINAGA

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox