Commit 0829381
parport: Remove the now superfluous sentinel element from ctl_table array
This commit comes at the tail end of a greater effort to remove the
empty elements at the end of the ctl_table arrays (sentinels) which
will reduce the overall build time size of the kernel and run time
memory bloat by ~64 bytes per sentinel (further information Link :
https://lore.kernel.org/all/ZO5Yx5JFogGi%2FcBo@bombadil.infradead.org/)
Remove the unneeded ctl_tables that were used to register intermediate
parport directories; only the path is needed at this point. From
parport_device_sysctl_table we removed: devices_root_dir, port_dir,
parport_dir and dev_dir. From parport_default_sysctl_table we removed:
default_dir, parport_dir and dev_dir. Reduce the size by one of the
ctl_table arrays that were not removed
Assign different sizes to the vars array in parport_sysctl_table
depending on CONFIG_PARPORT_1284; this is necessary now that the sysctl
register function uses ARRAY_SIZE to calculate the elements within.
Remove the sentinel element from parport_sysctl_template,
parport_device_sysctl_table and parport_default_sysctl_table.
Signed-off-by: Joel Granados <j.granados@samsung.com>
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>1 parent b52b716 commit 0829381
1 file changed
Lines changed: 11 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
259 | 259 | | |
260 | 260 | | |
261 | 261 | | |
262 | | - | |
263 | | - | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
264 | 268 | | |
265 | 269 | | |
266 | 270 | | |
| |||
341 | 345 | | |
342 | 346 | | |
343 | 347 | | |
344 | | - | |
345 | 348 | | |
346 | 349 | | |
347 | 350 | | |
| |||
351 | 354 | | |
352 | 355 | | |
353 | 356 | | |
354 | | - | |
355 | 357 | | |
356 | 358 | | |
357 | 359 | | |
358 | 360 | | |
359 | 361 | | |
360 | 362 | | |
361 | | - | |
362 | | - | |
363 | | - | |
364 | | - | |
365 | | - | |
366 | | - | |
| 363 | + | |
| 364 | + | |
367 | 365 | | |
368 | 366 | | |
369 | 367 | | |
| |||
379 | 377 | | |
380 | 378 | | |
381 | 379 | | |
382 | | - | |
383 | 380 | | |
384 | 381 | | |
385 | 382 | | |
| |||
388 | 385 | | |
389 | 386 | | |
390 | 387 | | |
391 | | - | |
392 | 388 | | |
393 | 389 | | |
394 | 390 | | |
395 | 391 | | |
396 | 392 | | |
397 | 393 | | |
398 | | - | |
399 | | - | |
400 | | - | |
401 | | - | |
| 394 | + | |
402 | 395 | | |
403 | 396 | | |
404 | 397 | | |
| |||
423 | 416 | | |
424 | 417 | | |
425 | 418 | | |
426 | | - | |
427 | 419 | | |
428 | 420 | | |
429 | 421 | | |
| |||
443 | 435 | | |
444 | 436 | | |
445 | 437 | | |
| 438 | + | |
446 | 439 | | |
| 440 | + | |
447 | 441 | | |
448 | 442 | | |
449 | 443 | | |
| |||
0 commit comments