[PATCH] powerpc/mpic_msgr: Use kcalloc and correct the argument to sizeof

2014-07-06 Thread Himangi Saraogi
mpic_msgrs has type struct mpic_msgr **, not struct mpic_msgr *, so the elements of the array should have pointer type, not structure type. The advantage of kcalloc is, that will prevent integer overflows which could result from the multiplication of number of elements and size and it is also a bit

[PATCH v10 4/7] powerpc: add pmd_[dirty|mkclean] for THP

2014-07-06 Thread Minchan Kim
MADV_FREE needs pmd_dirty and pmd_mkclean for detecting recent overwrite of the contents since MADV_FREE syscall is called for THP page. This patch adds pmd_dirty and pmd_mkclean for THP page MADV_FREE support. Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: "Aneesh Kumar K.V" Cc: linuxppc-d

Re: [PATCH v4] powerpc/powernv: hwmon driver for power, fan rpm, voltage and temperature

2014-07-06 Thread Benjamin Herrenschmidt
On Fri, 2014-07-04 at 19:25 -0700, Guenter Roeck wrote: > > +cooling-fan#8-data { > > + sensor-id = <0x7052107>; > > + phandle = <0x1028>; > > + linux,phandle = <0x1028>; > > + compatible = "ibm,opal-sensor-cooling-fan"; > > phandle and linux-phandle are neither documented