Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp949414pxb; Tue, 9 Feb 2021 17:43:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJxe+X1Dq4OOBRZdULgXHX8gLg9vWNW7A/M/3R41+tEbrwmsQdCcxdsESitVW4pxBBbVyy36 X-Received: by 2002:a17:906:8690:: with SMTP id g16mr533842ejx.113.1612921379758; Tue, 09 Feb 2021 17:42:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612921379; cv=none; d=google.com; s=arc-20160816; b=fnpF/eupLe/hvpBcCWU0GbmoSY4yu7k12wKaQdR650wP68FzNaygZt02GiMyyKJyqA vRFNHqNi+BJ4c+n3s2LG2MQ3t9H9tviHB7588Lc7IwkwK33Xg5sZP+I2UF7XrFF1C2nS LzFzq98xKZf7m1tOySQQhhyyfWOLmaavQiqJb36zI4M+P3nLmgVB2X+Xna7WbERiuUQP c5bCukYFUxf1NV4pt4uNRA3y4x+GnAagG0ejLenDReZCTlYb9ACTz3HJ83YHwgBg6X/c m2aAXazhAqbwRc4V3beY92thtxe2zVzjHNqzYUP3SDD0izuUsU5gPNdaN/pd66eRojwN c3ng== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=yGmWhoja/hQOYUa2PNDucYo9KJYqOoWVC1/FBOW7ZLs=; b=scJGVv7yp3LGa04Ff37fqla0JjZyJ2kPhPr9n7T5dmyBDIZOYTLDxMSCCxHL4JGeR+ 0hDDTYgbLCZl4wcZOgr5R0tcD2pK4xZEAAeoq+0vuSmT6ksJ4UQPnazfJzMyFetHEFy8 HfSwoKAj33uy/7VS8BcMkbUyTbpaOTC9e0QBaDZuWtfGMo0JybtjzyWFYCpTAEL3xrl7 M564dn8IBbjH+FLUPsnm05P6x5NG1PlmMirELUJpx98OfDN+STflMOcwq38zlDssDVa8 nGONF6ReVUMwUWTelqF4Ms2xuNLrYrwBx8e5r9bLHP1LfCBcYvhKQDgfwAQ2TzCSpEPg PGrQ== 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 f11si368455edu.40.2021.02.09.17.42.36; Tue, 09 Feb 2021 17:42:59 -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 S234513AbhBJBmH (ORCPT + 99 others); Tue, 9 Feb 2021 20:42:07 -0500 Received: from mail-lf1-f49.google.com ([209.85.167.49]:46666 "EHLO mail-lf1-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233534AbhBIXo1 (ORCPT ); Tue, 9 Feb 2021 18:44:27 -0500 Received: by mail-lf1-f49.google.com with SMTP id v5so84846lft.13; Tue, 09 Feb 2021 15:44:10 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=yGmWhoja/hQOYUa2PNDucYo9KJYqOoWVC1/FBOW7ZLs=; b=CSwu8RNl0F3aLFNUa2Zhqv/aqOr5LKZ/7NneX13EyvlbISAlqrLqBhJJJ7UJZwfvI+ quS89wObQiz7ojngCi7DM6T1jhylHQ+3XWcBSnVAZ01C4E0m29wEPc2lZDcW/Y4PPIgj Ed+riKLtmJ/w0egBe6Fl2kBCYicFdUj3zXYSdcrTD0bV+BuxOFh1lSlbK4bSqNCyr+Zr 6vxTkKRcP49eVDXmEZhzL2lesOGyuY3FZAzp4583OpXKBd2/cQzuy9xfvmQkbKlaxs+y 1YY45uwPdPHt4Ie5OGc+I4YVy/5AJXOOJdrs2IYwIjMa1PXanRmjlQhXnQXYL8A35VGG nQuw== X-Gm-Message-State: AOAM530yQyCHG82gFfpTcdg633sDyv2vKJlhv6/9F2IzsgNc+1VYcVPt fcfEWP7xYbEkJLY4Epoaof8= X-Received: by 2002:ac2:544c:: with SMTP id d12mr172177lfn.585.1612914223533; Tue, 09 Feb 2021 15:43:43 -0800 (PST) Received: from rocinante ([95.155.85.46]) by smtp.gmail.com with ESMTPSA id u6sm21519lji.63.2021.02.09.15.43.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Feb 2021 15:43:42 -0800 (PST) Date: Wed, 10 Feb 2021 00:43:41 +0100 From: Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= To: Bjorn Helgaas Cc: Yicong Yang , linux-pci@vger.kernel.org, prime.zeng@huawei.com, linuxarm@openeuler.org, Masahiro Yamada , Michal Marek , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] PCI: Use subdir-ccflags-* to inherit debug flag Message-ID: References: <1612438215-33105-1-git-send-email-yangyicong@hisilicon.com> <20210209212510.GA513360@bjorn-Precision-5520> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20210209212510.GA513360@bjorn-Precision-5520> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Bjorn, Thank you! This looks great! [...] > commit e8e9aababe60 ("PCI: Apply CONFIG_PCI_DEBUG to entire drivers/pci hierarchy") > Author: Junhao He > Date: Thu Feb 4 19:30:15 2021 +0800 > > PCI: Apply CONFIG_PCI_DEBUG to entire drivers/pci hierarchy > > CONFIG_PCI_DEBUG=y adds -DDEBUG to CFLAGS, which enables things like > pr_debug() and dev_dbg() (and hence pci_dbg()). Previously we added > -DDEBUG for files in drivers/pci/, but not files in subdirectories of > drivers/pci/. > > Add -DDEBUG to CFLAGS for all files below drivers/pci/ so CONFIG_PCI_DEBUG > applies to the entire hierarchy. > > [bhelgaas: commit log] > Link: https://lore.kernel.org/r/1612438215-33105-1-git-send-email-yangyicong@hisilicon.com > Signed-off-by: Junhao He > Signed-off-by: Yicong Yang > Signed-off-by: Bjorn Helgaas > Reviewed-by: Krzysztof WilczyƄski > > diff --git a/drivers/pci/Makefile b/drivers/pci/Makefile > index 11cc79411e2d..d62c4ac4ae1b 100644 > --- a/drivers/pci/Makefile > +++ b/drivers/pci/Makefile > @@ -36,4 +36,4 @@ obj-$(CONFIG_PCI_ENDPOINT) += endpoint/ > obj-y += controller/ > obj-y += switch/ > > -ccflags-$(CONFIG_PCI_DEBUG) := -DDEBUG > +subdir-ccflags-$(CONFIG_PCI_DEBUG) := -DDEBUG And thank you again, Yicong, for fixing this. Much appreciated. Krzysztof