From patchwork Mon Sep 23 14:19:38 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vincenzo Frascino X-Patchwork-Id: 13809665 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id D93EECF9C70 for ; Mon, 23 Sep 2024 14:20:01 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 488E96B0088; Mon, 23 Sep 2024 10:20:01 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 3C1296B0089; Mon, 23 Sep 2024 10:20:01 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 1786A6B008A; Mon, 23 Sep 2024 10:20:00 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id DCD786B0088 for ; Mon, 23 Sep 2024 10:20:00 -0400 (EDT) Received: from smtpin17.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 8743C1C6A43 for ; Mon, 23 Sep 2024 14:20:00 +0000 (UTC) X-FDA: 82596212160.17.45A0745 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by imf19.hostedemail.com (Postfix) with ESMTP id E0CD61A0007 for ; Mon, 23 Sep 2024 14:19:58 +0000 (UTC) Authentication-Results: imf19.hostedemail.com; dkim=none; spf=pass (imf19.hostedemail.com: domain of vincenzo.frascino@arm.com designates 217.140.110.172 as permitted sender) smtp.mailfrom=vincenzo.frascino@arm.com; dmarc=pass (policy=none) header.from=arm.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1727101164; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=dyrFQn1IHO6P3qtvTV+7BOKE3DwB1hqbcpjwjJ/hKVc=; b=a5lkoXeOYFMAccksRC/49uZ1x4LYns7U4qxeSLrh1SXb8hvh+cs+lLDuqqUYYfsrGOXO4M 4/b+24+lRYiLpW60TwtM6sPf9K1VASrYb8gLee55vKrz/QZZOIfQe7T6tjoOqcQ4HSzogV T7LkatD5azFSELqmlz3FcKMcdWAw9wA= ARC-Authentication-Results: i=1; imf19.hostedemail.com; dkim=none; spf=pass (imf19.hostedemail.com: domain of vincenzo.frascino@arm.com designates 217.140.110.172 as permitted sender) smtp.mailfrom=vincenzo.frascino@arm.com; dmarc=pass (policy=none) header.from=arm.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1727101164; a=rsa-sha256; cv=none; b=wgDRK+ukoFRgiUZyx67BkwL15IHg5ylIhyobwiwQlKpVI6aoc09oCBwjMhagK81GaJv2xc 0UHkc3RYxS9g2NBnsmdooqAqJ7Pfz8yWG5aR+ToRNDp6d6+Krk3a2rlUDG+miHUiFELfX3 WIU/Tjwy+Bel7IbzInV5MOCrZUpjo88= Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 897AC12FC; Mon, 23 Sep 2024 07:20:27 -0700 (PDT) Received: from e119884-lin.cambridge.arm.com (e119884-lin.cambridge.arm.com [10.1.196.72]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id A024D3F64C; Mon, 23 Sep 2024 07:19:55 -0700 (PDT) From: Vincenzo Frascino To: linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, linux-mm@kvack.org Cc: Vincenzo Frascino , Andy Lutomirski , Thomas Gleixner , "Jason A . Donenfeld" , Christophe Leroy , Michael Ellerman , Nicholas Piggin , Naveen N Rao , Ingo Molnar , Borislav Petkov , Dave Hansen , "H . Peter Anvin" , Theodore Ts'o , Arnd Bergmann , Andrew Morton , Steven Rostedt , Masami Hiramatsu , Mathieu Desnoyers Subject: [PATCH v2 3/8] vdso: Introduce vdso/mman.h Date: Mon, 23 Sep 2024 15:19:38 +0100 Message-Id: <20240923141943.133551-4-vincenzo.frascino@arm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240923141943.133551-1-vincenzo.frascino@arm.com> References: <20240923141943.133551-1-vincenzo.frascino@arm.com> MIME-Version: 1.0 X-Rspam-User: X-Stat-Signature: rrd7fp9qsyiexq88xbhfrwfxd1forr5e X-Rspamd-Queue-Id: E0CD61A0007 X-Rspamd-Server: rspam11 X-HE-Tag: 1727101198-26024 X-HE-Meta: U2FsdGVkX1+4ghI3HPWtmtOMAQQbIH2/19ssu1Dwrtjnseo6B9jkCfvaDw2UL+GPw4paV86Agh8ju8Frb4gK8tkymZBDQX5/EyHn2eETm35LtMTSSW6FfxbfEmNq7QxxSZ2QMc43tS6bIQNn54IgWc2KZe5lXOBVv0sUOeXw/Iow6rBXxca6cZomif1quUhp1RN4Msg19UxqAqQfp2tbDlfcv7SL3t8f/+w4F0tNOTAhuyY8gRFvfAN8z3V6qXIAJY2Wh8qp5H+An4zvdX02y6h6ZpRr3LzBgYirNRGXZDcJlHVYJzrDcJcrpg8UOZdQsPqSloswWiqdzTTWlN4CH6gWvFPUu2PWR9BsAaPOI8+kCSj228gEdAt9QncsD0HgX4Zz9vxfwkHZpp1W+o0QlcQdXgbIwAEAA7fm9bu1bPVnf8vT3BS0ZEDifYLRCPebNnSlBAdXQu5mUqXDubA62YYmSfhL9YeFzUuJblThcha5lO6biVA75cdYZ0svyl1tjywK+47u25E07NeuL+KlzxQvuABBpiXtrez1W2YpMt4TSBziOA7rKVVG/+m0apA87OLSu6t9AR0VPd4e7buui81suIj4NoujJ/acBoS2nAeqbhFJKMkoCbc9e0lRa7CgAV7Vt3pGyNidLTaHea2bKn+nppM9mOonJMPKLHWDmEFTzYaUQ+GHbkqimeCGheLL4uSX9oeyhfbCFoW24wcdnGoevwXasgjqPBf1nA/X2nCESeDdq/JsO23cQddN/lSOhLWhz9T60qwfiKryVdEieGbhsYZxDhg51LqKqIy+DhmksaTiMu5ymyh7nAmMHGMrQaoQrSUdutmYDI2qbBMCSdGaIpLJ+jG1bAVuVc94141nQKh1O27Zj5bDiL7OiWMEQjR87nB8HTmf7pSM9EPlzrE3Dkn4fOr4ij689WLVhlMuMnWZF+8Lo8FoOp+pEAx7vRuSeya3T/hyJ5fmXYf P/ph4sV9 P8EfkL6s0IvohhwSAD0gEO98WrqTwX+pY821A7IY6EAu3aRMV5uKYAMV4Y2sQ4Pt/4VnFC5+yBJ4kQ5Oa15gSj6bnbHChUtbyFhP1MZnaXG5KIVD0apZNRwtq9Ju82MHaj1hJbx9KE5aJ5jcevTg1PyfGos1PGiJYOEPTEgCICj+vAmJygwtvFgZ9T/Ntzv2BSmnKuGVt9b9qdtyXIzYsnFsg/7ThuI0WAaAWXH4xdoP5NhrV6+wflfRhvu1nXk9A3lzpwsh+hNJoc2c= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: The VDSO implementation includes headers from outside of the vdso/ namespace. Introduce vdso/mman.h to make sure that the generic library uses only the allowed namespace. Cc: Andy Lutomirski Cc: Thomas Gleixner Cc: Jason A. Donenfeld Signed-off-by: Vincenzo Frascino --- include/vdso/mman.h | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 include/vdso/mman.h diff --git a/include/vdso/mman.h b/include/vdso/mman.h new file mode 100644 index 000000000000..95e3da714c64 --- /dev/null +++ b/include/vdso/mman.h @@ -0,0 +1,7 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +#ifndef __VDSO_MMAN_H +#define __VDSO_MMAN_H + +#include + +#endif /* __VDSO_MMAN_H */