Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1810829pxb; Fri, 5 Feb 2021 01:53:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJw2e3wYJQZBah3Y7GEMMerDLbBiYXrMvdegygI5hVxKf+KLUfzVwOOBWFlTzXwj6g5wxrgP X-Received: by 2002:a17:907:2d92:: with SMTP id gt18mr3355775ejc.330.1612518816053; Fri, 05 Feb 2021 01:53:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612518816; cv=none; d=google.com; s=arc-20160816; b=kHbp3l6EAZxNb9yTBoSGY7FQDg3EeMAb0Cmg9cr/vqD9IVzchXK8XDCiIBmoGqtkMP P+izcsfeiRh2vD+vhOPPtP1i7mnaUVjZFwkBOHAf4qzjZNLSDxaR9QGNh4U3Q7yCLHL+ vYz7dC8dSmiaZlwi1TMMAJkvBZw0mu25dCjCetOB+alRir4vqGBIFC8wtW7E9uC8rCr+ BtXY23xnV/larvYmdmKpHsDoGoDWheTleXpM4KkNy2+Dzd3AltScM2HF6e6fdVNizwWK IZCGMFoBeGwqC3vQS7VocqZP0g15yehncN42r0Owzt8EmKgfur3CnPACfkUkcnu+oL/T rrmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=JSIfK/77CPv2lHayn4xnp7Z7NIXTpMKMN9zAveo0gSs=; b=RGdepZnMY+AE5QRIK0i0qWPI014L9l4WMov5Pq6DORdVblMevcWkr31nSRoJvZ/C+G hiIoKOiTSCSUbv5tCJXubtWq57Wv9nMF3oSeH+Sj0jdhiMyQ9ekiCA9s5zv1DqA5hl7B NXWQedN5fceoeh7ZCsjQ3sHFeJFHANshLNd+5GBTIigTQQ8M3niI9SDfXBCbDqbJ75H2 mUyQyhpbB4AykMEW/CSxBdaeiUaIGB5nl/EX80riNGnCFxz8dP7yQKK6nfzUTAx89jr8 GAGayFa1lqW7+TuX1ihKWN65K5xwYfgkm2uGjveGSSmbDitulqGpmhuKPLfJ3vtT2G/8 WWYg== 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 cm5si4947710edb.479.2021.02.05.01.53.09; Fri, 05 Feb 2021 01:53: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; 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 S230179AbhBEJvg (ORCPT + 99 others); Fri, 5 Feb 2021 04:51:36 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:12135 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229766AbhBEJrb (ORCPT ); Fri, 5 Feb 2021 04:47:31 -0500 Received: from DGGEMS409-HUB.china.huawei.com (unknown [172.30.72.59]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4DX9Wr253Mz164xC; Fri, 5 Feb 2021 17:45:28 +0800 (CST) Received: from localhost.localdomain (10.67.165.24) by DGGEMS409-HUB.china.huawei.com (10.3.19.209) with Microsoft SMTP Server id 14.3.498.0; Fri, 5 Feb 2021 17:46:38 +0800 From: Yicong Yang To: , , , , , , , , , , , , , , CC: , , Subject: [PATCH 0/4] Use subdir-ccflags-* to inherit debug flag Date: Fri, 5 Feb 2021 17:44:11 +0800 Message-ID: <1612518255-23052-1-git-send-email-yangyicong@hisilicon.com> X-Mailer: git-send-email 2.8.1 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 Few drivers use ccflags-* in their top directory to enable -DDEBUG, but don't have config options to enable debug in the sub-directories. They should want the subdirectories inherit the debug flag from the top. Use subdir-ccflags-* instead of ccflags-* to inherit the debug settings from Kconfig when traversing subdirectories. We primarily find this issue when debugging PCIe and other drivers may also have this issues. Previous discussion can be find at https://lore.kernel.org/linux-pci/1612438215-33105-1-git-send-email-yangyicong@hisilicon.com/ Junhao He (4): driver core: Use subdir-ccflags-* to inherit debug flag hwmon: Use subdir-ccflags-* to inherit debug flag pps: Use subdir-ccflags-* to inherit debug flag staging: comedi: Use subdir-ccflags-* to inherit debug flag drivers/base/Makefile | 2 +- drivers/base/power/Makefile | 2 -- drivers/hwmon/Makefile | 2 +- drivers/pps/Makefile | 2 +- drivers/staging/comedi/Makefile | 2 +- drivers/staging/comedi/drivers/Makefile | 1 - drivers/staging/comedi/drivers/tests/Makefile | 2 -- drivers/staging/comedi/kcomedilib/Makefile | 2 -- 8 files changed, 4 insertions(+), 11 deletions(-) -- 2.8.1