Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp4463915pxf; Tue, 16 Mar 2021 14:18:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwjoy3c8E+mdhshaxe/kkONDNtNaJPdTfgxwsk0TwT21I7LrNMwplgH/Mdm+sTWmM73VJ+S X-Received: by 2002:a17:906:f953:: with SMTP id ld19mr30818964ejb.164.1615929533114; Tue, 16 Mar 2021 14:18:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615929533; cv=none; d=google.com; s=arc-20160816; b=uD6wcuHyb+CAfyUcKPeXM34A6nB2TfBSuKqpTy8xeX98GYfofwL5gw5mfeJhS7inQW 3KKwkgsZdxK7F0xFLVON4Hkz4Sz/uqUcimCTzadmnKdO9b5EbvJicgIH57PY83NEF2v+ vslX8c/3rE0bw8/xMEUHEOFtSLI+ceMcOtZf8Q+qqoEE6BQ+KZK482hFHA2LqEzqNVsZ VpYGV2RI614f74RuRb9WrgZ/Yg6HVGjXYw8OQBgy3k9lahxS3b6UpZDCGgNIxPsB8JNu d4cmz2n+UE0Jy/l2Chsuaihn6WytoOhkfI8psQz3NPljK1/HNI5m6A980Pcwi+Qp3oed NBHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=1Bf1dc9MSfXfqme5cAwi8rA1rkyNnGpaI0VgmGJZU10=; b=O1rpaKxkghoJB8Fz8ppEPoPFld3BurIpxPpqBUtF8zWqT8oakJVmJmxs5AZTWEaN8Y xe+wVMEpA1VLGZbbnbNaKjOhRtDWsiI+60DaB+/Y6iUMPxfQ8clmLyguYdA7PkX4yEV2 vwjwuNkbO8AEqW04onXz3Lc/CnQ+cpm/4XwBz6wujtd6lEqQuuicL8aMNroU9I8i3k5M VmXvF0k+UgRQTV4n4cH0exklz1f652RGvyfV/+dLmHUTZ86kZQXssski2rVvNBkX9hdk HiQuXzHaZjmxnc7X65lWk5TkE58w2FCRRmuzixS7PAeKy132Ie5dRxL2h4haJtHYoxUP yIww== 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 i8si15187442ejj.248.2021.03.16.14.18.30; Tue, 16 Mar 2021 14:18:53 -0700 (PDT) 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 S239691AbhCPSDq (ORCPT + 99 others); Tue, 16 Mar 2021 14:03:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41692 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231502AbhCPSBy (ORCPT ); Tue, 16 Mar 2021 14:01:54 -0400 Received: from nbd.name (nbd.name [IPv6:2a01:4f8:221:3d45::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D9A66C061756; Tue, 16 Mar 2021 11:01:53 -0700 (PDT) Received: from [2a04:4540:1403:b600:2d8:61ff:fef0:a7c3] by ds12 with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1lME0p-0003uU-O6; Tue, 16 Mar 2021 19:01:47 +0100 Subject: Re: [PATCH] MIPS: ralink: define stubs for clk_set_parent to fix compile testing To: Krzysztof Kozlowski , Thomas Bogendoerfer , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Cc: thierry.reding@gmail.com, linux-tegra@vger.kernel.org, balbi@kernel.org, linux-usb@vger.kernel.org, digetx@gmail.com, kernel test robot References: <20210316175725.79981-1-krzysztof.kozlowski@canonical.com> From: John Crispin Message-ID: <5f117b2f-90a9-4684-a453-0f7493d89c55@phrozen.org> Date: Tue, 16 Mar 2021 19:01:47 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 MIME-Version: 1.0 In-Reply-To: <20210316175725.79981-1-krzysztof.kozlowski@canonical.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 16.03.21 18:57, Krzysztof Kozlowski wrote: > The Ralink MIPS platform does not use Common Clock Framework and does > not define certain clock operations leading to compile test failures: > > /usr/bin/mips-linux-gnu-ld: drivers/usb/phy/phy-tegra-usb.o: in function `tegra_usb_phy_init': > phy-tegra-usb.c:(.text+0x1dd4): undefined reference to `clk_get_parent' > > Reported-by: kernel test robot > Signed-off-by: Krzysztof Kozlowski Acked-by John Crispin > --- > arch/mips/ralink/clk.c | 14 ++++++++++++++ > 1 file changed, 14 insertions(+) > > diff --git a/arch/mips/ralink/clk.c b/arch/mips/ralink/clk.c > index 2f9d5acb38ea..8387177a47ef 100644 > --- a/arch/mips/ralink/clk.c > +++ b/arch/mips/ralink/clk.c > @@ -70,6 +70,20 @@ long clk_round_rate(struct clk *clk, unsigned long rate) > } > EXPORT_SYMBOL_GPL(clk_round_rate); > > +int clk_set_parent(struct clk *clk, struct clk *parent) > +{ > + WARN_ON(clk); > + return -1; > +} > +EXPORT_SYMBOL(clk_set_parent); > + > +struct clk *clk_get_parent(struct clk *clk) > +{ > + WARN_ON(clk); > + return NULL; > +} > +EXPORT_SYMBOL(clk_get_parent); > + > void __init plat_time_init(void) > { > struct clk *clk;