linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* RE: kernel2.2.x to kernel2.4.x
@ 2001-05-17 19:19 Dunlap, Randy
  2001-06-04 19:52 ` Error Compiling Driver code: jalaja devi
  2001-06-05 19:17 ` smp errors in 2.4!! jalaja devi
  0 siblings, 2 replies; 7+ messages in thread
From: Dunlap, Randy @ 2001-05-17 19:19 UTC (permalink / raw)
  To: 'jalaja devi', Alan Cox; +Cc: Linux Kernel Maillist

see http://www.firstfloor.org/~andi/softnet/

~Randy


> -----Original Message-----
> From: jalaja devi [mailto:jala_74@yahoo.com]
> 
> How can I handle this from kernel2.2 to kernel2.4
> 
> Can I replace like this??
> 
> if (test_and_set_bit (0, (void *)&dev->tbusy)){ return
> EBUSY;} ========== with  netif_stop_queue (dev);
> 
> clear_bit ((void *)&dev->tbusy); ===== with
> netif_start_queue(dev);
> 
> Thanks
> Jalaja
> 
> --- Alan Cox <alan@lxorguk.ukuu.org.uk> wrote:
> > > I tried porting a network driver from kernel2.2.x
> > to
> > > 2.4. When i tried loading the driver, it shows the
> > > unresolved symbols for
> > > copy_to_user_ret
> > 
> > 	if(copy_to_user(...))
> > 		return -EFAULT
> > 
> > > outs
> > 
> > 	Has not gone away, your includes are wrong
> > 
> > > __bad_udelay
> > 
> > 	You are using too large a udelay use mdelay
> > -
> > To unsubscribe from this list: send the line
> > "unsubscribe linux-kernel" in
> > the body of a message to majordomo@vger.kernel.org
> > More majordomo info at 
> > http://vger.kernel.org/majordomo-info.html
> > Please read the FAQ at  http://www.tux.org/lkml/
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Auctions - buy the things you want at great prices
> http://auctions.yahoo.com/
> -
> To unsubscribe from this list: send the line "unsubscribe 
> linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
> 


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Error Compiling Driver code:
  2001-05-17 19:19 kernel2.2.x to kernel2.4.x Dunlap, Randy
@ 2001-06-04 19:52 ` jalaja devi
  2001-06-05 19:17 ` smp errors in 2.4!! jalaja devi
  1 sibling, 0 replies; 7+ messages in thread
From: jalaja devi @ 2001-06-04 19:52 UTC (permalink / raw)
  To: Linux Kernel Maillist

Hi ,
I am trying to compile a driver code in Red Hat 6.2
which is already a working code, but I get the
following errors when i compile. 

/usr/src/linux/include/asm/smp.h:206: arguments given
to macro `hard_smp_processor_id'

Any clue or hint will be helpful.

Thanks
jalaja


__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* smp errors in 2.4!!
  2001-05-17 19:19 kernel2.2.x to kernel2.4.x Dunlap, Randy
  2001-06-04 19:52 ` Error Compiling Driver code: jalaja devi
@ 2001-06-05 19:17 ` jalaja devi
  1 sibling, 0 replies; 7+ messages in thread
From: jalaja devi @ 2001-06-05 19:17 UTC (permalink / raw)
  To: linux-kernel

I encounter this compilation error:
/usr/x.c:2112: struct has no member named
"event_Rsmp_7b16c344"

The structure has that field and I don't have the
conflicting structure name anywhere in my code and in
the system files too. 

The makefile uses sed and *.d files.

Could anyone help me out as how to fix this.

Thanks
Jalaja


__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: kernel2.2.x to kernel2.4.x
  2001-05-16 20:40   ` Alan Cox
