Author: dim
Date: Sat Apr 28 09:21:43 2012
New Revision: 234755
URL: http://svn.freebsd.org/changeset/base/234755

Log:
  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

Modified:
  stable/9/sys/dev/dpt/dpt.h
Directory Properties:
  stable/9/sys/   (props changed)

Modified: stable/9/sys/dev/dpt/dpt.h
==============================================================================
--- stable/9/sys/dev/dpt/dpt.h  Sat Apr 28 09:18:20 2012        (r234754)
+++ stable/9/sys/dev/dpt/dpt.h  Sat Apr 28 09:21:43 2012        (r234755)
@@ -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))
 
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to