[2.6 patch] mm/filemap.c:generic_write_checks() 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

On Sat, Apr 26, 2008 at 07:22:22PM +0200, Ingo Molnar wrote:

Patch below.


cu
Adrian


<--  snip  -->


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

<--  snip  -->

...
  CC      mm/filemap.o
/home/bunk/linux/kernel-2.6/git/linux-2.6/mm/filemap.c: In function ‘__generic_file_aio_write_nolock’:
/home/bunk/linux/kernel-2.6/git/linux-2.6/mm/filemap.c:1831: sorry, unimplemented: inlining failed in call to ‘generic_write_checks’: function body not available
/home/bunk/linux/kernel-2.6/git/linux-2.6/mm/filemap.c:2383: sorry, unimplemented: called from here
make[2]: *** [mm/filemap.o] Error 1

<--  snip  -->

Reported-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Adrian Bunk <bunk@kernel.org>

---
e4a4374513a2b23060bb385d83f1e67427b1b665 diff --git a/mm/filemap.c b/mm/filemap.c
index 07e9d92..576b553 100644
--- a/mm/filemap.c
+++ b/mm/filemap.c
@@ -1827,7 +1827,8 @@ EXPORT_SYMBOL(iov_iter_single_seg_count);
  * Returns appropriate error code that caller should return or
  * zero in case that write should be allowed.
  */
-inline int generic_write_checks(struct file *file, loff_t *pos, size_t *count, int isblk)
+int generic_write_checks(struct file *file, loff_t *pos, size_t *count,
+			 int isblk)
 {
 	struct inode *inode = file->f_mapping->host;
 	unsigned long limit = current->signal->rlim[RLIMIT_FSIZE].rlim_cur;
--
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] mm/filemap.c:generic_write_checks() mustn't be ..., Adrian Bunk, (Mon Apr 28, 8:38 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)
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)