Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1810225pxb; Fri, 5 Feb 2021 01:52:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJxxhYt3M5Z8w0crToGrnSVLtYfyd/8qoIropnQrTtOAe0T0ODuxPHKDoPVpMFCRBq8wbJHD X-Received: by 2002:a17:906:fb9a:: with SMTP id lr26mr3427737ejb.474.1612518733364; Fri, 05 Feb 2021 01:52:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612518733; cv=none; d=google.com; s=arc-20160816; b=sDbXgFnSdNE9rhQT7dxD8qlYagNxsEzRNGskXCwQkjunJ/O8qgfHOBwx1MhfvWD2Ea RT/kcajsJWP/1cdR1Jex8gv50dfPpFwusY3XWbsiwnUny/8T7SIad12kSLAIPHDUlwVp dl4NPHLyoI9exSKQRvzElb+wTII2ECjjHUl1OVrZtwAVwM8wrjTEMuOBCp2OGcv6Kr/5 lsvCGlKVntze40dxpZ7eLX71iUqT7yAzJdOX/zErgvnreYXFSjIAl5VgiG8uEV53O8c5 gImxvG1/UfGSSUE+XewJCFja2cmtcbyFAtL/EuSx/pxqc0REm04cwNm9Xu/j9NvF5LqS lDSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=1R0I9BaqLj2Ink1YDN7rWG8kNW3p8bDSkFtApTxVnn8=; b=M5nYtyKg5bXScv63QxN3ACPfNvih+afJkzm3n81JnTw4LsxoM9AFDHs/aNmJbM4cOR 9W7hTKZ0eSsl4hk65/bkIkcGmLYpOzMwI3eKE8eMztCPT9FPfaNGy6jRuIbhWPGbyOBM qR7cq85rzU1jK8l7CuP76IIDA6nUD/Rez0eZLdamsI9UgkZAwIovQeQzrtowbZRUUOkv HIm0/96o9aAdicMFAV148y7YJd3UFyj5w8GPDDvimGY5TPr/8BGhL/dMtHkWM7f/4MXM Bzax7lkjOS45QbnnjAUzuQKwsP6bF2VjKBDSS7dedi1awes0K5qVwXPkeTBT32eunCk6 KP4w== 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 ce8si4682047ejb.146.2021.02.05.01.51.48; Fri, 05 Feb 2021 01:52:13 -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 S230027AbhBEJvE (ORCPT + 99 others); Fri, 5 Feb 2021 04:51:04 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:12134 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229756AbhBEJrc (ORCPT ); Fri, 5 Feb 2021 04:47:32 -0500 Received: from DGGEMS409-HUB.china.huawei.com (unknown [172.30.72.59]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4DX9Wr1cWTz164x8; Fri, 5 Feb 2021 17:45:28 +0800 (CST) Received: from localhost.localdomain (10.67.165.24) by DGGEMS409-HUB.china.huawei.com (10.3.19.209) with Microsoft SMTP Server id 14.3.498.0; Fri, 5 Feb 2021 17:46:39 +0800 From: Yicong Yang To: , , , , , , , , , , , , , , CC: , , Subject: [PATCH 2/4] hwmon: Use subdir-ccflags-* to inherit debug flag Date: Fri, 5 Feb 2021 17:44:13 +0800 Message-ID: <1612518255-23052-3-git-send-email-yangyicong@hisilicon.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1612518255-23052-1-git-send-email-yangyicong@hisilicon.com> References: <1612518255-23052-1-git-send-email-yangyicong@hisilicon.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.67.165.24] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Junhao He Use subdir-ccflags-* instead of ccflags-* to inherit the debug settings from Kconfig when traversing subdirectories. 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