Re: floating point used in kernel

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

 



2008/5/23 Roberto A. Foglietta <roberto.foglietta@xxxxxxxxx>:
> 2008/5/23 Carlo Bertoldi <mcbain@xxxxxxxxxx>:
>> Roberto A. Foglietta wrote, on the 23/05/2008 14.43:
>>>
>>> Hi to all,
>>>
>>>
>>
>>
>> [...]
>>
>>>  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,
>>
>> This could help:
>> http://www.issociate.de/board/post/427110/Floating_point_in_kernel.html
>>
>
>  Thanks for the link I just read before writing here but
> unfortunately, as the code shown, no any arithmetic operation with
> float point are involved in the modules.
>

 The code which display that message was not seek() related but this

static int check_permission(loff_t offset, int write) {
/* if char str[2][10] is declared instead no any "floating point used
in kernel" appears */
        char *str[2] = {"read", "write"};
/* if str[0] is printked no any "floating point used in kernel" appears */
        printk("%s\n", str[1]);
        return 0;
}

 I have found the cause but I am not understand why.

 Cheers,
-- 
/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