From owner-svn-src-head@freebsd.org Tue Sep 22 15:32:28 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 C19E3A06DE8; Tue, 22 Sep 2015 15:32:28 +0000 (UTC) (envelope-from bz@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 B2EA117F8; Tue, 22 Sep 2015 15:32:28 +0000 (UTC) (envelope-from bz@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.70]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id t8MFWSRQ001162; Tue, 22 Sep 2015 15:32:28 GMT (envelope-from bz@FreeBSD.org) Received: (from bz@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id t8MFWS49001161; Tue, 22 Sep 2015 15:32:28 GMT (envelope-from bz@FreeBSD.org) Message-Id: <201509221532.t8MFWS49001161@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: bz set sender to bz@FreeBSD.org using -f From: "Bjoern A. Zeeb" Date: Tue, 22 Sep 2015 15:32:28 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r288112 - head/sys/dev/drm2 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: Tue, 22 Sep 2015 15:32:28 -0000 Author: bz Date: Tue Sep 22 15:32:27 2015 New Revision: 288112 URL: https://svnweb.freebsd.org/changeset/base/288112 Log: Hide an unused in FreeBSD function behind #ifdef linux to get rid of the compile time warning. Reviewed by: gnn MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D3710 Modified: head/sys/dev/drm2/drm_lock.c Modified: head/sys/dev/drm2/drm_lock.c ============================================================================== --- head/sys/dev/drm2/drm_lock.c Tue Sep 22 15:06:26 2015 (r288111) +++ head/sys/dev/drm2/drm_lock.c Tue Sep 22 15:32:27 2015 (r288112) @@ -38,7 +38,9 @@ __FBSDID("$FreeBSD$"); #include +#if defined(__linux__) static int drm_notifier(void *priv); +#endif static int drm_lock_take(struct drm_lock_data *lock_data, unsigned int context); @@ -284,6 +286,7 @@ int drm_lock_free(struct drm_lock_data * return 0; } +#if defined(__linux__) /** * If we get here, it means that the process has called DRM_IOCTL_LOCK * without calling DRM_IOCTL_UNLOCK. @@ -314,6 +317,7 @@ static int drm_notifier(void *priv) } while (prev != old); return 0; } +#endif /** * This function returns immediately and takes the hw lock