Date: Sat, 28 Apr 2012 09:21:44 +0000 (UTC) From: Dimitry Andric <dim@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org Subject: svn commit: r234755 - stable/9/sys/dev/dpt Message-ID: <201204280921.q3S9LiWV052186@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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))
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201204280921.q3S9LiWV052186>