Subject: linux-next: build failure after merge of the devfreq tree

From: Stephen Rothwell <[email-masked]>
Date: Mon, 12 May 2025 12:09:03 +1000

Hi all,

After merging the devfreq tree, today's linux-next build (x86_64
allmodconfig) failed like this:

drivers/devfreq/sun8i-a33-mbus.c: In function 'sun8i_a33_mbus_probe':
drivers/devfreq/sun8i-a33-mbus.c:384:47: error: passing argument 1 of 'devm_clk_rate_exclusive_get' from incompatible pointer type [-Wincompatible-pointer-types]
  384 |         ret = devm_clk_rate_exclusive_get(priv->clk_mbus);
      |                                           ~~~~^~~~~~~~~~
      |                                               |
      |                                               struct clk *
In file included from drivers/devfreq/sun8i-a33-mbus.c:6:
include/linux/clk.h:214:48: note: expected 'struct device *' but argument is of type 'struct clk *'
  214 | int devm_clk_rate_exclusive_get(struct device *dev, struct clk *clk);
      |                                 ~~~~~~~~~~~~~~~^~~
drivers/devfreq/sun8i-a33-mbus.c:384:15: error: too few arguments to function 'devm_clk_rate_exclusive_get'
  384 |         ret = devm_clk_rate_exclusive_get(priv->clk_mbus);
      |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/clk.h:214:5: note: declared here
  214 | int devm_clk_rate_exclusive_get(struct device *dev, struct clk *clk);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~

Caused by commit

  bc253b28a365 ("PM / devfreq: sun8i-a33-mbus: Simplify by using more devm functions")

I have used the devfreq tree from next-20250509 for today.

-- 
Cheers,
Stephen Rothwell