@ 2001-05-17 18:20     ` jalaja devi
  0 siblings, 0 replies; 7+ messages in thread
From: jalaja devi @ 2001-05-17 18:20 UTC (permalink / raw)
  To: Alan Cox; +Cc: Linux Kernel Maillist

How can I handle this from kernel2.2 to kernel2.4

Can I replace like this??

if (test_and_set_bit (0, (void *)&dev->tbusy)){ return
EBUSY;} ========== with  netif_stop_queue (dev);

clear_bit ((void *)&dev->tbusy); ===== with
netif_start_queue(dev);

Thanks
Jalaja

--- Alan Cox <alan@lxorguk.ukuu.org.uk> wrote:
> > I tried porting a network driver from kernel2.2.x
> to
> > 2.4. When i tried loading the driver, it shows the
> > unresolved symbols for
> > copy_to_user_ret
> 
> 	if(copy_to_user(...))
> 		return -EFAULT
> 
> > outs
> 
> 	Has not gone away, your includes are wrong
> 
> > __bad_udelay
> 
> 	You are using too large a udelay use mdelay
> -
> To unsubscribe from this list: send the line
> "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at 
> http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/


__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: kernel2.2.x to kernel2.4.x
  2001-05-16  0:27 ` kernel2.2.x to kernel2.4.x jalaja devi
@ 2001-05-16 20:40   ` Alan Cox
  2001-05-17 18:20     ` jalaja devi
  0 siblings, 1 reply; 7+ messages in thread
From: Alan Cox @ 2001-05-16 20:40 UTC (permalink / raw)
  To: jalaja devi; +Cc: Linux Kernel Maillist

> I tried porting a network driver from kernel2.2.x to
> 2.4. When i tried loading the driver, it shows the
> unresolved symbols for
> copy_to_user_ret

	if(copy_to_user(...))
		return -EFAULT

> outs

	Has not gone away, your includes are wrong

> __bad_udelay

	You are using too large a udelay use mdelay

^ permalink raw reply	[flat|nested] 7+ messages in thread

* RE: kernel2.2.x to kernel2.4.x
@ 2001-05-16  4:08 Dunlap, Randy
  0 siblings, 0 replies; 7+ messages in thread
From: Dunlap, Randy @ 2001-05-16  4:08 UTC (permalink / raw)
  To: 'jalaja devi', Linux Kernel Maillist

> From: jalaja devi [mailto:jala_74@yahoo.com]
> 
> I tried porting a network driver from kernel2.2.x to
> 2.4. When i tried loading the driver, it shows the
> unresolved symbols for
> copy_to_user_ret
> outs
> __bad_udelay
> 
> Could anyone please tell me the corresponding fxns in 2.4.

You need to "unroll" copy_to_user_ret().  There is no
corresponding macro.  Just test the condition and return
-EFAULT (?; not looking at the source code) if it's invalid.

Don't know about "outs".

__bad_udelay means that some module used a too-large-parameter-value
to udelay().  Linker should be telling you which module.

~Randy


^ permalink raw reply	[flat|nested] 7+ messages in thread

* kernel2.2.x to kernel2.4.x
  2001-05-16  0:14 Is printing broke on sparc ? Mr. James W. Laferriere
@ 2001-05-16  0:27 ` jalaja devi
  2001-05-16 20:40   ` Alan Cox
  0 siblings, 1 reply; 7+ messages in thread
From: jalaja devi @ 2001-05-16  0:27 UTC (permalink / raw)
  To: Linux Kernel Maillist; +Cc: Linux Kernel Maillist

I tried porting a network driver from kernel2.2.x to
2.4. When i tried loading the driver, it shows the
unresolved symbols for
copy_to_user_ret
outs
__bad_udelay

Could anyone please tell me the corresponding fxns in
2.4.

Thanks in advance
Jalaja



__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2001-06-05 19:17 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-05-17 19:19 kernel2.2.x to kernel2.4.x Dunlap, Randy
2001-06-04 19:52 ` Error Compiling Driver code: jalaja devi
2001-06-05 19:17 ` smp errors in 2.4!! jalaja devi
  -- strict thread matches above, loose matches on Subject: below --
2001-05-16  4:08 kernel2.2.x to kernel2.4.x Dunlap, Randy
2001-05-16  0:14 Is printing broke on sparc ? Mr. James W. Laferriere
2001-05-16  0:27 ` kernel2.2.x to kernel2.4.x jalaja devi
2001-05-16 20:40   ` Alan Cox
2001-05-17 18:20     ` jalaja devi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).