firmware: use noinline_for_stack
authorCesar Eduardo Barros <cesarb@cesarb.net>
Sat, 27 Oct 2012 22:37:10 +0000 (20:37 -0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Nov 2012 23:05:05 +0000 (15:05 -0800)
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>
drivers/base/firmware_class.c

index be5f7aae75fc66e386baa292e27ed07812f9529f..4b04ec4bd2f06076030ee49157193221630e5447 100644 (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))