diff options
| author | Peng Liu <[email protected]> | 2022-04-29 14:36:57 -0700 |
|---|---|---|
| committer | akpm <[email protected]> | 2022-04-29 14:36:57 -0700 |
| commit | f81f6e4b5eedb41045fd0ccc8ea31f4f07ce0993 (patch) | |
| tree | 7f049028b7db18a55cfbb6a05836defacbdc7c96 /tools/perf/scripts/python/export-to-postgresql.py | |
| parent | f87442f407af80dac4dc81c8a7772b71b36b2e09 (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/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions