Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 Apr 2019 14:09:31 +0000 (UTC)
From:      Dmitry Chagin <dchagin@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r346836 - stable/11/sys/compat/linux
Message-ID:  <201904281409.x3SE9VJ4039392@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dchagin
Date: Sun Apr 28 14:09:31 2019
New Revision: 346836
URL: https://svnweb.freebsd.org/changeset/base/346836

Log:
  MFC r335644 (by emaste@):
  
  Quiet unused fn warning for linuxulator w/o legacy syscalls.

Modified:
  stable/11/sys/compat/linux/linux_sysctl.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/compat/linux/linux_sysctl.c
==============================================================================
--- stable/11/sys/compat/linux/linux_sysctl.c	Sun Apr 28 14:08:05 2019	(r346835)
+++ stable/11/sys/compat/linux/linux_sysctl.c	Sun Apr 28 14:09:31 2019	(r346836)
@@ -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?201904281409.x3SE9VJ4039392>