mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
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:
parent
07ee8fa69f
commit
fb94bf79b3
1 changed files with 1 additions and 1 deletions
|
|
@ -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))
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue