Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp4363890pxu; Tue, 1 Dec 2020 03:09:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJysuvXV8VaON8fEQyWeHBp/LSbdDle7hhR3uLe9hvdUClNAFHPPOjRS/0JdBqdfAHr80KaX X-Received: by 2002:aa7:dccd:: with SMTP id w13mr2436906edu.385.1606820945466; Tue, 01 Dec 2020 03:09:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606820945; cv=none; d=google.com; s=arc-20160816; b=nJN/wtN1z5NQxdR5vg74Vzzn9mcozPiwJtibL/9FCDzgwoDkwdw5kH4UXreNylG2fH Jji+/cW9ZwCf/uToSUQeQoECDTrqe86/+mReizVl/hfG5lQWXh0KB+xuU2xgLMG9iAKV UX28/gPGoeugeOj9X3u0WPJKS+VADaVw/QpqWk4z5mn3/R4WkgVO/ihZ3X3uc/WuLvGp d6nwZ/cBq1QIVLEpUtvgEtfcYFf8kUOD7PP8lECEXvgF6ie/fb5QcUcRQwyg4wd794h0 G5HwZ7hpExXhTnTCQ7qb9w6AhqR2grQHwu440fhB983LP0CTRB/ChOFMSxZqG0C6zy5b 8R9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=TOJPFDAki2IagrZHYtumbypS6zIINz1kZxu7dIlDd8k=; b=u1Asuyt/G8C8PKUInnzZYbKp8vpiu/Kg8fLyuF6bJx5l/izqhyxcgA/sbHFHBOsqk3 y6mq5thMXQC44lDxl1oygatipp+4SDjYnkvubj/TvwAg0o9UgaXIbDGvP5rai+TqM07s tbQ6JEUhNn2kljSKw4qB/WEmIvAbSL33tNrLEdf+5IT2oppUIpKu5hA0gbskjoy0Tbhv UJK6PJeyIC+/ZpwHzCHuLMdvhtxJg1B0bLhn2LwcLlQgJzMVxJa9Ak1aG9NPagcEMfjd 2YDdUA4rcnF3nOgSDcGOMB4hpzdn+jipFgJdlsqXC731tVAucgid6o38nEV8MZKA88l0 9KKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="DR/xVklx"; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id fy24si675943ejb.348.2020.12.01.03.08.41; Tue, 01 Dec 2020 03:09:05 -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=@gmail.com header.s=20161025 header.b="DR/xVklx"; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730425AbgLALFl (ORCPT + 99 others); Tue, 1 Dec 2020 06:05:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41872 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730421AbgLALFl (ORCPT ); Tue, 1 Dec 2020 06:05:41 -0500 Received: from mail-ot1-x342.google.com (mail-ot1-x342.google.com [IPv6:2607:f8b0:4864:20::342]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D3B2EC0613CF; Tue, 1 Dec 2020 03:05:00 -0800 (PST) Received: by mail-ot1-x342.google.com with SMTP id f16so1223015otl.11; Tue, 01 Dec 2020 03:05:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=TOJPFDAki2IagrZHYtumbypS6zIINz1kZxu7dIlDd8k=; b=DR/xVklxZTgSTwXCPKUL5s5vUA7EIEP1oEQjFufUjLzskiHuGN2C+9zIM8jP4NsVfd f1CE57lNq3OGWh0wpBEDYyianBB6Jp+zLAP9/E/fplxL8QTGpx9Qnb1FAjmS35BUlNrJ KKkYFsI/ZpU4zW6xg0ueY7FV1E/mCqAZg1lRBQY24Zzz6tgG7Sd7q+Xt23J+Sko3a3cY Wpw8cIHzz1DMS6G1WjFBXR4JX2TVWXyuQQFkyHFqUZlZJUl7X+FBTuTPEAqzpvSCjMcC pqMNsjHLp9ERV3IrHa9SA0coJMImVtfGO1bl5vGFE8pOAmuLk5+S5k7HPNmHm71IxZ3l oKTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=TOJPFDAki2IagrZHYtumbypS6zIINz1kZxu7dIlDd8k=; b=J3uNDD8EmvGc9MWMoBw5i6DVukvJJVz3ltGbwESieb7JmZZVhKFfJpPH/Tou4xsgvS kn2EUcf3LFmzwRHXw4gZM/VPHqGQtG9l3g/r4X7jjmyjsTYbWOYyYk03jZJn346kr4/H G1UevKU/fbyftaS2OiX7pkmd0GDLjnlZJsEMbawb38Dy+EZ0prFwhqx/IglWywypDLQh KE5OcXLriqQsI/Mgal3Ev+PINYsYLN49LprS+ct3JKCAZL/ZpLhKgOi+z+Iyi9C+me3+ xkGf3HS0+6FiiwnHRC/xoo0l2bODZ9+0IYUH/qq3DhFUl1mHYx3jGKMGrKMFLzf6u41h QJoQ== X-Gm-Message-State: AOAM530ZB24GnJIgTTDLiDT0gIuPid/yIZQRlB9AcqrzjrLxO32j5Yvy P9vANsq+v4AnSTNO5XiWaYr1FrV5MHQ3USY7t5o= X-Received: by 2002:a05:6830:160d:: with SMTP id g13mr1471474otr.74.1606820700328; Tue, 01 Dec 2020 03:05:00 -0800 (PST) MIME-Version: 1.0 References: <20201201101612.28458-1-sergio.paracuellos@gmail.com> <20201201101612.28458-2-sergio.paracuellos@gmail.com> <20201201104246.GA8403@vkoul-mobl> <20201201110245.GB8403@vkoul-mobl> In-Reply-To: <20201201110245.GB8403@vkoul-mobl> From: Sergio Paracuellos Date: Tue, 1 Dec 2020 12:04:49 +0100 Message-ID: Subject: Re: [PATCH 1/3] phy: ralink: phy-mt7621-pci: add include search path in Makefile To: Vinod Koul Cc: Kishon Vijay Abraham I , Stephen Rothwell , linux-kernel , Linux Next Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Vinod, On Tue, Dec 1, 2020 at 12:02 PM Vinod Koul wrote: > > 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..? Ok, will drop it then and resend. Thanks, Sergio Paracuellos > > -- > ~Vinod