Commit 8ad018d
slab: use new API for remaining command line parameters
Use core_param() and __core_param_cb() instead of __setup() or
__setup_param() to improve syntax checking and error messages.
Replace get_option() with kstrtouint(), because:
* the latter accepts a pointer to const char,
* these parameters should not accept ranges,
* error value can be passed directly to parser.
There is one more change apart from the parsing of numeric parameters:
slab_strict_numa parameter name must match exactly. Before this patch the
kernel would silently accept any option that starts with the name as an
undocumented alias.
Signed-off-by: Petr Tesarik <ptesarik@suse.com>
Link: https://patch.msgid.link/6ae7e0ddc72b7619203c07dd5103a598e12f713b.1761324765.git.ptesarik@suse.com
Reviewed-by: Harry Yoo <harry.yoo@oracle.com>
Signed-off-by: Vlastimil Babka <vbabka@suse.cz>1 parent aed760d commit 8ad018d
1 file changed
Lines changed: 34 additions & 23 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8131 | 8131 | | |
8132 | 8132 | | |
8133 | 8133 | | |
8134 | | - | |
| 8134 | + | |
8135 | 8135 | | |
8136 | | - | |
| 8136 | + | |
| 8137 | + | |
| 8138 | + | |
| 8139 | + | |
| 8140 | + | |
8137 | 8141 | | |
8138 | 8142 | | |
8139 | 8143 | | |
8140 | 8144 | | |
8141 | | - | |
| 8145 | + | |
8142 | 8146 | | |
8143 | 8147 | | |
8144 | | - | |
8145 | | - | |
8146 | | - | |
| 8148 | + | |
| 8149 | + | |
| 8150 | + | |
| 8151 | + | |
| 8152 | + | |
8147 | 8153 | | |
8148 | | - | |
| 8154 | + | |
8149 | 8155 | | |
8150 | | - | |
| 8156 | + | |
| 8157 | + | |
| 8158 | + | |
| 8159 | + | |
| 8160 | + | |
| 8161 | + | |
8151 | 8162 | | |
8152 | 8163 | | |
8153 | 8164 | | |
8154 | 8165 | | |
8155 | 8166 | | |
8156 | | - | |
| 8167 | + | |
8157 | 8168 | | |
8158 | 8169 | | |
8159 | | - | |
8160 | | - | |
8161 | | - | |
8162 | | - | |
8163 | | - | |
8164 | | - | |
8165 | | - | |
8166 | | - | |
8167 | | - | |
| 8170 | + | |
| 8171 | + | |
| 8172 | + | |
| 8173 | + | |
| 8174 | + | |
8168 | 8175 | | |
8169 | | - | |
8170 | | - | |
| 8176 | + | |
| 8177 | + | |
8171 | 8178 | | |
8172 | 8179 | | |
8173 | | - | |
| 8180 | + | |
8174 | 8181 | | |
8175 | 8182 | | |
8176 | 8183 | | |
| |||
8179 | 8186 | | |
8180 | 8187 | | |
8181 | 8188 | | |
8182 | | - | |
| 8189 | + | |
8183 | 8190 | | |
8184 | 8191 | | |
8185 | | - | |
| 8192 | + | |
| 8193 | + | |
| 8194 | + | |
| 8195 | + | |
| 8196 | + | |
8186 | 8197 | | |
8187 | 8198 | | |
8188 | 8199 | | |
| |||
0 commit comments