i386 compile sys/dev/ie

Sergey Kandaurov pluknet at gmail.com
Wed Dec 28 00:50:45 UTC 2011


On 27 December 2011 23:45, Sean Bruno <seanbru at yahoo-inc.com> wrote:
> Doing a lot of compiles recently and keep noting this noise in
> sys/dev/ie:
>
>
>
> /dumpster/scratch/sbruno-scratch/head/sys/dev/ie/if_ie.c: In function
> 'ieget':
> /dumpster/scratch/sbruno-scratch/head/sys/dev/ie/if_ie.c:682: warning:
> passing argument 1 of 'bcopy' discards qualifiers from pointer target
> type
[snip similar]

These type of errors are because bzero takes a volatile argument but wants
a non-volatile. This can be "solved" by casting to remove volatile modifier.

> /dumpster/scratch/sbruno-scratch/head/sys/dev/ie/if_ie.c: At top level:
> /dumpster/scratch/sbruno-scratch/head/sys/dev/ie/if_ie.c:1155: warning:
> 'ee16_read_eeprom' defined but not used
> /dumpster/scratch/sbruno-scratch/head/sys/dev/ie/if_ie.c:1097: warning:
> 'find_ie_mem_size' defined but not used

These were used in probe routine and are left from the newbus rewrite.
I hacked ie a bit to build cleanly. [Not sure if I did this correctly.]

-- 
wbr,
pluknet
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ie.diff
Type: text/x-patch
Size: 11239 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-net/attachments/20111228/96a08e7b/ie.bin


More information about the freebsd-net mailing list