]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFC r305360:
authordim <dim@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 7 Sep 2016 19:17:03 +0000 (19:17 +0000)
committerdim <dim@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 7 Sep 2016 19:17:03 +0000 (19:17 +0000)
commitc59d9ff8913c75c910594032ec6f46712bc359b2
treed6dd761c70446de97c2a6911299bd57e5a6eff2c
parent1ab5e83e54ace2843b90d235a860a38731b195f2
MFC r305360:

With clang 3.9.0, compiling cxgb results in the following warning:

sys/dev/cxgb/cxgb_sge.c:2873:44: error: implicit conversion from 'int'
to 'char' changes value from 128 to -128 [-Werror,-Wconstant-conversion]
                        *mtod(m, char *) = CPL_ASYNC_NOTIF;
                                         ~ ^~~~~~~~~~~~~~~

This is because CPL_ASYNC_NOTIF is 0x80, so the plain char argument is
wrapped to a negative value.  Fix this by using uint8_t instead.

Reviewed by: np
Differential Revision: https://reviews.freebsd.org/D7772

git-svn-id: svn://svn.freebsd.org/base/stable/9@305556 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/dev/cxgb/cxgb_sge.c