Skip to content

m68k: W=1 fixes

Geert Uytterhoeven linux-m68k lkml 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest52 patches 0 repliesNew
  2. v152 patches 18 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/52m68k: kernel: Add missing asmlinkage to do_notify_resume()arch/m68k/kernel/signal.c+1 -10 replies
2/52m68k: kernel: Include <linux/cpu.h> for trap_init()arch/m68k/kernel/vectors.c+1 -00 replies
3/52m68k: kernel: Make bad_super_trap() staticarch/m68k/kernel/traps.c+1 -10 replies
4/52m68k: kernel: Add and use <asm/syscalls.h>arch/m68k/include/asm/syscalls.h arch/m68k/kernel/sys_m68k.c+21 -00 replies
5/52m68k: kernel: Add and use "ints.h"arch/m68k/kernel/ints.c arch/m68k/kernel/ints.h+9 -00 replies
6/52m68k: kernel: Add and use "process.h"arch/m68k/kernel/process.c arch/m68k/kernel/process.h+9 -00 replies
7/52m68k: kernel: Add and use "ptrace.h"arch/m68k/kernel/ptrace.c arch/m68k/kernel/ptrace.h+8 -00 replies
8/52m68k: kernel: Add and use "signal.h"arch/m68k/kernel/signal.c arch/m68k/kernel/signal.h+9 -00 replies
9/52m68k: kernel: Add and use "traps.h"arch/m68k/kernel/traps.c arch/m68k/kernel/traps.h+12 -00 replies
10/52m68k: kernel: Add and use "vectors.h"arch/m68k/kernel/vectors.c arch/m68k/kernel/vectors.h+5 -00 replies
11/52m68k: mm: Include <asm/hwtest.h> for hwreg_()arch/m68k/mm/hwtest.c+2 -00 replies
12/52m68k: mm: Move paging_init() to common <asm/pgtable.h>arch/m68k/include/asm/pgtable.h arch/m68k/include/asm/pgtable_no.h arch/m68k/kernel/setup_mm.c+9 -30 replies
13/52m68k: mm: Add and use "fault.h"arch/m68k/kernel/sys_m68k.c arch/m68k/kernel/traps.c arch/m68k/mm/fault.c +1 more+11 -60 replies
14/52m68k: emu: Remove unused vsnprintf() return value in nfprint()arch/m68k/emu/natfeat.c+1 -20 replies
15/52m68k: emu: Mark version[] __maybe_unusedarch/m68k/emu/nfeth.c+1 -10 replies
16/52m68k: amiga: pcmcia: Replace set but not used variable by READ_ONCE()arch/m68k/amiga/pcmcia.c+1 -20 replies
17/52m68k: amiga: Add and use "amiga.h"arch/m68k/amiga/amiga.h arch/m68k/amiga/amisound.c arch/m68k/amiga/config.c+9 -20 replies
18/52m68k: atari: Document data parameter of stdma_try_lock()arch/m68k/atari/stdma.c+1 -00 replies
19/52m68k: atari: Make ikbd_reset() staticarch/m68k/atari/atakeyb.c+1 -10 replies
20/52m68k: atari: Make atari_platform_init() staticarch/m68k/atari/config.c+1 -10 replies
21/52m68k: atari: Make atari_stram_map_pages() staticarch/m68k/atari/stram.c+1 -10 replies
22/52m68k: atari: Add and use "atari.h"arch/m68k/atari/ataints.c arch/m68k/atari/atari.h arch/m68k/atari/atasound.c +2 more+21 -110 replies
23/52m68k: apollo: Remove unused debug console functionsarch/m68k/apollo/config.c+0 -280 replies
24/52m68k: apollo: Make local reset, serial, and irq functions staticarch/m68k/apollo/config.c arch/m68k/apollo/dn_ints.c+7 -70 replies
25/52m68k: apollo: Replace set but not used variable by READ_ONCE()arch/m68k/apollo/config.c+3 -30 replies
26/52m68k: apollo: Add and use "apollo.h"arch/m68k/apollo/apollo.h arch/m68k/apollo/config.c arch/m68k/apollo/dn_ints.c+8 -10 replies
27/52m68k: bvme6000: Make bvme6000_abort_int() staticarch/m68k/bvme6000/config.c+1 -10 replies
28/52m68k: hp300: Include "time.h" for hp300_sched_init()arch/m68k/hp300/time.c+2 -00 replies
29/52m68k: mac: Remove unused sine_data[]arch/m68k/mac/macboing.c+0 -90 replies
30/52m68k: mac: Remove unused yday in unmktime()arch/m68k/mac/misc.c+1 -20 replies
31/52m68k: mac: Make mac_platform_init() staticarch/m68k/mac/config.c+1 -10 replies
32/52m68k: mac: Add and use "mac.h"arch/m68k/mac/baboon.c arch/m68k/mac/config.c arch/m68k/mac/iop.c +6 more+41 -100 replies
33/52m68k: mvme147: Make mvme147_init_IRQ() staticarch/m68k/mvme147/config.c+1 -10 replies
34/52m68k: mvme16x: Remove unused sink in mvme16x_cons_write()arch/m68k/mvme16x/config.c+1 -20 replies
35/52m68k: mvme16x: Add and use "mvme16x.h"arch/m68k/kernel/early_printk.c arch/m68k/mvme16x/config.c arch/m68k/mvme16x/mvme16x.h+10 -20 replies
36/52m68k: q40: Add and use "q40.h"arch/m68k/q40/config.c arch/m68k/q40/q40.h arch/m68k/q40/q40ints.c+10 -40 replies
37/52m68k: sun3/3x: Include <asm/config.h> for config_sun3*()arch/m68k/sun3/config.c arch/m68k/sun3x/config.c+2 -00 replies
38/52m68k: sun3: Improve Sun3/3x DVMA abstraction in <asm/dvma.h>arch/m68k/include/asm/dvma.h arch/m68k/sun3/sun3dvma.c+7 -160 replies
39/52m68k: sun3: Fix context restore in flush_tlb_range()arch/m68k/include/asm/tlbflush.h+1 -00 replies
40/52m68k: sun3: Fix signature of sun3_get_model()arch/m68k/sun3/idprom.c+1 -10 replies
41/52m68k: sun3: Add missing asmlinkage to sun3_init()arch/m68k/sun3/config.c+2 -10 replies
42/52m68k: sun3: Remove unused orig_baddr in free_baddr()arch/m68k/sun3/sun3dvma.c+0 -20 replies
43/52m68k: sun3: Remove unused start_page in sun3_bootmem_alloc()arch/m68k/sun3/config.c+0 -30 replies
44/52m68k: sun3: Remove unused vsprintf() return value in prom_printf()arch/m68k/sun3/prom/printf.c+2 -30 replies
45/52m68k: sun3: Annotate prom_printf() with __printf()arch/m68k/include/asm/oplib.h+3 -10 replies
46/52m68k: sun3: Make print_pte() staticarch/m68k/sun3/mmu_emu.c+1 -10 replies
47/52m68k: sun3: Make sun3_platform_init() staticarch/m68k/sun3/config.c+1 -10 replies
48/52m68k: sun3x: Fix signature of sun3_leds()arch/m68k/sun3x/config.c+1 -10 replies
49/52m68k: sun3x: Do not mark dvma_map_iommu() inlinearch/m68k/sun3x/dvma.c+1 -20 replies
50/52m68k: sun3x: Make sun3x_halt() staticarch/m68k/sun3x/prom.c+1 -10 replies
51/52m68k: sun3x: Make dvma_print() staticarch/m68k/sun3x/dvma.c+1 -10 replies
52/52m68k: sun3/3x: Add and use "sun3.h"arch/m68k/kernel/traps.c arch/m68k/mm/sun3kmap.c arch/m68k/mm/sun3mmu.c +8 more+36 -110 replies

