Skip to content

JANITOR: Remove include/linux/sys.h

Mika Kukkonen kernel-janitors 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest14 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/14JANITOR: Remove #include <linux/sys.h> from C6Xarch/c6x/kernel/entry.S+0 -10 replies
2/14JANITOR: Remove #include <linux/sys.h> from CRISarch/cris/arch-v10/kernel/entry.S arch/cris/arch-v32/kernel/entry.S+0 -20 replies
3/14JANITOR: Remove #include <linux/sys.h> from FRVarch/frv/kernel/cmode.S arch/frv/kernel/entry-table.S arch/frv/kernel/sleep.S +2 more+0 -50 replies
4/14JANITOR: Remove #include <linux/sys.h> from H8300arch/h8300/kernel/entry.S arch/h8300/kernel/syscalls.S+0 -20 replies
5/14JANITOR: Remove #include <linux/sys.h> from MICROBLAZEarch/microblaze/kernel/entry.S arch/microblaze/kernel/misc.S arch/microblaze/kernel/sys_microblaze.c+0 -30 replies
6/14JANITOR: Remove #include <linux/sys.h> from MIPSarch/mips/kernel/process.c+0 -10 replies
7/14JANITOR: Remove #include <linux/sys.h> from MN10300arch/mn10300/kernel/entry.S arch/mn10300/kernel/gdb-io-serial-low.S arch/mn10300/kernel/gdb-io-ttysm-low.S +16 more+0 -190 replies
8/14JANITOR: Remove #include <linux/sys.h> from PARISCarch/parisc/hpux/entry_hpux.S+0 -10 replies
9/14JANITOR: Remove #include <linux/sys.h> from POWERPCarch/powerpc/kernel/entry_32.S arch/powerpc/kernel/misc_32.S arch/powerpc/kernel/misc_64.S +3 more+0 -60 replies
10/14JANITOR: Remove #include <linux/sys.h> from SHarch/sh/boards/mach-ap325rxa/sdram.S arch/sh/boards/mach-ecovec24/sdram.S arch/sh/boards/mach-kfr2r09/sdram.S +9 more+0 -130 replies
11/14JANITOR: Remove #include <linux/sys.h> from X86arch/x86/ia32/syscall_ia32.c arch/x86/kernel/syscall_32.c arch/x86/kernel/syscall_64.c +2 more+0 -51 reply
11/14JANITOR: Remove #include <linux/sys.h> from UNICORE32arch/unicore32/kernel/hibernate_asm.S+0 -10 replies
13/14JANITOR: Remove #include <linux/sys.h> from NETnet/core/pktgen.c+0 -10 replies
14/14JANITOR: Delete include/linux/sys.hinclude/linux/sys.h+0 -290 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/14] JANITOR: Remove include/linux/sys.h

Hello,

File include/linux/sys.h has a comment stating that the "file is no longer used or needed", but it is still included in multiple places under several architectures. It does contain bunch of #define's but those have been #ifdef'd out, and grepping did not show any uses of those #define's in the source tree outside this file.

The uses of the file seem partially be accidental remains of some old use, but almost all are in architecture specific code with only one outside in file net/core/pktgen.c. So this patchset has been divided to 14 parts, addressing 12 architectures (c6x, cris, frv, h8300, microblaze, mips, mn10300, parisc, powerpc, sh, unicore32 and x86) and the outlier in net and then the final patch removes the file itself. All patches can be applied invidually with the obvious exception of the last one which actually removes the file and should be last.

