Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 60dac5e2 authored by Cesar Eduardo Barros's avatar Cesar Eduardo Barros Committed by Greg Kroah-Hartman
Browse files

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: default avatarCesar Eduardo Barros <cesarb@cesarb.net>
Acked-by: default avatarMing Lei <ming.lei@canonical.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent bd9eb7fb
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -277,7 +277,7 @@ static const char *fw_path[] = {
};
};


/* Don't inline this: 'struct kstat' is biggish */
/* 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;
	struct kstat st;
	if (vfs_getattr(file->f_path.mnt, file->f_path.dentry, &st))
	if (vfs_getattr(file->f_path.mnt, file->f_path.dentry, &st))