From owner-svn-src-head@freebsd.org Thu Jul 16 12:16:43 2015 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 45FDC9A2A2B; Thu, 16 Jul 2015 12:16:43 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3745514AB; Thu, 16 Jul 2015 12:16:43 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.70]) by repo.freebsd.org (8.14.9/8.14.9) with ESMTP id t6GCGhk1065905; Thu, 16 Jul 2015 12:16:43 GMT (envelope-from kib@FreeBSD.org) Received: (from kib@localhost) by repo.freebsd.org (8.14.9/8.14.9/Submit) id t6GCGhID065904; Thu, 16 Jul 2015 12:16:43 GMT (envelope-from kib@FreeBSD.org) Message-Id: <201507161216.t6GCGhID065904@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: kib set sender to kib@FreeBSD.org using -f From: Konstantin Belousov Date: Thu, 16 Jul 2015 12:16:43 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r285629 - head/sys/x86/x86 X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Jul 2015 12:16:43 -0000 Author: kib Date: Thu Jul 16 12:16:42 2015 New Revision: 285629 URL: https://svnweb.freebsd.org/changeset/base/285629 Log: Fix warnings about unused functions for UP build. Sponsored by: The FreeBSD Foundation Modified: head/sys/x86/x86/local_apic.c Modified: head/sys/x86/x86/local_apic.c ============================================================================== --- head/sys/x86/x86/local_apic.c Thu Jul 16 11:14:59 2015 (r285628) +++ head/sys/x86/x86/local_apic.c Thu Jul 16 12:16:42 2015 (r285629) @@ -204,6 +204,7 @@ lapic_write32_nofence(enum LAPIC_REGISTE } } +#ifdef SMP static uint64_t lapic_read_icr(void) { @@ -241,6 +242,7 @@ lapic_write_icr(uint32_t vhi, uint32_t v lapic_write32(LAPIC_ICR_LO, vlo); } } +#endif /* SMP */ static void native_lapic_enable_x2apic(void) @@ -292,9 +294,6 @@ static int native_lapic_enable_pmc(void static void native_lapic_disable_pmc(void); static void native_lapic_reenable_pmc(void); static void native_lapic_enable_cmc(void); -static void native_lapic_ipi_raw(register_t icrlo, u_int dest); -static void native_lapic_ipi_vectored(u_int vector, int dest); -static int native_lapic_ipi_wait(int delay); static int native_lapic_set_lvt_mask(u_int apic_id, u_int lvt, u_char masked); static int native_lapic_set_lvt_mode(u_int apic_id, u_int lvt, @@ -303,8 +302,13 @@ static int native_lapic_set_lvt_polarit enum intr_polarity pol); static int native_lapic_set_lvt_triggermode(u_int apic_id, u_int lvt, enum intr_trigger trigger); +#ifdef SMP +static void native_lapic_ipi_raw(register_t icrlo, u_int dest); +static void native_lapic_ipi_vectored(u_int vector, int dest); +static int native_lapic_ipi_wait(int delay); static int native_lapic_ipi_alloc(inthand_t *ipifunc); static void native_lapic_ipi_free(int vector); +#endif /* SMP */ struct apic_ops apic_ops = { .create = native_lapic_create,