All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Conor Dooley <conor+lkp@kernel.org>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [conor:syscon-rework-2 10/11] drivers/clk/davinci/pll.c:241:46: error: 'clk_divider_ops' undeclared; did you mean 'divider_ops'?
Date: Sat, 7 Dec 2024 01:02:11 +0800	[thread overview]
Message-ID: <202412070033.SPZhLDpd-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/conor/linux.git syscon-rework-2
head:   42a4c7e62a39fecc74b811e4faae3e4d65417107
commit: 35904222355e971c24b3eb9b9fad3dd0c38d1393 [10/11] clk: divider, gate: trivially implement regmaps
config: arm-multi_v5_defconfig (https://download.01.org/0day-ci/archive/20241207/202412070033.SPZhLDpd-lkp@intel.com/config)
compiler: arm-linux-gnueabi-gcc (GCC) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241207/202412070033.SPZhLDpd-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202412070033.SPZhLDpd-lkp@intel.com/

All errors (new ones prefixed by >>):

   drivers/clk/davinci/pll.c: In function 'davinci_pll_div_register':
>> drivers/clk/davinci/pll.c:241:46: error: 'clk_divider_ops' undeclared (first use in this function); did you mean 'divider_ops'?
     241 |         const struct clk_ops *divider_ops = &clk_divider_ops;
         |                                              ^~~~~~~~~~~~~~~
         |                                              divider_ops
   drivers/clk/davinci/pll.c:241:46: note: each undeclared identifier is reported only once for each function it appears in
>> drivers/clk/davinci/pll.c:266:32: error: 'clk_divider_ro_ops' undeclared (first use in this function)
     266 |                 divider_ops = &clk_divider_ro_ops;
         |                                ^~~~~~~~~~~~~~~~~~
   drivers/clk/davinci/pll.c: In function 'davinci_pll_obsclk_register':
   drivers/clk/davinci/pll.c:618:53: error: 'clk_divider_ops' undeclared (first use in this function); did you mean 'clk_divider'?
     618 |                                      &divider->hw, &clk_divider_ops,
         |                                                     ^~~~~~~~~~~~~~~
         |                                                     clk_divider
   drivers/clk/davinci/pll.c: In function 'davinci_pll_sysclk_register':
   drivers/clk/davinci/pll.c:680:46: error: 'clk_divider_ops' undeclared (first use in this function); did you mean 'divider_ops'?
     680 |         const struct clk_ops *divider_ops = &clk_divider_ops;
         |                                              ^~~~~~~~~~~~~~~
         |                                              divider_ops
   drivers/clk/davinci/pll.c:714:32: error: 'clk_divider_ro_ops' undeclared (first use in this function)
     714 |                 divider_ops = &clk_divider_ro_ops;
         |                                ^~~~~~~~~~~~~~~~~~


vim +241 drivers/clk/davinci/pll.c

2d172691515961 David Lechner 2018-03-15  223  
2d172691515961 David Lechner 2018-03-15  224  /**
2d172691515961 David Lechner 2018-03-15  225   * davinci_pll_div_register - common *DIV clock implementation
76c9dd9dbd6459 David Lechner 2018-05-25  226   * @dev: The PLL platform device or NULL
2d172691515961 David Lechner 2018-03-15  227   * @name: the clock name
2d172691515961 David Lechner 2018-03-15  228   * @parent_name: the parent clock name
2d172691515961 David Lechner 2018-03-15  229   * @reg: the *DIV register
2d172691515961 David Lechner 2018-03-15  230   * @fixed: if true, the divider is a fixed value
2d172691515961 David Lechner 2018-03-15  231   * @flags: bitmap of CLK_* flags from clock-provider.h
2d172691515961 David Lechner 2018-03-15  232   */
2d172691515961 David Lechner 2018-03-15  233  static struct clk *davinci_pll_div_register(struct device *dev,
2d172691515961 David Lechner 2018-03-15  234  					    const char *name,
2d172691515961 David Lechner 2018-03-15  235  					    const char *parent_name,
2d172691515961 David Lechner 2018-03-15  236  					    void __iomem *reg,
2d172691515961 David Lechner 2018-03-15  237  					    bool fixed, u32 flags)
2d172691515961 David Lechner 2018-03-15  238  {
2d172691515961 David Lechner 2018-03-15  239  	const char * const *parent_names = parent_name ? &parent_name : NULL;
2d172691515961 David Lechner 2018-03-15  240  	int num_parents = parent_name ? 1 : 0;
2d172691515961 David Lechner 2018-03-15 @241  	const struct clk_ops *divider_ops = &clk_divider_ops;
2d172691515961 David Lechner 2018-03-15  242  	struct clk_gate *gate;
2d172691515961 David Lechner 2018-03-15  243  	struct clk_divider *divider;
76c9dd9dbd6459 David Lechner 2018-05-25  244  	struct clk *clk;
76c9dd9dbd6459 David Lechner 2018-05-25  245  	int ret;
2d172691515961 David Lechner 2018-03-15  246  
76c9dd9dbd6459 David Lechner 2018-05-25  247  	gate = kzalloc(sizeof(*gate), GFP_KERNEL);
2d172691515961 David Lechner 2018-03-15  248  	if (!gate)
2d172691515961 David Lechner 2018-03-15  249  		return ERR_PTR(-ENOMEM);
2d172691515961 David Lechner 2018-03-15  250  
2d172691515961 David Lechner 2018-03-15  251  	gate->reg = reg;
2d172691515961 David Lechner 2018-03-15  252  	gate->bit_idx = DIV_ENABLE_SHIFT;
2d172691515961 David Lechner 2018-03-15  253  
76c9dd9dbd6459 David Lechner 2018-05-25  254  	divider = kzalloc(sizeof(*divider), GFP_KERNEL);
76c9dd9dbd6459 David Lechner 2018-05-25  255  	if (!divider) {
76c9dd9dbd6459 David Lechner 2018-05-25  256  		ret = -ENOMEM;
76c9dd9dbd6459 David Lechner 2018-05-25  257  		goto err_free_gate;
76c9dd9dbd6459 David Lechner 2018-05-25  258  	}
2d172691515961 David Lechner 2018-03-15  259  
2d172691515961 David Lechner 2018-03-15  260  	divider->reg = reg;
2d172691515961 David Lechner 2018-03-15  261  	divider->shift = DIV_RATIO_SHIFT;
2d172691515961 David Lechner 2018-03-15  262  	divider->width = DIV_RATIO_WIDTH;
2d172691515961 David Lechner 2018-03-15  263  
2d172691515961 David Lechner 2018-03-15  264  	if (fixed) {
2d172691515961 David Lechner 2018-03-15  265  		divider->flags |= CLK_DIVIDER_READ_ONLY;
2d172691515961 David Lechner 2018-03-15 @266  		divider_ops = &clk_divider_ro_ops;
2d172691515961 David Lechner 2018-03-15  267  	}
2d172691515961 David Lechner 2018-03-15  268  
76c9dd9dbd6459 David Lechner 2018-05-25  269  	clk = clk_register_composite(dev, name, parent_names, num_parents,
2d172691515961 David Lechner 2018-03-15  270  				     NULL, NULL, &divider->hw, divider_ops,
2d172691515961 David Lechner 2018-03-15  271  				     &gate->hw, &clk_gate_ops, flags);
76c9dd9dbd6459 David Lechner 2018-05-25  272  	if (IS_ERR(clk)) {
76c9dd9dbd6459 David Lechner 2018-05-25  273  		ret = PTR_ERR(clk);
76c9dd9dbd6459 David Lechner 2018-05-25  274  		goto err_free_divider;
76c9dd9dbd6459 David Lechner 2018-05-25  275  	}
76c9dd9dbd6459 David Lechner 2018-05-25  276  
76c9dd9dbd6459 David Lechner 2018-05-25  277  	return clk;
76c9dd9dbd6459 David Lechner 2018-05-25  278  
76c9dd9dbd6459 David Lechner 2018-05-25  279  err_free_divider:
76c9dd9dbd6459 David Lechner 2018-05-25  280  	kfree(divider);
76c9dd9dbd6459 David Lechner 2018-05-25  281  err_free_gate:
76c9dd9dbd6459 David Lechner 2018-05-25  282  	kfree(gate);
76c9dd9dbd6459 David Lechner 2018-05-25  283  
76c9dd9dbd6459 David Lechner 2018-05-25  284  	return ERR_PTR(ret);
2d172691515961 David Lechner 2018-03-15  285  }
2d172691515961 David Lechner 2018-03-15  286  

:::::: The code at line 241 was first introduced by commit
:::::: 2d172691515961cad2abb4bf1b15d187bf2106cf clk: davinci: New driver for davinci PLL clocks

:::::: TO: David Lechner <david@lechnology.com>
:::::: CC: Stephen Boyd <sboyd@kernel.org>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

                 reply	other threads:[~2024-12-06 17:02 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=202412070033.SPZhLDpd-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=conor+lkp@kernel.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.