powerpc.LINT* broken in netmap(4)

Ngie Cooper (yaneurabeya) yaneurabeya at gmail.com
Fri Jan 13 22:27:55 UTC 2017


> On Jan 13, 2017, at 02:22, Ngie Cooper (yaneurabeya) <yaneurabeya at gmail.com> wrote:
> 
> Hi,
> 	I spotted these compilation errors on universe12a.freebsd.org for both powerpc.LINT and powerpc.LINT64:
> 
> cc1: warnings being treated as errors
> /scratch/tmp/ngie/svn/sys/dev/netmap/netmap_generic.c: In function 'generic_set_tx_event':
> /scratch/tmp/ngie/svn/sys/dev/netmap/netmap_generic.c:765: warning: the address of 'generic_mbuf_destructor' will always evaluate as 'true' [-Waddress]
> --- netmap_generic.o ---
> *** [netmap_generic.o] Error code 1
> 
> 	I haven’t yet dug into why this only surfaces on powerpc, yet…

(CC -powerpc; BCC +powerpc)
Hi,
	sparc64 has the same issue as powerpc*, so I suspect that gcc is flagging this as an issue.
Thanks,
-Ngie

PS. Sidenote: why was the SET_MBUF_DESTRUCTOR macro added, but not used in nm_os_get_mbuf ?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 842 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.freebsd.org/pipermail/freebsd-ppc/attachments/20170113/5458c996/attachment.sig>


More information about the freebsd-ppc mailing list