Diffstat:

 arch/c6x/kernel/entry.S                    |  1 -
 arch/cris/arch-v10/kernel/entry.S          |  1 -
 arch/cris/arch-v32/kernel/entry.S          |  1 -
 arch/frv/kernel/cmode.S                    |  1 -
 arch/frv/kernel/entry-table.S              |  1 -
 arch/frv/kernel/sleep.S                    |  1 -
 arch/frv/mm/tlb-flush.S                    |  1 -
 arch/frv/mm/tlb-miss.S                     |  1 -
 arch/h8300/kernel/entry.S                  |  1 -
 arch/h8300/kernel/syscalls.S               |  1 -
 arch/microblaze/kernel/entry.S             |  1 -
 arch/microblaze/kernel/misc.S              |  1 -
 arch/microblaze/kernel/sys_microblaze.c    |  1 -
 arch/mips/kernel/process.c                 |  1 -
 arch/mn10300/kernel/entry.S                |  1 -
 arch/mn10300/kernel/gdb-io-serial-low.S    |  1 -
 arch/mn10300/kernel/gdb-io-ttysm-low.S     |  1 -
 arch/mn10300/kernel/gdb-low.S              |  1 -
 arch/mn10300/kernel/mn10300-serial-low.S   |  1 -
 arch/mn10300/kernel/mn10300-watchdog-low.S |  1 -
 arch/mn10300/kernel/profile-low.S          |  1 -
 arch/mn10300/kernel/smp-low.S              |  1 -
 arch/mn10300/kernel/switch_to.S            |  1 -
 arch/mn10300/mm/cache-dbg-flush-by-reg.S   |  1 -
 arch/mn10300/mm/cache-dbg-flush-by-tag.S   |  1 -
 arch/mn10300/mm/cache-dbg-inv-by-reg.S     |  1 -
 arch/mn10300/mm/cache-dbg-inv-by-tag.S     |  1 -
 arch/mn10300/mm/cache-dbg-inv.S            |  1 -
 arch/mn10300/mm/cache-flush-by-reg.S       |  1 -
 arch/mn10300/mm/cache-flush-by-tag.S       |  1 -
 arch/mn10300/mm/cache-inv-by-reg.S         |  1 -
 arch/mn10300/mm/cache-inv-by-tag.S         |  1 -
 arch/mn10300/mm/tlb-mn10300.S              |  1 -
 arch/parisc/hpux/entry_hpux.S              |  1 -
 arch/powerpc/kernel/entry_32.S             |  1 -
 arch/powerpc/kernel/misc_32.S              |  1 -
 arch/powerpc/kernel/misc_64.S              |  1 -
 arch/powerpc/kernel/syscalls.c             |  1 -
 arch/powerpc/lib/checksum_32.S             |  1 -
 arch/powerpc/lib/checksum_64.S             |  1 -
 arch/sh/boards/mach-ap325rxa/sdram.S       |  1 -
 arch/sh/boards/mach-ecovec24/sdram.S       |  1 -
 arch/sh/boards/mach-kfr2r09/sdram.S        |  1 -
 arch/sh/boards/mach-migor/sdram.S          |  1 -
 arch/sh/boards/mach-se/7724/sdram.S        |  1 -
 arch/sh/kernel/cpu/sh3/entry.S             |  1 -
 arch/sh/kernel/cpu/sh3/swsusp.S            |  1 -
 arch/sh/kernel/cpu/sh5/entry.S             |  1 -
 arch/sh/kernel/cpu/shmobile/sleep.S        |  1 -
 arch/sh/kernel/debugtraps.S                |  1 -
 arch/sh/kernel/syscalls_32.S               |  1 -
 arch/sh/kernel/syscalls_64.S               |  2 --
 arch/unicore32/kernel/hibernate_asm.S      |  1 -
 arch/x86/ia32/syscall_ia32.c               |  1 -
 arch/x86/kernel/syscall_32.c               |  1 -
 arch/x86/kernel/syscall_64.c               |  1 -
 arch/x86/um/sys_call_table_32.c            |  1 -
 arch/x86/um/sys_call_table_64.c            |  1 -
 include/linux/sys.h                        | 29 -----------------------------
 net/core/pktgen.c                          |  1 -
 60 files changed, 89 deletions(-)

Compile tested only on x86, but should be obviously correct since the symbols are not defined or used anywhere.

The patchset is also available in my personal github tree as a branch janitor_retire_sys_h:
https://github.com/mikukkon/linux/tree/janitor_retire_sys_h.

--MiKu