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

Commit baecc503 authored by Tejaswi Tanikella's avatar Tejaswi Tanikella
Browse files

net: Add noinline to reduce dev_ethtool stack size



Maximum stack size for arm32 devices is (configured by FRAME_WARN)
1024.  dev_ethtool()'s stacksize (=1208) exceeds this limit.

Adding noinline attribute to reduce stack size.

Change-Id: I00dbd3cad029ca99694d7cee611d4ee32016f889
Signed-off-by: default avatarTejaswi Tanikella <tejaswit@codeaurora.org>
parent 5581b2f8
Loading
Loading
Loading
Loading
+8 −6
Original line number Diff line number Diff line
@@ -2319,7 +2319,8 @@ static int ethtool_set_tunable(struct net_device *dev, void __user *useraddr)
	return ret;
}

static int ethtool_get_per_queue_coalesce(struct net_device *dev,
static noinline_for_stack
int ethtool_get_per_queue_coalesce(struct net_device *dev,
				   void __user *useraddr,
				   struct ethtool_per_queue_op *per_queue_opt)
{
@@ -2351,7 +2352,8 @@ static int ethtool_get_per_queue_coalesce(struct net_device *dev,
	return 0;
}

static int ethtool_set_per_queue_coalesce(struct net_device *dev,
static noinline_for_stack
int ethtool_set_per_queue_coalesce(struct net_device *dev,
				   void __user *useraddr,
				   struct ethtool_per_queue_op *per_queue_opt)
{