Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/sdmmc Avoid changing signedness bit with << in sdmmc...



details:   https://anonhg.NetBSD.org/src/rev/8dc5e2bef268
branches:  trunk
changeset: 967727:8dc5e2bef268
user:      kamil <kamil%NetBSD.org@localhost>
date:      Thu Dec 19 17:24:45 2019 +0000

description:
Avoid changing signedness bit with << in sdmmc_ioreg.h

Reported by <prlw1>

diffstat:

 sys/dev/sdmmc/sdmmc_ioreg.h |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 9b9dadbef03f -r 8dc5e2bef268 sys/dev/sdmmc/sdmmc_ioreg.h
--- a/sys/dev/sdmmc/sdmmc_ioreg.h       Thu Dec 19 16:29:50 2019 +0000
+++ b/sys/dev/sdmmc/sdmmc_ioreg.h       Thu Dec 19 17:24:45 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sdmmc_ioreg.h,v 1.5 2019/10/28 06:26:19 mlelstv Exp $  */
+/*     $NetBSD: sdmmc_ioreg.h,v 1.6 2019/12/19 17:24:45 kamil Exp $    */
 /*     $OpenBSD: sdmmc_ioreg.h,v 1.4 2007/06/02 01:48:37 uwe Exp $     */
 
 /*
@@ -39,7 +39,7 @@
 
 /* CMD53 arguments */
 #define SD_ARG_CMD53_READ              (0<<31)
-#define SD_ARG_CMD53_WRITE             (1<<31)
+#define SD_ARG_CMD53_WRITE             (1U<<31)
 #define SD_ARG_CMD53_FUNC_SHIFT                28
 #define SD_ARG_CMD53_FUNC_MASK         0x7
 #define SD_ARG_CMD53_BLOCK_MODE                (1<<27)
@@ -55,7 +55,7 @@
 #define MMC_R5(resp)                   ((resp)[0])
 
 /* SD R4 response (IO OCR) */
-#define SD_IO_OCR_MEM_READY            (1<<31)
+#define SD_IO_OCR_MEM_READY            (1U<<31)
 #define SD_IO_OCR_NUM_FUNCTIONS(ocr)   (((ocr) >> 28) & 0x7)
 #define SD_IO_OCR_MEM_PRESENT          (1<<27)
 #define SD_IO_OCR_MASK                 0x00fffff0



Home | Main Index | Thread Index | Old Index