Linking error

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

 



Hi!

I'm trying to make Longhaul compatible with NO_HZ. Problem is 
that transition takes much more time. I was trying to check if 
my code really works but when I'm:
	(int)((timespec_to_ns(&tv_out) - timespec_to_ns(&tv_in)) / 1000)
Or:
	tv_delta = timespec_sub(tv_out, tv_in);
	delta_us = timespec_to_ns(&tv_delta) / 1000;
	printk(KERN_INFO PFX "Delay %dus\n", (int)(delta_us));
I get this error:
  LD      .tmp_vmlinux1
arch/i386/kernel/built-in.o: In function `longhaul_setstate':
longhaul.c:(.text+0x8591): undefined reference to `__divdi3'
make: *** [.tmp_vmlinux1] Błąd 1
What have I missed? Is it illegal to convert s64 to int in this way?

Thank You
Rafał

----------------------------------------------------------------------
Jestes kierowca? To poczytaj! >>> http://link.interia.pl/f199e


--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux