Re: 2.6.10-rc1-kjt1: ixgb_ethtool.c doesn't compile

From: Nishanth Aravamudan
Date: Sat Oct 30 2004 - 18:01:14 EST


On Sat, Oct 30, 2004 at 01:51:37AM +0200, Adrian Bunk wrote:
> On Sun, Oct 24, 2004 at 05:12:41PM +0200, maximilian attems wrote:
> >...
> > splitted out 168 patches:
> > http://debian.stro.at/kjt/2.6.10-rc1-kjt1/split/
>
> Could you provide a .tar.gz (or .tar.bz) of the splitted patches
> (similar to how Andrew does for -mm)?
>
> > thanks for feedback.
> > maks
> >...
>
> msleep_interruptible-drivers_net_ixgb_ixgb_ethtool.patch doesn't
> compile:
>
> <-- snip -->
>
> ...
> CC drivers/net/ixgb/ixgb_ethtool.o
> drivers/net/ixgb/ixgb_ethtool.c: In function `ixgb_ethtool_led_blink':
> drivers/net/ixgb/ixgb_ethtool.c:407: error: `id' undeclared (first use in this function)
> drivers/net/ixgb/ixgb_ethtool.c:407: error: (Each undeclared identifier is reported only once
> drivers/net/ixgb/ixgb_ethtool.c:407: error: for each function it appears in.)
> make[3]: *** [drivers/net/ixgb/ixgb_ethtool.o] Error 1

Here's the corrected patch, thanks again for catching this Adrian:

Description: Uses msleep_interruptible() instead of schedule_timeout()
to guarantee the task delays as expected.

Signed-off-by: Nishanth Aravamudan <nacc@xxxxxxxxxx>


--- 2.6.10-rc1-vanilla/drivers/net/ixgb/ixgb_ethtool.c 2004-10-30 15:33:27.000000000 -0700
+++ 2.6.10-rc1/drivers/net/ixgb/ixgb_ethtool.c 2004-10-30 15:49:43.000000000 -0700
@@ -31,6 +31,7 @@
#include "ixgb.h"

#include <asm/uaccess.h>
+#include <linux/delay.h>

extern char ixgb_driver_name[];
extern char ixgb_driver_version[];
@@ -402,11 +403,10 @@ ixgb_ethtool_led_blink(struct net_device

mod_timer(&adapter->blink_timer, jiffies);

- set_current_state(TASK_INTERRUPTIBLE);
if (data)
- schedule_timeout(data * HZ);
+ msleep_interruptible(data * 1000);
else
- schedule_timeout(MAX_SCHEDULE_TIMEOUT);
+ msleep_interruptible(jiffies_to_msecs(MAX_SCHEDULE_TIMEOUT));

del_timer_sync(&adapter->blink_timer);
ixgb_led_off(&adapter->hw);
-
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/