RE: compiling snull.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I was able to compile it now.
I  have a different sysdep.h file. This maybe the one
causing the problem. Thank you very much.
DO you know some books about Network Device Drivers
aside from the 2nd edition of Oreilly?

-liz

--- "Pavan Kumar Reddy N.S." <pavan.kumar@wipro.com>
wrote:
> 
> copy this file in /tmp
> 
> unzip&untar using "tar vxfz snull.tar.gz"
> 
> go to snull directory
> 
> execute ./snull.cmd
> 
> It should create snull.o file.
> 
> Let me know if you get any error.
> 
> -pavan
> 
> -----Original Message-----
> From: grace baldonasa [mailto:gra_gtb@yahoo.com]
> Sent: Monday, September 30, 2002 4:54 PM
> To: pavan.kumar@wipro.com
> Cc: linnux-net@vger.kernel.org
> Subject: RE: compiling snull.c
> 
> 
> I still have the same problem. I am using Kernel
> 2.4.2. Maybe it has something to do with the kernel
> version. Please Linux Device Driver page 465. It is
> stated there that this function has a second
> argument
> and should be taken care of by sysdep.h
> I don't understand why I'm getting this problem.
> Thanks for all the help...
> 
> -liz
> 
> 
> --- "Pavan Kumar Reddy N.S." <pavan.kumar@wipro.com>
> wrote:
> >
> > Copy sysdep.h, snull.h and snull.c file under some
> > temp dir and
> > compile using "gcc -O2 -Wall -DMODULE -D__KERNEL__
> > -c snull.c".
> >
> > It should compile. I just tried it here.
> >
> > -pavan
> >
> > -----Original Message-----
> > From: linux-net-owner@vger.kernel.org
> > [mailto:linux-net-owner@vger.kernel.org]On Behalf
> Of
> > grace baldonasa
> > Sent: Monday, September 30, 2002 3:48 PM
> > To: pavan.kumar@wipro.com
> > Cc: linux-net@vger.kernel.org
> > Subject: RE: compiling snull.c
> >
> >
> > This is exactly the error:
> >
> > macro "dev_kfree_skb" passed two arguments but
> takes
> > just 1.
> >
> > -liz
> >
> >
> > --- "Pavan Kumar Reddy N.S."
> <pavan.kumar@wipro.com>
> > wrote:
> > > Can you cut and paste the error message
> > >
> > > -pavan
> > >
> > > -----Original Message-----
> > > From: grace baldonasa [mailto:gra_gtb@yahoo.com]
> > > Sent: Monday, September 30, 2002 3:41 PM
> > > To: pavan.kumar@wipro.com
> > > Cc: linux-net@vger.kernel.org
> > > Subject: RE: compiling snull.c
> > >
> > >
> > > Hi,
> > >
> > > I got the same error.
> > >
> > > -liz
> > >
> > >
> > > --- "Pavan Kumar Reddy N.S."
> > <pavan.kumar@wipro.com>
> > > wrote:
> > > >
> > > > Go to snull dir and compile with the following
> > > > command
> > > > "gcc -O2 -Wall -DMODULE -D__KERNEL__ -c
> snull.c"
> > > >
> > > > -pavan
> > > >
> > > > -----Original Message-----
> > > > From: linux-net-owner@vger.kernel.org
> > > > [mailto:linux-net-owner@vger.kernel.org]On
> > Behalf
> > > Of
> > > > grace baldonasa
> > > > Sent: Monday, September 30, 2002 3:14 PM
> > > > To: pavan.kumar@wipro.com
> > > > Cc: linux-net@vger.kernel.org
> > > > Subject: RE: compiling snull.c
> > > >
> > > >
> > > > I downloaded the file
> > > > www.samples.oreilly.com/linuxdrive2/.
> > > > I did not make any changes in the Makefile.
> > > > Is there any specific flags that I need to set
> > > > during
> > > > compilation.
> > > > Thanks..
> > > > liz
> > > >
> > > >
> > > >
> > > > --- "Pavan Kumar Reddy N.S."
> > > <pavan.kumar@wipro.com>
> > > > wrote:
> > > > >
> > > > > What are the compilation flags ur using??
> > > > >
> > > > > -pavan
> > > > >
> > > > > -----Original Message-----
> > > > > From: linux-net-owner@vger.kernel.org
> > > > > [mailto:linux-net-owner@vger.kernel.org]On
> > > Behalf
> > > > Of
> > > > > grace baldonasa
> > > > > Sent: Monday, September 30, 2002 2:57 PM
> > > > > To: linux-net@vger.kernel.org
> > > > > Subject: compiling snull.c
> > > > >
> > > > >
> > > > > Hi all,
> > > > > I am trying to compile snull.c and I get
> this
> > > > error
> > > > > "dev_kfree_skb" passes two parameters but
> only
> > > > takes
> > > > > one everytime.
> > > > > Is snull.c compatible to any kernel version?
> > > > > Do I have to change the code to work it with
> > > > > 2.4.2-2?
> > > > > I'll appreciate for the help.
> > > > >
> > > > > liz
> > > > >
> > > > >
> > >
> __________________________________________________
> > > > > Do you Yahoo!?
> > > > > New DSL Internet Access from SBC & Yahoo!
> > > > > http://sbc.yahoo.com
> > > > > -
> > > > > : send the line
> > > > > "unsubscribe linux-net" in
> > > > > the body of a message to
> > > majordomo@vger.kernel.org
> > > > > More majordomo info at
> > > > > http://vger.kernel.org/majordomo-info.html
> > > > > >
> > > >
> > >
> >
>
**************************Disclaimer****************************************
> > > > **********
> > > > >
> > > > >
> > > > >  Information contained in this E-MAIL being
> > > > > proprietary to Wipro Limited is 'privileged'
> > > > > and 'confidential' and intended for use only
> > by
> > > > the
> > > > > individual or entity to which it is
> > > > > addressed. You are notified that any use,
> > > copying
> > > > or
> > > > > dissemination of the information
> > > > > contained in the E-MAIL in any manner
> > whatsoever
> > > > is
> > > > > strictly prohibited.
> > > > >
> > > > >
> > > >
> > >
> >
>
****************************************************************************
> > > > ************
> > > > >
> > > >
> 
=== message truncated ===

> ATTACHMENT part 2 application/x-gzip
name=snull.tar.gz
>
**************************Disclaimer**************************************************
>    
>  
>  Information contained in this E-MAIL being
> proprietary to Wipro Limited is 'privileged' 
> and 'confidential' and intended for use only by the
> individual or entity to which it is 
> addressed. You are notified that any use, copying or
> dissemination of the information 
> contained in the E-MAIL in any manner whatsoever is
> strictly prohibited.
> 
>
****************************************************************************************
> 


__________________________________________________
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com
-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux