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/c1d6aea869ba
branches: trunk
changeset: 453556:c1d6aea869ba
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 df0f73f68cfd -r c1d6aea869ba 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