Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp410689pxu; Tue, 1 Dec 2020 14:35:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJzUhPCj2ouNCg9mdNbEJ2wsT1gZ1c9STn8DIdF0LQTYuKQ/8igJ38PM6RHj7mL8RQyiAT31 X-Received: by 2002:a05:6402:19b4:: with SMTP id o20mr5362859edz.103.1606862139449; Tue, 01 Dec 2020 14:35:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606862139; cv=none; d=google.com; s=arc-20160816; b=faMFbB1M+GCVh6BHumYc/0zG9l567LZ/veNHK82hh8HlCTgjGOnyaZboqjYDoibko8 STgMTchKuQCkNDjnkXtQrrAoRpUWdH/VIKlWds0RdlD/FCWUUkcS+LGRrLDf+JSrtEA7 E7KmeduYkJ6kbQ5aQaff+YsCxjzQ6peSQakyy1E0iPpygt9JXaF5ojC7qmx/qhh5/s7z +jRDvnsutT4k4VRhp66T3RH1g5IwZcSkT6CiFGvBgSFSVVt/7a+ThCFZT0twXgzemVey yTeSH1khM0MhNs+d4SvJiH5XMLycHKNPfdeYnYeO9q/UHPmwytyn8B2ogJEqtZOu2kVj Z3gg== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=owue2zbiX0nOH4meJga/dBq0bsTjmG416fKfFCQWwt0=; b=dtVIeH5COy/3WZfAArg3O7skukRbZmvD97cbsRK/Luu6CRoXGznNba9+hS9W32V78D Uo3nqIO00iEYXuWKFNx0XmDd9bIGC83l5WysgZYqKVyQ1j9C2Pz453izG8I2mxODb69l DZKdsk4aWo1IoLxSTzLpIlhfIbTUvXfe6mc/V5Mjdjq87wY3scqHf/5SP9b+2Z+StGuO +Pt0CbclMNtMvhpLbgc9YK70oaSADyLYY0E7DyQuUfMlDxjrceDaVl2yjyOSsDow0q5d nKCG5N+TaeXiWIppPuFQhmYA5gUrSENxVIGmbUdpTAQ6VnAvrriA8fnRrHDM7rYjyIbu hkPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Rc1G5BYu; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d20si848804ejb.512.2020.12.01.14.35.17; Tue, 01 Dec 2020 14:35:39 -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=@kernel.org header.s=default header.b=Rc1G5BYu; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387561AbgLALDc (ORCPT + 99 others); Tue, 1 Dec 2020 06:03:32 -0500 Received: from mail.kernel.org ([198.145.29.99]:48786 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729808AbgLALDc (ORCPT ); Tue, 1 Dec 2020 06:03:32 -0500 Received: from localhost (unknown [122.171.214.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 27EAC2084C; Tue, 1 Dec 2020 11:02:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1606820571; bh=6ZkXbccJTBEOJD0HUHote1XwYarFlwXDn8PLAiMLWwI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Rc1G5BYuOw6C/3nbfU7SqI/dkp3Bhxl+7ArJA/lQ+AxU54V5XoqlD3DHFw50UHk4P fc0LvPvTQ9Ru67PR4rIoIXsZ8ol2YGGHncUX6ZHD/G5vwhFjGznpQbRkhDZu17xDwZ oWHwH5EfDl0eXRHSlQJF4oNXkKiDuqTrTZItKJPA= Date: Tue, 1 Dec 2020 16:32:45 +0530 From: Vinod Koul To: Sergio Paracuellos Cc: Kishon Vijay Abraham I , Stephen Rothwell , linux-kernel , Linux Next Mailing List Subject: Re: [PATCH 1/3] phy: ralink: phy-mt7621-pci: add include search path in Makefile Message-ID: <20201201110245.GB8403@vkoul-mobl> References: <20201201101612.28458-1-sergio.paracuellos@gmail.com> <20201201101612.28458-2-sergio.paracuellos@gmail.com> <20201201104246.GA8403@vkoul-mobl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 01-12-20, 11:47, Sergio Paracuellos wrote: > Hi Vinod, > > On Tue, Dec 1, 2020 at 11:42 AM Vinod Koul wrote: > > > > On 01-12-20, 11:16, Sergio Paracuellos wrote: > > > This driver includes the following two files directly: > > > - mt7621.h > > > - ralink_regs.h > > > > > > Compilation for its related platform properly works because > > > its real path is included in 'arch/mips/ralink/Platform' as > > > cflags. > > > > > > This driver depends on RALINK but also is enabled for COMPILE_TEST > > > where nothing about its platform is known and this directly > > > included files are not found at all breaking compilation. > > > > > > Fix this problem adding include search path for ralink in > > > ralink phy directory Makefile. > > > > > > Fixes: d87da32372a0 ("phy: ralink: Add PHY driver for MT7621 PCIe PHY") > > > > Pls add reported-by sfr.. > > Ok, Will change this and send v2. > > > > > > Signed-off-by: Sergio Paracuellos > > > --- > > > drivers/phy/ralink/Makefile | 3 +++ > > > 1 file changed, 3 insertions(+) > > > > > > diff --git a/drivers/phy/ralink/Makefile b/drivers/phy/ralink/Makefile > > > index cda2a4a7ca5e..c8f9adba0d82 100644 > > > --- a/drivers/phy/ralink/Makefile > > > +++ b/drivers/phy/ralink/Makefile > > > @@ -1,3 +1,6 @@ > > > # SPDX-License-Identifier: GPL-2.0-only > > > + > > > +ccflags-y += -I$(srctree)/arch/mips/include/asm/mach-ralink > > > > Can we include instead of using this? > > Doing that also fails because path for 'arch/mips/include' is not > added also because we are compiling in x86_64. > Looking into other drivers I see the way to avoid this kind of > platform specific stuff is adding related paths in > cflags. So I don't really know if there is another way. Right, ideally these headers should have been in include/linux, but.. I dont like this way, can we drop compile test..? -- ~Vinod