Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci virtio: Use UINT64_C() instead of explicit ULL s...



details:   https://anonhg.NetBSD.org/src/rev/380d07cff468
branches:  trunk
changeset: 365204:380d07cff468
user:      uwe <uwe%NetBSD.org@localhost>
date:      Wed Apr 13 10:56:11 2022 +0000

description:
virtio: Use UINT64_C() instead of explicit ULL suffix.

diffstat:

 sys/dev/pci/virtioreg.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 05522ae6f9a8 -r 380d07cff468 sys/dev/pci/virtioreg.h
--- a/sys/dev/pci/virtioreg.h   Wed Apr 13 10:50:28 2022 +0000
+++ b/sys/dev/pci/virtioreg.h   Wed Apr 13 10:56:11 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: virtioreg.h,v 1.9 2022/04/13 10:50:28 uwe Exp $        */
+/*     $NetBSD: virtioreg.h,v 1.10 2022/04/13 10:56:11 uwe Exp $       */
 
 /*
  * Copyright (c) 2010 Minoura Makoto.
@@ -83,7 +83,7 @@
 #define  VIRTIO_F_RING_INDIRECT_DESC           (1<<28)
 #define  VIRTIO_F_RING_EVENT_IDX               (1<<29)
 #define  VIRTIO_F_BAD_FEATURE                  (1<<30)
-#define  VIRTIO_F_VERSION_1                    (1ULL<<32)
+#define  VIRTIO_F_VERSION_1                    (UINT64_C(1) << 32)
 
 /* common device status flags */
 #define  VIRTIO_CONFIG_DEVICE_STATUS_RESET               0



Home | Main Index | Thread Index | Old Index