Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3029972imm; Sun, 3 Jun 2018 17:54:16 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIVeMjZf1ZA6LH4CO7SerhMq5O67o7USbu4F3N6McquX9TeltTw0LhHYvILIPQT4ewAXZI9 X-Received: by 2002:a17:902:8d8e:: with SMTP id v14-v6mr19896332plo.387.1528073656286; Sun, 03 Jun 2018 17:54:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528073656; cv=none; d=google.com; s=arc-20160816; b=JeIbMHa6HKKZiMEKQJTUwR9+xSWITwAaBprplqKRhihtLV659E0/1rSO+NNgzNg3xf LKnN0hav5+JA7hoo5wXlND1cNLNJAvoS2jD60399FQDIUy0zYmYULfu1NRT9trJa7R8Y QCuhmYhW8pMVgvGcrbtAlH4AuCaT9bzmMB6W4Sdu54ga9WQU/d+hkxRxKotXvC/DkiKM ToDSvfiiwyIJSX1v3NEJmtOn+WnLUIA649FJc3T5hbJSumMP1a0ehq23bm2v+0HIt0lx R2+q0/IYrjhFCeCGl5W6h3NTFX0GcHa/KJpkyB6NGadZUPnzRCqdGYhZ273d9iiAlfGv AE2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:references:in-reply-to:mime-version :dkim-signature:dkim-filter:arc-authentication-results; bh=vqcZCIw4nd+dsRvPPYX32AYqHJEHbe/OZEYHpjECG+U=; b=KqrDmrzhVprZL+ELh+DrhSirMt6CUs6y3snXb1/0kdqzw3CqB9lewJHxTtXOGVgonT DJBFBuT+Dm/zj/qkrq/Ps3Ba7fBmi50tuZilM9FmCSL1aFaZg9+H43uA+LCS0iWevY4d SYoZ7R8wp6XJMticVbw+q0p25tVJLxDzo6YjWAT9iLsTavUH8JnLvuy/WE7x5t8hKJgw jRxEMznP7FRkhPjGLwSGn0wclECQDL/0n6WQXFOgF4yOXKj/W+o2R0aPImQU3AJ0xqJp EM0wqA/QANB9qUU77X+FSRUqvyWvoCTtw4sEg63VH4OMya7DfIfJhgZbFAnyyHV0hYP9 duWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=UqskJs1P; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 68-v6si44804377pfq.172.2018.06.03.17.54.01; Sun, 03 Jun 2018 17:54:16 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=UqskJs1P; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751814AbeFDAxf (ORCPT + 99 others); Sun, 3 Jun 2018 20:53:35 -0400 Received: from conssluserg-04.nifty.com ([210.131.2.83]:20979 "EHLO conssluserg-04.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751550AbeFDAxd (ORCPT ); Sun, 3 Jun 2018 20:53:33 -0400 Received: from mail-ua0-f169.google.com (mail-ua0-f169.google.com [209.85.217.169]) (authenticated) by conssluserg-04.nifty.com with ESMTP id w540rKu7019056; Mon, 4 Jun 2018 09:53:21 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-04.nifty.com w540rKu7019056 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1528073601; bh=vqcZCIw4nd+dsRvPPYX32AYqHJEHbe/OZEYHpjECG+U=; h=In-Reply-To:References:From:Date:Subject:To:Cc:From; b=UqskJs1PQVnAcmBp3baZV4Ef1qr9bF5eujvBuJwFyMiI09Qoci1F5ycPm/NguJaYY /gktW6FPScf0hV9D8YayostZ2vy6euZZMql6eBxn3mHYkv7RI/ZeSyPvbMEmm2/I4L F0zQTRP6VrLSa5vaKg5nF/0pOZHO60xtGUEguQdc5IIJPbi/phlINaKrLxeudDLFLy x0DjpuWqiPM6zKlwmsslPFOhOGgZdSyaEikFVCiHI9sBwRsOtRzooWvt3ZbPbgQtDE OQ6cbBqQLRVIiOld/5JBecGEiwQdL5AAgfqiUZcPmIqo3i/BJK4osNQcxz8sQE0Qkr PB7aBhnezbCzQ== X-Nifty-SrcIP: [209.85.217.169] Received: by mail-ua0-f169.google.com with SMTP id e8-v6so20937049uam.13; Sun, 03 Jun 2018 17:53:21 -0700 (PDT) X-Gm-Message-State: ALKqPwfZP6nbZnDiD+XD07CSW6bgVqiLkapX8PVC0w92I5ou4dc+Heh4 4BVGaIGCEo4RLBXpedhBFYMbai53qr2qSq6r1yQ= X-Received: by 2002:ab0:2e3:: with SMTP id 90-v6mr7709453uah.144.1528073600090; Sun, 03 Jun 2018 17:53:20 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:ab0:20ab:0:0:0:0:0 with HTTP; Sun, 3 Jun 2018 17:52:39 -0700 (PDT) In-Reply-To: <005d01d3fb98$20711900$61534b00$@socionext.com> References: <20180530090946.1635-1-suzuki.katsuhiro@socionext.com> <20180530090946.1635-7-suzuki.katsuhiro@socionext.com> <005d01d3fb98$20711900$61534b00$@socionext.com> From: Masahiro Yamada Date: Mon, 4 Jun 2018 09:52:39 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 6/8] media: uniphier: add common module of DVB adapter drivers To: Katsuhiro Suzuki Cc: Mauro Carvalho Chehab , linux-media@vger.kernel.org, Masami Hiramatsu , Jassi Brar , linux-arm-kernel , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 2018-06-04 9:08 GMT+09:00 Katsuhiro Suzuki = : > Hello Yamada-san, > >> -----Original Message----- >> From: Masahiro Yamada >> Sent: Saturday, June 2, 2018 9:00 PM >> To: Suzuki, Katsuhiro/=E9=88=B4=E6=9C=A8 =E5=8B=9D=E5=8D=9A >> Cc: Mauro Carvalho Chehab ; >> linux-media@vger.kernel.org; Masami Hiramatsu ; >> Jassi Brar ; linux-arm-kernel >> ; Linux Kernel Mailing List >> >> Subject: Re: [PATCH 6/8] media: uniphier: add common module of DVB adapt= er drivers >> >> 2018-05-30 18:09 GMT+09:00 Katsuhiro Suzuki : >> > This patch adds common module for UniPhier DVB adapter drivers >> > that equipments tuners and demod that connected by I2C and >> > UniPhier demux. >> > >> > Signed-off-by: Katsuhiro Suzuki >> > --- >> > drivers/media/platform/uniphier/Makefile | 5 ++ >> > drivers/media/platform/uniphier/hsc-core.c | 8 --- >> > .../platform/uniphier/uniphier-adapter.c | 54 ++++++++++++++++++= + >> > .../platform/uniphier/uniphier-adapter.h | 42 +++++++++++++++ >> > 4 files changed, 101 insertions(+), 8 deletions(-) >> > create mode 100644 drivers/media/platform/uniphier/uniphier-adapter.c >> > create mode 100644 drivers/media/platform/uniphier/uniphier-adapter.h >> > >> > diff --git a/drivers/media/platform/uniphier/Makefile >> b/drivers/media/platform/uniphier/Makefile >> > index 0622f04d9e68..9e75ad081b77 100644 >> > --- a/drivers/media/platform/uniphier/Makefile >> > +++ b/drivers/media/platform/uniphier/Makefile >> > @@ -3,3 +3,8 @@ uniphier-dvb-y +=3D hsc-core.o hsc-ucode.o hsc-css.o h= sc-ts.o >> hsc-dma.o >> > uniphier-dvb-$(CONFIG_DVB_UNIPHIER_LD11) +=3D hsc-ld11.o >> > >> > obj-$(CONFIG_DVB_UNIPHIER) +=3D uniphier-dvb.o >> > + >> > +ccflags-y +=3D -Idrivers/media/dvb-frontends/ >> > +ccflags-y +=3D -Idrivers/media/tuners/ >> >> >> Please add $(srctree)/ like >> >> ccflags-y +=3D -I$(srctree)/drivers/media/dvb-frontends/ >> ccflags-y +=3D -I$(srctree)/drivers/media/tuners/ >> >> >> Currently, it works $(srctree)/, >> but I really want to rip off the build system hack. > > Thanks, I agree with your opinion, but other Makefiles in drivers/media u= se > same hack. I don't know other way to include headers of demodulators and > tuners... > > Do you have any good ideas? > > My suggestion is to add '$(srctree)/'. For clarification, Bad: ccflags-y +=3D -Idrivers/media/dvb-frontends/ ccflags-y +=3D -Idrivers/media/tuners/ Good: ccflags-y +=3D -I$(srctree)/drivers/media/dvb-frontends/ ccflags-y +=3D -I$(srctree)/drivers/media/tuners/ I want to fix this tree-wide, then remove the 'addtree' from scripts/Kbuild.include but I have not been able to find time for that. This is a new file, so just suggested to add '$(srctree)/' If you want to know the context: https://patchwork.kernel.org/patch/9632347/ --=20 Best Regards Masahiro Yamada