Skip to content

Commit

Permalink
bio-integrity: remove EXPORT_SYMBOL for bio_integrity_init_slab()
Browse files Browse the repository at this point in the history
I got section mismatch message about bio_integrity_init_slab().

WARNING: fs/built-in.o(__ksymtab+0xb60): Section mismatch in reference from the variable __ksymtab_bio_integrity_init_slab to the function .init.text:bio_integrity_init_slab()

The symbol bio_integrity_init_slab is exported and annotated __init Fix
this by removing the __init annotation of bio_integrity_init_slab or drop
the export.

It only call from init_bio().  The EXPORT_SYMBOL() can be removed.

Signed-off-by: Yoichi Yuasa <[email protected]>
Cc: "Martin K. Petersen" <[email protected]>
Cc: Jens Axboe <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Yoichi Yuasa authored and torvalds committed Jul 28, 2008
1 parent 8ab22b9 commit e3b6e80
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion fs/bio-integrity.c
Original file line number Diff line number Diff line change
Expand Up @@ -705,7 +705,6 @@ void __init bio_integrity_init_slab(void)
bio_integrity_slab = KMEM_CACHE(bio_integrity_payload,
SLAB_HWCACHE_ALIGN|SLAB_PANIC);
}
EXPORT_SYMBOL(bio_integrity_init_slab);

static int __init integrity_init(void)
{
Expand Down

0 comments on commit e3b6e80

Please sign in to comment.