ns_to_timeval undefined on AMD64

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

 



Hello!

We are working on a linux kernel module on AMD64 and are using ktime.h.

Now we want to use ktime_to_timeval, which is defined over a macro for
ns_to_timeval on 64bit cpus, to transform a ktime_t struct to
a struct timeval
(see http://lxr.linux.no/source/include/linux/ktime.h#L111
for the definition of ns_to_timeval).

But the compiler says "ns_to_timeval" is undefinded as a warning. Now
this should not be a problem because I've read it will be resolved when
the module is loaded. But here comes the problem, it is not resolved
and the module not loaded.

Any idea why?
Do I have to enable some kernel time option and recompile the kernel?

Kernel is 2.6.18.2, we are developing in User Mode Linux.

Best regards,

Helmut


--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           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