Skip to content

Commit eccf432

Browse files
arndbdavem330
authored andcommitted
ide: icside: remove incorrect initconst annotation
The icside_probe function can be called for hotplugged devices, so its reference to the __initconst icside_v6_port_info variable may be invalid, as Kbuild points out: WARNING: drivers/ide/icside.o(.text+0x338): Section mismatch in reference from the function icside_probe() to the (unknown reference) .init.rodata:(unknown) Interestingly, this problem only shows up with clang but not with gcc, which optimizes out the __initconst variable. This removes the incorrect annotation. Signed-off-by: Arnd Bergmann <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 142b9e6 commit eccf432

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/ide/icside.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ static int icside_register_v5(struct icside_state *state,
451451
return ret;
452452
}
453453

454-
static const struct ide_port_info icside_v6_port_info __initconst = {
454+
static const struct ide_port_info icside_v6_port_info = {
455455
.init_dma = icside_dma_off_init,
456456
.port_ops = &icside_v6_no_dma_port_ops,
457457
.host_flags = IDE_HFLAG_SERIALIZE | IDE_HFLAG_MMIO,

0 commit comments

Comments
 (0)