linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] kernel/sysctl.c: remove to major base directories
@ 2023-05-26 22:22 Luis Chamberlain
  2023-05-26 22:22 ` [PATCH v2 1/2] sysctl: remove empty dev table Luis Chamberlain
  2023-05-26 22:22 ` [PATCH v2 2/2] signal: move show_unhandled_signals sysctl to its own file Luis Chamberlain
  0 siblings, 2 replies; 11+ messages in thread
From: Luis Chamberlain @ 2023-05-26 22:22 UTC (permalink / raw)
  To: keescook, yzaikin, ebiederm, dave.hansen, arnd, bp,
	James.Bottomley, deller, tglx, mingo, x86, hpa, luto, peterz,
	brgerst, christophe.jaillet, kirill.shutemov, jroedel
  Cc: j.granados, akpm, willy, linux-parisc, linux-fsdevel,
	linux-kernel, Luis Chamberlain

Changes on this v2:

  o remove header changes to architecture code. If they were already
    comiling this should not fail

Now that Joel has cleaned up and removed one of the routines which we wanted
to deprecate, remove two major arrays from kernel/sysctl.c which are empty or
almost empty. One of them, the debug one just needs moving to its source, so
do that.
                                                                                                                                                                                              
The move for the signal sysctl costs us 23 bytes but we have already saved
1465 bytes with the other recent cleanup Joel made. The next step is to
depreecate one more call and then we can simplify the registration to only
use ARRAY_SIZE() completely and remove the extra empty entries all over.
That should save us tons of bytes all around in the kernel and we'd then 
later kill for good all recursion possible sysctl registration calls.
                                                                                                                                                                                             
These patches apply on top of sysctl-next [0] which already carry Joel's
patches.                                                                                                             
                                                                                                                                                                                              
[0] https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux.git/log/?h=sysctl-next  

Luis Chamberlain (2):
  sysctl: remove empty dev table
  signal: move show_unhandled_signals sysctl to its own file

 kernel/signal.c | 23 +++++++++++++++++++++++
 kernel/sysctl.c | 19 -------------------
 2 files changed, 23 insertions(+), 19 deletions(-)

-- 
2.39.2


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2023-06-01  5:35 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-05-26 22:22 [PATCH v2 0/2] kernel/sysctl.c: remove to major base directories Luis Chamberlain
2023-05-26 22:22 ` [PATCH v2 1/2] sysctl: remove empty dev table Luis Chamberlain
2023-05-29 20:04   ` Joel Granados
2023-05-30 16:42     ` Luis Chamberlain
2023-05-30 21:10       ` Joel Granados
2023-05-30 22:55       ` Luis Chamberlain
2023-06-01  5:35         ` Joel Granados
2023-05-30 21:13   ` Joel Granados
2023-05-26 22:22 ` [PATCH v2 2/2] signal: move show_unhandled_signals sysctl to its own file Luis Chamberlain
2023-05-29 20:05   ` Joel Granados
2023-05-30 21:14   ` Joel Granados

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).