Skip to contentSkip to conversation

linux-4.4-rc8/arch/sparc/kernel/pcic.c:785: possible int/long mixup ?

DISCUSSION David Miller 1 participant 1 message Jan 5, 2016

lore
Share & tools
lore
#0 lore raw

From: David Binderman <[email protected]>
Date: Mon, 4 Jan 2016 09:02:34 +0000

Quoted 3 lines

Hello there,

[linux-4.4-rc8/arch/sparc/kernel/pcic.c:785]: (style) int result is returned as long value. If the return value is long to avoid loss of information, then you have loss of information.

Sparc 32-bit has both long and int the same size, and yes IRQ numbers are limited to be below (1 << 32) -1.