Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-9]: src/sys Pull up following revision(s) (requested by riastradh...



details:   https://anonhg.NetBSD.org/src/rev/5661f2d1b931
branches:  netbsd-9
changeset: 746013:5661f2d1b931
user:      martin <martin%NetBSD.org@localhost>
date:      Thu Mar 19 19:41:10 2020 +0000

description:
Pull up following revision(s) (requested by riastradh in ticket #787):

        sys/altq/altq_flowvalve.h: revision 1.4
        sys/net/zlib.h: revision 1.15
        sys/dist/pf/net/pfvar.h: revision 1.23
        sys/external/bsd/drm2/dist/include/drm/drmP.h: revision 1.38
        sys/external/bsd/drm2/dist/drm/drm_drv.c: revision 1.13
        sys/net/slcompress.h: revision 1.20

Need opt_inet.h for #ifdef INET, INET6.

Avoid duplicate definition of internal_state struct.

Avoid struct inode.

This is an fs-independent structure in Linux.  We don't actually use
it as such; it's just a dummy struct tag.  But we do have an actual
struct inode in ufs and in lfs, and using the same struct tag here
confuses ctf leading to four copies of pretty much every drm data
structure.

diffstat:

 sys/altq/altq_flowvalve.h                     |   6 +++++-
 sys/dist/pf/net/pfvar.h                       |   6 +++++-
 sys/external/bsd/drm2/dist/drm/drm_drv.c      |  10 ++++------
 sys/external/bsd/drm2/dist/include/drm/drmP.h |   4 ++--
 sys/net/slcompress.h                          |   6 +++++-
 sys/net/zlib.h                                |   5 +++--
 6 files changed, 24 insertions(+), 13 deletions(-)

diffs (141 lines):

diff -r 8e00e44b4e7e -r 5661f2d1b931 sys/altq/altq_flowvalve.h
--- a/sys/altq/altq_flowvalve.h Thu Mar 19 19:23:14 2020 +0000
+++ b/sys/altq/altq_flowvalve.h Thu Mar 19 19:41:10 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: altq_flowvalve.h,v 1.3 2006/10/12 19:59:08 peter Exp $ */
+/*     $NetBSD: altq_flowvalve.h,v 1.3.146.1 2020/03/19 19:41:10 martin Exp $  */
 /*     $KAME: altq_flowvalve.h,v 1.5 2002/04/03 05:38:50 kjc Exp $     */
 
 /*
@@ -32,6 +32,10 @@
 
 #ifdef _KERNEL
 
+#ifdef _KERNEL_OPT
+#include "opt_inet.h"
+#endif
+
 /* fv_flow structure to define a unique address pair */
 struct fv_flow {
        int flow_af;            /* address family */
diff -r 8e00e44b4e7e -r 5661f2d1b931 sys/dist/pf/net/pfvar.h
--- a/sys/dist/pf/net/pfvar.h   Thu Mar 19 19:23:14 2020 +0000
+++ b/sys/dist/pf/net/pfvar.h   Thu Mar 19 19:41:10 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pfvar.h,v 1.22 2014/06/05 23:48:16 rmind Exp $ */
+/*     $NetBSD: pfvar.h,v 1.22.32.1 2020/03/19 19:41:10 martin Exp $   */
 /*     $OpenBSD: pfvar.h,v 1.254 2007/07/13 09:17:48 markus Exp $ */
 
 /*
@@ -34,6 +34,10 @@
 #ifndef _NET_PFVAR_H_
 #define _NET_PFVAR_H_
 
+#ifdef _KERNEL_OPT
+#include "opt_inet.h"
+#endif
+
 #include <sys/param.h>
 #include <sys/types.h>
 #include <sys/queue.h>
diff -r 8e00e44b4e7e -r 5661f2d1b931 sys/external/bsd/drm2/dist/drm/drm_drv.c
--- a/sys/external/bsd/drm2/dist/drm/drm_drv.c  Thu Mar 19 19:23:14 2020 +0000
+++ b/sys/external/bsd/drm2/dist/drm/drm_drv.c  Thu Mar 19 19:41:10 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: drm_drv.c,v 1.10 2018/08/28 08:20:27 martin Exp $      */
+/*     $NetBSD: drm_drv.c,v 1.10.4.1 2020/03/19 19:41:10 martin Exp $  */
 
 /*
  * Created: Fri Jan 19 10:48:35 2001 by faith%acm.org@localhost
@@ -29,7 +29,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: drm_drv.c,v 1.10 2018/08/28 08:20:27 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: drm_drv.c,v 1.10.4.1 2020/03/19 19:41:10 martin Exp $");
 
 #include <linux/err.h>
 #include <linux/export.h>
@@ -541,16 +541,14 @@
 
 #ifdef __NetBSD__
 
-struct inode;
-
-static struct inode *
+static void *
 drm_fs_inode_new(void)
 {
        return NULL;
 }
 
 static void
-drm_fs_inode_free(struct inode *inode)
+drm_fs_inode_free(void *inode)
 {
        KASSERT(inode == NULL);
 }
diff -r 8e00e44b4e7e -r 5661f2d1b931 sys/external/bsd/drm2/dist/include/drm/drmP.h
--- a/sys/external/bsd/drm2/dist/include/drm/drmP.h     Thu Mar 19 19:23:14 2020 +0000
+++ b/sys/external/bsd/drm2/dist/include/drm/drmP.h     Thu Mar 19 19:41:10 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: drmP.h,v 1.35.4.1 2019/11/06 09:48:31 martin Exp $     */
+/*     $NetBSD: drmP.h,v 1.35.4.2 2020/03/19 19:41:10 martin Exp $     */
 
 /*
  * Internal Header for the Direct Rendering Manager
@@ -821,7 +821,7 @@
        struct drm_minor *primary;              /**< Primary node */
        struct drm_minor *render;               /**< Render node */
        atomic_t unplugged;                     /**< Flag whether dev is dead */
-       struct inode *anon_inode;               /**< inode for private address-space */
+       void *anon_inode;               /**< inode for private address-space */
        char *unique;                           /**< unique name of the device */
        /*@} */
 
diff -r 8e00e44b4e7e -r 5661f2d1b931 sys/net/slcompress.h
--- a/sys/net/slcompress.h      Thu Mar 19 19:23:14 2020 +0000
+++ b/sys/net/slcompress.h      Thu Mar 19 19:41:10 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: slcompress.h,v 1.19 2016/12/12 15:58:45 maya Exp $     */
+/*     $NetBSD: slcompress.h,v 1.19.20.1 2020/03/19 19:41:10 martin Exp $      */
 /*     Id: slcompress.h,v 1.4 1994/09/21 06:50:08 paulus Exp   */
 
 /*
@@ -42,6 +42,10 @@
 #ifndef _NET_SLCOMPRESS_H_
 #define _NET_SLCOMPRESS_H_
 
+#ifdef _KERNEL_OPT
+#include "opt_inet.h"
+#endif
+
 #define MAX_STATES 16          /* must be > 2 and < 256 */
 #define MAX_HDR MLEN           /* XXX 4bsd-ism: should really be 128 */
 
diff -r 8e00e44b4e7e -r 5661f2d1b931 sys/net/zlib.h
--- a/sys/net/zlib.h    Thu Mar 19 19:23:14 2020 +0000
+++ b/sys/net/zlib.h    Thu Mar 19 19:41:10 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: zlib.h,v 1.14 2009/03/25 01:26:12 darran Exp $ */
+/* $NetBSD: zlib.h,v 1.14.68.1 2020/03/19 19:41:10 martin Exp $ */
 
 /* zlib.h -- interface of the 'zlib' general purpose compression library
   version 1.1.4, March 11th, 2002
@@ -43,7 +43,7 @@
  * For conditions of distribution and use, see copyright notice in zlib.h
  */
 
-/* @(#) $Id: zlib.h,v 1.14 2009/03/25 01:26:12 darran Exp $ */
+/* @(#) $Id: zlib.h,v 1.14.68.1 2020/03/19 19:41:10 martin Exp $ */
 
 #ifndef ZCONF_H
 #define ZCONF_H
@@ -135,6 +135,7 @@
 #if defined(__MWERKS__) || defined(applec) ||defined(THINK_C) ||defined(__SC__)
 #  define NO_DUMMY_DECL
 #endif
+#define NO_DUMMY_DECL
 
 /* Old Borland C incorrectly complains about missing returns: */
 #if defined(__BORLANDC__) && (__BORLANDC__ < 0x500)



Home | Main Index | Thread Index | Old Index