Greg,

I did a bit more investigation. I replaced my driver with the "hello,
world" module, just "hello world" and "goodbye world". The size for my
driver will be 15k, for usbserial is 380k.

I actually used the .config file from my Debian 2.6.6 system, the
compile results is normal, usbserial 37k. So, it must be some .config
options. But I don't know which ones. But I cannot use the .config 
becuase I got "Invalid module format" due to wrong vermagic.

Do you know which .config options has to turn off/on to make
helloworld module not go as huge as 15k?

By the way, the actual usb driver I am compiling is giving to me by
someone else. That is why I am leaving warnings alone for now.

Thanks,

Simon

On 10/24/05, Greg KH <[EMAIL PROTECTED]> wrote:
> On Mon, Oct 24, 2005 at 12:03:32PM -0400, Simon Wu wrote:
> > Thanks, Greg.
> >
> > I didn't modify anything on either Debian with 2.6.6 or Fedora with
> > 2.6.9. The kernel come form kernel.org. Here is my compile results on
> > both system, but on Fedora, both my driver or the usbserial driver are
> > about 10 times bigger that of 2.6.6's and the original distribution's:
>
> Again, where is the source for your driver?  It has to be released under
> the GPL, right?  Without it, it's a bit hard for us to help you out...
>
> > [EMAIL PROTECTED] qtp6300.kernel-2.6.9]# make
> > rm -f qtp6300.ko *~
> > 2.6.9-1.667
> > Kernel sources found at /usr/src/linux-2.6.9
> > qtp6300.o already in /usr/src/linux-2.6.9/drivers/usb/serial/Makefile
> > copying qtp6300.c to /usr/src/linux-2.6.9/drivers/usb/serial
> > make -C /usr/src/linux-2.6.9
> > SUBDIRS=/usr/src/linux-2.6.9//drivers/usb/serial modules
> > make[1]: Entering directory `/usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9'
> >   CC [M]  /usr/src/linux-2.6.9//drivers/usb/serial/usb-serial.o
> >   CC [M]  /usr/src/linux-2.6.9//drivers/usb/serial/generic.o
> >   CC [M]  /usr/src/linux-2.6.9//drivers/usb/serial/bus.o
> >   LD [M]  /usr/src/linux-2.6.9//drivers/usb/serial/usbserial.o
> >   CC [M]  /usr/src/linux-2.6.9//drivers/usb/serial/qtp6300.o
> > /usr/src/linux-2.6.9//drivers/usb/serial/qtp6300.c: In function 
> > `qtp6300_write':
> > /usr/src/linux-2.6.9//drivers/usb/serial/qtp6300.c:732: warning:
> > passing arg 2 of `usb_serial_debug_data' from incompatible pointer
> > type
> > /usr/src/linux-2.6.9//drivers/usb/serial/qtp6300.c: In function
> > `qtp6300_read_callback':
> > /usr/src/linux-2.6.9//drivers/usb/serial/qtp6300.c:945: warning:
> > passing arg 2 of `usb_serial_debug_data' from incompatible pointer
> > type
>
> Is there a reason you ignore compiler warnings like these?
>
> greg k-h
>


-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users

Reply via email to