From patchwork Fri Jan 9 09:41:46 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 42897 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-we0-f197.google.com (mail-we0-f197.google.com [74.125.82.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 4B5582055F for ; Fri, 9 Jan 2015 09:42:03 +0000 (UTC) Received: by mail-we0-f197.google.com with SMTP id w61sf3683609wes.0 for ; Fri, 09 Jan 2015 01:42:02 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe; bh=6cpBgsIng77X4zyF+0VgnAOoWpXqbifD2zNT0DgRyyI=; b=JkHUYMp/jV1+KkYaNEfz4uNzPmLUDfEzeen0MlhnWvr4ZZB+JljKCFxLFz+RNTJKyf i7FG0+Qp6fL7FuK8pRDEJNqZsS/VQDK7wrIOKq1O6FZk7OmmrPp2/EhTpjLm5WHi/9+b 1+f0vv/DdXBWiF2lkhiUk/BPBjODbo0XnMAyap8Pnf3QO4MRbtBBfBNnF1eaWnogTBMk X3a1Skb0+nNdoNH2yRCHdwPxGIsfgYtvgK+e0N7cPUyQZvnhIoG7S9ZxtNxVbiGnISMK jLrRnpo3m4rkc5ga9tUX82m3tMxPDyzrV8PVkm2Hby6nCa/7KFvc6kUmrbP0+vsequ0d 8irQ== X-Gm-Message-State: ALoCoQl+td+bibv8p9gx1L7jxv5XSMNfWYgSFGJHjYjBkLHn1phrqVN8JeqMeB0v1ztOVmchUenU X-Received: by 10.112.161.201 with SMTP id xu9mr109221lbb.11.1420796522576; Fri, 09 Jan 2015 01:42:02 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.43.41 with SMTP id t9ls165413lal.99.gmail; Fri, 09 Jan 2015 01:42:02 -0800 (PST) X-Received: by 10.152.5.67 with SMTP id q3mr20377184laq.73.1420796522220; Fri, 09 Jan 2015 01:42:02 -0800 (PST) Received: from mail-la0-f47.google.com (mail-la0-f47.google.com. [209.85.215.47]) by mx.google.com with ESMTPS id b1si12458936lab.72.2015.01.09.01.42.02 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 09 Jan 2015 01:42:02 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.47 as permitted sender) client-ip=209.85.215.47; Received: by mail-la0-f47.google.com with SMTP id hz20so13595971lab.6 for ; Fri, 09 Jan 2015 01:42:02 -0800 (PST) X-Received: by 10.152.115.146 with SMTP id jo18mr20755976lab.9.1420796522067; Fri, 09 Jan 2015 01:42:02 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.9.200 with SMTP id c8csp277250lbb; Fri, 9 Jan 2015 01:42:01 -0800 (PST) X-Received: by 10.66.254.33 with SMTP id af1mr22593910pad.106.1420796520207; Fri, 09 Jan 2015 01:42:00 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id jy1si12572991pbc.231.2015.01.09.01.41.59; Fri, 09 Jan 2015 01:42:00 -0800 (PST) Received-SPF: none (google.com: linux-kernel-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756568AbbAIJl5 (ORCPT + 27 others); Fri, 9 Jan 2015 04:41:57 -0500 Received: from mail-we0-f173.google.com ([74.125.82.173]:62672 "EHLO mail-we0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753588AbbAIJly (ORCPT ); Fri, 9 Jan 2015 04:41:54 -0500 Received: by mail-we0-f173.google.com with SMTP id q58so6946180wes.4 for ; Fri, 09 Jan 2015 01:41:53 -0800 (PST) X-Received: by 10.194.61.231 with SMTP id t7mr24699wjr.33.1420796513249; Fri, 09 Jan 2015 01:41:53 -0800 (PST) Received: from localhost.localdomain ([85.235.11.236]) by mx.google.com with ESMTPSA id s9sm9743105wiz.12.2015.01.09.01.41.51 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 09 Jan 2015 01:41:52 -0800 (PST) From: Linus Walleij To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: linux-gpio@vger.kernel.org, Linus Walleij Subject: [PATCH] pinctrl: pass -DDEBUG in subdirs Date: Fri, 9 Jan 2015 10:41:46 +0100 Message-Id: <1420796506-10402-1-git-send-email-linus.walleij@linaro.org> X-Mailer: git-send-email 1.9.3 Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: linus.walleij@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.47 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , When drivers are compiled in subdirectories the -DDEBUG flag need to be passed in the individual Makefiles. Reported-by: Mika Westerberg Signed-off-by: Linus Walleij --- drivers/pinctrl/berlin/Makefile | 1 + drivers/pinctrl/freescale/Makefile | 1 + drivers/pinctrl/mvebu/Makefile | 1 + drivers/pinctrl/nomadik/Makefile | 1 + drivers/pinctrl/qcom/Makefile | 1 + drivers/pinctrl/samsung/Makefile | 2 +- drivers/pinctrl/sh-pfc/Makefile | 1 + drivers/pinctrl/sirf/Makefile | 2 +- drivers/pinctrl/spear/Makefile | 2 +- drivers/pinctrl/sunxi/Makefile | 1 + drivers/pinctrl/vt8500/Makefile | 2 +- 11 files changed, 11 insertions(+), 4 deletions(-) diff --git a/drivers/pinctrl/berlin/Makefile b/drivers/pinctrl/berlin/Makefile index deb0c6baf316..219179d7a4df 100644 --- a/drivers/pinctrl/berlin/Makefile +++ b/drivers/pinctrl/berlin/Makefile @@ -1,3 +1,4 @@ +ccflags-$(CONFIG_DEBUG_PINCTRL) += -DDEBUG obj-$(CONFIG_PINCTRL_BERLIN) += berlin.o obj-$(CONFIG_PINCTRL_BERLIN_BG2) += berlin-bg2.o obj-$(CONFIG_PINCTRL_BERLIN_BG2CD) += berlin-bg2cd.o diff --git a/drivers/pinctrl/freescale/Makefile b/drivers/pinctrl/freescale/Makefile index bba73c22f043..73f6e07357e1 100644 --- a/drivers/pinctrl/freescale/Makefile +++ b/drivers/pinctrl/freescale/Makefile @@ -1,4 +1,5 @@ # Freescale pin control drivers +ccflags-$(CONFIG_DEBUG_PINCTRL) += -DDEBUG obj-$(CONFIG_PINCTRL_IMX) += pinctrl-imx.o obj-$(CONFIG_PINCTRL_IMX1_CORE) += pinctrl-imx1-core.o obj-$(CONFIG_PINCTRL_IMX1) += pinctrl-imx1.o diff --git a/drivers/pinctrl/mvebu/Makefile b/drivers/pinctrl/mvebu/Makefile index a0818e96374b..0ffeb6ec5c0a 100644 --- a/drivers/pinctrl/mvebu/Makefile +++ b/drivers/pinctrl/mvebu/Makefile @@ -1,3 +1,4 @@ +ccflags-$(CONFIG_DEBUG_PINCTRL) += -DDEBUG obj-$(CONFIG_PINCTRL_MVEBU) += pinctrl-mvebu.o obj-$(CONFIG_PINCTRL_DOVE) += pinctrl-dove.o obj-$(CONFIG_PINCTRL_KIRKWOOD) += pinctrl-kirkwood.o diff --git a/drivers/pinctrl/nomadik/Makefile b/drivers/pinctrl/nomadik/Makefile index 30b27f18cd52..459d20888462 100644 --- a/drivers/pinctrl/nomadik/Makefile +++ b/drivers/pinctrl/nomadik/Makefile @@ -1,4 +1,5 @@ # Nomadik family pin control drivers +ccflags-$(CONFIG_DEBUG_PINCTRL) += -DDEBUG obj-$(CONFIG_PINCTRL_ABX500) += pinctrl-abx500.o obj-$(CONFIG_PINCTRL_AB8500) += pinctrl-ab8500.o obj-$(CONFIG_PINCTRL_AB8540) += pinctrl-ab8540.o diff --git a/drivers/pinctrl/qcom/Makefile b/drivers/pinctrl/qcom/Makefile index bfd79af5f982..5d81cdd981e0 100644 --- a/drivers/pinctrl/qcom/Makefile +++ b/drivers/pinctrl/qcom/Makefile @@ -1,4 +1,5 @@ # Qualcomm pin control drivers +ccflags-$(CONFIG_DEBUG_PINCTRL) += -DDEBUG obj-$(CONFIG_PINCTRL_MSM) += pinctrl-msm.o obj-$(CONFIG_PINCTRL_APQ8064) += pinctrl-apq8064.o obj-$(CONFIG_PINCTRL_APQ8084) += pinctrl-apq8084.o diff --git a/drivers/pinctrl/samsung/Makefile b/drivers/pinctrl/samsung/Makefile index 70160c059edd..156d9aff06f5 100644 --- a/drivers/pinctrl/samsung/Makefile +++ b/drivers/pinctrl/samsung/Makefile @@ -1,5 +1,5 @@ # Samsung pin control drivers - +ccflags-$(CONFIG_DEBUG_PINCTRL) += -DDEBUG obj-$(CONFIG_PINCTRL_SAMSUNG) += pinctrl-samsung.o obj-$(CONFIG_PINCTRL_EXYNOS) += pinctrl-exynos.o obj-$(CONFIG_PINCTRL_EXYNOS5440) += pinctrl-exynos5440.o diff --git a/drivers/pinctrl/sh-pfc/Makefile b/drivers/pinctrl/sh-pfc/Makefile index ad8f4cf9faaa..55d7ad4ecae7 100644 --- a/drivers/pinctrl/sh-pfc/Makefile +++ b/drivers/pinctrl/sh-pfc/Makefile @@ -1,3 +1,4 @@ +ccflags-$(CONFIG_DEBUG_PINCTRL) += -DDEBUG sh-pfc-objs = core.o pinctrl.o ifeq ($(CONFIG_GPIO_SH_PFC),y) sh-pfc-objs += gpio.o diff --git a/drivers/pinctrl/sirf/Makefile b/drivers/pinctrl/sirf/Makefile index 3ffc475ce40c..e761b1fd9fa9 100644 --- a/drivers/pinctrl/sirf/Makefile +++ b/drivers/pinctrl/sirf/Makefile @@ -1,5 +1,5 @@ # CSR SiRFsoc pinmux support - +ccflags-$(CONFIG_DEBUG_PINCTRL) += -DDEBUG obj-y += pinctrl-sirf.o obj-y += pinctrl-prima2.o obj-y += pinctrl-atlas6.o diff --git a/drivers/pinctrl/spear/Makefile b/drivers/pinctrl/spear/Makefile index 0e400ebeb8ff..9ef35de6a2a0 100644 --- a/drivers/pinctrl/spear/Makefile +++ b/drivers/pinctrl/spear/Makefile @@ -1,5 +1,5 @@ # SPEAr pinmux support - +ccflags-$(CONFIG_DEBUG_PINCTRL) += -DDEBUG obj-$(CONFIG_PINCTRL_SPEAR_PLGPIO) += pinctrl-plgpio.o obj-$(CONFIG_PINCTRL_SPEAR) += pinctrl-spear.o obj-$(CONFIG_PINCTRL_SPEAR3XX) += pinctrl-spear3xx.o diff --git a/drivers/pinctrl/sunxi/Makefile b/drivers/pinctrl/sunxi/Makefile index c7d92e4673b5..b440b24ac9ac 100644 --- a/drivers/pinctrl/sunxi/Makefile +++ b/drivers/pinctrl/sunxi/Makefile @@ -1,4 +1,5 @@ # Core +ccflags-$(CONFIG_DEBUG_PINCTRL) += -DDEBUG obj-$(CONFIG_PINCTRL_SUNXI_COMMON) += pinctrl-sunxi.o # SoC Drivers diff --git a/drivers/pinctrl/vt8500/Makefile b/drivers/pinctrl/vt8500/Makefile index 24ec45dd0d80..55a140aa7803 100644 --- a/drivers/pinctrl/vt8500/Makefile +++ b/drivers/pinctrl/vt8500/Makefile @@ -1,5 +1,5 @@ # VIA/Wondermedia pinctrl support - +ccflags-$(CONFIG_DEBUG_PINCTRL) += -DDEBUG obj-$(CONFIG_PINCTRL_WMT) += pinctrl-wmt.o obj-$(CONFIG_PINCTRL_VT8500) += pinctrl-vt8500.o obj-$(CONFIG_PINCTRL_WM8505) += pinctrl-wm8505.o