From patchwork Wed Jan 4 01:09:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: andrey.konovalov@linux.dev X-Patchwork-Id: 13088129 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 5F9D0C3DA7D for ; Wed, 4 Jan 2023 01:09:41 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id EA3E08E0002; Tue, 3 Jan 2023 20:09:40 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id E53EE8E0001; Tue, 3 Jan 2023 20:09:40 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D42AD8E0002; Tue, 3 Jan 2023 20:09:40 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id C52398E0001 for ; Tue, 3 Jan 2023 20:09:40 -0500 (EST) Received: from smtpin22.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 9FA3CAADE8 for ; Wed, 4 Jan 2023 01:09:40 +0000 (UTC) X-FDA: 80315334120.22.48DA0BD Received: from out-112.mta0.migadu.com (out-112.mta0.migadu.com [91.218.175.112]) by imf05.hostedemail.com (Postfix) with ESMTP id D8195100008 for ; Wed, 4 Jan 2023 01:09:38 +0000 (UTC) Authentication-Results: imf05.hostedemail.com; dkim=pass header.d=linux.dev header.s=key1 header.b=VzH6fyc+; dmarc=pass (policy=none) header.from=linux.dev; spf=pass (imf05.hostedemail.com: domain of andrey.konovalov@linux.dev designates 91.218.175.112 as permitted sender) smtp.mailfrom=andrey.konovalov@linux.dev ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1672794579; 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=PC26Ho/6RwxF3gMRadK0bIZPfa+DG2oG9ZOGTDXD7m0=; b=FDxGDVew8xBasHEXlRsJQ/Smd7WLkxvNDNBvu3iSfNWt8spdARKbvWG7aMlL+/s1/v3YvG rvUDIOKCJ8UQESXTZEFdnYW2WDWkeQRR4EAeX7kpgJZ+X/6RZAyGvszbbbGpeIIy27IH/g 9tt5DPa70MyQvtS2ilXSS8gIVhzMXtE= ARC-Authentication-Results: i=1; imf05.hostedemail.com; dkim=pass header.d=linux.dev header.s=key1 header.b=VzH6fyc+; dmarc=pass (policy=none) header.from=linux.dev; spf=pass (imf05.hostedemail.com: domain of andrey.konovalov@linux.dev designates 91.218.175.112 as permitted sender) smtp.mailfrom=andrey.konovalov@linux.dev ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1672794579; a=rsa-sha256; cv=none; b=hk6dC4DD1mYFvJXwblpJvth7T0eVYnuMt3wdSqt35uY5sjbEY4IagGr9VMx7d5A/EHbmLW uwqD3soLD6JYT/Qbr02nL8CnFs5YfgP+E190GTc66LFvpHZRMVeXS4AmR0I9hL9Z4WKKZg YhA4NdbpnbxnoKofKDS0rWcjoOYha60= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1672794576; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=PC26Ho/6RwxF3gMRadK0bIZPfa+DG2oG9ZOGTDXD7m0=; b=VzH6fyc+pk4VfuQZwkkdJ+sI5RStaDfWUZC2rMCzUNYZVxTiFQrhsrPYQBb/ApO7PHD0qv XZ4YD6LGpYb1rXn+RXFM58580c3NL5N1ajLXuK8WYHDrDHcktbpujr/KxqmtRxOU2troij TnfHD6DvuzIAkaNui2I0OwAs7l6exl0= From: andrey.konovalov@linux.dev To: Andrew Morton Cc: Andrey Konovalov , Marco Elver , Alexander Potapenko , Dmitry Vyukov , Andrey Ryabinin , kasan-dev@googlegroups.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Andrey Konovalov , kernel test robot Subject: [PATCH] kasan: mark kasan_kunit_executing as static Date: Wed, 4 Jan 2023 02:09:33 +0100 Message-Id: MIME-Version: 1.0 X-Migadu-Flow: FLOW_OUT X-Rspamd-Queue-Id: D8195100008 X-Rspamd-Server: rspam09 X-Rspam-User: X-Stat-Signature: 9y9zq7fr5r11qx7hsffnmeyn1w81woh8 X-HE-Tag: 1672794578-412857 X-HE-Meta: U2FsdGVkX1+RyOJ2AO4UxOYpuQ8caNbqYncUDSqKHzgMssDOKzQodSmNhoKrn1mULLpXpweKe7gov7KydpE+l7HqBLwxXe9ieSk6Tj5If7PImLfajr8AjXa9tG4Q0CfjZTUKtqpuSCvUCJ+Guigu6DrnMfCC1hBHHvH9ELfcC4IJ/No4Zqw3wwh4HEjsSeuy/kI22PHulW8QyGgwoggQJ7oNiLcfP7nRMAPLF871xxduuBY9OxpcNk/j+8HbGmODqJ53tXgqYgT9g1h9Pw/GHF9pIqly1YpGtF8Gc96jcOq8wsBkar2sumpjU7alUq96vsQ6Dlh4KEMOnevfh7U+cqofi5sFi0OR4puncFrcoM4P76jY6Ttn4+LT6YsE4F5W+99Vwa0gFfvnTEzniGjZdhdEGE9ehuAgGYDOm2Hcj2TeJjIXNKk9666NPYSFZHAwzZZZDXN25tp+lK2L+Bbfc9lL1EvDIHzvj5VijAiX3OOOHR+yr94mLBtvlmzZqCGC3n/uz9eFCQo2lVESS6ITQGFk7jF8le8mp3QEjeD+1/heVYxkyMk/Ur6JArXoIgczEkV1bR82MDKbnzucT3JT0ZGjXOGYp7mTJWvA4TFOQTUh3zDuKqCw0vQUgBRzFXLzJlHpFDYjkpiim/zq8mYJXSAdOkeq2HYAxxKkei/5kaSQNhcqJu7dHOHrenMN+AEmgq/hJyXNSkhYVl02bZlv12ZjmLFQRnCclXKQpllW+lYm40qaXCARrNejoOXtZq/240KwyD7mnrE+eGPit5g5Ju2RtQvf6K5NWo0SUYCTmZ3ht5yRjDr0GP7I+nID2bXIq4+M9rTAtl4+uYYfMCuhhe8TKaDdAxoMBl4dV2+3nM5hxRczpmciENIXXRHEqWGwvSFUgnL9OlIKgi2UyLcY4A5tIdkSVFYHYg1x4HO2ZaZREtd0b3gn7Q== 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: Andrey Konovalov Mark kasan_kunit_executing as static, as it is only used within mm/kasan/report.c. Fixes: c8c7016f50c8 ("kasan: fail non-kasan KUnit tests on KASAN reports") Reported-by: kernel test robot Signed-off-by: Andrey Konovalov Reviewed-by: Marco Elver --- mm/kasan/report.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/kasan/report.c b/mm/kasan/report.c index 1d02757e90a3..22598b20c7b7 100644 --- a/mm/kasan/report.c +++ b/mm/kasan/report.c @@ -119,7 +119,7 @@ EXPORT_SYMBOL_GPL(kasan_restore_multi_shot); * Whether the KASAN KUnit test suite is currently being executed. * Updated in kasan_test.c. */ -bool kasan_kunit_executing; +static bool kasan_kunit_executing; void kasan_kunit_test_suite_start(void) {