Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1173522pxb; Wed, 10 Feb 2021 01:46:47 -0800 (PST) X-Google-Smtp-Source: ABdhPJwH+RR8ZDhrAJAss6oMq9kDPS9ndS3i4+6ASjT4U9hsiynws59aJsNpLrfwDk8ES9enU7Um X-Received: by 2002:a50:a086:: with SMTP id 6mr2328103edo.70.1612950407543; Wed, 10 Feb 2021 01:46:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612950407; cv=none; d=google.com; s=arc-20160816; b=aJvoae1lnWJxvol9v4+Cxf2J70T4Oj5EecnjNI94fkgGp21q1H38h6vBkK5KbT5dui hEVfek25Tet/PBZ06dccQVu9vVyDHkQdl4dwnXojyx/YLPaLXZadaTbGXOkgVwOkrq/E zxlhE+ZtdhVbv8iptMWiuBPQ3SrnD6QOh+izhBPV8ITBgA8mw/k6hHzM58nBoxOObGDo /PfbSOfyJVkj9lEf2NCZ7hQNc2oOLjH2WGT704t4W8H2Ec1Oo4LRGOsVKLX2CQFPaUew NgwOBryVnUvrQoQwR+iy3eX6AkrNpL0qTYBXxnny4RrBU8T+mn/O40M2C5Po4VXhHcrf QpnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:references:cc:to :subject; bh=5PO8WqdIXE9k2z7ua90aVnLnz1Bswo699rGVuQwJl4E=; b=AzVQjBYWNUxCuASG0NbGxYf/F0ZFQ1D32KZSrza6ly4Rsbq5Fcggq6wJf7NaRZtUym bxp+lyDUJM/uuEXThNCxDI8IGCbxumBxWa9cKQ1pRLxUMD0BugavFRy08jhFHOc62Siw RXXr/c7vpK6c3IwNPMb1T0r4/Ta+PK/OMhD90mhECL12iNOkqffdjSXv45gKblN1k31D VjIctaG8qFq7Oz6r3Df/gwrJV6nz3pnH9HnIMrqQCkYa9k3oy7zpkyHYiGqDNfijqJBi zlOtcbiuBiIi444PKJURiZ8qJuK9PTddFrGi6eBbJOMOvacTukkirlfYAvjyGxBdhepI c+YQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cw10si1020358ejb.36.2021.02.10.01.46.24; Wed, 10 Feb 2021 01:46:47 -0800 (PST) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229892AbhBJJoh (ORCPT + 99 others); Wed, 10 Feb 2021 04:44:37 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:12606 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229864AbhBJJmz (ORCPT ); Wed, 10 Feb 2021 04:42:55 -0500 Received: from DGGEMS405-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4DbFB74MS2z165Dl; Wed, 10 Feb 2021 17:40:47 +0800 (CST) Received: from [127.0.0.1] (10.69.38.196) by DGGEMS405-HUB.china.huawei.com (10.3.19.205) with Microsoft SMTP Server id 14.3.498.0; Wed, 10 Feb 2021 17:42:01 +0800 Subject: Re: [PATCH v2 2/4] hwmon: Use subdir-ccflags-* to inherit debug flag To: Guenter Roeck CC: , , , , , , , , , , , , , , , References: <1612868899-9185-1-git-send-email-yangyicong@hisilicon.com> <1612868899-9185-3-git-send-email-yangyicong@hisilicon.com> <20210209150658.GA31002@roeck-us.net> From: Yicong Yang Message-ID: <128d71da-b07b-237c-d6a5-205513f3b093@hisilicon.com> Date: Wed, 10 Feb 2021 17:42:01 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.5.1 MIME-Version: 1.0 In-Reply-To: <20210209150658.GA31002@roeck-us.net> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.69.38.196] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2021/2/9 23:06, Guenter Roeck wrote: > On Tue, Feb 09, 2021 at 07:08:17PM +0800, Yicong Yang wrote: >> From: Junhao He >> >> We use ccflags-$(CONFIG_HWMON_DEBUG_CHIP) for the debug >> message in drivers/hwmon, but the DEBUG flag will not pass to >> the subdirectory. >> >> Considering CONFIG_HWMON_DEBUG_CHIP intends to have DEBUG >> recursively in driver/hwmon. It will be clearer >> to use subdir-ccflags-* instead of ccflags-* to inherit >> the debug settings from Kconfig when traversing subdirectories, >> and it will avoid omittance of DEBUG define when debug messages >> added in the subdirectories. >> > > The above paragraph doesn't add clarity and may as well be dropped. > On the other side, the commit message still doesn't mention that > pr_debug depends on DEBUG, which I am sure many people don't know > or remember. This is the prime reason why this patch is acceptable, > so it most definitely needs to be mentioned here. sorry, i didn't realize that you mean this. will impove this in the next version after the lunar new year holiday over. Thanks, Yicong > > Guenter > >> Suggested-by: Bjorn Helgaas >> Signed-off-by: Junhao He >> Signed-off-by: Yicong Yang >> --- >> drivers/hwmon/Makefile | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/drivers/hwmon/Makefile b/drivers/hwmon/Makefile >> index 09a86c5..1c0c089 100644 >> --- a/drivers/hwmon/Makefile >> +++ b/drivers/hwmon/Makefile >> @@ -201,5 +201,5 @@ obj-$(CONFIG_SENSORS_XGENE) += xgene-hwmon.o >> obj-$(CONFIG_SENSORS_OCC) += occ/ >> obj-$(CONFIG_PMBUS) += pmbus/ >> >> -ccflags-$(CONFIG_HWMON_DEBUG_CHIP) := -DDEBUG >> +subdir-ccflags-$(CONFIG_HWMON_DEBUG_CHIP) := -DDEBUG >> >> -- >> 2.8.1 >> > > . >