[PATCH 3/4] mark loop functions as noinline_for_stack

From: Eric Sandeen
Date: Tue Apr 22 2008 - 11:56:22 EST


Use the self-documenting noinline_for_stack attribute
in loop functions.

Signed-off-by: Eric Sandeen <sandeen@xxxxxxxxxx>
---

Index: linux-2.6.25/drivers/block/loop.c
===================================================================
--- linux-2.6.25.orig/drivers/block/loop.c 2008-04-22 10:31:05.015471118 -0500
+++ linux-2.6.25/drivers/block/loop.c 2008-04-22 10:51:18.070407735 -0500
@@ -1182,9 +1182,8 @@ struct compat_loop_info {

/*
* Transfer 32-bit compatibility structure in userspace to 64-bit loop info
- * - noinlined to reduce stack space usage in main part of driver
*/
-static noinline int
+static noinline_for_stack int
loop_info64_from_compat(const struct compat_loop_info __user *arg,
struct loop_info64 *info64)
{
@@ -1215,9 +1214,8 @@ loop_info64_from_compat(const struct com

/*
* Transfer 64-bit loop info to 32-bit compatibility structure in userspace
- * - noinlined to reduce stack space usage in main part of driver
*/
-static noinline int
+static noinline_for_stack int
loop_info64_to_compat(const struct loop_info64 *info64,
struct compat_loop_info __user *arg)
{

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/