Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3638228pxb; Mon, 9 Nov 2020 17:12:45 -0800 (PST) X-Google-Smtp-Source: ABdhPJxw8yMpZrNt1122H6Gb6l2Lo953NkJWMm5u17IY2UKKAzVV6YeyvUdb3cYFyl5t9qIfoGQM X-Received: by 2002:aa7:c2c3:: with SMTP id m3mr12159948edp.361.1604970765257; Mon, 09 Nov 2020 17:12:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604970765; cv=none; d=google.com; s=arc-20160816; b=RKBn6oA4jLtEGIZf/i//82n+MB3t7clEz7SPC8sVePbU5yg68o81WTwy30SDfR/94p k/Bfk3475Y0x+zq6MwQ6LOjywr+dPleJfzdp31BGz8oA7Hd2e5tLoUt3/HIWkLAMM00V zN6PCeGojwoyl5k8NMQuaH1HMiLkvQMEPZBFSf2kVOgS8ArZlQVh3V5kiWr22Ntozk0v 1l361y5SK/cPD7mdeW/jqnWE2/Wws9huaoGrvk1Oa3LLmzA5LJ/ikKi8UtdleVTmMzDA GZ81dcRjSbp0YlVAA4LhgTq2LKyyyLpUn0602BMXolQpqWyEspxnS2ChMKOwMj9f1jWu /5fQ== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=2XKHZA23lqGXukkdu35/JyFEQPF6UYXMzYhhKw2rxGo=; b=SahqY7bxp03RbFMG6yOuBKVETDd3UshexprVDwqFq6wCLcrQKikKAffkeJyEAQvbum K2Mi2Im66znmbWvpz4hqNqjaF2poxbA12XxPByY7uQeGWJyT1RDLhN/vEdlicgyLE8lA hVNbQ7cnXLKmFxwgt8XLrIgpi0M9xU6RDt8wJT+uJMO0nov68/qEvl6WnLITtAaIIGEo ijLU+laYUEh9g6guKNNZkqXkTHlcHoEXHicrLUyDoXmCipAl+lXh/ecPDr4ddH2or+Zl f7SN8JJSiJAVGkmaBf/CuFoYviKgYTSzk//PFNLqEpWYBbgfsaW6u3OcMKsQrGPpjY6H KfPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="r/JRUTiK"; 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 t12si12483677edc.181.2020.11.09.17.12.23; Mon, 09 Nov 2020 17:12:45 -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="r/JRUTiK"; 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 S1731356AbgKJBJQ (ORCPT + 99 others); Mon, 9 Nov 2020 20:09:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49658 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729968AbgKJBJP (ORCPT ); Mon, 9 Nov 2020 20:09:15 -0500 Received: from mail-qk1-x742.google.com (mail-qk1-x742.google.com [IPv6:2607:f8b0:4864:20::742]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9C2C1C0613D3; Mon, 9 Nov 2020 17:09:15 -0800 (PST) Received: by mail-qk1-x742.google.com with SMTP id q22so2712087qkq.6; Mon, 09 Nov 2020 17:09:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=2XKHZA23lqGXukkdu35/JyFEQPF6UYXMzYhhKw2rxGo=; b=r/JRUTiK+47+y4OahAiRa1G+rapmvoJnFlgICYHcCVQHBVlYOgRE4uKBJmo5zoKszn A5MlSiFBvleYXeWKkAqWUACMFq3LYbD6dvreXvgti4VOyZBnbxnqEdRGQFAPDGDgmDSb UO7qdzFY2tnWHHXV9fBxEhQukAs5Xj36hJrH0261XPve/zoi1Rp0szsEcjEgyMpDd07N UdGoxcQQiEhZzuBIdVt3M/SbhzU4xoI5wvUQGRKyBDZaVCZwgcWCGBMiOr81UWOL36zj mh+tH5FVBWwE36hWwe3r+2bVm+xeqhm27Ag4rdl1N87aDt3lwI9TpCIxE4kflW7SRluo obkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=2XKHZA23lqGXukkdu35/JyFEQPF6UYXMzYhhKw2rxGo=; b=NPvCTXds/ZTsdLwbx5E6XCYpDswYogoO5UUda7fl52bz9P5f+KpqLf13rfbUEVMYL8 5uOH2N/KW92fGSAjFZa1z/UZiUQaJkqgwiS8GUgi9u/wOcK07fPKEIQ+N923Lau+DIbX Y06lFY1aGdFG4Ddg2tnWrWfedSUxiqgxMKqWAFTkByGPUabwSVJJnGHyoKTi4/6Yd9aP B1zamVfhgC6ZN2PgKrcTO12U5Rd6Pw+UERIyQb82TqJoUGOPvA8cna2P7PBd5fR8fFEE Frv16WvbedKIVRypU4+qBKu0xFKy8f6v8oz7rJosy2iN0iogtOTrMcqb7xAQUdbZTKe9 J2nw== X-Gm-Message-State: AOAM5307cc8NKNSH5gaVID6np2Lka+YXg5fF58eu7Lrin7/3HyJXwn9s Ydc8grWfoOsVirCDX+MYKBo= X-Received: by 2002:a37:a010:: with SMTP id j16mr10662108qke.347.1604970554741; Mon, 09 Nov 2020 17:09:14 -0800 (PST) Received: from ubuntu-m3-large-x86 ([2604:1380:45f1:1d00::1]) by smtp.gmail.com with ESMTPSA id m25sm1816324qka.107.2020.11.09.17.09.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Nov 2020 17:09:14 -0800 (PST) Date: Mon, 9 Nov 2020 18:09:12 -0700 From: Nathan Chancellor To: Randy Dunlap Cc: linux-kernel@vger.kernel.org, "Rafael J. Wysocki" , Len Brown , Pavel Machek , linux-pm@vger.kernel.org, Michael Turquette , Stephen Boyd , linux-clk@vger.kernel.org, Taniya Das , linux-next@vger.kernel.org, Andrew Morton Subject: Re: [PATCH -next v2] clk: pm_clock: provide stubs for pm_clk_runtime_suspend/_resume Message-ID: <20201110010912.GA2018177@ubuntu-m3-large-x86> References: <20201109032115.10610-1-rdunlap@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20201109032115.10610-1-rdunlap@infradead.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Nov 08, 2020 at 07:21:15PM -0800, Randy Dunlap wrote: > Add stubs for pm_clk_runtime_suspend() and pm_clk_runtime_resume() > to fix build errors when CONFIG_PM and CONFIG_PM_CLK are not enabled. > > Fixes these build errors: > > ../drivers/clk/qcom/camcc-sc7180.c: In function ‘cam_cc_sc7180_probe’: > ../drivers/clk/qcom/camcc-sc7180.c:1672:8: error: implicit declaration of function ‘pm_clk_runtime_resume’; did you mean ‘pm_runtime_resume’? [-Werror=implicit-function-declaration] > ret = pm_clk_runtime_resume(&pdev->dev); > ^~~~~~~~~~~~~~~~~~~~~ > ../drivers/clk/qcom/camcc-sc7180.c:1681:3: error: implicit declaration of function ‘pm_clk_runtime_suspend’; did you mean ‘pm_runtime_suspend’? [-Werror=implicit-function-declaration] > pm_clk_runtime_suspend(&pdev->dev); > ^~~~~~~~~~~~~~~~~~~~~~ > > Fixes: 15d09e830bbc ("clk: qcom: camcc: Add camera clock controller driver for SC7180") > Signed-off-by: Randy Dunlap > Cc: "Rafael J. Wysocki" > Cc: Len Brown > Cc: Pavel Machek > Cc: linux-pm@vger.kernel.org > Cc: Michael Turquette > Cc: Stephen Boyd > Cc: linux-clk@vger.kernel.org > Cc: Taniya Das > Cc: linux-next@vger.kernel.org > Cc: Nathan Chancellor > Cc: Andrew Morton Build-tested-by: Nathan Chancellor Reviewed-by: Nathan Chancellor > --- > v2: move the function stubs to be inside the #else (for !CONFIG_PM) > as suggested by Nathan to fix another build error > > include/linux/pm_clock.h | 8 ++++++++ > 1 file changed, 8 insertions(+) > > --- linux-next-20201106.orig/include/linux/pm_clock.h > +++ linux-next-20201106/include/linux/pm_clock.h > @@ -27,6 +27,14 @@ extern int pm_clk_runtime_resume(struct > .runtime_resume = pm_clk_runtime_resume, > #else > #define USE_PM_CLK_RUNTIME_OPS > +static inline int pm_clk_runtime_suspend(struct device *dev) > +{ > + return 0; > +} > +static inline int pm_clk_runtime_resume(struct device *dev) > +{ > + return 0; > +} > #endif > > #ifdef CONFIG_PM_CLK