From patchwork Tue May 9 06:49:31 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tiezhu Yang X-Patchwork-Id: 91394 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2671339vqo; Mon, 8 May 2023 23:56:19 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5+61ukMc496lGB5nwm7dGsr6IXD8sUlhb30IK8rLWFivIilqCQTantforZsQLCjC8/leB2 X-Received: by 2002:a17:902:e54b:b0:1ac:712d:2032 with SMTP id n11-20020a170902e54b00b001ac712d2032mr8779139plf.50.1683615378723; Mon, 08 May 2023 23:56:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683615378; cv=none; d=google.com; s=arc-20160816; b=fAx4oJAj2Eh9/2LQStibQGxiHGXX5RMTAmdgVwIjjQrL9CI8xIA+0dDjZCtW8oDuHm xlgcrfWd7cniRDFIj8KLMhqFfz8etBom4eDV/177pBTskqxSQ4EF5/RXaNKGR/ctPlua Ybb4ziKFBmuVqB6AEwtAPAuYjNmI9mCpqoPsK1peWE9tseehbXVIBppSLV9TF+wanIYC 20nWllI2MLqLuisoYPLQq9jRlaUdbsEpSOgSzcyv7taWWf5sYKwbl9piayTne1Uhw5M2 iFHq1G11pqADAejFMoYT7e1UCqjS8dyweUHpCICPvNzmTOX+rlMCDFjb+HAwkuFfi0+Q C64Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=tNh34Inbfs9+JxEVHEh2ZN9dcrWa6GJ0yyJB7NB/2sE=; b=Dffw6E35Rnpb6dnY+0pFwdSVqe6QhTlw1jl95nw8hHoz4KmW1Txb+X9vuCQGAvuDQ5 KU1tlV+g6D2kNq2anZYeCK0rm/KxqYCeR5ek68f1n6MfVnVwXtHTBErB3QPV26JyECNW iooIjME/BfH4AHlXHziW8WBkmOmqHzxn4mG2RxGwjC8tzaXUDdCtMFNtHJO7TD/CBUSi cPU/R+u3Xk+LnzSKbpCdaGjBzd/c4UsKE+UDi8UgrwGLz3evkfxey3yj9ZUETLlyeTJK TmTLD508N3/YMZ9vsorYgFX0/lgUKZOAS7PXiHNmzohOy6fpgn6o9edhGJGvHB20dcWe wd4Q== ARC-Authentication-Results: i=1; mx.google.com; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u1-20020a170902e5c100b001a923bc3af0si860158plf.544.2023.05.08.23.56.06; Mon, 08 May 2023 23:56:18 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235044AbjEIGt5 (ORCPT + 99 others); Tue, 9 May 2023 02:49:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52534 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235046AbjEIGtq (ORCPT ); Tue, 9 May 2023 02:49:46 -0400 Received: from loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A910B10EF for ; Mon, 8 May 2023 23:49:39 -0700 (PDT) Received: from loongson.cn (unknown [113.200.148.30]) by gateway (Coremail) with SMTP id _____8DxI_AC7VlkM94GAA--.11373S3; Tue, 09 May 2023 14:49:38 +0800 (CST) Received: from linux.localdomain (unknown [113.200.148.30]) by localhost.localdomain (Coremail) with SMTP id AQAAf8BxHLcB7VlkQzlSAA--.16393S2; Tue, 09 May 2023 14:49:37 +0800 (CST) From: Tiezhu Yang To: Huacai Chen , WANG Xuerui , Catalin Marinas Cc: loongarch@lists.linux.dev, linux-kernel@vger.kernel.org, loongson-kernel@lists.loongnix.cn Subject: [PATCH] LoongArch: Select HAVE_DEBUG_KMEMLEAK to support kmemleak Date: Tue, 9 May 2023 14:49:31 +0800 Message-Id: <1683614971-10744-1-git-send-email-yangtiezhu@loongson.cn> X-Mailer: git-send-email 2.1.0 X-CM-TRANSID: AQAAf8BxHLcB7VlkQzlSAA--.16393S2 X-CM-SenderInfo: p1dqw3xlh2x3gn0dqz5rrqw2lrqou0/ X-Coremail-Antispam: 1Uk129KBjvdXoWrtF4fZFW7Cw4xur4kuryrCrg_yoW3tFX_Ja 9xA3W8GF15GrWj9rnxZ3yFgr1fZayrWFs8ZrW2yr4UWw17Xw13J3y8Ww1rZr42g3yjgFWr ZrWFqr98Cr10yjkaLaAFLSUrUUUUbb8apTn2vfkv8UJUUUU8wcxFpf9Il3svdxBIdaVrn0 xqx4xG64xvF2IEw4CE5I8CrVC2j2Jv73VFW2AGmfu7bjvjm3AaLaJ3UjIYCTnIWjp_UUUY j7kC6x804xWl14x267AKxVWUJVW8JwAFc2x0x2IEx4CE42xK8VAvwI8IcIk0rVWrJVCq3w AFIxvE14AKwVWUGVWUXwA2ocxC64kIII0Yj41l84x0c7CEw4AK67xGY2AK021l84ACjcxK 6xIIjxv20xvE14v26r1I6r4UM28EF7xvwVC0I7IYx2IY6xkF7I0E14v26r1j6r4UM28EF7 xvwVC2z280aVAFwI0_Cr1j6rxdM28EF7xvwVC2z280aVCY1x0267AKxVWxJr0_GcWle2I2 62IYc4CY6c8Ij28IcVAaY2xG8wAqjxCEc2xF0cIa020Ex4CE44I27wAqx4xG64xvF2IEw4 CE5I8CrVC2j2WlYx0E2Ix0cI8IcVAFwI0_Jrv_JF1lYx0Ex4A2jsIE14v26r1j6r4UMcvj eVCFs4IE7xkEbVWUJVW8JwACjcxG0xvY0x0EwIxGrwCF04k20xvY0x0EwIxGrwCFx2IqxV CFs4IE7xkEbVWUJVW8JwC20s026c02F40E14v26r1j6r18MI8I3I0E7480Y4vE14v26r10 6r1rMI8E67AF67kF1VAFwI0_JF0_Jw1lIxkGc2Ij64vIr41lIxAIcVC0I7IYx2IY67AKxV WUJVWUCwCI42IY6xIIjxv20xvEc7CjxVAFwI0_Jr0_Gr1lIxAIcVCF04k26cxKx2IYs7xG 6r1j6r1xMIIF0xvEx4A2jsIE14v26r1j6r4UMIIF0xvEx4A2jsIEc7CjxVAFwI0_Jr0_Gr UvcSsGvfC2KfnxnUUI43ZEXa7IU8r9N3UUUUU== X-Spam-Status: No, score=1.4 required=5.0 tests=BAYES_00,RCVD_IN_SBL_CSS, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: * 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?1765398679585738349?= X-GMAIL-MSGID: =?utf-8?q?1765398679585738349?= We can see that DEBUG_KMEMLEAK depends on HAVE_DEBUG_KMEMLEAK after commit b69ec42b1b19 ("Kconfig: clean up the long arch list for the DEBUG_KMEMLEAK config option"), just select HAVE_DEBUG_KMEMLEAK to support kmemleak on LoongArch. Signed-off-by: Tiezhu Yang --- This is based on 6.4-rc1 arch/loongarch/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/loongarch/Kconfig b/arch/loongarch/Kconfig index d38b066..1e64edd 100644 --- a/arch/loongarch/Kconfig +++ b/arch/loongarch/Kconfig @@ -90,6 +90,7 @@ config LOONGARCH select HAVE_ASM_MODVERSIONS select HAVE_CONTEXT_TRACKING_USER select HAVE_C_RECORDMCOUNT + select HAVE_DEBUG_KMEMLEAK select HAVE_DEBUG_STACKOVERFLOW select HAVE_DMA_CONTIGUOUS select HAVE_DYNAMIC_FTRACE