Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1003836pxb; Tue, 9 Feb 2021 19:40:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJxpaSPcSxVF3Lc8fPex53M1rXhAyrBp0/vbHTRXD2GGssR204Bk3mIiRmL51hLYBfr8N2dG X-Received: by 2002:a17:906:3899:: with SMTP id q25mr915766ejd.173.1612928400308; Tue, 09 Feb 2021 19:40:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612928400; cv=none; d=google.com; s=arc-20160816; b=yUUBsTGLUz7uM62s+vjU7r+b24rb2OygdMPRJv95miPnT57lR50MhLqqK2Xv2V7JWk mL44eA+/fNI1XlEs2m1sRAhijZTbnrdHdKb6bwido4zAYDsJid9r0InclXiwAihB6Kpv KMbXEajxjqfShKewVK7GHFJPhhUVlvzsotlrshALxfHpJSd2CY4k7z5HMsR2ZPCPDkfi UN+pGFcYY0tyFsSfvFDGgGyhveGN2eTXgNxO9y/X3G042sqwEkmEDPCA7us8Xl6a5mBL g7v7YVduIdekvuuPNMUPKltzPGi2BJAJR7JydSCE5jI4ngbGFfwlEwhUdw0aAwGsV/zD JkeA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=7FcYGWEE78NjhyXKFVlfmejgEgy/RY4RKk05ZhScYQ0=; b=Uho1kFYyfQk4/1UiY0MF5/TkKjWpzC2WBMLAwYvq0gPvRoPdgFPyJToSZOEJ1ycMn1 sNd5mAtS4DRyilqgynbuDL7zG3bPb4RLsxWq8pXkEqwJpHOTjTfImhjbTs3Ax91HqiPZ des7gnD+PlI2DDeVLneUoYU963kGydAJ6AH/K2owSj9t/JCIiJBOE83qgKu8qDL8Pfsm YNhKOspzyxxMe2ih2sa6A9xyqMruev9nCbvjrVov+iVsSt1O7LhQil0UMabOfZ4n/WNs GrHkyvHvicqvJeacx5SoFHhXYKmQjg5t0pGlQZuSzGTGN4savS21vKHYe6ad46ZBnKGM AfiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@aruba.it header.s=a1 header.b=Kzl1EYSp; 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 b8si492864ejb.312.2021.02.09.19.39.37; Tue, 09 Feb 2021 19:40:00 -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; dkim=pass header.i=@aruba.it header.s=a1 header.b=Kzl1EYSp; 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 S230111AbhBIMhy (ORCPT + 99 others); Tue, 9 Feb 2021 07:37:54 -0500 Received: from smtpcmd0872.aruba.it ([62.149.156.72]:52401 "EHLO smtpcmd0872.aruba.it" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230094AbhBIMhx (ORCPT ); Tue, 9 Feb 2021 07:37:53 -0500 Received: from [192.168.1.56] ([79.0.204.227]) by Aruba Outgoing Smtp with ESMTPSA id 9S6Slz4POHTby9S6Sl0V2E; Tue, 09 Feb 2021 13:26:53 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=aruba.it; s=a1; t=1612873613; bh=mDUswk8o3BSLtbN9FBZukK6zJHlk4RbhcvaAExyA0nw=; h=Subject:To:From:Date:MIME-Version:Content-Type; b=Kzl1EYSpnas8XmF09hgxgzzlq2cQfYNdikTV0R866v6FMi18rsR2jWVgS6ccBui0q gu/2VBPSRuxNS3lgMEbTkGPRrXRGRpmUJIpU8OHOj7OUqzy/o8lfidC5a1IVHy9fUM ifOzehfJ+swDJDepMjKUkMl/t5TLwkCGCF8VvMGb1LyCcywhjMeUBK28Q4njRQxsad 0jkbGPw7zasSDzwI+CIP46O5RDOafo5UjAXFJttwfb2OzRSmlB08ORdiroaLqs85Ju kuFmKTN9jCV9f6jHyTt/4MLwX8PcDuEjJwfSaq5+3DPIc0QcH0oVkEme3g6U8tidQL D279Xfw9JloGg== Subject: Re: [PATCH v2 3/4] pps: Use subdir-ccflags-* to inherit debug flag To: Yicong Yang , gregkh@linuxfoundation.org, jdelvare@suse.com, linux@roeck-us.net, abbotti@mev.co.uk, hsweeten@visionengravers.com, kw@linux.com, helgaas@kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, linux-hwmon@vger.kernel.org, devel@driverdev.osuosl.org, linux-kbuild@vger.kernel.org, masahiroy@kernel.org, michal.lkml@markovi.net Cc: prime.zeng@huawei.com, linuxarm@openeuler.org References: <1612868899-9185-1-git-send-email-yangyicong@hisilicon.com> <1612868899-9185-4-git-send-email-yangyicong@hisilicon.com> From: Rodolfo Giometti Message-ID: <36b30ed8-a930-d1c3-2725-c6653f23490c@enneenne.com> Date: Tue, 9 Feb 2021 13:26:48 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <1612868899-9185-4-git-send-email-yangyicong@hisilicon.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4wfJOtvfcS9SDUIzmTBtbnLxCn9w5jBVsknznaedOo9e7Vr0rIPrGhQrxsiBlKpKQMo8p9WoIyfGExvxm3eRi5IThCUTGOTOoVORppicdkKLU7ntqvJoHq QPY+Q4cFW3Qlnf7BXKIc2bDD9sR81IdWZPdqhWl/yG48Ze9YsxPcF4EaYAPM6n3pKPXeSqxq5W1TIuiAFAd+LM0Ova77sJiY6RuiBeRT09UY9W4NVDKR9Hkg a+qYxNAviyYwMOQiB2hPv+rhKM7AMAmDD2DbOV3UaW+NIxAFUrCK/7wn4arJAwvL20rc7Plqq6DOaoxQW0IeazmOynuZjtKG7vOWanwkDv8Dy81kUXJz2TRw A98aGs49XrGCwUBoSyPANKkVLIThLhFOpbFjHXJigrI56FCF4i5CPE/sW+9yft4Fzsw4/OWCNlVYtFGUPjthKo3eN1ifKBIoZCFk8NEVZgcz+/qXlqFRgWLk fvmyn/dQzshzuqGfxjd+GEWY4GymmulB0+7tZhyPHgUVBJghPfRKUNyhhcq2Xu/rU808RhuuLRpvDsskEfKDqfYhLAVimMMdoa6tVgHW2u7qAUURgcKCchUZ 2JbWhCTFJW3iPgCh7EQYmY8Q2NzEZomvywfunnw8/O3EJ30YCuMdQHUYzwrJkjGmuBwVkcM50nXNQsldL103nFTq8x/GsuzwHACgBRF3vE7So7UKAAsHJffY D8C8+hAeAqXWlXGr71ctDJ2XrJBTtwqP Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 09/02/21 12:08, Yicong Yang wrote: > 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 > Acked-by: Rodolfo Giometti -- GNU/Linux Solutions e-mail: giometti@enneenne.com Linux Device Driver giometti@linux.it Embedded Systems phone: +39 349 2432127 UNIX programming skype: rodolfo.giometti