Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Jun 2018 19:24:50 +0000 (UTC)
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r335644 - head/sys/compat/linux
Message-ID:  <201806251924.w5PJOoG0070518@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: emaste
Date: Mon Jun 25 19:24:50 2018
New Revision: 335644
URL: https://svnweb.freebsd.org/changeset/base/335644

Log:
  Quiet unused fn warning for linuxulator w/o legacy syscalls
  
  Sponsored by:	Turing Robotic Industries

Modified:
  head/sys/compat/linux/linux_sysctl.c

Modified: head/sys/compat/linux/linux_sysctl.c
==============================================================================
--- head/sys/compat/linux/linux_sysctl.c	Mon Jun 25 18:53:06 2018	(r335643)
+++ head/sys/compat/linux/linux_sysctl.c	Mon Jun 25 19:24:50 2018	(r335644)
@@ -86,6 +86,7 @@ LIN_SDT_PROBE_DEFINE2(sysctl, linux_sysctl, wrong_leng
 LIN_SDT_PROBE_DEFINE1(sysctl, linux_sysctl, unsupported_sysctl, "char *");
 LIN_SDT_PROBE_DEFINE1(sysctl, linux_sysctl, return, "int");
 
+#ifdef LINUX_LEGACY_SYSCALLS
 static int
 handle_string(struct l___sysctl_args *la, char *value)
 {
@@ -115,7 +116,6 @@ handle_string(struct l___sysctl_args *la, char *value)
 	return (0);
 }
 
-#ifdef LINUX_LEGACY_SYSCALLS
 int
 linux_sysctl(struct thread *td, struct linux_sysctl_args *args)
 {



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