From 54d00f6069d921bfe83344cb94e2dd7cb54531ef Mon Sep 17 00:00:00 2001 From: Cesar Eduardo Barros Date: Sat, 27 Oct 2012 20:37:10 -0200 Subject: 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. Cc: Ming Lei Cc: Greg Kroah-Hartman Cc: Linus Torvalds Signed-off-by: Cesar Eduardo Barros Acked-by: Ming Lei Signed-off-by: Jiri Kosina --- drivers/base/firmware_class.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers') diff --git a/drivers/base/firmware_class.c b/drivers/base/firmware_class.c index 8945f4e489ed..620b876f939f 100644 --- a/drivers/base/firmware_class.c +++ b/drivers/base/firmware_class.c @@ -275,7 +275,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)) -- cgit v1.2.3