Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2174122pxb; Fri, 5 Feb 2021 10:40:37 -0800 (PST) X-Google-Smtp-Source: ABdhPJzhyXrUfm0xyJGa0zDbf2UpACCys4RaRjRXe4W8+sW/nglHj0r9s9cCr4S8ypDyRVZp6zoS X-Received: by 2002:a17:906:5e5a:: with SMTP id b26mr5096974eju.327.1612550437230; Fri, 05 Feb 2021 10:40:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612550437; cv=none; d=google.com; s=arc-20160816; b=SnEC2CAzeQjJ6s2S+VTN457jAufL6WZFb0NLP2MCYQI/CyBVXFlh1AJhyTrFpEoIIZ zQ6ZIlTpdBPJbBzziRVDknWAPuyhdZlHsJTm3sw6SOrgWyK+HjT2gJxuxh0wZQ0I/9/r h5FfaqHfvtoRlJtLVyWToNRz/ePtwkBD451GTMxXbprkBYpId0qta3YKhl117PM9ZEzp RbbewCzd75zDfo15/vpaMAEqP+tihfe9t1QGrYphvIz9kndf31ix7xqsdFXn/GxgCNkQ HzzLKKtm310idlEDss2eJfxtBgjl3ZLDGDM3Z3v/74Lu2wPJ9IcTVXq3RJr803DQHK5Q t7DA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:sender :dkim-signature; bh=m24jKGGmGki3qeVOM6zz/wESINDsCmuIsOMA9QLVHHY=; b=OG4kheAuXFNVj+8SJdLuaILzXcMJZbukpWfU8qbWQlUix7JrHSiHIR4uVixFMKLI0J S5Xb9pGfB+TQcwOcTK8qhWuJj5KW1I5WI5jZQ1RWa9LW3AuNf4pVqlscZigZ0trROV1r J/LvgXuVGi4iKw+sL/mu4UP1EeZCIxAXMqgMLe1OgrOBdnMw9hla0qGxdHLHqg6bBXJ7 CPFgiTWlcv3Jrtx8Rx36LM87mmTKo3hh5eJg1Xmo4Z5mGfTgMtF2TY3fVJuFV2kSMx4X K627ch37UGjz5Ptgx49onBRQbzRyOKTQFHvjf6v9BgueDn0M/qYa+rJ8t0dq3l/SKsjT nqUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="nY7/EII8"; 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 h24si6111839ejt.167.2021.02.05.10.40.12; Fri, 05 Feb 2021 10:40:37 -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=@gmail.com header.s=20161025 header.b="nY7/EII8"; 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 S233155AbhBEQ4h (ORCPT + 99 others); Fri, 5 Feb 2021 11:56:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45222 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233716AbhBEQsW (ORCPT ); Fri, 5 Feb 2021 11:48:22 -0500 Received: from mail-oo1-xc33.google.com (mail-oo1-xc33.google.com [IPv6:2607:f8b0:4864:20::c33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5B6FAC0611C3; Fri, 5 Feb 2021 10:28:35 -0800 (PST) Received: by mail-oo1-xc33.google.com with SMTP id y21so1850754oot.12; Fri, 05 Feb 2021 10:28:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=m24jKGGmGki3qeVOM6zz/wESINDsCmuIsOMA9QLVHHY=; b=nY7/EII8giBI27YgK2N32iOY7orsIskuUmQAmyFa9eEyds7Hw+Ww2IEzZj1XZDhdbp zQyMRL3A1Coc/q9SaFq/0NUKmTkdC0PLu1GRtfHbjbBQrIQTfQfnwMiBi5LRwFODyI4g ITA1QCMAoOGkxgRrnOaS8n6LtCqxekZEr7X75x9UsmBdFzf6sNcQZNZxQWb7ptTiHG4M yl/puPyK5Q09SGNKwS1Y7dZuYlBVE14mGxGKs4jrEawSr3xJBLDArtlppWFGK4XkJ6Bi PflvEkc+Nf/OTWSt2oTLvE7MFAR/68JMkyH7M9tW5BVgk1pqdvKVggKr7I33WcRKzgz/ RTnw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=m24jKGGmGki3qeVOM6zz/wESINDsCmuIsOMA9QLVHHY=; b=siiqd/AHJQ2ysECsalLPtP2qBYWzDLOW++Oz5mZqS+1OPU0bY4rwhkfAIOKQqx1D4/ 2rSpKDUvIewLVi2RnutwTvtixKMskpEsQbzEmfaGV8Q6/23vpbjcSKaxsIZKuU4+yrJN n/KpHPmgFEr5Xr6t+AlDVuyQWFi/YhFdoMo1FzNICBp0O23C2JHBp7ljZ7rn4itpuDT1 E6GBjPfBFXeCT1Vqj93wY2rBFDye2eSVF3sUAiVn3DxX0iXnI3+AXSoBHyaFIIlXEc/0 c5usskd3+VHAqj4gIGpaAHP21txv431d9ws1JD+gd99dfvV1Y4YBsOvS6tNRv6PwgdEa w86A== X-Gm-Message-State: AOAM5319oXvPd6Z2nQ4eBRtjuZFdcSnlO88fI0b6sg5KHBQBs6R/xOj8 FcFr1YNoolhvIzJ/cYJ24ivDyZV88Ww= X-Received: by 2002:a4a:aa8b:: with SMTP id d11mr952667oon.36.1612549714774; Fri, 05 Feb 2021 10:28:34 -0800 (PST) Received: from localhost ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id d127sm1951329oib.26.2021.02.05.10.28.33 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 05 Feb 2021 10:28:33 -0800 (PST) Sender: Guenter Roeck Date: Fri, 5 Feb 2021 10:28:32 -0800 From: Guenter Roeck To: Yicong Yang Cc: gregkh@linuxfoundation.org, jdelvare@suse.com, 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, prime.zeng@huawei.com, linuxarm@openeuler.org Subject: Re: [PATCH 2/4] hwmon: Use subdir-ccflags-* to inherit debug flag Message-ID: <20210205182832.GA186268@roeck-us.net> References: <1612518255-23052-1-git-send-email-yangyicong@hisilicon.com> <1612518255-23052-3-git-send-email-yangyicong@hisilicon.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1612518255-23052-3-git-send-email-yangyicong@hisilicon.com> User-Agent: Mutt/1.9.4 (2018-02-28) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 05, 2021 at 05:44:13PM +0800, Yicong Yang wrote: > 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 What problem does this fix ? Maybe I am missing it, but I don't see DEBUG being used in a subdirectory of drivers/hwmon. Guenter > --- > 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 >