From patchwork Tue Mar 1 15:45:18 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joey Gouly X-Patchwork-Id: 12764855 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 77ECCC433F5 for ; Tue, 1 Mar 2022 15:47:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:CC :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=q+J3itiNWrXiLi8HNAyJLcRKL5x+TmaS9JdnulfupvM=; b=urXjAEs2eNAoUv 5O2zaCoGi3+WyinL4Xdd6nmW4DkF9Bx3NtJ3yrz2Thywo9z/5f+7ySn6DfpZ+9B6chSL9lGKMsyd6 /ROdFpQFTN1LR7TwjkzicMjhzNRsuHRraCwltUZ8KSFz3jgeHvMVKa8ellWIrQtTnKuLyhH/neI2X e8r5QwgKHVa9n3TpJ+SVNQhakIturGt/YsaZ+dsGossnXLuQ3sAw8y64iA8Kw1/bs+EXowLpbOYHU 7BrWVb/Q/e4E2S6ESkYNmEyvFPbdUK0RpzbrMDVBMTepOLYQyyZ+6weQDNUBaRmiBbOD9EzagCYqA 8jJD8RaTpaeMDlKgTKWQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nP4h4-00HQOE-F8; Tue, 01 Mar 2022 15:45:42 +0000 Received: from mail-db8eur05on20614.outbound.protection.outlook.com ([2a01:111:f400:7e1a::614] helo=EUR05-DB8-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nP4gz-00HQMD-NG for linux-arm-kernel@lists.infradead.org; Tue, 01 Mar 2022 15:45:40 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=emAOH8I/hzRz2yDokC0U/G4zUjwTSG/UyoYdhxj0KBo=; b=Wda5LxR+wxq3HMPRmXSpOKszHdD5deGkv5UE0GZ9SQlA43xcxBW40oz2B2aUdd+VZsMc7J2b/+w12Vd2c8HjGJTBFkcC/UpWQxgI0oBJNJW6/OKNStm0GfAHRu3siSeGkz7FjxG+yFQ3Hm4KNXbDJM24DN+nuHEkMcB5EjF0JUo= Received: from AM6P193CA0093.EURP193.PROD.OUTLOOK.COM (2603:10a6:209:88::34) by VI1PR08MB3023.eurprd08.prod.outlook.com (2603:10a6:803:4e::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5017.26; Tue, 1 Mar 2022 15:45:34 +0000 Received: from VE1EUR03FT038.eop-EUR03.prod.protection.outlook.com (2603:10a6:209:88:cafe::8a) by AM6P193CA0093.outlook.office365.com (2603:10a6:209:88::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5038.13 via Frontend Transport; Tue, 1 Mar 2022 15:45:34 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by VE1EUR03FT038.mail.protection.outlook.com (10.152.19.112) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5017.22 via Frontend Transport; Tue, 1 Mar 2022 15:45:33 +0000 Received: ("Tessian outbound 826a6d8e58c3:v113"); Tue, 01 Mar 2022 15:45:33 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 32b833a4714a1460 X-CR-MTA-TID: 64aa7808 Received: from 09d7c2090645.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 16F79B08-D69F-4E9D-BD73-DC0529AB29CE.1; Tue, 01 Mar 2022 15:45:24 +0000 Received: from EUR04-VI1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 09d7c2090645.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Tue, 01 Mar 2022 15:45:24 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kjgfuT7SiMPDvujmPJgvObsWftkQWy91k4qeTxbK3bofr6WOl2etNM5udTlXY5hsPG/E4JxIxMbS6ufOo6NVySCHO5h9Da5yQffL4LyIDreGQvl/ffcY8y6v01NZjjLGidYi/uLAtQ2vJoJDms7f+a9WL3XDJ7emL4jtZjjRNojG7bTijSYZ60mNP3kLmn8LUr5SfYlNlQ+GV2hgX8xnZSy0nrM00mZnSw8suoszldQOGoXwoP76Q/w0fmthMKGYvkw7NJE+yqfHJN7NSXETORCxyaL7x1oU5e6bx0zb9OsGiq6eFMXg54+Uv3Pg2P/MAcUVPcWvomqMXciDa58wVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=emAOH8I/hzRz2yDokC0U/G4zUjwTSG/UyoYdhxj0KBo=; b=H/ELczfI9WqlAxMFnY/zChVhoeIzPznVKV9Nh5o1akYdWeqXOMSC9eBCgzloHNLrhEbgx+5aOTEqaJdZZBFTpz8d+gAN5e9qppFdo33Wnc/bl5AQ3zP3i5UM+M6yGXa8If19j4mA5Vo+lsfXgJQ9sCe335lIZ2nazm23yE8yo625/zTT/sho7UyKHcuC8dsW8hNtm8I2s4EgAfT6X4apF2JorSDnJpyQTnaHqjx34uDIfpbY3Mce/xj0iK8lr6mhvk/gjE+eJZaW+4r7u9GGM+FrT2JmLyL/h0NHvV6q1i1ROptJ7QV+WUcVT9MiXAjlBJWR67TfbUQ3Wewt8tTrBQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 40.67.248.234) smtp.rcpttodomain=lists.infradead.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=emAOH8I/hzRz2yDokC0U/G4zUjwTSG/UyoYdhxj0KBo=; b=Wda5LxR+wxq3HMPRmXSpOKszHdD5deGkv5UE0GZ9SQlA43xcxBW40oz2B2aUdd+VZsMc7J2b/+w12Vd2c8HjGJTBFkcC/UpWQxgI0oBJNJW6/OKNStm0GfAHRu3siSeGkz7FjxG+yFQ3Hm4KNXbDJM24DN+nuHEkMcB5EjF0JUo= Received: from DBBPR09CA0016.eurprd09.prod.outlook.com (2603:10a6:10:c0::28) by VI1PR0801MB1726.eurprd08.prod.outlook.com (2603:10a6:800:52::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5017.25; Tue, 1 Mar 2022 15:45:21 +0000 Received: from DB5EUR03FT029.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:c0:cafe::9f) by DBBPR09CA0016.outlook.office365.com (2603:10a6:10:c0::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5017.22 via Frontend Transport; Tue, 1 Mar 2022 15:45:21 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 40.67.248.234) smtp.mailfrom=arm.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 40.67.248.234 as permitted sender) receiver=protection.outlook.com; client-ip=40.67.248.234; helo=nebula.arm.com; Received: from nebula.arm.com (40.67.248.234) by DB5EUR03FT029.mail.protection.outlook.com (10.152.20.131) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5017.22 via Frontend Transport; Tue, 1 Mar 2022 15:45:21 +0000 Received: from AZ-NEU-EX01.Emea.Arm.com (10.251.26.4) by AZ-NEU-EX04.Arm.com (10.251.24.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2308.20; Tue, 1 Mar 2022 15:45:25 +0000 Received: from AZ-NEU-EX03.Arm.com (10.251.24.31) by AZ-NEU-EX01.Emea.Arm.com (10.251.26.4) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.20; Tue, 1 Mar 2022 15:45:20 +0000 Received: from e124191.cambridge.arm.com (10.1.197.45) by mail.arm.com (10.251.24.31) with Microsoft SMTP Server id 15.1.2308.20 via Frontend Transport; Tue, 1 Mar 2022 15:45:24 +0000 From: Joey Gouly To: CC: , , , , , Joey Gouly Subject: [PATCH v1 -next] kasan: fix a missing header include of static_keys.h Date: Tue, 1 Mar 2022 15:45:18 +0000 Message-ID: <20220301154518.19456-1-joey.gouly@arm.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-Office365-Filtering-Correlation-Id: 97a73151-5a49-453b-9a0e-08d9fb9a85df X-MS-TrafficTypeDiagnostic: VI1PR0801MB1726:EE_|VE1EUR03FT038:EE_|VI1PR08MB3023:EE_ X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true NoDisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: /KQPXAKmLmDBRjs7rM/qtFd3lcwalSrsDgBI/TUj/qrJ//7VFHJUngHH9ZI7+v0+r1QVHtTH8DAJCj9OXIx4D0Hx/k0R3xl+u96NoTVXkBcQpRxiItjc9QQM8xkXlo4k+iHos8m02JB3T3NzsB4ZBlj3XOKlXEHJCjQZm9U+C5uDqRqY3R4SxzQLTSLG6kR9DPNR4ym++6soxCQIlg8T+su8ryQXIHt7DHY3b+M8EfJiTlhKfYAlvz7yFdrFRuZRiN2oq9ufUL2GuGT1YLrLi0KtAE59ke7f1tmMXZbBzalyjPg4fvw1DvaAiotbmX+Qn3N+uBY7Kif6syWj7et74FgdUb81Mzawu3XWeTt/XMWJUU8degOYBA8pWsjvs+kgTL0pRTsCVMVdxWvUkXvzaYykgPGQ7zR4R7ZU9Iyys2HgKmboDdU/s85GHYb759tGTq+1yO0CYQ/J6OHlosm+K8ivnrS9srqDhuKdZfwJw4cVJcPzlZiwUMw6jlFgA5TTuqvdjblR6/RlhuazSmZlLLnTqRI/Pd3kbx5VMH7XD/Of6KnFKHjaFk3vICdQTB7b8v7VlhNRfZ1nGdj6gzpFeafsUzLkCP8tEP/8JARuI4lF3ulnXRdvqoJulcT0C5pUb1vqrGCV6zTNZmHTsayjeo97TfuV6zIxVWHTFLZ3Buod1nCbovQ7hMSqRFLHl/OHpLo9CZqK2CjMPHMn+PP9/A== X-Forefront-Antispam-Report-Untrusted: CIP:40.67.248.234; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:nebula.arm.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230001)(4636009)(40470700004)(36840700001)(46966006)(81166007)(356005)(6666004)(4326008)(36756003)(36860700001)(40460700003)(47076005)(83380400001)(508600001)(6916009)(54906003)(7696005)(1076003)(426003)(336012)(44832011)(8936002)(86362001)(316002)(2616005)(5660300002)(2906002)(26005)(186003)(70586007)(82310400004)(70206006)(8676002)(36900700001); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0801MB1726 X-MS-Exchange-Transport-CrossTenantHeadersStripped: VE1EUR03FT038.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 1bdf6ded-70fc-449a-10cd-08d9fb9a7e6a X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: AbJ60OzmRJjSmhslTVpjQdZS+Wrx5QUBFYpr6zbMJW6albWPRfvwpjiSiV7bpHWV/c4+dFWbAavPZWi5GEia2OtrZEbs718vnEme5ZJjkM8kiLWBcpVY1+waA7nCcNVFtJbVv8vck7NVGp4IJjygwdLfgBdGm33iJnnyVhQ3Q11irrLyeKAyIDeyOYmeu0ohDsOejlsL5nNn2bL1F5/xdZUn5Hk0DVyAD/qOKeFExsjrTXTLzdwsmsYpR9vnhZkGnYKj56m+kgaiZIG3zZ8EOEaYja/KAWeLJslLTvplgIZKl3x2BhAdAoslZAHawMtwSuoDYmYkZKiSRdFjg+h2nrFEn6wJM7XcljskWyLVbXWMeCOcVTHN5AiV8iv8QSK9ODdrNuZnUSzt7MRNJUFdOzAE3DiD/jySryMVOUmK0cWDuGGg2Jr+gIh6aoJpoBNPYALLwUYC23bn5sUiVso2WDapqCfDI+4Yb9HXGJ21YFjRt4xhIaGl4fT408XHliXF3hM8wbGiYlwYh5cid59j7JLtXIPtLcZ0OB+tLV9W1lZ2Cg9W/f0iRWPbwRrxjtpW/E/ZHHtCKxm5ufrJBqRf26taywaqQ5O5xQpPLc3iGd+MgfMV+wWIrqhPJckUv18tXSmAA3MZNQJKVuEDaIeBvQQJCiTpaFGqCoX1dtaPzahdmxiariRNbaQofQLJNB9T X-Forefront-Antispam-Report: CIP:63.35.35.123; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:64aa7808-outbound-1.mta.getcheckrecipient.com; PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com; CAT:NONE; SFS:(13230001)(4636009)(36840700001)(40470700004)(46966006)(81166007)(8676002)(82310400004)(2906002)(4326008)(70206006)(70586007)(5660300002)(36756003)(508600001)(40460700003)(47076005)(8936002)(86362001)(44832011)(54906003)(83380400001)(1076003)(316002)(2616005)(336012)(26005)(186003)(426003)(6666004)(6916009)(7696005)(36860700001); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Mar 2022 15:45:33.8101 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 97a73151-5a49-453b-9a0e-08d9fb9a85df X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d; Ip=[63.35.35.123]; Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: VE1EUR03FT038.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR08MB3023 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220301_074537_786503_42D974FB X-CRM114-Status: UNSURE ( 8.27 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The kasan-enabled.h header relies on static keys, so make sure to include the header to avoid compilation errors (with JUMP_LABEL=n). It fixes the following: ./include/linux/kasan-enabled.h:9:1: warning: data definition has no type or storage class 9 | DECLARE_STATIC_KEY_FALSE(kasan_flag_enabled); | ^~~~~~~~~~~~~~~~~~~~~~~~ error: type defaults to 'int' in declaration of 'DECLARE_STATIC_KEY_FALSE' [-Werror=implicit-int] Fixes: f9b5e46f4097 ("kasan: split kasan_*enabled() functions into a separate header") Cc: Peter Collingbourne Cc: Mark Rutland Cc: Catalin Marinas Cc: Will Deacon Acked-by: Andrey Konovalov --- include/linux/kasan-enabled.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/kasan-enabled.h b/include/linux/kasan-enabled.h index 4b6615375022..6f612d69ea0c 100644 --- a/include/linux/kasan-enabled.h +++ b/include/linux/kasan-enabled.h @@ -2,6 +2,8 @@ #ifndef _LINUX_KASAN_ENABLED_H #define _LINUX_KASAN_ENABLED_H +#include + #ifdef CONFIG_KASAN_HW_TAGS DECLARE_STATIC_KEY_FALSE(kasan_flag_enabled);