Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Jan 2019 19:10:47 +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: r342775 - head/sys/i386/include
Message-ID:  <201901041910.x04JAlmu090623@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Fri Jan  4 19:10:46 2019
New Revision: 342775
URL: https://svnweb.freebsd.org/changeset/base/342775

Log:
  Fix i386 LINT build after r342769.
  
  It seems that libkern/mcount.c is the only consumer of vm/pmap.h that
  does not include machine/atomic.h.  Make it work by bringing
  machine/atomic.h when pmap.h is used for kernel non-asm .c file.
  
  Sponsored by:	The FreeBSD Foundation
  MFC after:	1 week

Modified:
  head/sys/i386/include/pmap.h

Modified: head/sys/i386/include/pmap.h
==============================================================================
--- head/sys/i386/include/pmap.h	Fri Jan  4 18:38:27 2019	(r342774)
+++ head/sys/i386/include/pmap.h	Fri Jan  4 19:10:46 2019	(r342775)
@@ -194,6 +194,8 @@ typedef uint32_t pt_entry_t;
  * Address of current address space page table maps and directories.
  */
 #ifdef _KERNEL
+#include <machine/atomic.h>
+
 extern pt_entry_t PTmap[];
 extern pd_entry_t PTD[];
 extern pd_entry_t PTDpde[];



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