summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCesar Eduardo Barros <cesarb@cesarb.net>2012-10-28 02:37:10 +0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-11-15 03:05:05 +0400
commit60dac5e284fe99751e3beefe1a9cc7a0771ad73c (patch)
tree86a88cb829fed4e9df66a4a72a3c749911de9c01
parentbd9eb7fbe69111ea0ff1f999ef4a5f26d223d1d5 (diff)
downloadlinux-60dac5e284fe99751e3beefe1a9cc7a0771ad73c.tar.xz
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>
-rw-r--r--drivers/base/firmware_class.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/base/firmware_class.c b/drivers/base/firmware_class.c
index be5f7aae75fc..4b04ec4bd2f0 100644
--- a/drivers/base/firmware_class.c
+++ b/drivers/base/firmware_class.c
@@ -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))