socsvn commit: r307273 - soc2016/iateaca/bhyve-hda-head/usr.sbin/bhyve

iateaca at FreeBSD.org iateaca at FreeBSD.org
Sat Aug 6 12:14:28 UTC 2016


Author: iateaca
Date: Sat Aug  6 12:14:27 2016
New Revision: 307273
URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=307273

Log:
  
  make it compile with HDA_DEBUG=0
  
  M    pci_hda.c

Modified:
  soc2016/iateaca/bhyve-hda-head/usr.sbin/bhyve/pci_hda.c

Modified: soc2016/iateaca/bhyve-hda-head/usr.sbin/bhyve/pci_hda.c
==============================================================================
--- soc2016/iateaca/bhyve-hda-head/usr.sbin/bhyve/pci_hda.c	Sat Aug  6 11:02:07 2016	(r307272)
+++ soc2016/iateaca/bhyve-hda-head/usr.sbin/bhyve/pci_hda.c	Sat Aug  6 12:14:27 2016	(r307273)
@@ -141,7 +141,7 @@
 static int
 hda_write(struct hda_softc *sc, uint32_t offset, uint8_t size, uint32_t value);
 
-static void
+static inline void
 hda_print_cmd_ctl_data(struct hda_codec_cmd_ctl *p);
 static int
 hda_corb_start(struct hda_softc *sc);
@@ -705,11 +705,12 @@
 	return 0;
 }
 
-static void
+static inline void
 hda_print_cmd_ctl_data(struct hda_codec_cmd_ctl *p)
 {
+#if DEBUG_HDA == 1
 	char *name = p->name;
-
+#endif
 	DPRINTF("%s size: %d\n", name, p->size);
 	DPRINTF("%s dma_vaddr: %p\n", name, p->dma_vaddr);
 	DPRINTF("%s wp: 0x%x\n", name, p->wp);


More information about the svn-soc-all mailing list