Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp397749pxb; Tue, 9 Feb 2021 03:19:26 -0800 (PST) X-Google-Smtp-Source: ABdhPJzc2LWuDX0AcJXxi8CJ1bki/Hw35LKETPyxwuGryVcnd83+NShNwcxAzuLUaHEder7uc6Ji X-Received: by 2002:aa7:d7d3:: with SMTP id e19mr13822125eds.288.1612869565984; Tue, 09 Feb 2021 03:19:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612869565; cv=none; d=google.com; s=arc-20160816; b=gLGxzcrPHrFsNuiJMQrqnk57WSN9IOS7Ak6Kuy50mWTHYcQo0G2tvc5GL6AN8ftTOw nBrGfelYAcCx5miQX3bVENhDnSyNUGCmYajTyTLe830wiw8bEdeaZYYoH2oA/WBu/2Eu JhTvZd7Y63PPtRJrHkn081jZBbwM90+77eWmyfgHR7D4LOqYwcQFD+NfUTUJS2wZplkM /+lSQMqmAo3bq6J8oR36yHPeuhdh/kPLOfWozFpfbURQXFz7F7xEAis+5zWOmDmz+7q4 LGlrDYncpI4zcUhsISdw//6eyhRrWkOjMWjKJjg0rmcKR2Y5IQZ9HHpmlqARfwAs5Y8M 3pZg== 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=XsNzrN4xx2FloGZ10DRpAYD7YQ1jTpYZTX62jfcqrdA=; b=jBkegPcVhp7UB1/YCv3mj5VQpcPqPpY8tbnNrnI91Ss7IHZ1H4Dmoe2C8Oq/W1W1qn 20FDqamKv6/m+FLHwX25HO41lQhn4VEKmXUcbpn96mP1Rct04QSSmLpqxPqtTP0QdwIH hu3TYSmyjZeoNbyTlojzbiiojTsXYti4LYSkhX1nXlSQVfS9E7T6MOQnEbhAMTcKZdvk aDumbiL4p86Rk4/V0csOEckVGZRSWgBWw5mrhJ8nXixxifkJfgCb6RzOHRF1IVWbe16a bRZC/5NEo4CjwjkfrD9sdZGtMypTNtG+KT2XtidXaELEqWja9UC57KGNFFlOZHAGI9TH pFJg== 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 b8si14993993edz.576.2021.02.09.03.19.00; Tue, 09 Feb 2021 03:19:25 -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 S229789AbhBILPx (ORCPT + 99 others); Tue, 9 Feb 2021 06:15:53 -0500 Received: from szxga06-in.huawei.com ([45.249.212.32]:12901 "EHLO szxga06-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232306AbhBILLx (ORCPT ); Tue, 9 Feb 2021 06:11:53 -0500 Received: from DGGEMS407-HUB.china.huawei.com (unknown [172.30.72.58]) by szxga06-in.huawei.com (SkyGuard) with ESMTP id 4DZgCX59DdzjKJZ; Tue, 9 Feb 2021 19:10:00 +0800 (CST) Received: from localhost.localdomain (10.67.165.24) by DGGEMS407-HUB.china.huawei.com (10.3.19.207) with Microsoft SMTP Server id 14.3.498.0; Tue, 9 Feb 2021 19:10:58 +0800 From: Yicong Yang To: , , , , , , , , , , , , , , CC: , , Subject: [PATCH v2 3/4] pps: Use subdir-ccflags-* to inherit debug flag Date: Tue, 9 Feb 2021 19:08:18 +0800 Message-ID: <1612868899-9185-4-git-send-email-yangyicong@hisilicon.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1612868899-9185-1-git-send-email-yangyicong@hisilicon.com> References: <1612868899-9185-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 We use ccflags-$(CONFIG_PPS_DEBUG) for the debug message in drivers/pps, but the DEBUG flag will not pass to the subdirectory. Considering CONFIG_HWMON_DEBUG_CHIP intends to turn on debug recursively under driver/pps, so it will be clearer to 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/pps/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pps/Makefile b/drivers/pps/Makefile index ceaf65c..7a2d3f7 100644 --- a/drivers/pps/Makefile +++ b/drivers/pps/Makefile @@ -8,4 +8,4 @@ pps_core-$(CONFIG_NTP_PPS) += kc.o obj-$(CONFIG_PPS) := pps_core.o obj-y += clients/ generators/ -ccflags-$(CONFIG_PPS_DEBUG) := -DDEBUG +subdir-ccflags-$(CONFIG_PPS_DEBUG) := -DDEBUG -- 2.8.1