Re: [PATCH 2/2] mm: hugetlb: fix type of hugetlb_treat_as_movable variable

From: David Rientjes
Date: Wed Dec 17 2014 - 19:40:10 EST


On Wed, 17 Dec 2014, Andrey Ryabinin wrote:

> hugetlb_treat_as_movable declared as unsigned long, but
> proc_dointvec() used for parsing it:
>
> static struct ctl_table vm_table[] = {
> ...
> {
> .procname = "hugepages_treat_as_movable",
> .data = &hugepages_treat_as_movable,
> .maxlen = sizeof(int),
> .mode = 0644,
> .proc_handler = proc_dointvec,
> },
>
> This seems harmless, but it's better to use int type here.
>
> Signed-off-by: Andrey Ryabinin <a.ryabinin@xxxxxxxxxxx>

Acked-by: David Rientjes <rientjes@xxxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/