]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFC r234540:
authordim <dim@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sat, 28 Apr 2012 09:21:43 +0000 (09:21 +0000)
committerdim <dim@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sat, 28 Apr 2012 09:21:43 +0000 (09:21 +0000)
commit2972af5e40230cfdedf03b2c468fba761cea886b
tree2fe5e3f4f5a88fdebd00c21ce0a0624700cf76b1
parent2acd99db413ac44954c0560100684165e8aa35d4
MFC r234540:

Fix the following clang warning in dpt(4):

  sys/dev/dpt/dpt_scsi.c:612:18: error: implicit truncation from 'int' to bitfield changes value from -2 to 2 [-Werror,-Wconstant-conversion]
    dpt->cache_type = DPT_CACHE_WRITEBACK;
                    ^ ~~~~~~~~~~~~~~~~~~~

by defining DPT_CACHE_WRITEBACK as 2, since dpt_softc::cache_type is an
unsigned bitfield.  No binary change.

MFC after: 1 week

git-svn-id: svn://svn.freebsd.org/base/stable/9@234755 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/dev/dpt/dpt.h