Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/ic Make AHCI_RFIS_SYNC macro (currently unused) comp...



details:   https://anonhg.NetBSD.org/src/rev/79d5051c06ae
branches:  trunk
changeset: 454850:79d5051c06ae
user:      jakllsch <jakllsch%NetBSD.org@localhost>
date:      Sun Sep 29 21:16:14 2019 +0000

description:
Make AHCI_RFIS_SYNC macro (currently unused) compile.

diffstat:

 sys/dev/ic/ahcisatavar.h |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r 44e45acf1b1d -r 79d5051c06ae sys/dev/ic/ahcisatavar.h
--- a/sys/dev/ic/ahcisatavar.h  Sun Sep 29 18:51:08 2019 +0000
+++ b/sys/dev/ic/ahcisatavar.h  Sun Sep 29 21:16:14 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ahcisatavar.h,v 1.22 2019/01/14 21:29:56 jdolecek Exp $        */
+/*     $NetBSD: ahcisatavar.h,v 1.23 2019/09/29 21:16:14 jakllsch Exp $        */
 
 /*
  * Copyright (c) 2006 Manuel Bouyer.
@@ -103,7 +103,8 @@
     (char *)(&(achp)->ahcic_cmdh[(cmd)]) - (char *)(sc)->sc_cmd_hdr, \
     sizeof(struct ahci_cmd_header), (op))
 #define AHCI_RFIS_SYNC(sc, achp, op) bus_dmamap_sync((sc)->sc_dmat, \
-    (sc)->sc_cmd_hdrd, (void *)(achp)->ahcic_rfis - (sc)->sc_cmd_hdr, \
+    (sc)->sc_cmd_hdrd, \
+    (char *)(achp)->ahcic_rfis - (char *)(sc)->sc_cmd_hdr, \
     AHCI_RFIS_SIZE, (op))
 #define AHCI_CMDTBL_SYNC(sc, achp, cmd, op) bus_dmamap_sync((sc)->sc_dmat, \
     (achp)->ahcic_cmd_tbld, AHCI_CMDTBL_SIZE * (cmd), \



Home | Main Index | Thread Index | Old Index