From patchwork Thu Apr 4 12:44:30 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 13617806 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 1E445CD1284 for ; Thu, 4 Apr 2024 12:44:48 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id ADDC86B009C; Thu, 4 Apr 2024 08:44:47 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id A8E3E6B009D; Thu, 4 Apr 2024 08:44:47 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 97D0F6B009E; Thu, 4 Apr 2024 08:44:47 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 718F86B009C for ; Thu, 4 Apr 2024 08:44:47 -0400 (EDT) Received: from smtpin19.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 2E14980E1F for ; Thu, 4 Apr 2024 12:44:47 +0000 (UTC) X-FDA: 81971818614.19.8987D7A Received: from sin.source.kernel.org (sin.source.kernel.org [145.40.73.55]) by imf28.hostedemail.com (Postfix) with ESMTP id 31CF7C0017 for ; Thu, 4 Apr 2024 12:44:44 +0000 (UTC) Authentication-Results: imf28.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=JtcneFIy; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf28.hostedemail.com: domain of arnd@kernel.org designates 145.40.73.55 as permitted sender) smtp.mailfrom=arnd@kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1712234685; 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=06QqaCBJF0Jc/qXKHLuR5jaL/IXhGPXW7F0jaiCDW0M=; b=TCHXNaNrdouyxtB2hj/KypJUSzf+MOkV0a8UmpSQTfeem9Bp183vc6d6A6F9xkwP+4ZaUX NPRkg05YM9TVzMLVwHNc6APYi0W0n6JRpigbwVh7RBKrcqgFEI/4AhU25y0Zw/AEny2C2b dYer14H83rybRPbJaYXDbrFytyZg1HA= ARC-Authentication-Results: i=1; imf28.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=JtcneFIy; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf28.hostedemail.com: domain of arnd@kernel.org designates 145.40.73.55 as permitted sender) smtp.mailfrom=arnd@kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1712234685; a=rsa-sha256; cv=none; b=ijbxFFzmpcyuAUVyJ5q+cmlz2kGNj3cDCC/4QVdSSsYfAO/Lft6WrM9hZKODNvGvDkYFAH Jz1tZTeA5is6cD/yiQ1Jymo0crM2+kfv38v8g2+PjfIQ6g936TBoFk2wUgvbMyZxjAC+y8 J4fUI2/uSgLrJP3ApJS5U/CQI9/i/OI= Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id A269DCE2DFB; Thu, 4 Apr 2024 12:44:41 +0000 (UTC) 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 MIME-Version: 1.0 X-Rspamd-Server: rspam09 X-Rspamd-Queue-Id: 31CF7C0017 X-Stat-Signature: tdw71y71pt9u6mbdc14a4o5fe7wbd9rk X-Rspam-User: X-HE-Tag: 1712234684-57114 X-HE-Meta: U2FsdGVkX19MnE04DSJ8ettdwrlCG/VpGG2COblB+rVfCQPpNhVJHQ6z85T8VOUl6H96CLOVQ052uYj8A41RDuP25pPyl5lYEDDIoqucM9L6/DZAgIaWhOF3vO0X373N3MbZAmLMGfqXt1HhkJp03EklOeSH+i++PmUKGObBlow7916OMfCD5cb2pZ/5pcEYBY2gylWrKucscu6hOzDNvjnFFT8lcOINMEY1YcWWLImWdJ6xOtfQM3H9HTuK4IkBrxNb8/6JexqzvcCKmXEY/Q/ShZFcKoupUjNIsTo9AsFxcjqXuiiWDtT2K4iDVDzpYwgvrr7vPGrbISYXDmZMzd5hvC1aBxn+vb4BtBNTPRdkWZea148KzOo0z0/L88+XQWYp8tkuk5P1ALDHiNmEHJuknH/GFLaBxgnrbTd0NQ00a3M/pGHpfaySZBpMXLD27gde1VQrwjyFuOIPS4w/tqRG6vjMkC8Bbj2jMEzxqJ4vM/Jb2nmE1wDKd4mWXhA7auX/T76w5P9t6zUf74aocyvDsyf7JLct3Oy0w+9/n6m6maPdUb7JFLX3M3oDCWXgwfobu/n3gvyoUn0rGPwLjqn2y+xHVzxJG2u3efefdE3XWrDYzHuqCWpBlPQd3D6FvuKgSEcE/mOK9IkLRKohPpnJyPg+P3Mu2Q1F5ZCtZWmleDH/4SzxAcW59BL0aAWmCW1pMrDtk78glzELI1Tmz9LaryLwPSqApxiQpo10MyEA9cNmPIcqynXmXcWts6N7g0Ffbfsd7f16e32zt50NcuDZIQ7BNsslVw9WrMlIKLPf/icq5YkJMbrY1TJtXLfXTNTLtk9Aam6ia9CXyi0sxRjEPyFkFV5Lm1P5Qg+K5nlKbDBw+Wl4Cdyf+V4UmJSFxesmnV9c3+9Ha8Y83vYaT11Z6CGrUycee7kxrmcDh2lZUYN5zCbDzXWcMdIs6HoCtg1B4r558CWxd8tHBEa aQsW0bR6 /307lroDJrySoJflApm1CMJBUAL36mTCOchwV5/uNicpb+oOyCutvN4PPmREqvqX9wccuD9QSpkSfEJLxVIe+LmEZhiqfNpGpN3NzQa+P7HxuX3g9O1pcDjYhRQQtMYw3u8qJuo14hnEmjO1hLQ5nxIf1ErVDXiGAh6O245StIlCuxRO0mzXC+c753qMf+lt+5EFcQZmbm65jWOUAMmanhMGGkfQduEvdx5+3456lAMHG3ug/iWQrBe9HX7gLZbV6+VKIekEv/3RswIBRioXlaJheYM0qQPql4jjkd15IUO/OZGg= 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: 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"