[linux-chenxing:mstar_v5_14_rebase 25/352] drivers/pinctrl/mstar/pinctrl-msc313.c:1528:5: warning: no previous prototype for 'mstar_pin_config_get'
by kernel test robot
tree: git://github.com/linux-chenxing/linux.git mstar_v5_14_rebase
head: 651efd0e52f225e60faa8b30f9768021e2104d3c
commit: de4c18f97c2e8ca0f097a5f65857e25609151126 [25/352] pinctrl: mstar: msc313 pinctrl driver
config: arm-allyesconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 10.3.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/linux-chenxing/linux/commit/de4c18f97c2e8ca0f097a5f658...
git remote add linux-chenxing git://github.com/linux-chenxing/linux.git
git fetch --no-tags linux-chenxing mstar_v5_14_rebase
git checkout de4c18f97c2e8ca0f097a5f65857e25609151126
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross ARCH=arm
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/pinctrl/mstar/pinctrl-msc313.c:1528:5: warning: no previous prototype for 'mstar_pin_config_get' [-Wmissing-prototypes]
1528 | int mstar_pin_config_get(struct pinctrl_dev *pctldev,
| ^~~~~~~~~~~~~~~~~~~~
>> drivers/pinctrl/mstar/pinctrl-msc313.c:1537:5: warning: no previous prototype for 'mstar_pin_config_set' [-Wmissing-prototypes]
1537 | int mstar_pin_config_set(struct pinctrl_dev *pctldev,
| ^~~~~~~~~~~~~~~~~~~~
>> drivers/pinctrl/mstar/pinctrl-msc313.c:1550:5: warning: no previous prototype for 'mstar_pin_config_group_get' [-Wmissing-prototypes]
1550 | int mstar_pin_config_group_get(struct pinctrl_dev *pctldev,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/pinctrl/mstar/pinctrl-msc313.c:1557:5: warning: no previous prototype for 'mstar_pin_config_group_set' [-Wmissing-prototypes]
1557 | int mstar_pin_config_group_set(struct pinctrl_dev *pctldev,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
vim +/mstar_pin_config_get +1528 drivers/pinctrl/mstar/pinctrl-msc313.c
1527
> 1528 int mstar_pin_config_get(struct pinctrl_dev *pctldev,
1529 unsigned int pin,
1530 unsigned long *config)
1531 {
1532 struct msc313_pinctrl *pinctrl = pinctrl_dev_get_drvdata(pctldev);
1533
1534 return msc313_pinctrl_get_config(pinctrl, pin, config);
1535 }
1536
> 1537 int mstar_pin_config_set(struct pinctrl_dev *pctldev,
1538 unsigned int pin,
1539 unsigned long *configs,
1540 unsigned int num_configs)
1541 {
1542 int i;
1543 struct msc313_pinctrl *pinctrl = pinctrl_dev_get_drvdata(pctldev);
1544
1545 for (i = 0; i < num_configs; i++)
1546 mstar_set_config(pinctrl, pin, configs[i]);
1547 return 0;
1548 }
1549
> 1550 int mstar_pin_config_group_get(struct pinctrl_dev *pctldev,
1551 unsigned int selector,
1552 unsigned long *config)
1553 {
1554 return -ENOTSUPP;
1555 }
1556
> 1557 int mstar_pin_config_group_set(struct pinctrl_dev *pctldev,
1558 unsigned int selector,
1559 unsigned long *configs,
1560 unsigned int num_configs)
1561 {
1562 struct msc313_pinctrl *pinctrl = pinctrl_dev_get_drvdata(pctldev);
1563 struct group_desc *group = pinctrl_generic_get_group(pctldev, selector);
1564 int i, j, ret;
1565
1566 for (i = 0; i < group->num_pins; i++) {
1567 for (j = 0; j < num_configs; j++) {
1568 ret = mstar_set_config(pinctrl, group->pins[i], configs[j]);
1569 if (ret)
1570 return ret;
1571 }
1572 }
1573 return 0;
1574 }
1575
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 2 months
[android-goldfish:android-3.18 351/423] WARNING: net/built-in.o(.data+0x5370): Section mismatch in reference from the variable .L689 to the function .exit.text:x25_proc_exit()
by kernel test robot
tree: https://android.googlesource.com/kernel/goldfish android-3.18
head: 57d6a2ad5af7193a282c02b8d225b376ccb48d49
commit: e2a3e951711edc9bfb0897a350f34da97a57c535 [351/423] net/x25: prevent a couple of overflows
config: parisc-randconfig-c004-20210706 (attached as .config)
compiler: hppa64-linux-gcc (GCC) 5.5.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
git remote add android-goldfish https://android.googlesource.com/kernel/goldfish
git fetch --no-tags android-goldfish android-3.18
git checkout e2a3e951711edc9bfb0897a350f34da97a57c535
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-5.5.0 make.cross O=build_dir ARCH=parisc SHELL=/bin/bash
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 >>):
>> WARNING: net/built-in.o(.data+0x5370): Section mismatch in reference from the variable .L689 to the function .exit.text:x25_proc_exit()
The variable .L689 references
the function __exit x25_proc_exit()
If the reference is valid then annotate the
variable with (see linux/init.h) or name the variable:
--
>> WARNING: net/built-in.o(.data+0x5378): Section mismatch in reference from the variable .L691 to the function .exit.text:x25_link_free()
The variable .L691 references
the function __exit x25_link_free()
If the reference is valid then annotate the
variable with (see linux/init.h) or name the variable:
--
>> WARNING: net/built-in.o(.data+0x5380): Section mismatch in reference from the variable .L693 to the function .exit.text:x25_route_free()
The variable .L693 references
the function __exit x25_route_free()
If the reference is valid then annotate the
variable with (see linux/init.h) or name the variable:
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 2 months
[linux-chenxing:mstar_v5_14_rebase 85/352] or1k-linux-ld: clk-mstar-pll_common.c:undefined reference to `clk_register'
by kernel test robot
tree: git://github.com/linux-chenxing/linux.git mstar_v5_14_rebase
head: 651efd0e52f225e60faa8b30f9768021e2104d3c
commit: 78ccc706083df2c5a3abc63b37f3fb659047cd6b [85/352] pll common makefile
config: openrisc-buildonly-randconfig-r006-20210719 (attached as .config)
compiler: or1k-linux-gcc (GCC) 10.3.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/linux-chenxing/linux/commit/78ccc706083df2c5a3abc63b37...
git remote add linux-chenxing git://github.com/linux-chenxing/linux.git
git fetch --no-tags linux-chenxing mstar_v5_14_rebase
git checkout 78ccc706083df2c5a3abc63b37f3fb659047cd6b
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross O=build_dir ARCH=openrisc 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 >>):
or1k-linux-ld: drivers/clk/mstar/clk-mstar-pll_common.o: in function `mstar_pll_common_probe':
clk-mstar-pll_common.c:(.text+0xac): undefined reference to `of_clk_parent_fill'
clk-mstar-pll_common.c:(.text+0xac): relocation truncated to fit: R_OR1K_INSN_REL_26 against undefined symbol `of_clk_parent_fill'
>> or1k-linux-ld: clk-mstar-pll_common.c:(.text+0x30c): undefined reference to `clk_register'
clk-mstar-pll_common.c:(.text+0x30c): relocation truncated to fit: R_OR1K_INSN_REL_26 against undefined symbol `clk_register'
>> or1k-linux-ld: clk-mstar-pll_common.c:(.text+0x374): undefined reference to `of_clk_src_onecell_get'
or1k-linux-ld: clk-mstar-pll_common.c:(.text+0x378): undefined reference to `of_clk_src_onecell_get'
>> or1k-linux-ld: clk-mstar-pll_common.c:(.text+0x380): undefined reference to `of_clk_add_provider'
clk-mstar-pll_common.c:(.text+0x380): relocation truncated to fit: R_OR1K_INSN_REL_26 against undefined symbol `of_clk_add_provider'
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 2 months
[sashal-linux-stable:pending-5.4 20/142] drivers/scsi/device_handler/scsi_dh_alua.c:551 alua_rtpg() warn: unsigned 'retval' is never less than zero.
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git pending-5.4
head: 3e642124b47b335e4dcaf5e134fc3e865e5ec826
commit: b259d76fe4b3dd69bcb45ac9ab2b5b5dda0f1f78 [20/142] scsi: scsi_dh_alua: Check for negative result value
config: microblaze-randconfig-m031-20210719 (attached as .config)
compiler: microblaze-linux-gcc (GCC) 10.3.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
New smatch warnings:
drivers/scsi/device_handler/scsi_dh_alua.c:551 alua_rtpg() warn: unsigned 'retval' is never less than zero.
Old smatch warnings:
drivers/scsi/device_handler/scsi_dh_alua.c:556 alua_rtpg() warn: unsigned 'retval' is never less than zero.
vim +/retval +551 drivers/scsi/device_handler/scsi_dh_alua.c
496
497 /*
498 * alua_rtpg - Evaluate REPORT TARGET GROUP STATES
499 * @sdev: the device to be evaluated.
500 *
501 * Evaluate the Target Port Group State.
502 * Returns SCSI_DH_DEV_OFFLINED if the path is
503 * found to be unusable.
504 */
505 static int alua_rtpg(struct scsi_device *sdev, struct alua_port_group *pg)
506 {
507 struct scsi_sense_hdr sense_hdr;
508 struct alua_port_group *tmp_pg;
509 int len, k, off, bufflen = ALUA_RTPG_SIZE;
510 unsigned char *desc, *buff;
511 unsigned err, retval;
512 unsigned int tpg_desc_tbl_off;
513 unsigned char orig_transition_tmo;
514 unsigned long flags;
515 bool transitioning_sense = false;
516
517 if (!pg->expiry) {
518 unsigned long transition_tmo = ALUA_FAILOVER_TIMEOUT * HZ;
519
520 if (pg->transition_tmo)
521 transition_tmo = pg->transition_tmo * HZ;
522
523 pg->expiry = round_jiffies_up(jiffies + transition_tmo);
524 }
525
526 buff = kzalloc(bufflen, GFP_KERNEL);
527 if (!buff)
528 return SCSI_DH_DEV_TEMP_BUSY;
529
530 retry:
531 err = 0;
532 retval = submit_rtpg(sdev, buff, bufflen, &sense_hdr, pg->flags);
533
534 if (retval) {
535 /*
536 * Some (broken) implementations have a habit of returning
537 * an error during things like firmware update etc.
538 * But if the target only supports active/optimized there's
539 * not much we can do; it's not that we can switch paths
540 * or anything.
541 * So ignore any errors to avoid spurious failures during
542 * path failover.
543 */
544 if ((pg->valid_states & ~TPGS_SUPPORT_OPTIMIZED) == 0) {
545 sdev_printk(KERN_INFO, sdev,
546 "%s: ignoring rtpg result %d\n",
547 ALUA_DH_NAME, retval);
548 kfree(buff);
549 return SCSI_DH_OK;
550 }
> 551 if (retval < 0 || !scsi_sense_valid(&sense_hdr)) {
552 sdev_printk(KERN_INFO, sdev,
553 "%s: rtpg failed, result %d\n",
554 ALUA_DH_NAME, retval);
555 kfree(buff);
556 if (retval < 0)
557 return SCSI_DH_DEV_TEMP_BUSY;
558 return SCSI_DH_IO;
559 }
560
561 /*
562 * submit_rtpg() has failed on existing arrays
563 * when requesting extended header info, and
564 * the array doesn't support extended headers,
565 * even though it shouldn't according to T10.
566 * The retry without rtpg_ext_hdr_req set
567 * handles this.
568 * Note: some arrays return a sense key of ILLEGAL_REQUEST
569 * with ASC 00h if they don't support the extended header.
570 */
571 if (!(pg->flags & ALUA_RTPG_EXT_HDR_UNSUPP) &&
572 sense_hdr.sense_key == ILLEGAL_REQUEST) {
573 pg->flags |= ALUA_RTPG_EXT_HDR_UNSUPP;
574 goto retry;
575 }
576 /*
577 * If the array returns with 'ALUA state transition'
578 * sense code here it cannot return RTPG data during
579 * transition. So set the state to 'transitioning' directly.
580 */
581 if (sense_hdr.sense_key == NOT_READY &&
582 sense_hdr.asc == 0x04 && sense_hdr.ascq == 0x0a) {
583 transitioning_sense = true;
584 goto skip_rtpg;
585 }
586 /*
587 * Retry on any other UNIT ATTENTION occurred.
588 */
589 if (sense_hdr.sense_key == UNIT_ATTENTION)
590 err = SCSI_DH_RETRY;
591 if (err == SCSI_DH_RETRY &&
592 pg->expiry != 0 && time_before(jiffies, pg->expiry)) {
593 sdev_printk(KERN_ERR, sdev, "%s: rtpg retry\n",
594 ALUA_DH_NAME);
595 scsi_print_sense_hdr(sdev, ALUA_DH_NAME, &sense_hdr);
596 kfree(buff);
597 return err;
598 }
599 sdev_printk(KERN_ERR, sdev, "%s: rtpg failed\n",
600 ALUA_DH_NAME);
601 scsi_print_sense_hdr(sdev, ALUA_DH_NAME, &sense_hdr);
602 kfree(buff);
603 pg->expiry = 0;
604 return SCSI_DH_IO;
605 }
606
607 len = get_unaligned_be32(&buff[0]) + 4;
608
609 if (len > bufflen) {
610 /* Resubmit with the correct length */
611 kfree(buff);
612 bufflen = len;
613 buff = kmalloc(bufflen, GFP_KERNEL);
614 if (!buff) {
615 sdev_printk(KERN_WARNING, sdev,
616 "%s: kmalloc buffer failed\n",__func__);
617 /* Temporary failure, bypass */
618 pg->expiry = 0;
619 return SCSI_DH_DEV_TEMP_BUSY;
620 }
621 goto retry;
622 }
623
624 orig_transition_tmo = pg->transition_tmo;
625 if ((buff[4] & RTPG_FMT_MASK) == RTPG_FMT_EXT_HDR && buff[5] != 0)
626 pg->transition_tmo = buff[5];
627 else
628 pg->transition_tmo = ALUA_FAILOVER_TIMEOUT;
629
630 if (orig_transition_tmo != pg->transition_tmo) {
631 sdev_printk(KERN_INFO, sdev,
632 "%s: transition timeout set to %d seconds\n",
633 ALUA_DH_NAME, pg->transition_tmo);
634 pg->expiry = jiffies + pg->transition_tmo * HZ;
635 }
636
637 if ((buff[4] & RTPG_FMT_MASK) == RTPG_FMT_EXT_HDR)
638 tpg_desc_tbl_off = 8;
639 else
640 tpg_desc_tbl_off = 4;
641
642 for (k = tpg_desc_tbl_off, desc = buff + tpg_desc_tbl_off;
643 k < len;
644 k += off, desc += off) {
645 u16 group_id = get_unaligned_be16(&desc[2]);
646
647 spin_lock_irqsave(&port_group_lock, flags);
648 tmp_pg = alua_find_get_pg(pg->device_id_str, pg->device_id_len,
649 group_id);
650 spin_unlock_irqrestore(&port_group_lock, flags);
651 if (tmp_pg) {
652 if (spin_trylock_irqsave(&tmp_pg->lock, flags)) {
653 if ((tmp_pg == pg) ||
654 !(tmp_pg->flags & ALUA_PG_RUNNING)) {
655 struct alua_dh_data *h;
656
657 tmp_pg->state = desc[0] & 0x0f;
658 tmp_pg->pref = desc[0] >> 7;
659 rcu_read_lock();
660 list_for_each_entry_rcu(h,
661 &tmp_pg->dh_list, node) {
662 if (!h->sdev)
663 continue;
664 h->sdev->access_state = desc[0];
665 }
666 rcu_read_unlock();
667 }
668 if (tmp_pg == pg)
669 tmp_pg->valid_states = desc[1];
670 spin_unlock_irqrestore(&tmp_pg->lock, flags);
671 }
672 kref_put(&tmp_pg->kref, release_port_group);
673 }
674 off = 8 + (desc[7] * 4);
675 }
676
677 skip_rtpg:
678 spin_lock_irqsave(&pg->lock, flags);
679 if (transitioning_sense)
680 pg->state = SCSI_ACCESS_STATE_TRANSITIONING;
681
682 sdev_printk(KERN_INFO, sdev,
683 "%s: port group %02x state %c %s supports %c%c%c%c%c%c%c\n",
684 ALUA_DH_NAME, pg->group_id, print_alua_state(pg->state),
685 pg->pref ? "preferred" : "non-preferred",
686 pg->valid_states&TPGS_SUPPORT_TRANSITION?'T':'t',
687 pg->valid_states&TPGS_SUPPORT_OFFLINE?'O':'o',
688 pg->valid_states&TPGS_SUPPORT_LBA_DEPENDENT?'L':'l',
689 pg->valid_states&TPGS_SUPPORT_UNAVAILABLE?'U':'u',
690 pg->valid_states&TPGS_SUPPORT_STANDBY?'S':'s',
691 pg->valid_states&TPGS_SUPPORT_NONOPTIMIZED?'N':'n',
692 pg->valid_states&TPGS_SUPPORT_OPTIMIZED?'A':'a');
693
694 switch (pg->state) {
695 case SCSI_ACCESS_STATE_TRANSITIONING:
696 if (time_before(jiffies, pg->expiry)) {
697 /* State transition, retry */
698 pg->interval = ALUA_RTPG_RETRY_DELAY;
699 err = SCSI_DH_RETRY;
700 } else {
701 struct alua_dh_data *h;
702
703 /* Transitioning time exceeded, set port to standby */
704 err = SCSI_DH_IO;
705 pg->state = SCSI_ACCESS_STATE_STANDBY;
706 pg->expiry = 0;
707 rcu_read_lock();
708 list_for_each_entry_rcu(h, &pg->dh_list, node) {
709 if (!h->sdev)
710 continue;
711 h->sdev->access_state =
712 (pg->state & SCSI_ACCESS_STATE_MASK);
713 if (pg->pref)
714 h->sdev->access_state |=
715 SCSI_ACCESS_STATE_PREFERRED;
716 }
717 rcu_read_unlock();
718 }
719 break;
720 case SCSI_ACCESS_STATE_OFFLINE:
721 /* Path unusable */
722 err = SCSI_DH_DEV_OFFLINED;
723 pg->expiry = 0;
724 break;
725 default:
726 /* Useable path if active */
727 err = SCSI_DH_OK;
728 pg->expiry = 0;
729 break;
730 }
731 spin_unlock_irqrestore(&pg->lock, flags);
732 kfree(buff);
733 return err;
734 }
735
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 2 months
[linux-chenxing:mstar_v5_14_rebase 85/352] drivers/clk/mstar/clk-mstar-pll_common.c:14:6: warning: variable 'numparents' set but not used
by kernel test robot
tree: git://github.com/linux-chenxing/linux.git mstar_v5_14_rebase
head: 651efd0e52f225e60faa8b30f9768021e2104d3c
commit: 78ccc706083df2c5a3abc63b37f3fb659047cd6b [85/352] pll common makefile
config: alpha-randconfig-r004-20210719 (attached as .config)
compiler: alpha-linux-gcc (GCC) 10.3.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/linux-chenxing/linux/commit/78ccc706083df2c5a3abc63b37...
git remote add linux-chenxing git://github.com/linux-chenxing/linux.git
git fetch --no-tags linux-chenxing mstar_v5_14_rebase
git checkout 78ccc706083df2c5a3abc63b37f3fb659047cd6b
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross ARCH=alpha
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/clk/mstar/clk-mstar-pll_common.c: In function 'mstar_pll_common_probe':
>> drivers/clk/mstar/clk-mstar-pll_common.c:14:6: warning: variable 'numparents' set but not used [-Wunused-but-set-variable]
14 | int numparents, numoutputs, numrates, pllindex;
| ^~~~~~~~~~
vim +/numparents +14 drivers/clk/mstar/clk-mstar-pll_common.c
c8123925d33e64 Daniel Palmer 2020-11-02 7
c8123925d33e64 Daniel Palmer 2020-11-02 8 int mstar_pll_common_probe(struct platform_device *pdev, struct mstar_pll **pll,
c8123925d33e64 Daniel Palmer 2020-11-02 9 const struct clk_ops *clk_ops)
c8123925d33e64 Daniel Palmer 2020-11-02 10 {
c8123925d33e64 Daniel Palmer 2020-11-02 11 struct mstar_pll_output* output;
c8123925d33e64 Daniel Palmer 2020-11-02 12 struct clk_init_data *clk_init;
c8123925d33e64 Daniel Palmer 2020-11-02 13 struct clk* clk;
c8123925d33e64 Daniel Palmer 2020-11-02 @14 int numparents, numoutputs, numrates, pllindex;
:::::: The code at line 14 was first introduced by commit
:::::: c8123925d33e64e037be76469291e62cd81e586f clk: mstar: pll common
:::::: TO: Daniel Palmer <daniel(a)0x0f.com>
:::::: CC: Daniel Palmer <daniel(a)0x0f.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 2 months
[linux-chenxing:mstar_v5_14_rebase 129/352] drivers/usb/host/fotg210-hcd.c:3100:14: error: no member named 'mstar' in 'struct fotg210_hcd'
by kernel test robot
tree: git://github.com/linux-chenxing/linux.git mstar_v5_14_rebase
head: 651efd0e52f225e60faa8b30f9768021e2104d3c
commit: bcbee03b0eb2ac09fb2f2c431c8214db56afffcb [129/352] MSC313: Add support for weird register placing MSC313: Add back in support for fusbh200
config: powerpc64-buildonly-randconfig-r004-20210719 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 5d5b08761f944d5b9822d582378333cc4b36a0a7)
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
# install powerpc64 cross compiling tool for clang build
# apt-get install binutils-powerpc64-linux-gnu
# https://github.com/linux-chenxing/linux/commit/bcbee03b0eb2ac09fb2f2c431c...
git remote add linux-chenxing git://github.com/linux-chenxing/linux.git
git fetch --no-tags linux-chenxing mstar_v5_14_rebase
git checkout bcbee03b0eb2ac09fb2f2c431c8214db56afffcb
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross O=build_dir ARCH=powerpc SHELL=/bin/bash drivers/usb/host/
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 >>):
^
arch/powerpc/include/asm/io.h:537:62: note: expanded from macro '__do_outl'
#define __do_outl(val, port) writel(val,(PCI_IO_ADDR)_IO_BASE+port);
~~~~~~~~~~~~~~~~~~~~~^
In file included from drivers/usb/host/fotg210-hcd.c:15:
In file included from include/linux/dmapool.h:14:
In file included from include/linux/scatterlist.h:9:
In file included from arch/powerpc/include/asm/io.h:619:
arch/powerpc/include/asm/io-defs.h:43:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(insb, (unsigned long p, void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:616:3: note: expanded from macro 'DEF_PCI_AC_NORET'
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:84:1: note: expanded from here
__do_insb
^
arch/powerpc/include/asm/io.h:556:56: note: expanded from macro '__do_insb'
#define __do_insb(p, b, n) readsb((PCI_IO_ADDR)_IO_BASE+(p), (b), (n))
~~~~~~~~~~~~~~~~~~~~~^
In file included from drivers/usb/host/fotg210-hcd.c:15:
In file included from include/linux/dmapool.h:14:
In file included from include/linux/scatterlist.h:9:
In file included from arch/powerpc/include/asm/io.h:619:
arch/powerpc/include/asm/io-defs.h:45:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(insw, (unsigned long p, void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:616:3: note: expanded from macro 'DEF_PCI_AC_NORET'
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:88:1: note: expanded from here
__do_insw
^
arch/powerpc/include/asm/io.h:557:56: note: expanded from macro '__do_insw'
#define __do_insw(p, b, n) readsw((PCI_IO_ADDR)_IO_BASE+(p), (b), (n))
~~~~~~~~~~~~~~~~~~~~~^
In file included from drivers/usb/host/fotg210-hcd.c:15:
In file included from include/linux/dmapool.h:14:
In file included from include/linux/scatterlist.h:9:
In file included from arch/powerpc/include/asm/io.h:619:
arch/powerpc/include/asm/io-defs.h:47:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(insl, (unsigned long p, void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:616:3: note: expanded from macro 'DEF_PCI_AC_NORET'
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:92:1: note: expanded from here
__do_insl
^
arch/powerpc/include/asm/io.h:558:56: note: expanded from macro '__do_insl'
#define __do_insl(p, b, n) readsl((PCI_IO_ADDR)_IO_BASE+(p), (b), (n))
~~~~~~~~~~~~~~~~~~~~~^
In file included from drivers/usb/host/fotg210-hcd.c:15:
In file included from include/linux/dmapool.h:14:
In file included from include/linux/scatterlist.h:9:
In file included from arch/powerpc/include/asm/io.h:619:
arch/powerpc/include/asm/io-defs.h:49:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(outsb, (unsigned long p, const void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:616:3: note: expanded from macro 'DEF_PCI_AC_NORET'
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:96:1: note: expanded from here
__do_outsb
^
arch/powerpc/include/asm/io.h:559:58: note: expanded from macro '__do_outsb'
#define __do_outsb(p, b, n) writesb((PCI_IO_ADDR)_IO_BASE+(p),(b),(n))
~~~~~~~~~~~~~~~~~~~~~^
In file included from drivers/usb/host/fotg210-hcd.c:15:
In file included from include/linux/dmapool.h:14:
In file included from include/linux/scatterlist.h:9:
In file included from arch/powerpc/include/asm/io.h:619:
arch/powerpc/include/asm/io-defs.h:51:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(outsw, (unsigned long p, const void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:616:3: note: expanded from macro 'DEF_PCI_AC_NORET'
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:100:1: note: expanded from here
__do_outsw
^
arch/powerpc/include/asm/io.h:560:58: note: expanded from macro '__do_outsw'
#define __do_outsw(p, b, n) writesw((PCI_IO_ADDR)_IO_BASE+(p),(b),(n))
~~~~~~~~~~~~~~~~~~~~~^
In file included from drivers/usb/host/fotg210-hcd.c:15:
In file included from include/linux/dmapool.h:14:
In file included from include/linux/scatterlist.h:9:
In file included from arch/powerpc/include/asm/io.h:619:
arch/powerpc/include/asm/io-defs.h:53:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(outsl, (unsigned long p, const void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:616:3: note: expanded from macro 'DEF_PCI_AC_NORET'
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:104:1: note: expanded from here
__do_outsl
^
arch/powerpc/include/asm/io.h:561:58: note: expanded from macro '__do_outsl'
#define __do_outsl(p, b, n) writesl((PCI_IO_ADDR)_IO_BASE+(p),(b),(n))
~~~~~~~~~~~~~~~~~~~~~^
>> drivers/usb/host/fotg210-hcd.c:3100:14: error: no member named 'mstar' in 'struct fotg210_hcd'
if(fotg210->mstar)
~~~~~~~ ^
include/linux/compiler.h:56:47: note: expanded from macro 'if'
#define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) )
^~~~
include/linux/compiler.h:58:52: note: expanded from macro '__trace_if_var'
#define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
^~~~
>> drivers/usb/host/fotg210-hcd.c:3100:14: error: no member named 'mstar' in 'struct fotg210_hcd'
if(fotg210->mstar)
~~~~~~~ ^
include/linux/compiler.h:56:47: note: expanded from macro 'if'
#define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) )
^~~~
include/linux/compiler.h:58:61: note: expanded from macro '__trace_if_var'
#define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
^~~~
>> drivers/usb/host/fotg210-hcd.c:3100:14: error: no member named 'mstar' in 'struct fotg210_hcd'
if(fotg210->mstar)
~~~~~~~ ^
include/linux/compiler.h:56:47: note: expanded from macro 'if'
#define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) )
^~~~
include/linux/compiler.h:58:86: note: expanded from macro '__trace_if_var'
#define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
^~~~
include/linux/compiler.h:69:3: note: expanded from macro '__trace_if_value'
(cond) ? \
^~~~
drivers/usb/host/fotg210-hcd.c:3133:14: error: no member named 'mstar' in 'struct fotg210_hcd'
if(fotg210->mstar)
~~~~~~~ ^
include/linux/compiler.h:56:47: note: expanded from macro 'if'
#define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) )
^~~~
include/linux/compiler.h:58:52: note: expanded from macro '__trace_if_var'
#define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
^~~~
drivers/usb/host/fotg210-hcd.c:3133:14: error: no member named 'mstar' in 'struct fotg210_hcd'
if(fotg210->mstar)
~~~~~~~ ^
include/linux/compiler.h:56:47: note: expanded from macro 'if'
#define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) )
^~~~
include/linux/compiler.h:58:61: note: expanded from macro '__trace_if_var'
#define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
^~~~
drivers/usb/host/fotg210-hcd.c:3133:14: error: no member named 'mstar' in 'struct fotg210_hcd'
if(fotg210->mstar)
~~~~~~~ ^
include/linux/compiler.h:56:47: note: expanded from macro 'if'
#define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) )
^~~~
include/linux/compiler.h:58:86: note: expanded from macro '__trace_if_var'
#define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
^~~~
include/linux/compiler.h:69:3: note: expanded from macro '__trace_if_value'
(cond) ? \
^~~~
drivers/usb/host/fotg210-hcd.c:3906:14: error: no member named 'mstar' in 'struct fotg210_hcd'
if(fotg210->mstar)
~~~~~~~ ^
include/linux/compiler.h:56:47: note: expanded from macro 'if'
#define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) )
^~~~
include/linux/compiler.h:58:52: note: expanded from macro '__trace_if_var'
#define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
^~~~
drivers/usb/host/fotg210-hcd.c:3906:14: error: no member named 'mstar' in 'struct fotg210_hcd'
if(fotg210->mstar)
~~~~~~~ ^
include/linux/compiler.h:56:47: note: expanded from macro 'if'
#define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) )
^~~~
include/linux/compiler.h:58:61: note: expanded from macro '__trace_if_var'
#define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
^~~~
drivers/usb/host/fotg210-hcd.c:3906:14: error: no member named 'mstar' in 'struct fotg210_hcd'
if(fotg210->mstar)
~~~~~~~ ^
include/linux/compiler.h:56:47: note: expanded from macro 'if'
#define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) )
^~~~
include/linux/compiler.h:58:86: note: expanded from macro '__trace_if_var'
#define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
^~~~
include/linux/compiler.h:69:3: note: expanded from macro '__trace_if_value'
(cond) ? \
^~~~
drivers/usb/host/fotg210-hcd.c:4648:17: error: no member named 'mstar' in 'struct fotg210_hcd'
if(fotg210->mstar)
~~~~~~~ ^
include/linux/compiler.h:56:47: note: expanded from macro 'if'
#define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) )
^~~~
include/linux/compiler.h:58:52: note: expanded from macro '__trace_if_var'
#define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
^~~~
drivers/usb/host/fotg210-hcd.c:4648:17: error: no member named 'mstar' in 'struct fotg210_hcd'
if(fotg210->mstar)
~~~~~~~ ^
include/linux/compiler.h:56:47: note: expanded from macro 'if'
#define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) )
^~~~
include/linux/compiler.h:58:61: note: expanded from macro '__trace_if_var'
#define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
^~~~
drivers/usb/host/fotg210-hcd.c:4648:17: error: no member named 'mstar' in 'struct fotg210_hcd'
if(fotg210->mstar)
~~~~~~~ ^
include/linux/compiler.h:56:47: note: expanded from macro 'if'
#define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) )
^~~~
include/linux/compiler.h:58:86: note: expanded from macro '__trace_if_var'
#define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
^~~~
include/linux/compiler.h:69:3: note: expanded from macro '__trace_if_value'
(cond) ? \
vim +3100 drivers/usb/host/fotg210-hcd.c
3077
3078 spin_lock_irqsave(&fotg210->lock, flags);
3079 if (unlikely(!HCD_HW_ACCESSIBLE(fotg210_to_hcd(fotg210)))) {
3080 rc = -ESHUTDOWN;
3081 goto done;
3082 }
3083 rc = usb_hcd_link_urb_to_ep(fotg210_to_hcd(fotg210), urb);
3084 if (unlikely(rc))
3085 goto done;
3086
3087 qh = qh_append_tds(fotg210, urb, qtd_list, epnum, &urb->ep->hcpriv);
3088 if (unlikely(qh == NULL)) {
3089 usb_hcd_unlink_urb_from_ep(fotg210_to_hcd(fotg210), urb);
3090 rc = -ENOMEM;
3091 goto done;
3092 }
3093
3094 /* Control/bulk operations through TTs don't need scheduling,
3095 * the HC and TT handle it when the TT has a buffer ready.
3096 */
3097 if (likely(qh->qh_state == QH_STATE_IDLE))
3098 qh_link_async(fotg210, qh);
3099
> 3100 if(fotg210->mstar)
3101 mb();
3102
3103 done:
3104 spin_unlock_irqrestore(&fotg210->lock, flags);
3105 if (unlikely(qh == NULL))
3106 qtd_list_free(fotg210, urb, qtd_list);
3107 return rc;
3108 }
3109
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 2 months
[linux-next:master 1475/1825] drivers/gpu/drm/amd/amdgpu/nv.c:337:45: warning: unused variable 'yc_video_codecs_decode_array'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 08076eab6fef63e6bd52a71ddf166446175e9b61
commit: 554398174d98364ea91a7a9aa6866d65ea72d0da [1475/1825] amdgpu/nv.c - Added video codec support for Yellow Carp
config: s390-randconfig-r033-20210719 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 5d5b08761f944d5b9822d582378333cc4b36a0a7)
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
# install s390 cross compiling tool for clang build
# apt-get install binutils-s390x-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commi...
git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git fetch --no-tags linux-next master
git checkout 554398174d98364ea91a7a9aa6866d65ea72d0da
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=s390
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 >>):
In file included from drivers/gpu/drm/amd/amdgpu/nv.c:26:
In file included from include/linux/pci.h:39:
In file included from include/linux/io.h:13:
In file included from arch/s390/include/asm/io.h:75:
include/asm-generic/io.h:464:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
val = __raw_readb(PCI_IOBASE + addr);
~~~~~~~~~~ ^
include/asm-generic/io.h:477:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr));
~~~~~~~~~~ ^
include/uapi/linux/byteorder/big_endian.h:36:59: note: expanded from macro '__le16_to_cpu'
#define __le16_to_cpu(x) __swab16((__force __u16)(__le16)(x))
^
include/uapi/linux/swab.h:102:54: note: expanded from macro '__swab16'
#define __swab16(x) (__u16)__builtin_bswap16((__u16)(x))
^
In file included from drivers/gpu/drm/amd/amdgpu/nv.c:26:
In file included from include/linux/pci.h:39:
In file included from include/linux/io.h:13:
In file included from arch/s390/include/asm/io.h:75:
include/asm-generic/io.h:490:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr));
~~~~~~~~~~ ^
include/uapi/linux/byteorder/big_endian.h:34:59: note: expanded from macro '__le32_to_cpu'
#define __le32_to_cpu(x) __swab32((__force __u32)(__le32)(x))
^
include/uapi/linux/swab.h:115:54: note: expanded from macro '__swab32'
#define __swab32(x) (__u32)__builtin_bswap32((__u32)(x))
^
In file included from drivers/gpu/drm/amd/amdgpu/nv.c:26:
In file included from include/linux/pci.h:39:
In file included from include/linux/io.h:13:
In file included from arch/s390/include/asm/io.h:75:
include/asm-generic/io.h:501:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
__raw_writeb(value, PCI_IOBASE + addr);
~~~~~~~~~~ ^
include/asm-generic/io.h:511:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
__raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr);
~~~~~~~~~~ ^
include/asm-generic/io.h:521:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
__raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr);
~~~~~~~~~~ ^
include/asm-generic/io.h:609:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
readsb(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:617:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
readsw(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:625:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
readsl(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:634:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
writesb(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:643:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
writesw(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:652:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
writesl(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
>> drivers/gpu/drm/amd/amdgpu/nv.c:337:45: warning: unused variable 'yc_video_codecs_decode_array' [-Wunused-const-variable]
static const struct amdgpu_video_codec_info yc_video_codecs_decode_array[] = {
^
13 warnings generated.
vim +/yc_video_codecs_decode_array +337 drivers/gpu/drm/amd/amdgpu/nv.c
335
336 /* Yellow Carp*/
> 337 static const struct amdgpu_video_codec_info yc_video_codecs_decode_array[] = {
338 {codec_info_build(AMDGPU_INFO_VIDEO_CAPS_CODEC_IDX_MPEG4_AVC, 4096, 4906, 52)},
339 {codec_info_build(AMDGPU_INFO_VIDEO_CAPS_CODEC_IDX_HEVC, 8192, 4352, 186)},
340 {codec_info_build(AMDGPU_INFO_VIDEO_CAPS_CODEC_IDX_VP9, 8192, 4352, 0)},
341 {codec_info_build(AMDGPU_INFO_VIDEO_CAPS_CODEC_IDX_JPEG, 4096, 4096, 0)},
342 };
343
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 2 months
[ti:ti-rt-linux-5.10.y 6721/6782] drivers/media/pci/intel/ipu3/ipu3-cio2.c:983:27: error: passing argument 1 of 'media_pipeline_start' from incompatible pointer type
by kernel test robot
tree: git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git ti-rt-linux-5.10.y
head: bee192299392dc41c94f4603968b7a3c02f17a1d
commit: d42003cd0440e21c8940801e58ba2aabf3dc13b6 [6721/6782] media: entity: Use pad as the starting point for a pipeline
config: i386-randconfig-c021-20210718 (attached as .config)
compiler: gcc-10 (Ubuntu 10.3.0-1ubuntu1~20.04) 10.3.0
reproduce (this is a W=1 build):
git remote add ti git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git
git fetch --no-tags ti ti-rt-linux-5.10.y
git checkout d42003cd0440e21c8940801e58ba2aabf3dc13b6
# 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/media/pci/intel/ipu3/ipu3-cio2.c: In function 'cio2_vb2_start_streaming':
>> drivers/media/pci/intel/ipu3/ipu3-cio2.c:983:27: error: passing argument 1 of 'media_pipeline_start' from incompatible pointer type [-Werror=incompatible-pointer-types]
983 | r = media_pipeline_start(&q->vdev.entity, &q->pipe);
| ^~~~~~~~~~~~~~~
| |
| struct media_entity *
In file included from include/media/media-device.h:18,
from include/media/media-request.h:20,
from include/media/v4l2-ctrls.h:14,
from drivers/media/pci/intel/ipu3/ipu3-cio2.c:23:
include/media/media-entity.h:948:57: note: expected 'struct media_pad *' but argument is of type 'struct media_entity *'
948 | __must_check int media_pipeline_start(struct media_pad *pad,
| ~~~~~~~~~~~~~~~~~~^~~
>> drivers/media/pci/intel/ipu3/ipu3-cio2.c:1003:22: error: passing argument 1 of 'media_pipeline_stop' from incompatible pointer type [-Werror=incompatible-pointer-types]
1003 | media_pipeline_stop(&q->vdev.entity);
| ^~~~~~~~~~~~~~~
| |
| struct media_entity *
In file included from include/media/media-device.h:18,
from include/media/media-request.h:20,
from include/media/v4l2-ctrls.h:14,
from drivers/media/pci/intel/ipu3/ipu3-cio2.c:23:
include/media/media-entity.h:972:44: note: expected 'struct media_pad *' but argument is of type 'struct media_entity *'
972 | void media_pipeline_stop(struct media_pad *pad);
| ~~~~~~~~~~~~~~~~~~^~~
drivers/media/pci/intel/ipu3/ipu3-cio2.c: In function 'cio2_vb2_stop_streaming':
drivers/media/pci/intel/ipu3/ipu3-cio2.c:1024:22: error: passing argument 1 of 'media_pipeline_stop' from incompatible pointer type [-Werror=incompatible-pointer-types]
1024 | media_pipeline_stop(&q->vdev.entity);
| ^~~~~~~~~~~~~~~
| |
| struct media_entity *
In file included from include/media/media-device.h:18,
from include/media/media-request.h:20,
from include/media/v4l2-ctrls.h:14,
from drivers/media/pci/intel/ipu3/ipu3-cio2.c:23:
include/media/media-entity.h:972:44: note: expected 'struct media_pad *' but argument is of type 'struct media_entity *'
972 | void media_pipeline_stop(struct media_pad *pad);
| ~~~~~~~~~~~~~~~~~~^~~
cc1: some warnings being treated as errors
vim +/media_pipeline_start +983 drivers/media/pci/intel/ipu3/ipu3-cio2.c
c2a6a07afe4a46 Yong Zhi 2017-11-08 966
c2a6a07afe4a46 Yong Zhi 2017-11-08 967 static int cio2_vb2_start_streaming(struct vb2_queue *vq, unsigned int count)
c2a6a07afe4a46 Yong Zhi 2017-11-08 968 {
c2a6a07afe4a46 Yong Zhi 2017-11-08 969 struct cio2_queue *q = vb2q_to_cio2_queue(vq);
c2a6a07afe4a46 Yong Zhi 2017-11-08 970 struct cio2_device *cio2 = vb2_get_drv_priv(vq);
c2a6a07afe4a46 Yong Zhi 2017-11-08 971 int r;
c2a6a07afe4a46 Yong Zhi 2017-11-08 972
c2a6a07afe4a46 Yong Zhi 2017-11-08 973 cio2->cur_queue = q;
c2a6a07afe4a46 Yong Zhi 2017-11-08 974 atomic_set(&q->frame_sequence, 0);
c2a6a07afe4a46 Yong Zhi 2017-11-08 975
c2a6a07afe4a46 Yong Zhi 2017-11-08 976 r = pm_runtime_get_sync(&cio2->pci_dev->dev);
c2a6a07afe4a46 Yong Zhi 2017-11-08 977 if (r < 0) {
c2a6a07afe4a46 Yong Zhi 2017-11-08 978 dev_info(&cio2->pci_dev->dev, "failed to set power %d\n", r);
c2a6a07afe4a46 Yong Zhi 2017-11-08 979 pm_runtime_put_noidle(&cio2->pci_dev->dev);
c2a6a07afe4a46 Yong Zhi 2017-11-08 980 return r;
c2a6a07afe4a46 Yong Zhi 2017-11-08 981 }
c2a6a07afe4a46 Yong Zhi 2017-11-08 982
c2a6a07afe4a46 Yong Zhi 2017-11-08 @983 r = media_pipeline_start(&q->vdev.entity, &q->pipe);
c2a6a07afe4a46 Yong Zhi 2017-11-08 984 if (r)
c2a6a07afe4a46 Yong Zhi 2017-11-08 985 goto fail_pipeline;
c2a6a07afe4a46 Yong Zhi 2017-11-08 986
c2a6a07afe4a46 Yong Zhi 2017-11-08 987 r = cio2_hw_init(cio2, q);
c2a6a07afe4a46 Yong Zhi 2017-11-08 988 if (r)
c2a6a07afe4a46 Yong Zhi 2017-11-08 989 goto fail_hw;
c2a6a07afe4a46 Yong Zhi 2017-11-08 990
c2a6a07afe4a46 Yong Zhi 2017-11-08 991 /* Start streaming on sensor */
c2a6a07afe4a46 Yong Zhi 2017-11-08 992 r = v4l2_subdev_call(q->sensor, video, s_stream, 1);
c2a6a07afe4a46 Yong Zhi 2017-11-08 993 if (r)
c2a6a07afe4a46 Yong Zhi 2017-11-08 994 goto fail_csi2_subdev;
c2a6a07afe4a46 Yong Zhi 2017-11-08 995
c2a6a07afe4a46 Yong Zhi 2017-11-08 996 cio2->streaming = true;
c2a6a07afe4a46 Yong Zhi 2017-11-08 997
c2a6a07afe4a46 Yong Zhi 2017-11-08 998 return 0;
c2a6a07afe4a46 Yong Zhi 2017-11-08 999
c2a6a07afe4a46 Yong Zhi 2017-11-08 1000 fail_csi2_subdev:
c2a6a07afe4a46 Yong Zhi 2017-11-08 1001 cio2_hw_exit(cio2, q);
c2a6a07afe4a46 Yong Zhi 2017-11-08 1002 fail_hw:
c2a6a07afe4a46 Yong Zhi 2017-11-08 @1003 media_pipeline_stop(&q->vdev.entity);
c2a6a07afe4a46 Yong Zhi 2017-11-08 1004 fail_pipeline:
c2a6a07afe4a46 Yong Zhi 2017-11-08 1005 dev_dbg(&cio2->pci_dev->dev, "failed to start streaming (%d)\n", r);
dcd80955a0a13d Yong Zhi 2018-01-03 1006 cio2_vb2_return_all_buffers(q, VB2_BUF_STATE_QUEUED);
c2a6a07afe4a46 Yong Zhi 2017-11-08 1007 pm_runtime_put(&cio2->pci_dev->dev);
c2a6a07afe4a46 Yong Zhi 2017-11-08 1008
c2a6a07afe4a46 Yong Zhi 2017-11-08 1009 return r;
c2a6a07afe4a46 Yong Zhi 2017-11-08 1010 }
c2a6a07afe4a46 Yong Zhi 2017-11-08 1011
:::::: The code at line 983 was first introduced by commit
:::::: c2a6a07afe4a466896c250cbb203657162b86f4b media: intel-ipu3: cio2: add new MIPI-CSI2 driver
:::::: TO: Yong Zhi <yong.zhi(a)intel.com>
:::::: CC: Mauro Carvalho Chehab <mchehab(a)s-opensource.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 2 months