]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/boot: Fix compile warning in 64bit
authorCédric Le Goater <clg@fr.ibm.com>
Thu, 24 Apr 2014 07:23:32 +0000 (09:23 +0200)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 28 Apr 2014 07:35:51 +0000 (17:35 +1000)
commit6b32a462e9f35e1f3ce9fbd6d94d30c531c07f1a
treeedab755154946a3ecfb54805955c7c35ddafdb21
parent18f531fed7115daee0ba9848e2e85a760b1eecd5
powerpc/boot: Fix compile warning in 64bit

arch/powerpc/boot/oflib.c:211:9: warning: cast to pointer from integer of \
  different size [-Wint-to-pointer-cast]
  return (phandle) of_call_prom("finddevice", 1, 1, name);

This is a work around. The definite solution would be to define the
phandle typedef as a u32, as in the kernel, but this would break the
device tree ops API.

Let it be for the moment.

Signed-off-by: Cédric Le Goater <clg@fr.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/boot/oflib.c