aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorPeng Liu <[email protected]>2022-04-29 14:36:57 -0700
committerakpm <[email protected]>2022-04-29 14:36:57 -0700
commitf81f6e4b5eedb41045fd0ccc8ea31f4f07ce0993 (patch)
tree7f049028b7db18a55cfbb6a05836defacbdc7c96 /tools/perf/scripts/python
parentf87442f407af80dac4dc81c8a7772b71b36b2e09 (diff)
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/[email protected] Signed-off-by: Peng Liu <[email protected]> Reviewed-by: Muchun Song <[email protected]> Reviewed-by: Baolin Wang <[email protected]> Reviewed-by: Davidlohr Bueso <[email protected]> Reviewed-by: Mike Kravetz <[email protected]> Cc: David Hildenbrand <[email protected]> Cc: Liu Yuntao <[email protected]> Cc: Zhenguo Yao <[email protected]> Cc: Kefeng Wang <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions