[xilinx-xlnx:master 173/214] drivers/clk/clk-xlnx-clock-wizard.c:324:8: error: implicit declaration of function 'FIELD_PREP'
by kernel test robot
tree: https://github.com/Xilinx/linux-xlnx master
head: 6cb480b208248d57a9906d801469d7ea8292df52
commit: bf7387ee9a75c2a390b19f63c47076344e664b86 [173/214] clocking-wizard: Support higher frequency accuracy
config: i386-allyesconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://github.com/Xilinx/linux-xlnx/commit/bf7387ee9a75c2a390b19f63c4707...
git remote add xilinx-xlnx https://github.com/Xilinx/linux-xlnx
git fetch --no-tags xilinx-xlnx master
git checkout bf7387ee9a75c2a390b19f63c47076344e664b86
# save the attached .config to linux build tree
make W=1 ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
drivers/clk/clk-xlnx-clock-wizard.c: In function 'clk_wzrd_dynamic_all_nolock':
>> drivers/clk/clk-xlnx-clock-wizard.c:324:8: error: implicit declaration of function 'FIELD_PREP' [-Werror=implicit-function-declaration]
324 | reg = FIELD_PREP(WZRD_CLKOUT_DIVIDE_MASK, clockout0_div) |
| ^~~~~~~~~~
drivers/clk/clk-xlnx-clock-wizard.c: In function 'clk_wzrd_recalc_rate_all':
>> drivers/clk/clk-xlnx-clock-wizard.c:392:6: error: implicit declaration of function 'FIELD_GET' [-Werror=implicit-function-declaration]
392 | d = FIELD_GET(WZRD_DIVCLK_DIVIDE_MASK, reg);
| ^~~~~~~~~
cc1: some warnings being treated as errors
vim +/FIELD_PREP +324 drivers/clk/clk-xlnx-clock-wizard.c
301
302 static int clk_wzrd_dynamic_all_nolock(struct clk_hw *hw, unsigned long rate,
303 unsigned long parent_rate)
304 {
305 struct clk_wzrd_divider *divider = to_clk_wzrd_divider(hw);
306 u32 reg, pre;
307 u16 retries;
308 int err;
309 u64 vco_freq, rate_div, f, clockout0_div;
310
311 err = clk_wzrd_get_divisors(hw, rate, parent_rate);
312 if (err)
313 pr_err("failed to get divisors\n");
314
315 vco_freq = DIV_ROUND_CLOSEST((parent_rate * divider->valuem), divider->valued);
316 rate_div = DIV_ROUND_CLOSEST((vco_freq * WZRD_FRAC_POINTS), rate);
317
318 clockout0_div = rate_div / WZRD_FRAC_POINTS;
319
320 pre = DIV_ROUND_CLOSEST((vco_freq * WZRD_FRAC_POINTS), rate);
321 f = (u32)(pre - (clockout0_div * WZRD_FRAC_POINTS));
322 f = f & WZRD_CLKOUT_FRAC_MASK;
323
> 324 reg = FIELD_PREP(WZRD_CLKOUT_DIVIDE_MASK, clockout0_div) |
325 FIELD_PREP(WZRD_CLKOUT0_FRAC_MASK, f);
326
327 writel(reg, divider->base + WZRD_CLK_CFG_REG(2));
328 /* Set divisor and clear phase offset */
329 reg = FIELD_PREP(WZRD_CLKFBOUT_MULT_MASK, divider->valuem) |
330 FIELD_PREP(WZRD_DIVCLK_DIVIDE_MASK, divider->valued);
331 writel(reg, divider->base + WZRD_CLK_CFG_REG(0));
332 writel(divider->valueo, divider->base + WZRD_CLK_CFG_REG(2));
333 writel(0, divider->base + WZRD_CLK_CFG_REG(3));
334 /* Check status register */
335 retries = WZRD_DR_NUM_RETRIES;
336 while (retries--) {
337 if (readl(divider->base + WZRD_DR_STATUS_REG_OFFSET) &
338 WZRD_DR_LOCK_BIT_MASK)
339 break;
340 }
341
342 if (!retries)
343 return -ETIMEDOUT;
344
345 /* Initiate reconfiguration */
346 writel(WZRD_DR_BEGIN_DYNA_RECONF,
347 divider->base + WZRD_DR_INIT_REG_OFFSET);
348
349 /* Check status register */
350 retries = WZRD_DR_NUM_RETRIES;
351 while (retries--) {
352 if (readl(divider->base + WZRD_DR_STATUS_REG_OFFSET) &
353 WZRD_DR_LOCK_BIT_MASK)
354 break;
355 }
356
357 if (!retries)
358 return -ETIMEDOUT;
359
360 return 0;
361 }
362
363 static int clk_wzrd_dynamic_all(struct clk_hw *hw, unsigned long rate,
364 unsigned long parent_rate)
365 {
366 struct clk_wzrd_divider *divider = to_clk_wzrd_divider(hw);
367 unsigned long flags = 0;
368 int ret;
369
370 if (divider->lock)
371 spin_lock_irqsave(divider->lock, flags);
372 else
373 __acquire(divider->lock);
374
375 ret = clk_wzrd_dynamic_all_nolock(hw, rate, parent_rate);
376
377 if (divider->lock)
378 spin_unlock_irqrestore(divider->lock, flags);
379 else
380 __release(divider->lock);
381
382 return ret;
383 }
384
385 static unsigned long clk_wzrd_recalc_rate_all(struct clk_hw *hw,
386 unsigned long parent_rate)
387 {
388 struct clk_wzrd_divider *divider = to_clk_wzrd_divider(hw);
389 u32 m, d, o, div, reg, f;
390
391 reg = readl(divider->base + WZRD_CLK_CFG_REG(0));
> 392 d = FIELD_GET(WZRD_DIVCLK_DIVIDE_MASK, reg);
393 m = FIELD_GET(WZRD_CLKFBOUT_MULT_MASK, reg);
394 reg = readl(divider->base + WZRD_CLK_CFG_REG(2));
395 o = FIELD_GET(WZRD_DIVCLK_DIVIDE_MASK, reg);
396 f = FIELD_GET(WZRD_CLKOUT0_FRAC_MASK, reg);
397
398 div = DIV_ROUND_CLOSEST(d * (WZRD_FRAC_POINTS * o + f), WZRD_FRAC_POINTS);
399 return divider_recalc_rate(hw, parent_rate * m, div, divider->table,
400 divider->flags, divider->width);
401 }
402
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
6 months, 3 weeks
[xilinx-xlnx:master 156/214] drivers/usb/dwc3/dwc3-xilinx.c:509:6: warning: no previous prototype for 'dwc3_xilinx_wakeup_capable'
by kernel test robot
tree: https://github.com/Xilinx/linux-xlnx master
head: 6cb480b208248d57a9906d801469d7ea8292df52
commit: 6e383f53627b34b9aa1f149720de25f55b199d37 [156/214] usb: dwc3: Added remote wake-up in xilinx glue driver
config: arm64-allyesconfig (attached as .config)
compiler: aarch64-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://github.com/Xilinx/linux-xlnx/commit/6e383f53627b34b9aa1f149720de2...
git remote add xilinx-xlnx https://github.com/Xilinx/linux-xlnx
git fetch --no-tags xilinx-xlnx master
git checkout 6e383f53627b34b9aa1f149720de25f55b199d37
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=arm64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
>> drivers/usb/dwc3/dwc3-xilinx.c:509:6: warning: no previous prototype for 'dwc3_xilinx_wakeup_capable' [-Wmissing-prototypes]
509 | void dwc3_xilinx_wakeup_capable(struct device *dev, bool wakeup)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
vim +/dwc3_xilinx_wakeup_capable +509 drivers/usb/dwc3/dwc3-xilinx.c
507
508 /* xilinx feature support functions */
> 509 void dwc3_xilinx_wakeup_capable(struct device *dev, bool wakeup)
510 {
511 struct device_node *node = of_node_get(dev->parent->of_node);
512
513 /* check for valid parent node */
514 while (node) {
515 if (of_device_is_compatible(node, "xlnx,zynqmp-dwc3") ||
516 of_device_is_compatible(node, "xlnx,versal-dwc3"))
517 break;
518
519 /* get the next parent node */
520 node = of_get_next_parent(node);
521 }
522
523 if (node) {
524 struct platform_device *pdev_parent;
525 struct dwc3_xlnx *priv_data;
526
527 pdev_parent = of_find_device_by_node(node);
528 priv_data = platform_get_drvdata(pdev_parent);
529
530 /* Set wakeup capable as true or false */
531 priv_data->wakeup_capable = wakeup;
532
533 /* Allow D3 state if wakeup capable only */
534 priv_data->enable_d3_suspend = wakeup;
535 }
536 }
537
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
6 months, 3 weeks
[freescale-fslc:pr/485 9402/15145] sound/soc/sof/intel/byt.c:613:27: error: 'intel_ipc_msg_data' undeclared here (not in a function); did you mean 'sof_ipc_msg_data'?
by kernel test robot
tree: https://github.com/Freescale/linux-fslc pr/485
head: 3ff8c24dfb1fc13343e3e0bc54344b213b5a618b
commit: f628121dfa77c1af3991c7d0fc91961da65a89bc [9402/15145] LF-3774-1 ASoC: sof: Make Intel IPC stream ops generic
config: alpha-allyesconfig (attached as .config)
compiler: alpha-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://github.com/Freescale/linux-fslc/commit/f628121dfa77c1af3991c7d0fc...
git remote add freescale-fslc https://github.com/Freescale/linux-fslc
git fetch --no-tags freescale-fslc pr/485
git checkout f628121dfa77c1af3991c7d0fc91961da65a89bc
# 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=alpha SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
>> sound/soc/sof/intel/byt.c:613:27: error: 'intel_ipc_msg_data' undeclared here (not in a function); did you mean 'sof_ipc_msg_data'?
613 | .ipc_msg_data = intel_ipc_msg_data,
| ^~~~~~~~~~~~~~~~~~
| sof_ipc_msg_data
>> sound/soc/sof/intel/byt.c:614:27: error: 'intel_ipc_pcm_params' undeclared here (not in a function); did you mean 'sof_ipc_pcm_params'?
614 | .ipc_pcm_params = intel_ipc_pcm_params,
| ^~~~~~~~~~~~~~~~~~~~
| sof_ipc_pcm_params
>> sound/soc/sof/intel/byt.c:628:27: error: 'intel_pcm_open' undeclared here (not in a function)
628 | .pcm_open = intel_pcm_open,
| ^~~~~~~~~~~~~~
>> sound/soc/sof/intel/byt.c:629:27: error: 'intel_pcm_close' undeclared here (not in a function)
629 | .pcm_close = intel_pcm_close,
| ^~~~~~~~~~~~~~~
vim +613 sound/soc/sof/intel/byt.c
9e42c5ca4a276a Liam Girdwood 2019-04-12 584
9e42c5ca4a276a Liam Girdwood 2019-04-12 585 const struct snd_sof_dsp_ops sof_tng_ops = {
9e42c5ca4a276a Liam Girdwood 2019-04-12 586 /* device init */
9e42c5ca4a276a Liam Girdwood 2019-04-12 587 .probe = tangier_pci_probe,
9e42c5ca4a276a Liam Girdwood 2019-04-12 588
9e42c5ca4a276a Liam Girdwood 2019-04-12 589 /* DSP core boot / reset */
9e42c5ca4a276a Liam Girdwood 2019-04-12 590 .run = byt_run,
9e42c5ca4a276a Liam Girdwood 2019-04-12 591 .reset = byt_reset,
9e42c5ca4a276a Liam Girdwood 2019-04-12 592
9e42c5ca4a276a Liam Girdwood 2019-04-12 593 /* Register IO */
9e42c5ca4a276a Liam Girdwood 2019-04-12 594 .write = sof_io_write,
9e42c5ca4a276a Liam Girdwood 2019-04-12 595 .read = sof_io_read,
9e42c5ca4a276a Liam Girdwood 2019-04-12 596 .write64 = sof_io_write64,
9e42c5ca4a276a Liam Girdwood 2019-04-12 597 .read64 = sof_io_read64,
9e42c5ca4a276a Liam Girdwood 2019-04-12 598
9e42c5ca4a276a Liam Girdwood 2019-04-12 599 /* Block IO */
9e42c5ca4a276a Liam Girdwood 2019-04-12 600 .block_read = sof_block_read,
9e42c5ca4a276a Liam Girdwood 2019-04-12 601 .block_write = sof_block_write,
9e42c5ca4a276a Liam Girdwood 2019-04-12 602
9e42c5ca4a276a Liam Girdwood 2019-04-12 603 /* doorbell */
9e42c5ca4a276a Liam Girdwood 2019-04-12 604 .irq_handler = byt_irq_handler,
9e42c5ca4a276a Liam Girdwood 2019-04-12 605 .irq_thread = byt_irq_thread,
9e42c5ca4a276a Liam Girdwood 2019-04-12 606
9e42c5ca4a276a Liam Girdwood 2019-04-12 607 /* ipc */
9e42c5ca4a276a Liam Girdwood 2019-04-12 608 .send_msg = byt_send_msg,
83ee7ab1627b75 Daniel Baluta 2019-08-07 609 .fw_ready = sof_fw_ready,
83ee7ab1627b75 Daniel Baluta 2019-08-07 610 .get_mailbox_offset = byt_get_mailbox_offset,
83ee7ab1627b75 Daniel Baluta 2019-08-07 611 .get_window_offset = byt_get_window_offset,
9e42c5ca4a276a Liam Girdwood 2019-04-12 612
9e42c5ca4a276a Liam Girdwood 2019-04-12 @613 .ipc_msg_data = intel_ipc_msg_data,
9e42c5ca4a276a Liam Girdwood 2019-04-12 @614 .ipc_pcm_params = intel_ipc_pcm_params,
9e42c5ca4a276a Liam Girdwood 2019-04-12 615
285880a23d105e Daniel Baluta 2019-12-04 616 /* machine driver */
285880a23d105e Daniel Baluta 2019-12-04 617 .machine_select = byt_machine_select,
285880a23d105e Daniel Baluta 2019-12-04 618 .machine_register = sof_machine_register,
285880a23d105e Daniel Baluta 2019-12-04 619 .machine_unregister = sof_machine_unregister,
285880a23d105e Daniel Baluta 2019-12-04 620 .set_mach_params = byt_set_mach_params,
285880a23d105e Daniel Baluta 2019-12-04 621
9e42c5ca4a276a Liam Girdwood 2019-04-12 622 /* debug */
9e42c5ca4a276a Liam Girdwood 2019-04-12 623 .debug_map = byt_debugfs,
9e42c5ca4a276a Liam Girdwood 2019-04-12 624 .debug_map_count = ARRAY_SIZE(byt_debugfs),
9e42c5ca4a276a Liam Girdwood 2019-04-12 625 .dbg_dump = byt_dump,
9e42c5ca4a276a Liam Girdwood 2019-04-12 626
9e42c5ca4a276a Liam Girdwood 2019-04-12 627 /* stream callbacks */
9e42c5ca4a276a Liam Girdwood 2019-04-12 @628 .pcm_open = intel_pcm_open,
9e42c5ca4a276a Liam Girdwood 2019-04-12 @629 .pcm_close = intel_pcm_close,
9e42c5ca4a276a Liam Girdwood 2019-04-12 630
9e42c5ca4a276a Liam Girdwood 2019-04-12 631 /* module loading */
9e42c5ca4a276a Liam Girdwood 2019-04-12 632 .load_module = snd_sof_parse_module_memcpy,
9e42c5ca4a276a Liam Girdwood 2019-04-12 633
9e42c5ca4a276a Liam Girdwood 2019-04-12 634 /*Firmware loading */
9e42c5ca4a276a Liam Girdwood 2019-04-12 635 .load_firmware = snd_sof_load_firmware_memcpy,
9e42c5ca4a276a Liam Girdwood 2019-04-12 636
9e42c5ca4a276a Liam Girdwood 2019-04-12 637 /* DAI drivers */
9e42c5ca4a276a Liam Girdwood 2019-04-12 638 .drv = byt_dai,
9e42c5ca4a276a Liam Girdwood 2019-04-12 639 .num_drv = 3, /* we have only 3 SSPs on byt*/
27e322fabd508b Pierre-Louis Bossart 2019-10-24 640
27e322fabd508b Pierre-Louis Bossart 2019-10-24 641 /* ALSA HW info flags */
27e322fabd508b Pierre-Louis Bossart 2019-10-24 642 .hw_info = SNDRV_PCM_INFO_MMAP |
27e322fabd508b Pierre-Louis Bossart 2019-10-24 643 SNDRV_PCM_INFO_MMAP_VALID |
27e322fabd508b Pierre-Louis Bossart 2019-10-24 644 SNDRV_PCM_INFO_INTERLEAVED |
27e322fabd508b Pierre-Louis Bossart 2019-10-24 645 SNDRV_PCM_INFO_PAUSE |
4c02a7bd43e22f Pierre-Louis Bossart 2019-10-24 646 SNDRV_PCM_INFO_BATCH,
0f501c7cde4086 Pierre-Louis Bossart 2019-12-17 647
0f501c7cde4086 Pierre-Louis Bossart 2019-12-17 648 .arch_ops = &sof_xtensa_arch_ops,
9e42c5ca4a276a Liam Girdwood 2019-04-12 649 };
e42b19450866fb Pierre-Louis Bossart 2019-12-17 650 EXPORT_SYMBOL_NS(sof_tng_ops, SND_SOC_SOF_MERRIFIELD);
9e42c5ca4a276a Liam Girdwood 2019-04-12 651
:::::: The code at line 613 was first introduced by commit
:::::: 9e42c5ca4a276a668b11116704f5f0d66ab80608 ASoC: SOF: Intel: Add BYT, CHT and BSW DSP HW support.
:::::: TO: Liam Girdwood <liam.r.girdwood(a)linux.intel.com>
:::::: CC: Mark Brown <broonie(a)kernel.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
6 months, 3 weeks
[dhowells-fs:fscache-rewrite-indexing-2 61/64] fs/cifs/fscache.h:103:38: error: redefinition of 'cifs_inode_cookie'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git fscache-rewrite-indexing-2
head: 90bb44e5d6dcd202b7443fbe2dd1f71cd408b942
commit: caf16b68f740181a5d93053818bc5a27cd51b2c7 [61/64] cifs: Support fscache indexing rewrite (untested)
config: x86_64-randconfig-c007-20211031 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 82ed106567063ea269c6d5669278b733e173a42f)
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/dhowells/linux-fs.git/com...
git remote add dhowells-fs https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git
git fetch --no-tags dhowells-fs fscache-rewrite-indexing-2
git checkout caf16b68f740181a5d93053818bc5a27cd51b2c7
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash fs/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from fs/cifs/cifsfs.c:40:
>> fs/cifs/fscache.h:103:38: error: redefinition of 'cifs_inode_cookie'
static inline struct fscache_cookie *cifs_inode_cookie(struct inode *inode)
^
fs/cifs/fscache.h:93:38: note: previous definition is here
static inline struct fscache_cookie *cifs_inode_cookie(struct inode *inode) { return NULL; }
^
>> fs/cifs/cifsfs.c:401:42: error: too many arguments to function call, expected single argument 'inode', have 2 arguments
cifs_fscache_unuse_inode_cookie(inode, true);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~
fs/cifs/fscache.h:92:20: note: 'cifs_fscache_unuse_inode_cookie' declared here
static inline void cifs_fscache_unuse_inode_cookie(struct inode *inode) {}
^
2 errors generated.
--
In file included from fs/cifs/cifssmb.c:33:
>> fs/cifs/fscache.h:103:38: error: redefinition of 'cifs_inode_cookie'
static inline struct fscache_cookie *cifs_inode_cookie(struct inode *inode)
^
fs/cifs/fscache.h:93:38: note: previous definition is here
static inline struct fscache_cookie *cifs_inode_cookie(struct inode *inode) { return NULL; }
^
1 error generated.
--
In file included from fs/cifs/file.c:32:
>> fs/cifs/fscache.h:103:38: error: redefinition of 'cifs_inode_cookie'
static inline struct fscache_cookie *cifs_inode_cookie(struct inode *inode)
^
fs/cifs/fscache.h:93:38: note: previous definition is here
static inline struct fscache_cookie *cifs_inode_cookie(struct inode *inode) { return NULL; }
^
>> fs/cifs/file.c:641:37: error: variable has incomplete type 'struct cifs_fscache_inode_auxdata'
struct cifs_fscache_inode_auxdata auxdata;
^
fs/cifs/file.c:641:10: note: forward declaration of 'struct cifs_fscache_inode_auxdata'
struct cifs_fscache_inode_auxdata auxdata;
^
>> fs/cifs/file.c:642:3: error: implicit declaration of function 'cifs_fscache_fill_auxdata' [-Werror,-Wimplicit-function-declaration]
cifs_fscache_fill_auxdata(file_inode(file), &auxdata);
^
>> fs/cifs/file.c:890:41: error: too many arguments to function call, expected single argument 'inode', have 2 arguments
cifs_fscache_unuse_inode_cookie(inode, file->f_mode & FMODE_WRITE);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~
fs/cifs/fscache.h:92:20: note: 'cifs_fscache_unuse_inode_cookie' declared here
static inline void cifs_fscache_unuse_inode_cookie(struct inode *inode) {}
^
4 errors generated.
--
In file included from fs/cifs/inode.c:25:
>> fs/cifs/fscache.h:103:38: error: redefinition of 'cifs_inode_cookie'
static inline struct fscache_cookie *cifs_inode_cookie(struct inode *inode)
^
fs/cifs/fscache.h:93:38: note: previous definition is here
static inline struct fscache_cookie *cifs_inode_cookie(struct inode *inode) { return NULL; }
^
>> fs/cifs/inode.c:2263:36: error: variable has incomplete type 'struct cifs_fscache_inode_auxdata'
struct cifs_fscache_inode_auxdata auxdata;
^
fs/cifs/inode.c:2263:9: note: forward declaration of 'struct cifs_fscache_inode_auxdata'
struct cifs_fscache_inode_auxdata auxdata;
^
>> fs/cifs/inode.c:2274:2: error: implicit declaration of function 'cifs_fscache_fill_auxdata' [-Werror,-Wimplicit-function-declaration]
cifs_fscache_fill_auxdata(&cifsi->vfs_inode, &auxdata);
^
3 errors generated.
vim +/cifs_inode_cookie +103 fs/cifs/fscache.h
56698236e129484 Suresh Jayaraman 2010-07-05 100
9dc06558c223bbc Suresh Jayaraman 2010-07-05 101 static inline void cifs_readpage_to_fscache(struct inode *inode,
9dc06558c223bbc Suresh Jayaraman 2010-07-05 102 struct page *page) {}
d53048a45b2865f David Howells 2021-09-14 @103 static inline struct fscache_cookie *cifs_inode_cookie(struct inode *inode)
d53048a45b2865f David Howells 2021-09-14 104 { return NULL; }
54afa99057ee2ff David Howells 2013-09-04 105
:::::: The code at line 103 was first introduced by commit
:::::: d53048a45b2865f95be9d02feaf04a9fd55d8d93 cifs: (untested) Move to using the alternate fallback fscache I/O API
:::::: TO: David Howells <dhowells(a)redhat.com>
:::::: CC: David Howells <dhowells(a)redhat.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
6 months, 3 weeks
[xilinx-xlnx:master 173/214] drivers/clk/clk-xlnx-clock-wizard.c:324:8: error: implicit declaration of function 'FIELD_PREP'
by kernel test robot
tree: https://github.com/Xilinx/linux-xlnx master
head: 6cb480b208248d57a9906d801469d7ea8292df52
commit: bf7387ee9a75c2a390b19f63c47076344e664b86 [173/214] clocking-wizard: Support higher frequency accuracy
config: i386-randconfig-a015-20211031 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 82ed106567063ea269c6d5669278b733e173a42f)
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://github.com/Xilinx/linux-xlnx/commit/bf7387ee9a75c2a390b19f63c4707...
git remote add xilinx-xlnx https://github.com/Xilinx/linux-xlnx
git fetch --no-tags xilinx-xlnx master
git checkout bf7387ee9a75c2a390b19f63c47076344e664b86
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
>> drivers/clk/clk-xlnx-clock-wizard.c:324:8: error: implicit declaration of function 'FIELD_PREP' [-Werror,-Wimplicit-function-declaration]
reg = FIELD_PREP(WZRD_CLKOUT_DIVIDE_MASK, clockout0_div) |
^
>> drivers/clk/clk-xlnx-clock-wizard.c:392:6: error: implicit declaration of function 'FIELD_GET' [-Werror,-Wimplicit-function-declaration]
d = FIELD_GET(WZRD_DIVCLK_DIVIDE_MASK, reg);
^
2 errors generated.
vim +/FIELD_PREP +324 drivers/clk/clk-xlnx-clock-wizard.c
301
302 static int clk_wzrd_dynamic_all_nolock(struct clk_hw *hw, unsigned long rate,
303 unsigned long parent_rate)
304 {
305 struct clk_wzrd_divider *divider = to_clk_wzrd_divider(hw);
306 u32 reg, pre;
307 u16 retries;
308 int err;
309 u64 vco_freq, rate_div, f, clockout0_div;
310
311 err = clk_wzrd_get_divisors(hw, rate, parent_rate);
312 if (err)
313 pr_err("failed to get divisors\n");
314
315 vco_freq = DIV_ROUND_CLOSEST((parent_rate * divider->valuem), divider->valued);
316 rate_div = DIV_ROUND_CLOSEST((vco_freq * WZRD_FRAC_POINTS), rate);
317
318 clockout0_div = rate_div / WZRD_FRAC_POINTS;
319
320 pre = DIV_ROUND_CLOSEST((vco_freq * WZRD_FRAC_POINTS), rate);
321 f = (u32)(pre - (clockout0_div * WZRD_FRAC_POINTS));
322 f = f & WZRD_CLKOUT_FRAC_MASK;
323
> 324 reg = FIELD_PREP(WZRD_CLKOUT_DIVIDE_MASK, clockout0_div) |
325 FIELD_PREP(WZRD_CLKOUT0_FRAC_MASK, f);
326
327 writel(reg, divider->base + WZRD_CLK_CFG_REG(2));
328 /* Set divisor and clear phase offset */
329 reg = FIELD_PREP(WZRD_CLKFBOUT_MULT_MASK, divider->valuem) |
330 FIELD_PREP(WZRD_DIVCLK_DIVIDE_MASK, divider->valued);
331 writel(reg, divider->base + WZRD_CLK_CFG_REG(0));
332 writel(divider->valueo, divider->base + WZRD_CLK_CFG_REG(2));
333 writel(0, divider->base + WZRD_CLK_CFG_REG(3));
334 /* Check status register */
335 retries = WZRD_DR_NUM_RETRIES;
336 while (retries--) {
337 if (readl(divider->base + WZRD_DR_STATUS_REG_OFFSET) &
338 WZRD_DR_LOCK_BIT_MASK)
339 break;
340 }
341
342 if (!retries)
343 return -ETIMEDOUT;
344
345 /* Initiate reconfiguration */
346 writel(WZRD_DR_BEGIN_DYNA_RECONF,
347 divider->base + WZRD_DR_INIT_REG_OFFSET);
348
349 /* Check status register */
350 retries = WZRD_DR_NUM_RETRIES;
351 while (retries--) {
352 if (readl(divider->base + WZRD_DR_STATUS_REG_OFFSET) &
353 WZRD_DR_LOCK_BIT_MASK)
354 break;
355 }
356
357 if (!retries)
358 return -ETIMEDOUT;
359
360 return 0;
361 }
362
363 static int clk_wzrd_dynamic_all(struct clk_hw *hw, unsigned long rate,
364 unsigned long parent_rate)
365 {
366 struct clk_wzrd_divider *divider = to_clk_wzrd_divider(hw);
367 unsigned long flags = 0;
368 int ret;
369
370 if (divider->lock)
371 spin_lock_irqsave(divider->lock, flags);
372 else
373 __acquire(divider->lock);
374
375 ret = clk_wzrd_dynamic_all_nolock(hw, rate, parent_rate);
376
377 if (divider->lock)
378 spin_unlock_irqrestore(divider->lock, flags);
379 else
380 __release(divider->lock);
381
382 return ret;
383 }
384
385 static unsigned long clk_wzrd_recalc_rate_all(struct clk_hw *hw,
386 unsigned long parent_rate)
387 {
388 struct clk_wzrd_divider *divider = to_clk_wzrd_divider(hw);
389 u32 m, d, o, div, reg, f;
390
391 reg = readl(divider->base + WZRD_CLK_CFG_REG(0));
> 392 d = FIELD_GET(WZRD_DIVCLK_DIVIDE_MASK, reg);
393 m = FIELD_GET(WZRD_CLKFBOUT_MULT_MASK, reg);
394 reg = readl(divider->base + WZRD_CLK_CFG_REG(2));
395 o = FIELD_GET(WZRD_DIVCLK_DIVIDE_MASK, reg);
396 f = FIELD_GET(WZRD_CLKOUT0_FRAC_MASK, reg);
397
398 div = DIV_ROUND_CLOSEST(d * (WZRD_FRAC_POINTS * o + f), WZRD_FRAC_POINTS);
399 return divider_recalc_rate(hw, parent_rate * m, div, divider->table,
400 divider->flags, divider->width);
401 }
402
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
6 months, 3 weeks