Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Aug 2017 04:37:28 +0000 (UTC)
From:      Conrad Meyer <cem@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r322611 - head/sys/x86/x86
Message-ID:  <201708170437.v7H4bSCR019882@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201708170437.v7H4bSCR019882>