kernel 2.6: trouble removing floating point from driver

From: Dan Miller (dan_at_invalid.net)
Date: 10/18/05


Date: Mon, 17 Oct 2005 19:52:54 -0500

I'm attempting to port a driver from kernel 2.2 to 2.6. A couple of the
low-level modules in this driver used alot of floating-point operations
in the original version; I've re-designed the driver to not do this.
Now, when I compile under kernel 2.6, I'm still getting errors regarding
some library-based floating point modules:

/usr/src/ip3dev/ip3eth >rz -y; make
rz waiting to receive.make -C /lib/modules/2.6.11.4-20a-default/build
M=/usr/src/ip3dev/ip3eth
make[1]: Entering directory `/usr/src/linux-2.6.11.4-20a-
obj/i386/default'
make -C ../../../linux-2.6.11.4-20a O=../linux-2.6.11.4-20a-
obj/i386/default
  CC [M] /usr/src/ip3dev/ip3eth/gsmrx.o
  LD [M] /usr/src/ip3dev/ip3eth/ip3eth.o
  Building modules, stage 2.
  MODPOST
*** Warning: "__subdf3" [/usr/src/ip3dev/ip3eth/ip3eth.ko] undefined!
*** Warning: "__muldf3" [/usr/src/ip3dev/ip3eth/ip3eth.ko] undefined!
*** Warning: "__divdf3" [/usr/src/ip3dev/ip3eth/ip3eth.ko] undefined!
*** Warning: "__fixdfsi" [/usr/src/ip3dev/ip3eth/ip3eth.ko] undefined!
*** Warning: "__adddf3" [/usr/src/ip3dev/ip3eth/ip3eth.ko] undefined!
*** Warning: "__fixunsdfsi" [/usr/src/ip3dev/ip3eth/ip3eth.ko] undefined!
*** Warning: "__floatsidf" [/usr/src/ip3dev/ip3eth/ip3eth.ko] undefined!
  LD [M] /usr/src/ip3dev/ip3eth/ip3eth.ko
make[1]: Leaving directory `/usr/src/linux-2.6.11.4-20a-obj/i386/default'

//********************************************************************

I've grepped all of my sources (including headers), and I don't have any
references to double or float now in the code. Is there some way I can
find out what operations are making these calls, so I can eliminate
them??

Dan Miller

----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----



Relevant Pages

  • Re: 2.6.30-rc4 kernel
    ... I think there may be a problem with the 2.6.30 kernel that is ... # Generic Driver Options ... # PCI IDE chipsets support ... # Other IDE chipsets support ...
    (Linux-Kernel)
  • 2.6.30-rc4 kernel
    ... kernel panic - not syncing: ... # Generic Driver Options ... # PCI IDE chipsets support ... # Other IDE chipsets support ...
    (Linux-Kernel)
  • [PATCH 18-rc2] Fix typos in /Documentation : N-P
    ... Again, if you're not gonna do synchronization with disk drives (dang, ... -the kernel. ... There are two options specific to PSX driver portion. ... The driver uses the settings from the EEPROM set in the SCSI BIOS ...
    (Linux-Kernel)
  • two scary syslog kernel messages
    ... Sep 20 03:46:06 marvin kernel: kernel BUG at mm/rmap.c:482! ... ACPI: Local APIC address 0xfee00000 ... Allocating PCI resources starting at 80000000 ... ** driver failed to call pci_enable_device. ...
    (Debian-User)
  • Re: [PATCH, RFT, v4] sata_mv: convert to new EH
    ... check both new and old drives with SMART ... Use a HIGHMEM enabled kernel. ... ACPI: PM-Timer IO Port: 0xe408 ... Real Time Clock Driver v1.12ac ...
    (Linux-Kernel)