Skip to content

Commit 2ebda63

Browse files
tbreedsLinus Torvalds
authored andcommitted
Fix compile of swim3 as module
The current pmac32_defconfig fails to build with the following error: Building modules, stage 2. ERROR: "check_media_bay" [drivers/block/swim3.ko] undefined! WARNING: modpost: Found 23 section mismatch(es). To see full details build your kernel with: 'make CONFIG_DEBUG_SECTION_MISMATCH=y' make[2]: *** [__modpost] Error 1 This patch fixes that. Signed-off-by: Tony Breeds <tony@bakeyournoodle.com> Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Cc: Paul Mackerras <paulus@samba.org> Acked-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> Cc: Josh Boyer <jwboyer@linux.vnet.ibm.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent e760e71 commit 2ebda63

2 files changed

Lines changed: 0 additions & 6 deletions

File tree

‎drivers/block/swim3.c‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -251,10 +251,6 @@ static int floppy_release(struct inode *inode, struct file *filp);
251251
static int floppy_check_change(struct gendisk *disk);
252252
static int floppy_revalidate(struct gendisk *disk);
253253

254-
#ifndef CONFIG_PMAC_MEDIABAY
255-
#define check_media_bay(which, what) 1
256-
#endif
257-
258254
static void swim3_select(struct floppy_state *fs, int sel)
259255
{
260256
struct swim3 __iomem *sw = fs->swim3;

‎drivers/macintosh/mediabay.c‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,6 @@ static void poll_media_bay(struct media_bay_info* bay)
416416
}
417417
}
418418

419-
#ifdef CONFIG_MAC_FLOPPY
420419
int check_media_bay(struct device_node *which_bay, int what)
421420
{
422421
int i;
@@ -431,7 +430,6 @@ int check_media_bay(struct device_node *which_bay, int what)
431430
return -ENODEV;
432431
}
433432
EXPORT_SYMBOL(check_media_bay);
434-
#endif /* CONFIG_MAC_FLOPPY */
435433

436434
#ifdef CONFIG_BLK_DEV_IDE_PMAC
437435
int check_media_bay_by_base(unsigned long base, int what)

0 commit comments

Comments
 (0)