From owner-svn-src-head@FreeBSD.ORG Wed Apr 22 14:39:03 2015 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 275EF9BC; Wed, 22 Apr 2015 14:39:03 +0000 (UTC) Received: from svn.freebsd.org (svn.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 084551988; Wed, 22 Apr 2015 14:39:03 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id t3MEd2Y6040613; Wed, 22 Apr 2015 14:39:02 GMT (envelope-from rodrigc@FreeBSD.org) Received: (from rodrigc@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id t3MEcxgW040556; Wed, 22 Apr 2015 14:38:59 GMT (envelope-from rodrigc@FreeBSD.org) Message-Id: <201504221438.t3MEcxgW040556@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: rodrigc set sender to rodrigc@FreeBSD.org using -f From: Craig Rodrigues Date: Wed, 22 Apr 2015 14:38:59 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r281855 - in head/sys: conf dev/bxe dev/mxge geom/uncompress geom/uzip kern libkern net netgraph opencrypto sys 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: Wed, 22 Apr 2015 14:39:03 -0000 Author: rodrigc Date: Wed Apr 22 14:38:58 2015 New Revision: 281855 URL: https://svnweb.freebsd.org/changeset/base/281855 Log: Move zlib.c from net to libkern. It is not network-specific code and would be better as part of libkern instead. Move zlib.h and zutil.h from net/ to sys/ Update includes to use sys/zlib.h and sys/zutil.h instead of net/ Submitted by: Steve Kiernan stevek@juniper.net Obtained from: Juniper Networks, Inc. GitHub Pull Request: https://github.com/freebsd/freebsd/pull/28 Relnotes: yes Added: head/sys/libkern/zlib.c (contents, props changed) - copied, changed from r281845, head/sys/net/zlib.c head/sys/sys/zlib.h (contents, props changed) - copied, changed from r281845, head/sys/net/zlib.h head/sys/sys/zutil.h (contents, props changed) - copied, changed from r281845, head/sys/net/zutil.h Deleted: head/sys/net/zlib.c head/sys/net/zlib.h head/sys/net/zutil.h Modified: head/sys/conf/files head/sys/dev/bxe/bxe.h head/sys/dev/mxge/if_mxge.c head/sys/geom/uncompress/g_uncompress.c head/sys/geom/uzip/g_uzip.c head/sys/kern/kern_gzio.c head/sys/kern/link_elf.c head/sys/kern/link_elf_obj.c head/sys/netgraph/ng_deflate.c head/sys/opencrypto/cryptodeflate.c head/sys/opencrypto/deflate.h Modified: head/sys/conf/files ============================================================================== --- head/sys/conf/files Wed Apr 22 13:52:29 2015 (r281854) +++ head/sys/conf/files Wed Apr 22 14:38:58 2015 (r281855) @@ -3262,6 +3262,9 @@ libkern/strtoul.c standard libkern/strtouq.c standard libkern/strvalid.c standard libkern/timingsafe_bcmp.c standard +libkern/zlib.c optional crypto | geom_uzip | ipsec | \ + mxge | netgraph_deflate | \ + ddb_ctf | gzio | geom_uncompress net/altq/altq_cbq.c optional altq net/altq/altq_cdnr.c optional altq net/altq/altq_hfsc.c optional altq @@ -3324,9 +3327,6 @@ net/slcompress.c optional netgraph_vjc netgraph_sppp net/toeplitz.c optional inet rss | inet6 rss net/vnet.c optional vimage -net/zlib.c optional crypto | geom_uzip | ipsec | \ - mxge | netgraph_deflate | \ - ddb_ctf | gzio | geom_uncompress net80211/ieee80211.c optional wlan net80211/ieee80211_acl.c optional wlan wlan_acl net80211/ieee80211_action.c optional wlan Modified: head/sys/dev/bxe/bxe.h ============================================================================== --- head/sys/dev/bxe/bxe.h Wed Apr 22 13:52:29 2015 (r281854) +++ head/sys/dev/bxe/bxe.h Wed Apr 22 14:38:58 2015 (r281855) @@ -51,6 +51,7 @@ __FBSDID("$FreeBSD$"); #include #include #include +#include #include #include @@ -60,7 +61,6 @@ __FBSDID("$FreeBSD$"); #include #include #include -#include #include #include Modified: head/sys/dev/mxge/if_mxge.c ============================================================================== --- head/sys/dev/mxge/if_mxge.c Wed Apr 22 13:52:29 2015 (r281854) +++ head/sys/dev/mxge/if_mxge.c Wed Apr 22 14:38:58 2015 (r281855) @@ -46,6 +46,7 @@ __FBSDID("$FreeBSD$"); #include #include #include +#include #include #include @@ -58,7 +59,6 @@ __FBSDID("$FreeBSD$"); #include #include -#include #include #include Modified: head/sys/geom/uncompress/g_uncompress.c ============================================================================== --- head/sys/geom/uncompress/g_uncompress.c Wed Apr 22 13:52:29 2015 (r281854) +++ head/sys/geom/uncompress/g_uncompress.c Wed Apr 22 14:38:58 2015 (r281855) @@ -45,10 +45,10 @@ __FBSDID("$FreeBSD$"); #include #include #include +#include #include -#include #include #ifdef GEOM_UNCOMPRESS_DEBUG Modified: head/sys/geom/uzip/g_uzip.c ============================================================================== --- head/sys/geom/uzip/g_uzip.c Wed Apr 22 13:52:29 2015 (r281854) +++ head/sys/geom/uzip/g_uzip.c Wed Apr 22 14:38:58 2015 (r281855) @@ -38,9 +38,9 @@ __FBSDID("$FreeBSD$"); #include #include #include +#include #include -#include FEATURE(geom_uzip, "GEOM uzip read-only compressed disks support"); Modified: head/sys/kern/kern_gzio.c ============================================================================== --- head/sys/kern/kern_gzio.c Wed Apr 22 13:52:29 2015 (r281854) +++ head/sys/kern/kern_gzio.c Wed Apr 22 14:38:58 2015 (r281855) @@ -32,8 +32,7 @@ __FBSDID("$FreeBSD$"); #include #include #include - -#include +#include #define KERN_GZ_HDRLEN 10 /* gzip header length */ #define KERN_GZ_TRAILERLEN 8 /* gzip trailer length */ Modified: head/sys/kern/link_elf.c ============================================================================== --- head/sys/kern/link_elf.c Wed Apr 22 13:52:29 2015 (r281854) +++ head/sys/kern/link_elf.c Wed Apr 22 14:38:58 2015 (r281855) @@ -66,7 +66,7 @@ __FBSDID("$FreeBSD$"); #include #ifdef DDB_CTF -#include +#include #endif #include "linker_if.h" Modified: head/sys/kern/link_elf_obj.c ============================================================================== --- head/sys/kern/link_elf_obj.c Wed Apr 22 13:52:29 2015 (r281854) +++ head/sys/kern/link_elf_obj.c Wed Apr 22 14:38:58 2015 (r281855) @@ -60,7 +60,7 @@ __FBSDID("$FreeBSD$"); #include #ifdef DDB_CTF -#include +#include #endif #include "linker_if.h" Copied and modified: head/sys/libkern/zlib.c (from r281845, head/sys/net/zlib.c) ============================================================================== --- head/sys/net/zlib.c Wed Apr 22 01:54:25 2015 (r281845, copy source) +++ head/sys/libkern/zlib.c Wed Apr 22 14:38:58 2015 (r281855) @@ -54,7 +54,7 @@ #define _Z_UTIL_H #ifdef _KERNEL -#include +#include #else #include "zlib.h" #endif Modified: head/sys/netgraph/ng_deflate.c ============================================================================== --- head/sys/netgraph/ng_deflate.c Wed Apr 22 13:52:29 2015 (r281854) +++ head/sys/netgraph/ng_deflate.c Wed Apr 22 14:38:58 2015 (r281855) @@ -39,8 +39,7 @@ #include #include #include - -#include +#include #include #include Modified: head/sys/opencrypto/cryptodeflate.c ============================================================================== --- head/sys/opencrypto/cryptodeflate.c Wed Apr 22 13:52:29 2015 (r281854) +++ head/sys/opencrypto/cryptodeflate.c Wed Apr 22 14:38:58 2015 (r281855) @@ -29,7 +29,7 @@ /* * This file contains a wrapper around the deflate algo compression - * functions using the zlib library (see net/zlib.{c,h}) + * functions using the zlib library (see libkern/zlib.c and sys/zlib.h}) */ #include @@ -42,7 +42,7 @@ __FBSDID("$FreeBSD$"); #include #include #include -#include +#include #include #include Modified: head/sys/opencrypto/deflate.h ============================================================================== --- head/sys/opencrypto/deflate.h Wed Apr 22 13:52:29 2015 (r281854) +++ head/sys/opencrypto/deflate.h Wed Apr 22 14:38:58 2015 (r281855) @@ -36,7 +36,7 @@ #ifndef _CRYPTO_DEFLATE_H_ #define _CRYPTO_DEFLATE_H_ -#include +#include #define Z_METHOD 8 #define Z_MEMLEVEL 8 Copied and modified: head/sys/sys/zlib.h (from r281845, head/sys/net/zlib.h) ============================================================================== Copied and modified: head/sys/sys/zutil.h (from r281845, head/sys/net/zutil.h) ============================================================================== --- head/sys/net/zutil.h Wed Apr 22 01:54:25 2015 (r281845, copy source) +++ head/sys/sys/zutil.h Wed Apr 22 14:38:58 2015 (r281855) @@ -17,7 +17,7 @@ #define ZEXPORT #ifdef _KERNEL -#include +#include #else #include "zlib.h" #endif