Message ID | 20221215163046.4079767-1-arnd@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:e747:0:0:0:0:0 with SMTP id c7csp468392wrn; Thu, 15 Dec 2022 08:40:36 -0800 (PST) X-Google-Smtp-Source: AA0mqf66ga3ZXvEta554in+JKq1RY6voWmLs+zM8Jn9yOnCeO9DZLKv1fpePTjxwDIzp7Iu0R4D8 X-Received: by 2002:a17:90a:3808:b0:21c:3f4c:7e6 with SMTP id w8-20020a17090a380800b0021c3f4c07e6mr28456107pjb.14.1671122436122; Thu, 15 Dec 2022 08:40:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671122436; cv=none; d=google.com; s=arc-20160816; b=u3AS04MlbDup8K5kX6FHBiI3fiwRHKU82pxNwwTTbzFWzx53hdIpiBXg6Du4hi/TT0 KBDPZZwK1t9VAtitsZSt3nxiZQrTCFf8c3tQtAo0oyHC2JGnR1e/4a4WRdyhsPO0OSfJ sdBCJi/cn6Ze8LuPU6ni/nG7oF4FIB6q38Zq54/XgX6PzTh0muTy/b/4uILbgj0XNVZr ZvavE+lfxNwJeRmS7616pjNNBybHTQy5TBG6+ICof2cdZz1nLGy3gsbRzlhNZn/5YgjD dlsKX5iSXfgPPaKPW9UPtFWGdZdL1PWin6jr3Sblb61Bc0O2hgVNfv6YAus57GWwMnXR uhwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=5sl1wEUyMqaCF2n4/rV+AWgLprf7UO3N74dC8Bu6j90=; b=QqWVUq9PMbxXzUS7TJ2AwWcEQAuN21kNlOy87qTMJJyDY2eFS0yza7FKKF3nC0w6/5 NMMl+LzjzmVGHbOiI/5vbHSjMi4hNfv90jSWLE6hJU+U8+wZTYG7YFeedvlayLTKrwkY Bj6BnqJy4839OyVOSYS0hK7foR4RI6lTpdZG/+bllfN0gZuem5ODOU5qy0Hi9l7KmZql MIu2hGWUyx3TxXZ7OhZTbT9TDoQBUW05HEKXp8z0i2vBdv91KzgB8u+bnOsVnEE+tWbg ootvXVvYvdW95xS0GjX/URKxByk2uR5ndnBukE1o3Ll0L4xPTlSnJJnMUUe2B9BBVQJg NVjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UKS4eIKs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id om1-20020a17090b3a8100b00218f5df5ce8si5743324pjb.64.2022.12.15.08.40.22; Thu, 15 Dec 2022 08:40:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UKS4eIKs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229636AbiLOQb3 (ORCPT <rfc822;jeantsuru.cumc.mandola@gmail.com> + 99 others); Thu, 15 Dec 2022 11:31:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56968 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229981AbiLOQbE (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 15 Dec 2022 11:31:04 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A9BE0209AC for <linux-kernel@vger.kernel.org>; Thu, 15 Dec 2022 08:30:54 -0800 (PST) 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 ams.source.kernel.org (Postfix) with ESMTPS id 4D825B81AAC for <linux-kernel@vger.kernel.org>; Thu, 15 Dec 2022 16:30:53 +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 <arnd@kernel.org> To: Alexander Potapenko <glider@google.com>, Andrew Morton <akpm@linux-foundation.org> Cc: Arnd Bergmann <arnd@arndb.de>, Marco Elver <elver@google.com>, Dmitry Vyukov <dvyukov@google.com>, 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 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1752298879839055238?= X-GMAIL-MSGID: =?utf-8?q?1752298879839055238?= |
Series |
kmsan: include linux/vmalloc.h
|
|
Commit Message
Arnd Bergmann
Dec. 15, 2022, 4:30 p.m. UTC
From: Arnd Bergmann <arnd@arndb.de> 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 <arnd@arndb.de> --- mm/kmsan/kmsan_test.c | 1 + 1 file changed, 1 insertion(+)
Comments
On Thu, Dec 15, 2022 at 5:30 PM Arnd Bergmann <arnd@kernel.org> wrote: > > From: Arnd Bergmann <arnd@arndb.de> > > 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 <arnd@arndb.de> Reviewed-by: Alexander Potapenko <glider@google.com> > --- > 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 <linux/spinlock.h> > #include <linux/string.h> > #include <linux/tracepoint.h> > +#include <linux/vmalloc.h> > #include <trace/events/printk.h> > > static DEFINE_PER_CPU(int, per_cpu_var); > -- > 2.35.1 >
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 <linux/spinlock.h> #include <linux/string.h> #include <linux/tracepoint.h> +#include <linux/vmalloc.h> #include <trace/events/printk.h> static DEFINE_PER_CPU(int, per_cpu_var);