From patchwork Thu Dec 15 16:30:17 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 13074340 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 EC2E9C4332F for ; Thu, 15 Dec 2022 16:30:56 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 605238E0003; Thu, 15 Dec 2022 11:30:56 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 5B4EC8E0002; Thu, 15 Dec 2022 11:30:56 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 4A4398E0003; Thu, 15 Dec 2022 11:30:56 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id 35A088E0002 for ; Thu, 15 Dec 2022 11:30:56 -0500 (EST) Received: from smtpin05.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id D9B0780FE3 for ; Thu, 15 Dec 2022 16:30:55 +0000 (UTC) X-FDA: 80245079670.05.20DFDCF Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf19.hostedemail.com (Postfix) with ESMTP id BDC1E1A0032 for ; Thu, 15 Dec 2022 16:30:53 +0000 (UTC) Authentication-Results: imf19.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=UKS4eIKs; spf=pass (imf19.hostedemail.com: domain of arnd@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=arnd@kernel.org; dmarc=pass (policy=none) header.from=kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1671121854; 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:references:dkim-signature; bh=5sl1wEUyMqaCF2n4/rV+AWgLprf7UO3N74dC8Bu6j90=; b=pGnP2+Gt1nO1mD1iQbqf1icS0HKfZi/g71Ia6e9vdagZktl2gyPXWoRf63asJNBm7jB/ke J7Kk/seSR+dUnLZtS+P9B75VvF6AyXksoV1FJJKWJHaWlZXhfBLidS0C+Pq+w8tY7LJ6gS 87g23dZWiazSAkCJSZnuQH1Ve8nV9fA= ARC-Authentication-Results: i=1; imf19.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=UKS4eIKs; spf=pass (imf19.hostedemail.com: domain of arnd@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=arnd@kernel.org; dmarc=pass (policy=none) header.from=kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1671121854; a=rsa-sha256; cv=none; b=FtYNUKsKpwEIdTzGZNwqQk1LAaevko0WImNB8wxaF8geMHf7fyIZnxGb1i7RB62JUJnty4 lNuWZ+LJGbr6sDRNqfnoJcHXOgHdlWvSRSAHB3s2l1Dx/+5IR003yJOWlDwMXXBO9lWQGt LiC7LZiDM2rGggVM7iZJCOLUcBF55uA= Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id A3F0361E41; Thu, 15 Dec 2022 16:30:52 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 43A96C433EF; Thu, 15 Dec 2022 16:30:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1671121852; bh=S9OFXb2VSpaXOGQwBCNrv8Y5/1aHgiU6SM/etLBurO0=; h=From:To:Cc:Subject:Date:From; b=UKS4eIKsWWvP2ZL/0WwZU0N4yGiQr0hAkP5vxp8mMd5INh9xJnjB2XiT7c2i+0bTL ZSuHxQLYjta+D2MyYk1Hggvs6DYQ8lLlyZXmFqwQdtjTBji7PdfeQv+ZGhHSXyo+rA 1Y77bzCvtSoE/ZyKCkpRPWtbDrlLsqRYg4NDN9w6KlyYYFJbz4QArk3++QnyPvtKCn h5T6dUIyxn29am8LCkjorcN73sLyqYLUCutSr2L35tyd54clE2npXtDDsyB9D+dyFk G0KAl97/lIRM8rB/VoSBMcKzxkPvNk2YTQ7a87XAoBVgk+NdIE0XsxY2GI8Ngo2I/j P7NUcXaX3zTjw== From: Arnd Bergmann To: Alexander Potapenko , Andrew Morton Cc: Arnd Bergmann , Marco Elver , Dmitry Vyukov , kasan-dev@googlegroups.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [PATCH] kmsan: include linux/vmalloc.h Date: Thu, 15 Dec 2022 17:30:17 +0100 Message-Id: <20221215163046.4079767-1-arnd@kernel.org> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 X-Rspamd-Queue-Id: BDC1E1A0032 X-Stat-Signature: m77jkwj39rj56d5ikzkeegdh16se868c X-Rspam-User: X-Rspamd-Server: rspam08 X-HE-Tag: 1671121853-156047 X-HE-Meta: U2FsdGVkX1+2wMiowuB5cldcooInPvLlNWoUH4fcTgG9gEG6xxxwv/jBb2nCPQgQdnL99sQZIzhJ80RlN57d0aVyaC/RqPd3SV6YV4DrS0g4e6yKNL0LfrlcrNVnKZlKfHRybevGPAoDN3j0V2cPskEmhK5591TaIxhLaW8wSdvDkDDU+HMZaPTCuvmHJZ/RE8ce2QlvYIVe/GKCETE91Tnl+ahcAmeOd5vRxh3uq54m0c2/tyZx1KlOfGnHsh2CcwQq3vFJ8Pu8MiQ46Hw+CGDGeRDeLw+f1g5aDrZuQX+tCZlhkAhYpZougjXvkVAwMWxbybLr6GdaUQgklm81B7RTAtzpgecHGj0uVNUwEeMMFAP+Qr+pXQjtHmMYjsheL6vJM095OSXVNJ/+8EI0mMQA5g8LWevIZBsxVMgv96iCx8V8MlTLhOwwLiaTLUx6L+XvZ0ChzcU3nUa6HjenvRMbuSWLgAauC065RFCUu+TqIoaMRsVtjhfNa2qVIOjFSSYtD0LTc6qPh5hwueqzwP4ZFIhSfvbJaIR5Jxi0gHERpwIgxpbkkGfNqChFT1cbM1+DtwhNtW0B9HEri8okre5MiBDM3fAbXK8G3LKOSFnC2ZKn3FvXjd7KqC+gDhPi3inwrQMxoLDv64fvoePsyeCTM+VUBPFuJjn5QJ0S57cCTnun9TzR1BSNBtrGrs9Mn6jNsHpTnG/jm7UnDAiyggfQOuQ0W6rAPSdaCr/WJIMrSIL6lVnKAMPvWJAW+GYidsPuxaOuLiPYeyRIWG6nbU4YsphNLDlYiBKLtaDRSuTZstSJih7r7RglUIOFhFTSBBYhi7M7oSNMDFr79GtW55kSCW+Ea/E6x8Gi6JzoNujueCO7O2+hlYpdYAddPWUGPmV5HZHhuSAAWMiPGTTsNwUpTqVNqMrpJhgWYxhUBAMz383twKG8EMGvJa8Xap0Wnb81xLha65drNwwzspa Pys4tq/M gkB+lcsp9z5Me9cDEjQbdIIpfyFmL/tKWLbgoruvlb+esQWWb7yeed2iFRHVcv1OkTjXf 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: From: Arnd Bergmann This is needed for the vmap/vunmap declarations: mm/kmsan/kmsan_test.c:316:9: error: implicit declaration of function 'vmap' is invalid in C99 [-Werror,-Wimplicit-function-declaration] vbuf = vmap(pages, npages, VM_MAP, PAGE_KERNEL); ^ mm/kmsan/kmsan_test.c:316:29: error: use of undeclared identifier 'VM_MAP' vbuf = vmap(pages, npages, VM_MAP, PAGE_KERNEL); ^ mm/kmsan/kmsan_test.c:322:3: error: implicit declaration of function 'vunmap' is invalid in C99 [-Werror,-Wimplicit-function-declaration] vunmap(vbuf); ^ Fixes: 8ed691b02ade ("kmsan: add tests for KMSAN") Signed-off-by: Arnd Bergmann Reviewed-by: Alexander Potapenko --- mm/kmsan/kmsan_test.c | 1 + 1 file changed, 1 insertion(+) diff --git a/mm/kmsan/kmsan_test.c b/mm/kmsan/kmsan_test.c index eb44ef3c5f29..088e21a48dc4 100644 --- a/mm/kmsan/kmsan_test.c +++ b/mm/kmsan/kmsan_test.c @@ -22,6 +22,7 @@ #include #include #include +#include #include static DEFINE_PER_CPU(int, per_cpu_var);