Reviews trailers per patch

All 52 patches have a Reviewed-by or Acked-by.

PatchArnd Bergmann
1/52A-b
2/52A-b
3/52A-b
4/52A-b
5/52A-b
6/52A-b
7/52A-b
8/52A-b
9/52A-b
10/52A-b
11/52A-b
12/52A-b
13/52A-b
14/52A-b
15/52A-b
16/52A-b
17/52A-b
18/52A-b
19/52A-b
20/52A-b
21/52A-b
22/52A-b
23/52A-b
24/52A-b
25/52A-b
26/52A-b
27/52A-b
28/52A-b
29/52A-b
30/52A-b
31/52A-b
32/52A-b
33/52A-b
34/52A-b
35/52A-b
36/52A-b
37/52A-b
38/52A-b
39/52A-b
40/52A-b
41/52A-b
42/52A-b
43/52A-b
44/52A-b
45/52A-b
46/52A-b
47/52A-b
48/52A-b
49/52A-b
50/52A-b
51/52A-b
52/52A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 00/52] m68k: W=1 fixes

Hi all,

This patch series addresses the remaining (after [1]) warnings seen when building arch/m68k/ with W=1. Perhaps surprisingly, this work has identified and fixes a genuine bug in the Sun-3 TLB handling (see [PATCH 39/52]).

Most of the patches in these series are fairly trivial changes with a very low risk of introducing any regressions. For the less trivial patches, I did look at the assembler output before and after. As Arnd is working actively on enabling W=1 rather sooner than later, and if no one objects, I'm queueing these as fixes for v6.6.

