current scsi-misc-2.5 scsi_lib.c needs init.h
PATCH 1/1 current scsi-misc-2.5 scsi_lib.c needs init.h
The current scsi-misc-2.5 scsi_lib.c needs to include init.h to get the __init and __exit defined.
drivers/scsi/scsi_lib.c +1 -0
@@ -13,6 +13,7 @@#include <linux/kernel.h> #include <linux/mempool.h> #include <linux/slab.h> +#include <linux/init.h> #include "scsi.h" #include "hosts.h"
-- Patrick Mansfield
Quoted 2 lines · [email protected] said:
he current scsi-misc-2.5
scsi_lib.cneeds to includeinit.hto get the__initand__exitdefined.
not for me here. init.h seems to be pulled in via a long chain:
from include/linux/profile.h:8,
from include/asm/hw_irq.h:16,
from include/linux/irq.h:69,
from include/asm/hardirq.h:6,
from include/linux/interrupt.h:9,
from include/asm/highmem.h:24,
from include/linux/highmem.h:12,
from include/linux/bio.h:24,
from drivers/scsi/scsi_lib.c:10:James
Quoted 16 lines · James Bottomley
Quoted 2 lines · [email protected] said:
he current scsi-misc-2.5
scsi_lib.cneeds to includeinit.hto get the__initand__exitdefined.not for me here.
init.hseems to be pulled in via a long chain:from include/linux/profile.h:8, from include/asm/hw_irq.h:16, from include/linux/irq.h:69, from include/asm/hardirq.h:6, from include/linux/interrupt.h:9, from include/asm/highmem.h:24, from include/linux/highmem.h:12, from include/linux/bio.h:24, from drivers/scsi/scsi_lib.c:10:
Quoted 1 line
James
James -
It looks like CONFIG_HIGHEM changes that behaviour, my .config has:
CONFIG_NOHIGHMEM=y
# CONFIG_HIGHMEM4G is not set
# CONFIG_HIGHMEM64G is not set
highmem.h does not include asm/highmem.h unless #ifdef CONFIG_HIGHMEM.
I changed my config to use highmem 4g, and it compiled OK.
-- Patrick Mansfield
Quoted 3 lines · Patrick Mansfield
highmem.hdoes not includeasm/highmem.hunless #ifdefCONFIG_HIGHMEM.I changed my config to use highmem 4g, and it compiled OK.
Sorry for the breakage. I'll do a sweep over all asm headers to get rid of implicit inclusions of init.h (unless impossible, but I dount it)