opnsense-src/sys/powerpc/powerpc
Zhenlei Huang 356be1348d kernel: Make some compile time constant variables const
Those variables are not going to be changed at runtime. Make them const
to avoid potential overwriting. This will also help spotting accidental
global variables shadowing, since the variable's name such as `version`
is short and commonly used.

This change was inspired by reviewing khng's work D44760.

No functional change intended.

MFC after:	2 weeks
Differential Revision:	https://reviews.freebsd.org/D45227
2024-08-30 18:26:30 +08:00
..
altivec.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
autoconf.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
bus_machdep.c powerpc: Fix bus_space_unmap 2024-01-23 09:37:53 -08:00
busdma_machdep.c Deprecate contigfree(9) in favour of free(9) 2024-07-26 10:45:01 +00:00
clock.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
copyinout.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
cpu.c identcpu: Let the hw.model be readable in capability mode 2024-01-04 08:39:53 -05:00
cpu_subr64.S sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
db_disasm.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
db_hwwatch.c sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
db_interface.c sys: Remove $FreeBSD$: one-line .c comment pattern 2023-08-16 11:54:24 -06:00
db_trace.c ddb: Use bool for boolean variables in MD code 2024-02-02 15:08:53 -08:00
dump_machdep.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
elf32_machdep.c sysentvec: add SV_SIGSYS flag 2023-10-03 01:30:52 +03:00
elf64_machdep.c imgact_elf: Add const to the header_supported callback arguments 2024-03-04 11:52:21 -08:00
elf_common.c sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
exec_machdep.c freebsd32: struct siginfo32 -> struct __siginfo32 2024-03-19 23:13:26 +00:00
fpu.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
gdb_machdep.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
genassym.c sys: Remove ancient SCCS tags. 2023-11-26 22:23:30 -07:00
interrupt.c sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
intr_machdep.c sys: Remove ancient SCCS tags. 2023-11-26 22:23:30 -07:00
iommu_if.m sys: Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:54:58 -06:00
machdep.c kernel: Make some compile time constant variables const 2024-08-30 18:26:30 +08:00
mem.c sys: Remove ancient SCCS tags. 2023-11-26 22:23:30 -07:00
minidump_machdep.c sys: Remove $FreeBSD$: one-line .h pattern 2023-08-16 11:54:18 -06:00
mp_machdep.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
nexus.c new-bus: Remove the 'type' argument from BUS_MAP/UNMAP_RESOURCE 2024-03-13 15:05:54 -07:00
openpic.c sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
pic_if.m sys: Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:54:58 -06:00
platform.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
platform_if.m sys: Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:54:58 -06:00
pmap_dispatch.c pmap: Convert boolean_t to bool. 2024-01-31 14:48:26 -08:00
ptrace_machdep.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
sc_machdep.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
sdt_machdep.c sdt: Implement SDT probes using hot-patching 2024-06-19 16:57:41 -04:00
setjmp.S sys: Remove $FreeBSD$: one-line .c comment pattern 2023-08-16 11:54:24 -06:00
sigcode32.S sys: Remove $FreeBSD$: one-line .c comment pattern 2023-08-16 11:54:24 -06:00
sigcode64.S sys: Remove $FreeBSD$: one-line .c comment pattern 2023-08-16 11:54:24 -06:00
stack_machdep.c thread: Remove kernel stack swapping support, part 4 2024-07-29 01:40:22 +00:00
support.S sys: Remove $FreeBSD$: one-line .h pattern 2023-08-16 11:54:18 -06:00
swtch32.S sys: Remove $FreeBSD$: one-line .c comment pattern 2023-08-16 11:54:24 -06:00
swtch64.S sys: Remove $FreeBSD$: one-line .c comment pattern 2023-08-16 11:54:24 -06:00
syncicache.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
sys_machdep.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
trap.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
uio_machdep.c uio: Use switch statements when handling UIO_READ vs UIO_WRITE 2024-05-10 13:43:36 -07:00
uma_machdep.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
vm_machdep.c vm: Remove kernel stack swapping support, part 5 2024-07-29 01:40:39 +00:00