summaryrefslogtreecommitdiffstats
path: root/arch/ia64
diff options
context:
space:
mode:
authorPeng Liu <liupeng256@huawei.com>2022-04-29 14:36:57 -0700
committerakpm <akpm@linux-foundation.org>2022-04-29 14:36:57 -0700
commitf81f6e4b5eedb41045fd0ccc8ea31f4f07ce0993 (patch)
tree7f049028b7db18a55cfbb6a05836defacbdc7c96 /arch/ia64
parentf87442f407af80dac4dc81c8a7772b71b36b2e09 (diff)
downloadlinux-f81f6e4b5eedb41045fd0ccc8ea31f4f07ce0993.tar.gz
linux-f81f6e4b5eedb41045fd0ccc8ea31f4f07ce0993.tar.bz2
linux-f81f6e4b5eedb41045fd0ccc8ea31f4f07ce0993.zip
hugetlb: fix return value of __setup handlers
When __setup() return '0', using invalid option values causes the entire kernel boot option string to be reported as Unknown. Hugetlb calls __setup() and will return '0' when set invalid parameter string. The following phenomenon is observed: cmdline: hugepagesz=1Y hugepages=1 dmesg: HugeTLB: unsupported hugepagesz=1Y HugeTLB: hugepages=1 does not follow a valid hugepagesz, ignoring Unknown kernel command line parameters "hugepagesz=1Y hugepages=1" Since hugetlb will print warning/error information before return for invalid parameter string, just use return '1' to avoid print again. Link: https://lkml.kernel.org/r/20220413032915.251254-4-liupeng256@huawei.com Signed-off-by: Peng Liu <liupeng256@huawei.com> Reviewed-by: Muchun Song <songmuchun@bytedance.com> Reviewed-by: Baolin Wang <baolin.wang@linux.alibaba.com> Reviewed-by: Davidlohr Bueso <dave@stgolabs.net> Reviewed-by: Mike Kravetz <mike.kravetz@oracle.com> Cc: David Hildenbrand <david@redhat.com> Cc: Liu Yuntao <liuyuntao10@huawei.com> Cc: Zhenguo Yao <yaozhenguo1@gmail.com> Cc: Kefeng Wang <wangkefeng.wang@huawei.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'arch/ia64')
0 files changed, 0 insertions, 0 deletions