Received: by 2002:ab2:7a55:0:b0:1f4:4a7d:290d with SMTP id u21csp3562lqp; Thu, 4 Apr 2024 05:44:51 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUt7xwHxAZa1ZlSG0CNhl6zSv22B6Akr/CNOC7AaqabUHiq82E4oxAsf44sopBIgKkqDqWdOYvk71AxOiu6uYmF4PSb8g35vwY5blQMLA== X-Google-Smtp-Source: AGHT+IGYI+4CLbcYB/NUk3D6trirlHLqghWTnDVLViOeqWJ8fmVuF31+K2xDwq+KnBiq5KTuPDXc X-Received: by 2002:a17:907:608d:b0:a47:3555:6b73 with SMTP id ht13-20020a170907608d00b00a4735556b73mr1747529ejc.39.1712234691100; Thu, 04 Apr 2024 05:44:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712234691; cv=pass; d=google.com; s=arc-20160816; b=J5kX89tBCTwElRWLGQwmhVqWi4yXfuf1zwQncqZnLTjv8CQU3HDFIBnQeYRdQB0lr4 39zI4BogffVimOIdcgOn/6+9BXaRh/GnTeKhSsVAFcEaLWB4aWiaZQPNAN5PuAIQQgRK kojpmDiSQDHphFvei0zz1CKNHcPPz00uVnUf7AdDw0DJwx5dZksiQ7yKbhJcBh6SqFSF YubJRktm5ywsUeOdBEYa2PPvuS1XxDnWDCoCoQm3l7U46sv/cDJd30IpHan+kGUpeV2I 3Hx1HHQ+evgwEh8JwoUcYcQF0YGHfgwpjATHJLhHwz1QqpajQlJMJVZDlh7Ki1yursWF v6kQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=06QqaCBJF0Jc/qXKHLuR5jaL/IXhGPXW7F0jaiCDW0M=; fh=69h9oclji40l3unNYFJNR5oTvTbhJaQz4t5l7NVAZ24=; b=MguTR84iLHSIUQgKfm/pWcQYLITeo/RdeS8lFWzZ2mfHbSj9lBBbHRawSvYwCTSRdx 4t80qplU5amgiiC+zBqSUlPFaT7Ob9gdrPbS1GlUUP36zbQUkxrOUkPDqhCgPPMJo9vz dwXFRXQqI/IdGLKyXW3vhTCOT2/4ZgB3AAnGWVgzZmtO/cH+WRX4Jgi9K0CgNVFYW9e8 7oZ8THpXRxv0JvyTNXsA6W42479ZP66rtttVtBjZv8v2y4f8wu+lrTlrRkHNBMtlOU2m wvEy2kQZ0fITKvepuVQbIBgTDDJ80PupUJiyX1jM8OjSjHxbHQO4AgeUfy5tCO56tbEe 4R/g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JtcneFIy; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-131456-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-131456-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id b10-20020a170906194a00b00a4df61cc2b9si7646197eje.1051.2024.04.04.05.44.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Apr 2024 05:44:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-131456-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JtcneFIy; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-131456-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-131456-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 625BD1F21ABA for ; Thu, 4 Apr 2024 12:44:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2783A82869; Thu, 4 Apr 2024 12:44:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="JtcneFIy" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 553A86BB44 for ; Thu, 4 Apr 2024 12:44:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712234681; cv=none; b=MLRm9UPWSRpm5BZOUgso0V7arsO7LJCYaXZci3hHxLDJjFPIubdIIHZF+XSHFcpxS1XY0xn9OGOAocLFj3IkH+6aQvvdMh86rkYMxSgGAImP+5QzGeqJsHPUbu3RKqOZfOZq8ua+orZ5qWH/M/uaQSV2XDrQHjs67WsYQrGh1nM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712234681; c=relaxed/simple; bh=08CDsJO6NBDKJEPGS7ocACKAxk82FnZ00PtcXTPwoDw=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=G/UcD6F95qwDxAzISunadLgB4e9bTEtwnfZPblLVVQ8jbafPE1azsg+p8MoXnJd96uTzgUGYbqEHbIbo9dCV4A6lUzlTRrgR1RD0ozXlHSpwjF68nXgSQcfdmLyykEW9piO238aULcimGIp1ltLdjng1GdtpI/RMN+OTL14pi3w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=JtcneFIy; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 82830C433F1; Thu, 4 Apr 2024 12:44:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712234680; bh=08CDsJO6NBDKJEPGS7ocACKAxk82FnZ00PtcXTPwoDw=; h=From:To:Cc:Subject:Date:From; b=JtcneFIydec8F9GvoYdd+5vMKKldoWSpS7rCFzEIuw1MC4LLASzQitjbWKHr5whsJ U8G2Z2N8mEzxCyiKOK7h53ZR49hJVCgayV1Tkr0ohh2ojERuMBpJsapSfYSOZJQGLo oF0uTlOSt+Q1MmmNkEGKoD+CZBXF8bJ3eY0U/4hDPPo1vJJPWQ5ZYC1YL4Pc7Gciag +jvle7MJSTgQtkOKDhJLtlHmqmVC+RA8g9dUNSJNT6Xb8e1JdkGf6uTJsuNWgeLhP6 sRsKrfVyKFPdVl6QHpm6hmySRRcanv+CHFYqWasEQoijkAAy/uqYIad3XXxqBdBFyc CJBGeorgcLnBA== From: Arnd Bergmann To: Andrey Ryabinin , Andrew Morton Cc: Arnd Bergmann , Alexander Potapenko , Andrey Konovalov , Dmitry Vyukov , Vincenzo Frascino , Mark Rutland , kasan-dev@googlegroups.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [PATCH] kasan: hw_tags: include linux/vmalloc.h Date: Thu, 4 Apr 2024 14:44:30 +0200 Message-Id: <20240404124435.3121534-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Arnd Bergmann This header is no longer included implicitly and instead needs to be pulled in directly: mm/kasan/hw_tags.c: In function 'unpoison_vmalloc_pages': mm/kasan/hw_tags.c:280:16: error: implicit declaration of function 'find_vm_area'; did you mean 'find_vma_prev'? [-Werror=implicit-function-declaration] 280 | area = find_vm_area((void *)addr); | ^~~~~~~~~~~~ | find_vma_prev mm/kasan/hw_tags.c:280:14: error: assignment to 'struct vm_struct *' from 'int' makes pointer from integer without a cast [-Werror=int-conversion] 280 | area = find_vm_area((void *)addr); | ^ mm/kasan/hw_tags.c:284:29: error: invalid use of undefined type 'struct vm_struct' 284 | for (i = 0; i < area->nr_pages; i++) { | ^~ mm/kasan/hw_tags.c:285:41: error: invalid use of undefined type 'struct vm_struct' 285 | struct page *page = area->pages[i]; | ^~ Signed-off-by: Arnd Bergmann --- mm/kasan/hw_tags.c | 1 + 1 file changed, 1 insertion(+) diff --git a/mm/kasan/hw_tags.c b/mm/kasan/hw_tags.c index 2b994092a2d4..9958ebc15d38 100644 --- a/mm/kasan/hw_tags.c +++ b/mm/kasan/hw_tags.c @@ -16,6 +16,7 @@ #include #include #include +#include #include "kasan.h" -- 2.39.2