mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Samuel Holland <samuel@sholland.org>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
	Maxime Ripard <maxime@cerno.tech>
Subject: [sunxi:sunxi/clk-for-5.17 4/10] drivers/clk/sunxi-ng/ccu-suniv-f1c100s.c:532:46: error: 'pdev' undeclared
Date: Tue, 23 Nov 2021 15:34:12 +0800	[thread overview]
Message-ID: <202111231442.Mg1z9HFF-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/sunxi/linux.git sunxi/clk-for-5.17
head:   c81821db64a8957e8ff4ebd4cdda60243ab5c949
commit: 72928074833fef3290e89f00dc471c037bcebc0c [4/10] clk: sunxi-ng: Allow the CCU core to be built as a module
config: parisc-buildonly-randconfig-r005-20211123 (https://download.01.org/0day-ci/archive/20211123/202111231442.Mg1z9HFF-lkp@intel.com/config.gz)
compiler: hppa-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://git.kernel.org/pub/scm/linux/kernel/git/sunxi/linux.git/commit/?id=72928074833fef3290e89f00dc471c037bcebc0c
        git remote add sunxi https://git.kernel.org/pub/scm/linux/kernel/git/sunxi/linux.git
        git fetch --no-tags sunxi sunxi/clk-for-5.17
        git checkout 72928074833fef3290e89f00dc471c037bcebc0c
        # save the attached .config to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=parisc SHELL=/bin/bash drivers/clk/sunxi-ng/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   drivers/clk/sunxi-ng/ccu-suniv-f1c100s.c: In function 'suniv_f1c100s_ccu_setup':
>> drivers/clk/sunxi-ng/ccu-suniv-f1c100s.c:532:46: error: 'pdev' undeclared (first use in this function)
     532 |         reg = devm_platform_ioremap_resource(pdev, 0);
         |                                              ^~~~
   drivers/clk/sunxi-ng/ccu-suniv-f1c100s.c:532:46: note: each undeclared identifier is reported only once for each function it appears in
   drivers/clk/sunxi-ng/ccu-suniv-f1c100s.c:534:24: error: 'return' with a value, in function returning void [-Werror=return-type]
     534 |                 return PTR_ERR(reg);
         |                        ^~~~~~~~~~~~
   drivers/clk/sunxi-ng/ccu-suniv-f1c100s.c:526:20: note: declared here
     526 | static void __init suniv_f1c100s_ccu_setup(struct device_node *node)
         |                    ^~~~~~~~~~~~~~~~~~~~~~~
   drivers/clk/sunxi-ng/ccu-suniv-f1c100s.c:543:24: error: 'return' with a value, in function returning void [-Werror=return-type]
     543 |                 return ret;
         |                        ^~~
   drivers/clk/sunxi-ng/ccu-suniv-f1c100s.c:526:20: note: declared here
     526 | static void __init suniv_f1c100s_ccu_setup(struct device_node *node)
         |                    ^~~~~~~~~~~~~~~~~~~~~~~
   drivers/clk/sunxi-ng/ccu-suniv-f1c100s.c:552:16: error: 'return' with a value, in function returning void [-Werror=return-type]
     552 |         return 0;
         |                ^
   drivers/clk/sunxi-ng/ccu-suniv-f1c100s.c:526:20: note: declared here
     526 | static void __init suniv_f1c100s_ccu_setup(struct device_node *node)
         |                    ^~~~~~~~~~~~~~~~~~~~~~~
   drivers/clk/sunxi-ng/ccu-suniv-f1c100s.c: At top level:
>> drivers/clk/sunxi-ng/ccu-suniv-f1c100s.c:561:19: error: 'suniv_f1c100s_ccu_probe' undeclared here (not in a function); did you mean 'suniv_f1c100s_ccu_driver'?
     561 |         .probe  = suniv_f1c100s_ccu_probe,
         |                   ^~~~~~~~~~~~~~~~~~~~~~~
         |                   suniv_f1c100s_ccu_driver
   drivers/clk/sunxi-ng/ccu-suniv-f1c100s.c:526:20: warning: 'suniv_f1c100s_ccu_setup' defined but not used [-Wunused-function]
     526 | static void __init suniv_f1c100s_ccu_setup(struct device_node *node)
         |                    ^~~~~~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors


vim +/pdev +532 drivers/clk/sunxi-ng/ccu-suniv-f1c100s.c

0380126eb9afc4 Mesih Kilinc   2018-12-02  525  
0380126eb9afc4 Mesih Kilinc   2018-12-02  526  static void __init suniv_f1c100s_ccu_setup(struct device_node *node)
0380126eb9afc4 Mesih Kilinc   2018-12-02  527  {
0380126eb9afc4 Mesih Kilinc   2018-12-02  528  	void __iomem *reg;
72dc8e122383fc Samuel Holland 2021-11-18  529  	int ret;
0380126eb9afc4 Mesih Kilinc   2018-12-02  530  	u32 val;
0380126eb9afc4 Mesih Kilinc   2018-12-02  531  
72dc8e122383fc Samuel Holland 2021-11-18 @532  	reg = devm_platform_ioremap_resource(pdev, 0);
72dc8e122383fc Samuel Holland 2021-11-18  533  	if (IS_ERR(reg))
72dc8e122383fc Samuel Holland 2021-11-18  534  		return PTR_ERR(reg);
0380126eb9afc4 Mesih Kilinc   2018-12-02  535  
0380126eb9afc4 Mesih Kilinc   2018-12-02  536  	/* Force the PLL-Audio-1x divider to 4 */
0380126eb9afc4 Mesih Kilinc   2018-12-02  537  	val = readl(reg + SUNIV_PLL_AUDIO_REG);
0380126eb9afc4 Mesih Kilinc   2018-12-02  538  	val &= ~GENMASK(19, 16);
0380126eb9afc4 Mesih Kilinc   2018-12-02  539  	writel(val | (3 << 16), reg + SUNIV_PLL_AUDIO_REG);
0380126eb9afc4 Mesih Kilinc   2018-12-02  540  
72dc8e122383fc Samuel Holland 2021-11-18  541  	ret = devm_sunxi_ccu_probe(&pdev->dev, reg, &suniv_ccu_desc);
72dc8e122383fc Samuel Holland 2021-11-18  542  	if (ret)
72dc8e122383fc Samuel Holland 2021-11-18  543  		return ret;
0380126eb9afc4 Mesih Kilinc   2018-12-02  544  
0380126eb9afc4 Mesih Kilinc   2018-12-02  545  	/* Gate then ungate PLL CPU after any rate changes */
0380126eb9afc4 Mesih Kilinc   2018-12-02  546  	ccu_pll_notifier_register(&suniv_pll_cpu_nb);
0380126eb9afc4 Mesih Kilinc   2018-12-02  547  
0380126eb9afc4 Mesih Kilinc   2018-12-02  548  	/* Reparent CPU during PLL CPU rate changes */
0380126eb9afc4 Mesih Kilinc   2018-12-02  549  	ccu_mux_notifier_register(pll_cpu_clk.common.hw.clk,
0380126eb9afc4 Mesih Kilinc   2018-12-02  550  				  &suniv_cpu_nb);
72dc8e122383fc Samuel Holland 2021-11-18  551  
72dc8e122383fc Samuel Holland 2021-11-18 @552  	return 0;
0380126eb9afc4 Mesih Kilinc   2018-12-02  553  }
72dc8e122383fc Samuel Holland 2021-11-18  554  
72dc8e122383fc Samuel Holland 2021-11-18  555  static const struct of_device_id suniv_f1c100s_ccu_ids[] = {
72dc8e122383fc Samuel Holland 2021-11-18  556  	{ .compatible = "allwinner,suniv-f1c100s-ccu" },
72dc8e122383fc Samuel Holland 2021-11-18  557  	{ }
72dc8e122383fc Samuel Holland 2021-11-18  558  };
72dc8e122383fc Samuel Holland 2021-11-18  559  
72dc8e122383fc Samuel Holland 2021-11-18  560  static struct platform_driver suniv_f1c100s_ccu_driver = {
72dc8e122383fc Samuel Holland 2021-11-18 @561  	.probe	= suniv_f1c100s_ccu_probe,
72dc8e122383fc Samuel Holland 2021-11-18  562  	.driver	= {
72dc8e122383fc Samuel Holland 2021-11-18  563  		.name			= "suniv-f1c100s-ccu",
72dc8e122383fc Samuel Holland 2021-11-18  564  		.suppress_bind_attrs	= true,
72dc8e122383fc Samuel Holland 2021-11-18  565  		.of_match_table		= suniv_f1c100s_ccu_ids,
72dc8e122383fc Samuel Holland 2021-11-18  566  	},
72dc8e122383fc Samuel Holland 2021-11-18  567  };
72dc8e122383fc Samuel Holland 2021-11-18  568  module_platform_driver(suniv_f1c100s_ccu_driver);
72dc8e122383fc Samuel Holland 2021-11-18  569  

:::::: The code at line 532 was first introduced by commit
:::::: 72dc8e122383fcce2ef6d32e351ec0609bd7ca49 clk: sunxi-ng: Convert early providers to platform drivers

:::::: TO: Samuel Holland <samuel@sholland.org>
:::::: CC: Maxime Ripard <maxime@cerno.tech>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

                 reply	other threads:[~2021-11-23  7:34 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202111231442.Mg1z9HFF-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=maxime@cerno.tech \
    --cc=samuel@sholland.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®