From patchwork Wed Mar 27 07:33:10 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= X-Patchwork-Id: 13605721 Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [185.203.201.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A76DD63BF for ; Wed, 27 Mar 2024 07:33:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.203.201.7 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711524820; cv=none; b=hFrIyB8wh1nZpcQb2VNBng9ETAzBCu4VTAoAZFNu7ET0VlpSSvkk2QWI8sDF7p8U4+/rij6Nj5nakKA9tFMP/BWuJL+G+rMB4CneQr43pvdsG+1d4QUAKPkVEnyPQ85vNus+H49ct+KMKqD5I5hAWQDQ9d+3oWl4aOU4Cr69qKk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711524820; c=relaxed/simple; bh=uoumoqKQqUyiOY+Ng8vrdUIak7rvCh/zc7q2HaEm42c=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=mm1og+7JwxLYUhttjkN4L0u24Vm/DCd4dubatk7+7WQpCJTQ5lWHYiiFs8246w5ODblfgJplDLp3iR1/nrr9A4hVWODClAdREby9Wdlpo9pDXyAOrd8stJddRWGXQNLj6Y1sAp+/N1Lqh2SrBBQpzRdS30Ubpf1MtKAlbAC34oQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de; spf=pass smtp.mailfrom=pengutronix.de; arc=none smtp.client-ip=185.203.201.7 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pengutronix.de Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rpNmk-0002G9-0c; Wed, 27 Mar 2024 08:33:22 +0100 Received: from [2a0a:edc0:0:900:1d::77] (helo=ptz.office.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rpNmi-008lQm-V6; Wed, 27 Mar 2024 08:33:20 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1rpNmi-00CGTR-2q; Wed, 27 Mar 2024 08:33:20 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Stephen Boyd Cc: "Russell King (Oracle)" , linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, oe-kbuild-all@lists.linux.dev, kernel test robot Subject: [PATCH] clk: Provide !COMMON_CLK dummy for devm_clk_rate_exclusive_get() Date: Wed, 27 Mar 2024 08:33:10 +0100 Message-ID: <20240327073310.520950-2-u.kleine-koenig@pengutronix.de> X-Mailer: git-send-email 2.43.0 In-Reply-To: <202403270305.ydvX9xq1-lkp@intel.com> References: <202403270305.ydvX9xq1-lkp@intel.com> Precedence: bulk X-Mailing-List: linux-clk@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1082; i=u.kleine-koenig@pengutronix.de; h=from:subject; bh=uoumoqKQqUyiOY+Ng8vrdUIak7rvCh/zc7q2HaEm42c=; b=owEBbQGS/pANAwAKAY+A+1h9Ev5OAcsmYgBmA8u229hyJ+VZupW+Wqz6Kt09ZniAFiJKYE7tO tJHAz9zMGGJATMEAAEKAB0WIQQ/gaxpOnoeWYmt/tOPgPtYfRL+TgUCZgPLtgAKCRCPgPtYfRL+ TmyrB/9CIWuBmGV0INTpNhI5M1a+p6YFNukW/EFxLvDNmgoxSvmh+YnlSbcuFMbHkw7Wpt3zGF8 5bbNZ4TWafQWfhTYa7J7DBuzGolbJv+/NdIyvA5TkV9UYo2t+WHOOSLqwF6FF9L/eOB0e9bV8SO OREgEK3zwKqQQxV51uozyWa2jwKN5wZmgRJBxE1og6/IQFHwiHDaqk/zW+arBWKh9PFtlM+6bcO qMdYeKH5qrdr1kMZ1a75Y4ah8FSGVMxaRbjze5bVlT8tEQAgnZXiTcN1N3bdP8ucmIX7zJpu0+K LaHu2fB4KLc244zcCy16mu+Tyrbzq4VToTqz7vwNgJ5l7cke X-Developer-Key: i=u.kleine-koenig@pengutronix.de; a=openpgp; fpr=0D2511F322BFAB1C1580266BE2DCDD9132669BD6 X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-clk@vger.kernel.org To be able to compile drivers using devm_clk_rate_exclusive_get() also on platforms without the common clk framework, add a dummy implementation that does the same as clk_rate_exclusive_get() in that case (i.e. nothing). Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202403270305.ydvX9xq1-lkp@intel.com/ Fixes: b0cde62e4c54 ("clk: Add a devm variant of clk_rate_exclusive_get()") Signed-off-by: Uwe Kleine-König --- include/linux/clk.h | 5 +++++ 1 file changed, 5 insertions(+) base-commit: 4cece764965020c22cff7665b18a012006359095 diff --git a/include/linux/clk.h b/include/linux/clk.h index 00623f4de5e1..0fa56d672532 100644 --- a/include/linux/clk.h +++ b/include/linux/clk.h @@ -286,6 +286,11 @@ static inline int clk_rate_exclusive_get(struct clk *clk) return 0; } +static inline int devm_clk_rate_exclusive_get(struct device *dev, struct clk *clk) +{ + return 0; +} + static inline void clk_rate_exclusive_put(struct clk *clk) {} #endif