Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1811001pxb; Fri, 5 Feb 2021 01:54:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJwpZv4NXjAI6ch1eCtw9ZXC6yOIVzD4bAuV0l5kZy15NBlyeNRCMe3CkaDhnVAQQaBbxFVD X-Received: by 2002:aa7:c407:: with SMTP id j7mr2745581edq.28.1612518841796; Fri, 05 Feb 2021 01:54:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612518841; cv=none; d=google.com; s=arc-20160816; b=k6QhEq/7Y1aZcRWTJDt6xP16ZRglePa1VfZ/DQc3rh+cLgAoz/3hK6GCoJ5bMv9Uyv 9/myvIM5dIuv1gKK6zXVgRz49UsRxJJ69sY9d5eo99NhJF/hIPdMl2aMaHS53FjNxLG/ txJitVSOFXoDmWHfHX90fUH31aaLmZGd7+TtYmzvB6CCKkBg6SJGnKXZ4SG72UeTv9ZV J2iOyLz0J3W4of2OIW4cEqJ5Aq3Y3LNr5gITHB0bxtz8L9yF+3RaroRM4coCnFlXzcv5 zxoVimxjcC07Zk9stPiiZj+23cwwS8Qa62iXOOCTyyragoZI1haAeN34oheZb+jNjY41 1cig== 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=zRRP/G9kp4oQ6trPl3WYgzQzpWt8QEfN23spU2Fe77E=; b=nOpix0tQs8Ab4GvrCO3BL8Lx5XjCNHUqxly/PoimQadRE3Zre/ICJCXdjqLk8cc6fK ddKyFPyLRX8mWRQFfPft0ITHlb50FjZAwN78mSs6BzMU12GOEqiCe4L26rMVtj3T9FBU GinQI2ZlwMwyiuNmYDmkRkRO/CUgsHCQW3xUN1AlNMl0+gstNNdMtc+Ge8CTZARzYSLc K+jUWNdIJXGYBeGeArR2Xn+aST2drPcATP6+S+H/5jqspSUPggpDx8k1P5LT6E4mUuB4 XJGYNTWR+QQIkVKxK4CA86XHhMbVDYHWXRC/27LlGuT3PJd6otP6e1hQ8u6ETAosniz7 bD4A== 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 t18si5050926ejc.249.2021.02.05.01.53.37; Fri, 05 Feb 2021 01:54:01 -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 S230139AbhBEJv2 (ORCPT + 99 others); Fri, 5 Feb 2021 04:51:28 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:12131 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229752AbhBEJrc (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 4DX9Wr0f3lz164x4; 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 1/4] driver core: Use subdir-ccflags-* to inherit debug flag Date: Fri, 5 Feb 2021 17:44:12 +0800 Message-ID: <1612518255-23052-2-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/base/Makefile | 2 +- drivers/base/power/Makefile | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/base/Makefile b/drivers/base/Makefile index 5e7bf96..c6bdf19 100644 --- a/drivers/base/Makefile +++ b/drivers/base/Makefile @@ -27,5 +27,5 @@ obj-$(CONFIG_GENERIC_ARCH_TOPOLOGY) += arch_topology.o obj-y += test/ -ccflags-$(CONFIG_DEBUG_DRIVER) := -DDEBUG +subdir-ccflags-$(CONFIG_DEBUG_DRIVER) := -DDEBUG diff --git a/drivers/base/power/Makefile b/drivers/base/power/Makefile index 8fdd007..2990167 100644 --- a/drivers/base/power/Makefile +++ b/drivers/base/power/Makefile @@ -5,5 +5,3 @@ obj-$(CONFIG_PM_TRACE_RTC) += trace.o obj-$(CONFIG_PM_GENERIC_DOMAINS) += domain.o domain_governor.o obj-$(CONFIG_HAVE_CLK) += clock_ops.o obj-$(CONFIG_PM_QOS_KUNIT_TEST) += qos-test.o - -ccflags-$(CONFIG_DEBUG_DRIVER) := -DDEBUG -- 2.8.1