sfc: modify allocation error message
Subsystems (2)
PATCH 1/2 sfc: modify allocation error message
From: Mike Travis <[email protected]>
Change error message when alloc_cpumask_var fails.
Signed-off-by Mike Travis <[email protected]>
Acked-by Ben Hutchings <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
drivers/net/sfc/efx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/sfc/efx.c renamed from drivers/net/sfc/efx.c~sfc-modify-allocation-error-message +2 -2
@@ -857,9 +857,9 @@ static int efx_wanted_rx_queues(void)int count;int cpu; -if (!alloc_cpumask_var (&core_mask,GFP_KERNEL )) { +if (unlikely (!alloc_cpumask_var (&core_mask,GFP_KERNEL ))) {printk (KERN_WARNING -"efx.c: allocation failure, irq balancing hobbled\n" ); +"sfc: RSS disabled due to allocation failure\n" );return 1 ; }
_
From: [email protected]
Date: Wed, 11 Feb 2009 13:27:34 -0800
Quoted 5 lines
Change error message when
alloc_cpumask_varfails.Signed-off-by Mike Travis <[email protected]>Acked-by Ben Hutchings <[email protected]>Signed-off-by Andrew Morton <[email protected]>
This has to go into whatever tree adds the alloc_cpumask_var() call to this function, and that isn't one of the networking trees. :-)
Anyways, for the record I'm fine with this change:
Acked-by David S. Miller <[email protected]>