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: 38718 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp4907360wrt; Tue, 3 Jan 2023 17:31:05 -0800 (PST) X-Google-Smtp-Source: AMrXdXvF2Dn9OGP3svT8MQQ+XlKuoBypaOLbEP5VvTXbQS45abJB/moKN2BnCksjre4vbs5mAHI3 X-Received: by 2002:a17:907:a50f:b0:7c0:d609:6f9b with SMTP id vr15-20020a170907a50f00b007c0d6096f9bmr43034612ejc.27.1672795865059; Tue, 03 Jan 2023 17:31:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672795865; cv=none; d=google.com; s=arc-20160816; b=LYy5nqkwHYTb/YrfCRU2g7XAe/j5EddGFRB4rU1LI/eXJLGManPNV71+Op/3EtNBWL wIUmnHquLEpygnEADgYIGtRBy8e9srbUJdCQEkVoCC18Tv5xq7BXsgzVKo17oS1JVzkW yUBQb1LfEJej/dk/HrXPlUMCFU2Aq5ZADP1fUc/8ml/BFfr+qFyEBW9Gr6p3u5JHuzKh YDqpifWeMwuwfTYRARozTTZhoYNJpBqqI+eKluFINgrRu8/CTEZxD5CM+JVDsMU3MZo0 qZNPdE1BUb//eZRFnyf0Cc93ret+2OU0jgQvEuWDBVTymJFJgzfLGe9CVygzH4Z6+Bgz SLTg== 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=PC26Ho/6RwxF3gMRadK0bIZPfa+DG2oG9ZOGTDXD7m0=; b=V0iOrYMFq1hcJ+zeSEp9zacpXhds8aoXYqAsfv1OBuUg3N1CZTSY1TJGnfV25NeFJC wv/Br1COdhBESR0GJH1rVziLgp3z/CrIH/X5HdHKViuTxCz7m4g9ZVh3PKLbMeEkMdHe us4rQx51ylCbXs5uCIE0Yz6AlpzKtzRhpi7nygI+f7naU4Q45sMSSZFl5cudlA1q2+EE J/zSJrGYRu8KuDQz4B2b4adQNQcCCJBQuICc6bGGxOjIooJx8hgfqQ9sTGFaoEoY5zFl jrtcY5QpvbAFjfHiAs4s0ZfhVaeTGWo1WOTadCe9ZbIzGEgjNZrzzzLuDqSRzJLS3Tkk 3GFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=VzH6fyc+; 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=linux.dev Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id wg1-20020a17090705c100b007aa493b067asi29346734ejb.396.2023.01.03.17.30.40; Tue, 03 Jan 2023 17:31:05 -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=@linux.dev header.s=key1 header.b=VzH6fyc+; 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=linux.dev Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233130AbjADBSW (ORCPT + 99 others); Tue, 3 Jan 2023 20:18:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58968 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230352AbjADBSV (ORCPT ); Tue, 3 Jan 2023 20:18:21 -0500 X-Greylist: delayed 518 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Tue, 03 Jan 2023 17:18:19 PST Received: from out-153.mta0.migadu.com (out-153.mta0.migadu.com [IPv6:2001:41d0:1004:224b::99]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 88C16254 for ; Tue, 3 Jan 2023 17:18:19 -0800 (PST) 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-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1754053596623352067?= X-GMAIL-MSGID: =?utf-8?q?1754053596623352067?= 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) {