Source-Changes-HG archive

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

[src/trunk]: src/sys/external/bsd/drm2/dist/drm/radeon Use unsigned to avoid ...



details:   https://anonhg.NetBSD.org/src/rev/a79ccf0a86f5
branches:  trunk
changeset: 458940:a79ccf0a86f5
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Sun Aug 18 02:42:40 2019 +0000

description:
Use unsigned to avoid undefined behavior. Found by kUBSan.

diffstat:

 sys/external/bsd/drm2/dist/drm/radeon/sid.h |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (22 lines):

diff -r be292299d3fe -r a79ccf0a86f5 sys/external/bsd/drm2/dist/drm/radeon/sid.h
--- a/sys/external/bsd/drm2/dist/drm/radeon/sid.h       Sun Aug 18 02:23:48 2019 +0000
+++ b/sys/external/bsd/drm2/dist/drm/radeon/sid.h       Sun Aug 18 02:42:40 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sid.h,v 1.3 2019/08/09 06:27:21 msaitoh Exp $  */
+/*     $NetBSD: sid.h,v 1.4 2019/08/18 02:42:40 msaitoh Exp $  */
 
 /*
  * Copyright 2011 Advanced Micro Devices, Inc.
@@ -781,10 +781,10 @@
 #       define DESCRIPTION17(x)                          (((x) & 0xff) << 8)
 
 #define AZ_F0_CODEC_PIN_CONTROL_HOT_PLUG_CONTROL         0x54
-#       define AUDIO_ENABLED                             (1 << 31)
+#       define AUDIO_ENABLED                             (1U << 31)
 
 #define AZ_F0_CODEC_PIN_CONTROL_RESPONSE_CONFIGURATION_DEFAULT  0x56
-#define                PORT_CONNECTIVITY_MASK                          (3 << 30)
+#define                PORT_CONNECTIVITY_MASK                          (3U << 30)
 #define                PORT_CONNECTIVITY_SHIFT                         30
 
 #define        DC_LB_MEMORY_SPLIT                                      0x6b0c



Home | Main Index | Thread Index | Old Index