Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 6 Jan 2017 16:56:24 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r311521 - head/sys/kern
Message-ID:  <201701061656.v06GuOgA083296@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Fri Jan  6 16:56:24 2017
New Revision: 311521
URL: https://svnweb.freebsd.org/changeset/base/311521

Log:
  Explicitely add "opt_compat.h" to kern_exec.c: fix powerpc LINT builds.
  
  sys/ptrace.h includes sys/signal.h, which includes sys/_sigset.h.
  Note that sys/_sigset.h only defines osigset_t if COMPAT_43 was defined.
  
  Two lines later, sys/ptrace.h includes machine/reg.h, which in case of
  powerpc, includes opt_compat.h.
  
  After the include headers reordering in r311345, we have sys/ptrace.h
  included before sys/sysproto.h.
  
  If COMPAT_43 was requested in the kernel config, the result is that
  sys/_sigset.h does not define osigset_t, but sys/sysproto.h sees
  COMPAT_43 and uses osigset_t.
  
  Fix this by explicitely including opt_compat.h to cover the whole
  kern/kern_exec.c scope.
  
  Sponsored by:	The FreeBSD Foundation

Modified:
  head/sys/kern/kern_exec.c

Modified: head/sys/kern/kern_exec.c
==============================================================================
--- head/sys/kern/kern_exec.c	Fri Jan  6 16:43:45 2017	(r311520)
+++ head/sys/kern/kern_exec.c	Fri Jan  6 16:56:24 2017	(r311521)
@@ -28,6 +28,7 @@
 __FBSDID("$FreeBSD$");
 
 #include "opt_capsicum.h"
+#include "opt_compat.h"
 #include "opt_hwpmc_hooks.h"
 #include "opt_ktrace.h"
 #include "opt_vm.h"



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