Author: cem
Date: Thu Aug 17 04:37:27 2017
New Revision: 322611
URL: https://svnweb.freebsd.org/changeset/base/322611

Log:
  Fix unused varable warning in !SMP case
  
  Fallout from r322588.  I'm not sure why !SMP is a knob we have, but, we have
  it.
  
  Reported by:  Michael Butler <imb AT protected-networks.net>
  Sponsored by: Dell EMC Isilon

Modified:
  head/sys/x86/x86/intr_machdep.c

Modified: head/sys/x86/x86/intr_machdep.c
==============================================================================
--- head/sys/x86/x86/intr_machdep.c     Thu Aug 17 04:30:31 2017        
(r322610)
+++ head/sys/x86/x86/intr_machdep.c     Thu Aug 17 04:37:27 2017        
(r322611)
@@ -75,12 +75,14 @@ typedef void (*mask_fn)(void *);
 
 static int intrcnt_index;
 static struct intsrc *interrupt_sources[NUM_IO_INTS];
+#ifdef SMP
 static struct intsrc *interrupt_sorted[NUM_IO_INTS];
 CTASSERT(sizeof(interrupt_sources) == sizeof(interrupt_sorted));
 static int intrbalance;
 SYSCTL_INT(_hw, OID_AUTO, intrbalance, CTLFLAG_RW, &intrbalance, 0,
     "Interrupt auto-balance interval (seconds).  Zero disables.");
 static struct timeout_task intrbalance_task;
+#endif
 static struct sx intrsrc_lock;
 static struct mtx intrpic_lock;
 static struct mtx intrcnt_lock;
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to