floating point used in kernel

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

 



Hi to all,

I made a simple driver in which llseek go trough

static loff_t my_lseek (struct file *file, loff_t offset, int orig)
{
        switch (orig) {
        case SEEK_SET:
                break;
        case SEEK_CUR:
                offset += file->f_pos;
                break;
        default:
                return -EINVAL;
        }

        file->f_pos = offset;
        return offset;
}

 however making lseek64 in user space this warning came out in console:

 floating point used in kernel

 I am developing in PPC arch and I would know why I fall in this trap
and if I have be worried about it.

 Thanks in advance,
-- 
/roberto

--
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