From nobody Sun Dec 24 08:23:01 2023 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4SyYv94mPJz54H0J; Sun, 24 Dec 2023 08:23:01 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4SyYv91pv4z4XlW; Sun, 24 Dec 2023 08:23:01 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1703406181; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=sDU5HJhCwMoZgXrMHYMEGUM+eXgIGULmZGAk6uMwsYw=; b=ktQu54q0Y66DZvS5g30CKQMtZNjlx70MuriiyNxps1ZnaNbKC0hcoTc0mqXQNbtyToG1VH 9DvUreLbCPBFzrK36FCIMHGfvAJbQEFw9ODbAkUUVZPI22b0pGjvMUZzjjpgGyVnxXK+ii Hz4TF/xAerEi8Hi2qUgefCdWCuR67x1a6aZdKNdwaB/i+fGYAl1vUEJMNhBImHL46CV5jz qILQPcw1nFV0b3L/bfjOYcuhJ+hQuOAK3Ia0NBmxpJPhQ9WHQc4OZTuM9veqv2iWugDCuQ 4f5ZKTDQeHShxj1xwQdecxn/6Er+eZejhcqjIoNFMqkQR83XjCHO1Zm6+Ht73Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1703406181; a=rsa-sha256; cv=none; b=STydIZdfQTaE8ayB042QSPs784sOeYIh+iat27fLnbfPgCNAlQkWegaE5DzIK2rDi2T0fw qk+doEVmLgIliZUD9Ft652WOZd2JUICADzUruhDN1XDnbuDlQWs6XPLpt6/fSdZxuiskcj TNUQ7e6cXi8CtH7W9VoePzkgkY/ER/YdNBbOMhIthXDDTd4w9BYJO4973j3vZmm3iVNT74 iK6h5DpoOpxaVLStBrwOQBkzVsOmetQpf0m6hO9HWbwQp+ue0pPwerHwwaLXl5EYmvkx5d AJhoGUpkncZnNk1vP23KQQYQFTdiR+6hylu8iTeb/i2fqkAw9NzJ+GY+v7yYWQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1703406181; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=sDU5HJhCwMoZgXrMHYMEGUM+eXgIGULmZGAk6uMwsYw=; b=PQlvacfDcMKH7Pzk7R1Vfi8tvhidqPWLqPfnMNPjMJ5zGihK6KZxGPy0SqUkWT3WDUsrdK v1JsDs4ZhNB9hXnW+Qz8q9qu8UrphMQRxF5PsfOFqpxIemWTr7U1RuAfJMZRFHc5xqXsvh BCg0W/HbX2KDmQpHeA8heb89o4rHDkSEids1OzJQ8xy4mcHCGtCFgYrJMKnfmuC6qi/8JW 6fIRk3ZsSkHhkZYBFRWlT7ouqYaLk+ioGu0CJwTU+FdClNrwZXTWTCAeuM9FD8HiNw1OO6 uHTKo249lJhJTeE1G0yyl54lbQQQV80Tc90WwLqN3leGO6Um/LRXSxKJPILH4w== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4SyYv90r1Mz5tJ; Sun, 24 Dec 2023 08:23:01 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 3BO8N1wH086751; Sun, 24 Dec 2023 08:23:01 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3BO8N1YE086747; Sun, 24 Dec 2023 08:23:01 GMT (envelope-from git) Date: Sun, 24 Dec 2023 08:23:01 GMT Message-Id: <202312240823.3BO8N1YE086747@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Vladimir Kondratyev Subject: git: 1bce29bcf121 - main - LinuxKPI: Add some header pollution and dummy headers List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: wulf X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 1bce29bcf121c1e16205fabb100f798d88f757c1 Auto-Submitted: auto-generated The branch main has been updated by wulf: URL: https://cgit.FreeBSD.org/src/commit/?id=1bce29bcf121c1e16205fabb100f798d88f757c1 commit 1bce29bcf121c1e16205fabb100f798d88f757c1 Author: Vladimir Kondratyev AuthorDate: 2023-12-24 08:19:58 +0000 Commit: Vladimir Kondratyev CommitDate: 2023-12-24 08:19:58 +0000 LinuxKPI: Add some header pollution and dummy headers required by recent drm-kmod to be succesfully compiled. Sponsored by: Serenity Cyber Security, LLC Reviewed by: manu, bz Obtained from: OpenBSD (partially) MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D42798 --- .../linuxkpi/common/include/linux/irqdomain.h | 10 +++++++ sys/compat/linuxkpi/common/include/linux/kobject.h | 2 ++ sys/compat/linuxkpi/common/include/linux/of.h | 33 ++++++++++++++++++++++ .../linuxkpi/common/include/linux/shmem_fs.h | 3 ++ .../include/{linux/irqdomain.h => asm/neon.h} | 0 .../linuxkpi/dummy/include/linux/dev_printk.h | 0 .../linuxkpi/dummy/include/linux/device/bus.h | 0 sys/compat/linuxkpi/dummy/include/linux/mei_aux.h | 0 sys/compat/linuxkpi/dummy/include/linux/prandom.h | 0 sys/compat/linuxkpi/dummy/include/linux/sysfb.h | 0 .../linuxkpi/dummy/include/video/nomodeset.h | 0 11 files changed, 48 insertions(+) diff --git a/sys/compat/linuxkpi/common/include/linux/irqdomain.h b/sys/compat/linuxkpi/common/include/linux/irqdomain.h new file mode 100644 index 000000000000..c7788e51cc89 --- /dev/null +++ b/sys/compat/linuxkpi/common/include/linux/irqdomain.h @@ -0,0 +1,10 @@ +/* Public domain. */ + +#ifndef _LINUXKPI_LINUX_IRQDOMAIN_H +#define _LINUXKPI_LINUX_IRQDOMAIN_H + +#include +#include +#include + +#endif diff --git a/sys/compat/linuxkpi/common/include/linux/kobject.h b/sys/compat/linuxkpi/common/include/linux/kobject.h index dadf3b3b0849..512f47f9e4b4 100644 --- a/sys/compat/linuxkpi/common/include/linux/kobject.h +++ b/sys/compat/linuxkpi/common/include/linux/kobject.h @@ -36,6 +36,8 @@ #include #include #include +#include +#include struct kobject; struct kset; diff --git a/sys/compat/linuxkpi/common/include/linux/of.h b/sys/compat/linuxkpi/common/include/linux/of.h new file mode 100644 index 000000000000..fb4554a8ddbc --- /dev/null +++ b/sys/compat/linuxkpi/common/include/linux/of.h @@ -0,0 +1,33 @@ +/*- + * SPDX-License-Identifier: BSD-2-Clause + * + * Copyright (c) 2023 Serenity Cyber Security, LLC. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + */ + +#ifndef _LINUXKPI_LINUX_OF_H +#define _LINUXKPI_LINUX_OF_H + +#include + +#endif diff --git a/sys/compat/linuxkpi/common/include/linux/shmem_fs.h b/sys/compat/linuxkpi/common/include/linux/shmem_fs.h index d373cfa1d611..efa2c855fe7d 100644 --- a/sys/compat/linuxkpi/common/include/linux/shmem_fs.h +++ b/sys/compat/linuxkpi/common/include/linux/shmem_fs.h @@ -29,7 +29,10 @@ #ifndef _LINUXKPI_LINUX_SHMEM_FS_H_ #define _LINUXKPI_LINUX_SHMEM_FS_H_ +#include +#include #include +#include /* Shared memory support */ struct page *linux_shmem_read_mapping_page_gfp(vm_object_t obj, int pindex, diff --git a/sys/compat/linuxkpi/dummy/include/linux/irqdomain.h b/sys/compat/linuxkpi/dummy/include/asm/neon.h similarity index 100% rename from sys/compat/linuxkpi/dummy/include/linux/irqdomain.h rename to sys/compat/linuxkpi/dummy/include/asm/neon.h diff --git a/sys/compat/linuxkpi/dummy/include/linux/dev_printk.h b/sys/compat/linuxkpi/dummy/include/linux/dev_printk.h new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/sys/compat/linuxkpi/dummy/include/linux/device/bus.h b/sys/compat/linuxkpi/dummy/include/linux/device/bus.h new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/sys/compat/linuxkpi/dummy/include/linux/mei_aux.h b/sys/compat/linuxkpi/dummy/include/linux/mei_aux.h new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/sys/compat/linuxkpi/dummy/include/linux/prandom.h b/sys/compat/linuxkpi/dummy/include/linux/prandom.h new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/sys/compat/linuxkpi/dummy/include/linux/sysfb.h b/sys/compat/linuxkpi/dummy/include/linux/sysfb.h new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/sys/compat/linuxkpi/dummy/include/video/nomodeset.h b/sys/compat/linuxkpi/dummy/include/video/nomodeset.h new file mode 100644 index 000000000000..e69de29bb2d1