fix two warnings on mm/percpu.c
Subsystems (2)
PATCH 1/1 fix two warnings on mm/percpu.c
fix those two warnings:
mm/percpu.c: In function a??pcpu_embed_first_chunka??:mm/percpu.c:1873: warning: comparison of distinct pointer types lacks a cast mm/percpu.c:1879: warning: format a??%lxa?? expects type a??long unsigned inta??, but argument 2 has type a??size_t
--- mm/percpu.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
mm/percpu.c +2 -1
@@ -1817,7 +1817,8 @@ int __init pcpu_embed_first_chunk(size_t reserved_size, ssize_t dyn_size,void *base = (void *)ULONG_MAX ;void **areas =NULL ;struct pcpu_alloc_info *ai; -size_t size_sum, areas_size, max_distance; +size_t size_sum, areas_size; +unsigned long max_distance;int group, i, rc; ai = pcpu_build_alloc_info(reserved_size, dyn_size, atom_size,
Signature · 11 lines
1.6.3.3 -- -------------------------------- http://zhwen.org - Open and Free -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Quoted 6 lines · Zhenwen Xu
fix those two warnings:
mm/percpu.c: In function ‘pcpu_embed_first_chunk’:mm/percpu.c:1873: warning: comparison of distinct pointer types lacks a castmm/percpu.c:1879: warning: format ‘%lx’ expects type ‘long unsigned int’, but argument 2 has type ‘size_t
It is fixed:
http://patchwork.kernel.org/patch/51565/
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>