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
This commit is contained in:
dim 2012-04-21 14:23:46 +00:00
parent 968f07e10a
commit efe12312b4

View File

@ -142,7 +142,7 @@ typedef void *physaddr;
*/
#define DPT_NO_CACHE 0
#define DPT_CACHE_WRITETHROUGH 1
#define DPT_CACHE_WRITEBACK -2
#define DPT_CACHE_WRITEBACK 2
#define min(a,b) ((a<b)?(a):(b))