dect
/
linux-2.6
Archived
13
0
Fork 0

firmware: use noinline_for_stack

The comment above fw_file_size() suggests it is noinline for stack size
reasons. Use noinline_for_stack to make this more clear.

Signed-off-by: Cesar Eduardo Barros <cesarb@cesarb.net>
Acked-by: Ming Lei <ming.lei@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Cesar Eduardo Barros 2012-10-27 20:37:10 -02:00 committed by Greg Kroah-Hartman
parent bd9eb7fbe6
commit 60dac5e284
1 changed files with 1 additions and 1 deletions

View File

@ -277,7 +277,7 @@ static const char *fw_path[] = {
};
/* Don't inline this: 'struct kstat' is biggish */
static noinline long fw_file_size(struct file *file)
static noinline_for_stack long fw_file_size(struct file *file)
{
struct kstat st;
if (vfs_getattr(file->f_path.mnt, file->f_path.dentry, &st))