Skip to content

Commit 3bd71e1

Browse files
arndbjoergroedel
authored andcommitted
iommu/vt-d: Fix harmless section mismatch warning
Building with gcc-4.6 results in this warning due to dmar_table_print_dmar_entry being inlined as in newer compiler versions: WARNING: vmlinux.o(.text+0x5c8bee): Section mismatch in reference from the function dmar_walk_remapping_entries() to the function .init.text:dmar_table_print_dmar_entry() The function dmar_walk_remapping_entries() references the function __init dmar_table_print_dmar_entry(). This is often because dmar_walk_remapping_entries lacks a __init annotation or the annotation of dmar_table_print_dmar_entry is wrong. This removes the __init annotation to avoid the warning. On compilers that don't show the warning today, this should have no impact since the function gets inlined anyway. Signed-off-by: Arnd Bergmann <[email protected]> Signed-off-by: Joerg Roedel <[email protected]>
1 parent a4aaecc commit 3bd71e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/iommu/dmar.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ static int dmar_parse_one_rhsa(struct acpi_dmar_header *header, void *arg)
497497
#define dmar_parse_one_rhsa dmar_res_noop
498498
#endif
499499

500-
static void __init
500+
static void
501501
dmar_table_print_dmar_entry(struct acpi_dmar_header *header)
502502
{
503503
struct acpi_dmar_hardware_unit *drhd;

0 commit comments

Comments
 (0)