Changes compared to v1[2]:
- Rebase against v6.6-rc1,
- Add Acked-by,
- Include "process.h" instead of <process.h>, to fix in-tree builds,
- Drop prefix from compiler output,
- Remove volatile and dedup casts, as suggested by Finn.

Note that this series does not address warnings on Coldfire or MMU-less systems, but Greg is already taking care of those.

Thanks for your comments!

[1] "[PATCH 0/6] m68k: math-emu: Miscellaneous esthetical improvements"

    https://lore.kernel.org/r/[email protected]
[2] "[PATCH 00/52] m68k: W=1 fixes"
    https://lore.kernel.org/r/[email protected]/

Geert Uytterhoeven (52):
m68k: kernel: Add missing asmlinkage to do_notify_resume()
m68k: kernel: Include <linux/cpu.h> for trap_init()
m68k: kernel: Make bad_super_trap() static
m68k: kernel: Add and use <asm/syscalls.h>
m68k: kernel: Add and use "ints.h"
m68k: kernel: Add and use "process.h"
m68k: kernel: Add and use "ptrace.h"
m68k: kernel: Add and use "signal.h"
m68k: kernel: Add and use "traps.h"
m68k: kernel: Add and use "vectors.h"
m68k: mm: Include <asm/hwtest.h> for hwreg_()
m68k: mm: Move paging_init() to common <asm/pgtable.h>
m68k: mm: Add and use "fault.h"
m68k: emu: Remove unused vsnprintf() return value in nfprint()
m68k: emu: Mark version[] __maybe_unused
m68k: amiga: pcmcia: Replace set but not used variable by READ_ONCE()
m68k: amiga: Add and use "amiga.h"
m68k: atari: Document data parameter of stdma_try_lock()
m68k: atari: Make ikbd_reset() static
m68k: atari: Make atari_platform_init() static
m68k: atari: Make atari_stram_map_pages() static
m68k: atari: Add and use "atari.h"
m68k: apollo: Remove unused debug console functions
m68k: apollo: Make local reset, serial, and irq functions static
m68k: apollo: Replace set but not used variable by READ_ONCE()
m68k: apollo: Add and use "apollo.h"
m68k: bvme6000: Make bvme6000_abort_int() static
m68k: hp300: Include "time.h" for hp300_sched_init()
m68k: mac: Remove unused sine_data[]
m68k: mac: Remove unused yday in unmktime()
m68k: mac: Make mac_platform_init() static
m68k: mac: Add and use "mac.h"
m68k: mvme147: Make mvme147_init_IRQ() static
m68k: mvme16x: Remove unused sink in mvme16x_cons_write()
m68k: mvme16x: Add and use "mvme16x.h"
m68k: q40: Add and use "q40.h"
m68k: sun3/3x: Include <asm/config.h> for config_sun3*()
m68k: sun3: Improve Sun3/3x DVMA abstraction in <asm/dvma.h>
m68k: sun3: Fix context restore in flush_tlb_range()
m68k: sun3: Fix signature of sun3_get_model()
m68k: sun3: Add missing asmlinkage to sun3_init()
m68k: sun3: Remove unused orig_baddr in free_baddr()
m68k: sun3: Remove unused start_page in sun3_bootmem_alloc()
m68k: sun3: Remove unused vsprintf() return value in prom_printf()
m68k: sun3: Annotate prom_printf() with __printf()
m68k: sun3: Make print_pte() static
m68k: sun3: Make sun3_platform_init() static
m68k: sun3x: Fix signature of sun3_leds()
m68k: sun3x: Do not mark dvma_map_iommu() inline
m68k: sun3x: Make sun3x_halt() static
m68k: sun3x: Make dvma_print() static
m68k: sun3/3x: Add and use "sun3.h"

 arch/m68k/amiga/amiga.h            |  5 ++++
 arch/m68k/amiga/amisound.c         |  2 ++
 arch/m68k/amiga/config.c           |  4 +--
 arch/m68k/amiga/pcmcia.c           |  3 +-
 arch/m68k/apollo/apollo.h          |  4 +++
 arch/m68k/apollo/config.c          | 45 ++++++------------------------
 arch/m68k/apollo/dn_ints.c         |  8 ++++--
 arch/m68k/atari/ataints.c          |  3 +-
 arch/m68k/atari/atakeyb.c          |  2 +-
 arch/m68k/atari/atari.h            | 15 ++++++++++
 arch/m68k/atari/atasound.c         |  1 +
 arch/m68k/atari/config.c           | 13 ++-------
 arch/m68k/atari/stdma.c            |  1 +
 arch/m68k/atari/stram.c            |  2 +-
 arch/m68k/atari/time.c             |  2 ++
 arch/m68k/bvme6000/config.c        |  2 +-
 arch/m68k/emu/natfeat.c            |  3 +-
 arch/m68k/emu/nfeth.c              |  2 +-
 arch/m68k/hp300/time.c             |  2 ++
 arch/m68k/include/asm/dvma.h       |  8 +++++-
 arch/m68k/include/asm/oplib.h      |  4 ++-
 arch/m68k/include/asm/pgtable.h    |  9 ++++++
 arch/m68k/include/asm/pgtable_no.h |  1 -
 arch/m68k/include/asm/syscalls.h   | 20 +++++++++++++
 arch/m68k/include/asm/tlbflush.h   |  1 +
 arch/m68k/kernel/early_printk.c    |  4 +--
 arch/m68k/kernel/ints.c            |  2 ++
 arch/m68k/kernel/ints.h            |  7 +++++
 arch/m68k/kernel/process.c         |  1 +
 arch/m68k/kernel/process.h         |  8 ++++++
 arch/m68k/kernel/ptrace.c          |  2 ++
 arch/m68k/kernel/ptrace.h          |  6 ++++
 arch/m68k/kernel/setup_mm.c        |  2 --
 arch/m68k/kernel/signal.c          |  4 ++-
 arch/m68k/kernel/signal.h          |  7 +++++
 arch/m68k/kernel/sys_m68k.c        |  4 +--
 arch/m68k/kernel/traps.c           | 11 ++++----
 arch/m68k/kernel/traps.h           | 10 +++++++
 arch/m68k/kernel/vectors.c         |  3 ++
 arch/m68k/kernel/vectors.h         |  3 ++
 arch/m68k/mac/baboon.c             |  2 ++
 arch/m68k/mac/config.c             | 14 ++--------
 arch/m68k/mac/iop.c                |  2 ++
 arch/m68k/mac/mac.h                | 25 +++++++++++++++++
 arch/m68k/mac/macboing.c           | 11 ++------
 arch/m68k/mac/misc.c               |  5 ++--
 arch/m68k/mac/oss.c                |  2 ++
 arch/m68k/mac/psc.c                |  2 ++
 arch/m68k/mac/via.c                |  2 ++
 arch/m68k/mm/fault.c               |  2 ++
 arch/m68k/mm/fault.h               |  7 +++++
 arch/m68k/mm/hwtest.c              |  2 ++
 arch/m68k/mm/sun3kmap.c            |  6 ++--
 arch/m68k/mm/sun3mmu.c             |  2 +-
 arch/m68k/mvme147/config.c         |  2 +-
 arch/m68k/mvme16x/config.c         |  5 ++--
 arch/m68k/mvme16x/mvme16x.h        |  6 ++++
 arch/m68k/q40/config.c             |  6 ++--
 arch/m68k/q40/q40.h                |  6 ++++
 arch/m68k/q40/q40ints.c            |  2 ++
 arch/m68k/sun3/config.c            | 13 ++++-----
 arch/m68k/sun3/idprom.c            |  4 ++-
 arch/m68k/sun3/intersil.c          |  1 +
 arch/m68k/sun3/leds.c              |  2 ++
 arch/m68k/sun3/mmu_emu.c           |  3 +-
 arch/m68k/sun3/prom/printf.c       |  5 ++--
 arch/m68k/sun3/sun3.h              | 22 +++++++++++++++
 arch/m68k/sun3/sun3dvma.c          | 17 -----------
 arch/m68k/sun3/sun3ints.c          |  2 +-
 arch/m68k/sun3x/config.c           |  6 ++--
 arch/m68k/sun3x/dvma.c             |  5 ++--
 arch/m68k/sun3x/prom.c             |  2 +-
 72 files changed, 281 insertions(+), 148 deletions(-)
 create mode 100644 arch/m68k/amiga/amiga.h
 create mode 100644 arch/m68k/apollo/apollo.h
 create mode 100644 arch/m68k/atari/atari.h
 create mode 100644 arch/m68k/include/asm/syscalls.h
 create mode 100644 arch/m68k/kernel/ints.h
 create mode 100644 arch/m68k/kernel/process.h
 create mode 100644 arch/m68k/kernel/ptrace.h
 create mode 100644 arch/m68k/kernel/signal.h
 create mode 100644 arch/m68k/kernel/traps.h
 create mode 100644 arch/m68k/kernel/vectors.h
 create mode 100644 arch/m68k/mac/mac.h
 create mode 100644 arch/m68k/mm/fault.h
 create mode 100644 arch/m68k/mvme16x/mvme16x.h
 create mode 100644 arch/m68k/q40/q40.h
 create mode 100644 arch/m68k/sun3/sun3.h
Signature · 12 lines
2.34.1

Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
							    -- Linus Torvalds