summaryrefslogtreecommitdiffstats
path: root/sys/dev/dpt
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2012-04-21 14:23:46 +0000
committerdim <dim@FreeBSD.org>2012-04-21 14:23:46 +0000
commitefe12312b4b1263d96d02aa53fb90be7f11e3ed8 (patch)
treeef097033df6dfde35c00dccff2cd4fc91bc303d5 /sys/dev/dpt
parent968f07e10ac01db703ec17af4873eb7118e5e6c1 (diff)
downloadFreeBSD-src-efe12312b4b1263d96d02aa53fb90be7f11e3ed8.zip
FreeBSD-src-efe12312b4b1263d96d02aa53fb90be7f11e3ed8.tar.gz
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
Diffstat (limited to 'sys/dev/dpt')
-rw-r--r--sys/dev/dpt/dpt.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/dpt/dpt.h b/sys/dev/dpt/dpt.h
index c31e6e3..eaf1ac6 100644
--- a/sys/dev/dpt/dpt.h
+++ b/sys/dev/dpt/dpt.h
@@ -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))
OpenPOWER on IntegriCloud