[2.6 patch] fs/udf/partition.c:udf_get_pblock() mustn't be inline

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Adrian Bunk
Date: Monday, April 28, 2008 - 8:38 am

This patch fixes the following build error with UML and gcc 4.3:

<--  snip  -->

...
  CC      fs/udf/partition.o
/home/bunk/linux/kernel-2.6/git/linux-2.6/fs/udf/partition.c: In function ‘udf_get_pblock_virt15’:
/home/bunk/linux/kernel-2.6/git/linux-2.6/fs/udf/partition.c:32: sorry, unimplemented: inlining failed in call to ‘udf_get_pblock’: function body not available
/home/bunk/linux/kernel-2.6/git/linux-2.6/fs/udf/partition.c:102: sorry, unimplemented: called from here
make[3]: *** [fs/udf/partition.o] Error 1

<--  snip  -->

Signed-off-by: Adrian Bunk <bunk@kernel.org>

---
9739b5f94fdf781f71cbb4c7b2f8f6d9e3d58e55 diff --git a/fs/udf/partition.c b/fs/udf/partition.c
index 63610f0..96dfd20 100644
--- a/fs/udf/partition.c
+++ b/fs/udf/partition.c
@@ -27,8 +27,8 @@
 #include <linux/slab.h>
 #include <linux/buffer_head.h>
 
-inline uint32_t udf_get_pblock(struct super_block *sb, uint32_t block,
-			       uint16_t partition, uint32_t offset)
+uint32_t udf_get_pblock(struct super_block *sb, uint32_t block,
+			uint16_t partition, uint32_t offset)
 {
 	struct udf_sb_info *sbi = UDF_SB(sb);
 	struct udf_part_map *map;

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[git pull] generic bitops, Ingo Molnar, (Thu Apr 24, 2:57 pm)
Re: [git pull] generic bitops, Linus Torvalds, (Thu Apr 24, 3:14 pm)
Re: [git pull] generic bitops, Harvey Harrison, (Thu Apr 24, 3:41 pm)
[PATCH] x86, bitops: select the generic bitmap search func ..., Alexander van Heukelum, (Fri Apr 25, 4:12 am)
[git pull] generic bitops, take 2, Ingo Molnar, (Sat Apr 26, 8:15 am)
Re: [git pull] generic bitops, take 2, Linus Torvalds, (Sat Apr 26, 10:03 am)
Re: [git pull] generic bitops, take 2, Ingo Molnar, (Sat Apr 26, 10:22 am)
Re: [git pull] generic bitops, take 2, Ingo Molnar, (Sat Apr 26, 10:28 am)
Re: [git pull] generic bitops, take 2, Sam Ravnborg, (Sat Apr 26, 10:32 am)
Re: [git pull] generic bitops, take 2, Sam Ravnborg, (Sat Apr 26, 10:34 am)
[git pull] generic bitops, take 3, Ingo Molnar, (Sat Apr 26, 10:50 am)
Re: [git pull] generic bitops, take 2, Miklos Vajna, (Sat Apr 26, 10:51 am)
[2.6 patch] fs/block_dev.c:I_BDEV() mustn't be inline, Adrian Bunk, (Mon Apr 28, 8:38 am)
[2.6 patch] reiserfs: some functions mustn't be inline, Adrian Bunk, (Mon Apr 28, 8:38 am)
[2.6 patch] fs/udf/partition.c:udf_get_pblock() mustn't be ..., Adrian Bunk, (Mon Apr 28, 8:38 am)
Re: [git pull] generic bitops, take 2, Jeff Dike, (Mon Apr 28, 10:26 am)
Re: [2.6 patch] fs/block_dev.c:I_BDEV() mustn't be inline, Linus Torvalds, (Mon Apr 28, 5:41 pm)
Re: [2.6 patch] fs/block_dev.c:I_BDEV() mustn't be inline, Linus Torvalds, (Mon Apr 28, 6:21 pm)
Re: [2.6 patch] reiserfs: some functions mustn't be inline, Edward Shishkin, (Tue Apr 29, 3:43 pm)