Make SRCU optional; make portions of the kernel that define an srcu_struct
depend on the resulting new Kconfig symbol. This will include the srcu_notifier mechanism, in turn used by the clock framework and cpufreq.
Rip out the rest of kernel/smpboot.c if !CONFIG_SMP
Make ptrace optional.
Rip out more of the per-CPU infrastructure when CONFIG_SMP=n
Support configuring out kswapd.
Make the kernel's entire random number infrastructure optional.
Compile out mm/vmstat
(need to stub out bits that obtain statistics used by other bits of the kernel)
Compile out signal handling.
Compile out support for capabilities; make capable always return true for root and false for non-root. (done)
Compile out support for "personalities".
Compile out support for non-root users and groups. When disabled, UID and GID effectively always equal 0, and all the syscalls involving UIDs and GIDs go away. (done)
Compile out support for supplementary GIDs. (This option would depend on the previous option for non-root users and groups.)
Compile out support for xattrs, and all the corresponding syscalls.
Compile out support for sockets and all the socket-related syscalls.
Compile out support for character devices, similar to the existing CONFIG_BLOCK.
Support nommu on x86.
Revive the function-sections support. (Note: LTO would make this obsolete; only worth working on this if LTO takes too long to get upstream.)
Drop exported symbols not used by the set of modules compiled with the kernel. Add a new Kconfig option (default y) to export all symbols; when turned off, analyze the set of symbols needed by all compiled modules, and allow the compiler to omit all other symbols from the compiled kernel. (Note that stripping those symbols from the kernel after building won't allow the compiler to throw away other symbols that then become unused.)
Automatic syscall elimination: Given a specific userspace, automatically find out what syscalls it needs and compile everything else out.
Kernel command-line constant folding: Given a kernel command line at compile-time, parse it and turn all the variables it would end up in into compile-time constants.
Execute in place (XIP) for x86
Constant folding for unused mount options (for instance, drop ext4's dioread_lock options at build time)
Add size test for kselftest: boot a minimal kernel under qemu/kvm, and capture information from that kernel. CONFIG_PRINTK would allow capturing the display of available memory from early boot, but we want to support kernels without CONFIG_PRINTK. This could also use -mem-path and capture data directly from a memory address. Ideally, the memory check and writing to a specified address should occur right before the kernel would attempt to run /sbin/init; the check itself needs to be optional too, though.
Go look at patches in OpenWRT to make the kernel smaller
Analyze size of inlines (Andi Kleen has some scripts)
make kernel/pid.o configurable (replace pidhash system with simpler pid allocator (e.g. from 1.0))
Compile out TSC support and calibration.
Compile out types of video support from arch/x86/boot: VESA, VGA, and BIOS
Compile out MCA support from arch/x86/boot.
Compile out arch/x86/kernel/cpu/intel_cacheinfo.c
Compile out spurious interrupt support (kernel/irq/spurious.c)
Compile out process exit support (kernel/exit.c and the corresponding syscalls), for systems that will only ever run a fixed set of processes that should never exit.
Revive and complete the patches to remove perf and the instruction decoder. Need to rework the config option structure.
review items in kernel/Makefile: obj-y target, and eliminate or reduce for tiny kernels
Allow board-specific DT parser removal. From Josh, "… effectively compile in a parsed description and ditch the parser. Bonus if you can make the values parsed out of it into compile-time constants for constant folding." Jason Cooper
jason@lakedaemon.net is responsible for this idea.