Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3897456pxb; Mon, 8 Feb 2021 02:59:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJzMDW3sszJzQhZTqQODea7XJF/YN+Cx/GSrQxoW4yuORGnpgWpu1URsyg5s3QtslE0bHrOe X-Received: by 2002:a17:906:1719:: with SMTP id c25mr16803327eje.251.1612781976026; Mon, 08 Feb 2021 02:59:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612781976; cv=none; d=google.com; s=arc-20160816; b=pldupiYWPWn9gaZEY4xZAEqkfQWOnzhLBp2BcO9SEFOzvjfrcd5vByjPMinG0uehIJ 5uR8QIrfpWRrmoVoxRNjolrYr9Z25hlKhiZf10pWATx8CWBvPhEQm90fWHwYHfCatv+5 3B4mc1uP470/+3ujo4T1THaQcVMl797+n9DavXWAs3EzOLZZTarkXi85lAQGDo0Ixsco Y8d/wxXlG9pUkzE75F5qbWjhS79ZetiGs1oJtx1GFc4Ninup0raCrx4ICBOiH/Wr+qCC wzSnoPAwnTb18lubPw0pxUA9hyg9BpX0xCpq3Be9P/8zbnHuaQvIIqIhsvaDbmz4mWQP TbpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=BZrnOFmJU+3+i23iUG7s36hTrpr5+aWPl7ejHHRqVRk=; b=EkdV2gmCyuE3of1JbXmQMGrqxC86i1Pv/KSYfms8l0etBw4xf8WrCtQIioxAcwnnGI 0JKhLoko7IZPNqzhxbghDUtHDcnwt4qf/1BOTE874kRR7FLReNaU9hWHPh8O0Ki675CR baZSB41NO5odW9hyp5nkcMHTY9N1btUJRR5vyYKQiECffQN63n4b4uE9VXOmcDOCMCec /wsAJroJals6sW9DTOxRwjIcevBscFO1O6R07Ut37nNP2i2XaCqbo2WhY/lodgbr36Fu JXnbwIFMrNtFwUvxV+aLBYXiCpDR9Pg89UCdu2IQoRA8wdWSYiENkOdE7olMRLjvq87d /irA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="KoBZknK/"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i17si4552131ejg.646.2021.02.08.02.59.11; Mon, 08 Feb 2021 02:59:36 -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=@linuxfoundation.org header.s=korg header.b="KoBZknK/"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232855AbhBHK6j (ORCPT + 99 others); Mon, 8 Feb 2021 05:58:39 -0500 Received: from mail.kernel.org ([198.145.29.99]:47518 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232333AbhBHKuO (ORCPT ); Mon, 8 Feb 2021 05:50:14 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id B3F9C64E8A; Mon, 8 Feb 2021 10:47:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1612781242; bh=aEmETdAAaqlh641eroVBM3hnbdYUk9TPTg1/0fBiOdg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=KoBZknK/t/arwDGGPinIqqLC5St7DRWfxSLKxzuC558dyJ+cvOVjamOGOZWxtAt9I Fnp6lqlbJiuFbz7XJG68VsKN6EjOgQHWjsBxKvY07Pe4CH8PIUoWlPNMYiXd6lDsDT Jedu9uJU1lZURZGGODarxd/SWVYCOvADEzIyrChE= Date: Mon, 8 Feb 2021 11:47:19 +0100 From: Greg KH To: Yicong Yang Cc: jdelvare@suse.com, linux@roeck-us.net, giometti@enneenne.com, 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, linuxarm@openeuler.org, prime.zeng@huawei.com Subject: Re: [PATCH 1/4] driver core: Use subdir-ccflags-* to inherit debug flag Message-ID: References: <1612518255-23052-1-git-send-email-yangyicong@hisilicon.com> <1612518255-23052-2-git-send-email-yangyicong@hisilicon.com> <08017751-a1be-ea07-50de-73d14ab6d57e@hisilicon.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <08017751-a1be-ea07-50de-73d14ab6d57e@hisilicon.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 08, 2021 at 06:44:52PM +0800, Yicong Yang wrote: > Hi Greg, > > On 2021/2/5 17:53, Greg KH wrote: > > On Fri, Feb 05, 2021 at 05:44:12PM +0800, Yicong Yang wrote: > >> From: Junhao He > >> > >> Use subdir-ccflags-* instead of ccflags-* to inherit the debug > >> settings from Kconfig when traversing subdirectories. > > > > That says what you do, but not _why_ you are doing it. > > i'll illustrate the reason and reword the commit. > > > > > What does this offer in benefit of the existing way? What is it fixing? > > Why do this "churn"? > > currently we have added ccflags-$(CONFIG_DEBUG_DRIVER) := -DDEBUG in the Makefile > of driver/base and driver/base/power, but not in the subdirectory > driver/base/firmware_loader. we cannot turn the debug on for subdirectory > firmware_loader if we config DEBUG_DRIVER and there is no kconfig option > for the it. Is that necessary? Does that directory need it? thanks, greg k-h