Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp602991pxf; Thu, 18 Mar 2021 07:53:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyZyAM2P7r8YUon5QQFaC08lpmka0+RRfcPfEm9cgAwDZjShYGayAh2pBAhybVkUmw5O9QK X-Received: by 2002:a05:6402:4241:: with SMTP id g1mr4163947edb.331.1616079193423; Thu, 18 Mar 2021 07:53:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616079193; cv=none; d=google.com; s=arc-20160816; b=D5D8e5Wgzq4uSaF33FrjRVHwJLgoVDtTcgmX88CnkplDyZwPuXK7VCQ+YVzLwQ7sIW Mp8aXVK2k9n8uP+OHE3wtRGnubF+3CdW5k8hyOEAgSVFJb7AB2sAN2zT5wfrw8hpTf3Q J71mccoYS1qisxddYK8bd0BNiQyVnEuuvxPx4rvn3qaa+xbkIJLWDVP8m4HwHhSsLhax YGc5FDZLCW5yrsxwWEETR2c1iiraXO7GJRgIdZ4vbsg4oyyXeIFBryHUiI2+pwTOZL9x sut5vslmn4USAkRzWHGD0ZgGLiQ2tXICvSyMWgNkx/wDtlYt8N2DnWy/A+XfI/dCGE7H Aw8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:references:message-id:date :thread-index:thread-topic:subject:cc:to:from; bh=smWqtZVnsziyZoWJdbKxkTXuuzcTulcHWUWG3klEbNM=; b=bnJBXQ7C/VvUXVhSdVIwE0zrwlaZpi1ab9YHY8vNtYX2IxcfnVpAXpdxC25P1Yzw0H qrmqxIBm6dkoY/8mma526gQ7alMgv3/7GV24TiwVGhFE4OLq3cOdHBNOqp6Tqs0Fu8wz DCSsVBo8WK8izRSDnRYb1h0bm1Ph3fwsZV+Bt/X8YDnBB40sQQse4NueI/Y0ZFeMjYOz dmu3rZY/qTaHwmDeWVm6s/FUalLdaDW5x+KbtIU74zpqzvUWCwWIHps0kRGfn6fpqwmj C6g19uHrNJNLqgX0DYYUZsJJSsNOdqhVz3YB8MaFy9loPiG5nQcLU/8yJcdSYSPvG4WF IzcQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hb4si1758995ejb.642.2021.03.18.07.52.50; Thu, 18 Mar 2021 07:53:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230159AbhCROvg convert rfc822-to-8bit (ORCPT + 99 others); Thu, 18 Mar 2021 10:51:36 -0400 Received: from szxga03-in.huawei.com ([45.249.212.189]:3369 "EHLO szxga03-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231578AbhCROvK (ORCPT ); Thu, 18 Mar 2021 10:51:10 -0400 Received: from DGGEMM406-HUB.china.huawei.com (unknown [172.30.72.55]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4F1VJp4ggpz5Hdt; Thu, 18 Mar 2021 22:48:42 +0800 (CST) Received: from dggpemm500004.china.huawei.com (7.185.36.219) by DGGEMM406-HUB.china.huawei.com (10.3.20.214) with Microsoft SMTP Server (TLS) id 14.3.498.0; Thu, 18 Mar 2021 22:51:06 +0800 Received: from dggpemm500006.china.huawei.com (7.185.36.236) by dggpemm500004.china.huawei.com (7.185.36.219) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2106.2; Thu, 18 Mar 2021 22:51:07 +0800 Received: from dggpemm500006.china.huawei.com ([7.185.36.236]) by dggpemm500006.china.huawei.com ([7.185.36.236]) with mapi id 15.01.2106.013; Thu, 18 Mar 2021 22:51:07 +0800 From: "chenjun (AM)" To: "linux-kernel@vger.kernel.org" CC: "catalin.marinas@arm.com" , "Xiangrui (Euler)" , "weiyongjun (A)" , "Guohanjun (Hanjun Guo)" Subject: [RESEND PATCH] Kconfig: Move CONFIG_DEBUG_KMEMLEAK_TEST to samples/Kconfig Thread-Topic: [RESEND PATCH] Kconfig: Move CONFIG_DEBUG_KMEMLEAK_TEST to samples/Kconfig Thread-Index: AQHXHAYg8d9cii4PGkmLX5bvg0mNFw== Date: Thu, 18 Mar 2021 14:51:07 +0000 Message-ID: References: <20201022021234.6638-1-chenjun102@huawei.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.174.178.53] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Chen Jun commit 1abbef4f51724fb11f09adf0e75275f7cb422a8a ("mm,kmemleak-test.c: move kmemleak-test.c to samples dir") make CONFIG_DEBUG_KMEMLEAK_TEST depend on CONFIG_SAMPLES implicitly. And the dependency cannot be guaranteed by Kconfig. move the definition of CONFIG_DEBUG_KMEMLEAK_TEST from lib/Kconfig.debug to samples/Kconfig. Signed-off-by: Chen Jun Acked-by: Catalin Marinas --- lib/Kconfig.debug | 8 -------- samples/Kconfig | 8 ++++++++ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug index 66d44d3..debacdc 100644 --- a/lib/Kconfig.debug +++ b/lib/Kconfig.debug @@ -678,14 +678,6 @@ config DEBUG_KMEMLEAK_MEM_POOL_SIZE fully initialised, this memory pool acts as an emergency one if slab allocations fail. -config DEBUG_KMEMLEAK_TEST - tristate "Simple test for the kernel memory leak detector" - depends on DEBUG_KMEMLEAK && m - help - This option enables a module that explicitly leaks memory. - - If unsure, say N. - config DEBUG_KMEMLEAK_DEFAULT_OFF bool "Default kmemleak to off" depends on DEBUG_KMEMLEAK diff --git a/samples/Kconfig b/samples/Kconfig index 0ed6e4d..15978dd 100644 --- a/samples/Kconfig +++ b/samples/Kconfig @@ -216,4 +216,12 @@ config SAMPLE_WATCH_QUEUE Build example userspace program to use the new mount_notify(), sb_notify() syscalls and the KEYCTL_WATCH_KEY keyctl() function. +config DEBUG_KMEMLEAK_TEST + tristate "Simple test for the kernel memory leak detector" + depends on DEBUG_KMEMLEAK && m + help + This option enables a module that explicitly leaks memory. + + If unsure, say N. + endif # SAMPLES -- 2.7.4 .