From b379d5afdf65cce11426ab0349a3778b3fd632f5 Mon Sep 17 00:00:00 2001 From: Flavio Cruz Date: Tue, 24 Jan 2023 01:44:23 -0500 Subject: Fix several warnings for -Wmissing-prototypes (part 2) * i386/i386/io_map.c: code is unused. * i386/i386/io_perm.c: include mig prototypes. * i386/i386/mp_desc.c: Deleted interrupt_stack_alloc since it is not used. * i386/i386/seg.h: Moved descriptor structs to i386/include/mach/i386/mach_i386_types.h as that represents the interface types for RPCs. Defined aliases for real_descriptor since those are used by the i386 RPCs. Inlined many functions here too and removed seg.c. * i386/i386/seg.c: Removed. All the functions are inline now. * i386/i386/trap.c: Use static. * i386/i386/trap.h: Define missing prototypes. * i386/i386/tss.h: Use static inline for ltr. * i386/i386/user_ldt.c: Include mig prototypes. * i386/include/mach/i386/mach_i386.defs: Define real_descriptor_t types since those are used in the RPC definition. Now both prototypes and definitions will match. * i386/include/mach/i386/mach_i386_types.h: Move struct descriptor from seg.h since we need those for the RPC interfaces. Removed include of io_perm.h since it generates circular includes otherwise. * i386/intel/pmap.c: pmap_map is unused. Added static qualifier for several functions. * i386/intel/pmap.h: pmap_update_interrupt declared for non-SMP and SMP. Message-Id: --- vm/pmap.h | 1 - 1 file changed, 1 deletion(-) (limited to 'vm') diff --git a/vm/pmap.h b/vm/pmap.h index 2201b444..df11af39 100644 --- a/vm/pmap.h +++ b/vm/pmap.h @@ -194,7 +194,6 @@ extern void pmap_pageable( * Back-door routine for mapping kernel VM at initialization. * Useful for mapping memory outside the range of direct mapped * physical memory (i.e., devices). - * Otherwise like pmap_map. */ extern vm_offset_t pmap_map_bd( vm_offset_t virt, -- cgit v1.2.3