Re: [PATCH 2/2] mailbox: arm_mhuv3: Add driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Cristian,

kernel test robot noticed the following build warnings:

[auto build test WARNING on soc/for-next]
[also build test WARNING on robh/for-next linus/master v6.9-rc1 next-20240328]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/Cristian-Marussi/dt-bindings-mailbox-arm-mhuv3-Add-bindings/20240326-020048
base:   https://git.kernel.org/pub/scm/linux/kernel/git/soc/soc.git for-next
patch link:    https://lore.kernel.org/r/20240325092808.117510-3-cristian.marussi%40arm.com
patch subject: [PATCH 2/2] mailbox: arm_mhuv3: Add driver
config: powerpc-randconfig-r131-20240328 (https://download.01.org/0day-ci/archive/20240329/202403290015.tCLXudqC-lkp@xxxxxxxxx/config)
compiler: clang version 19.0.0git (https://github.com/llvm/llvm-project 23de3862dce582ce91c1aa914467d982cb1a73b4)
reproduce: (https://download.01.org/0day-ci/archive/20240329/202403290015.tCLXudqC-lkp@xxxxxxxxx/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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202403290015.tCLXudqC-lkp@xxxxxxxxx/

sparse warnings: (new ones prefixed by >>)
>> drivers/mailbox/arm_mhuv3.c:565:46: sparse: sparse: incorrect type in initializer (different address spaces) @@     expected struct pdbcw_page *dbcw @@     got struct pdbcw_page [noderef] __iomem * @@
   drivers/mailbox/arm_mhuv3.c:565:46: sparse:     expected struct pdbcw_page *dbcw
   drivers/mailbox/arm_mhuv3.c:565:46: sparse:     got struct pdbcw_page [noderef] __iomem *
>> drivers/mailbox/arm_mhuv3.c:568:25: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got struct pdbcw_int * @@
   drivers/mailbox/arm_mhuv3.c:568:25: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/mailbox/arm_mhuv3.c:568:25: sparse:     got struct pdbcw_int *
>> drivers/mailbox/arm_mhuv3.c:568:25: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got struct pdbcw_int * @@
   drivers/mailbox/arm_mhuv3.c:568:25: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/mailbox/arm_mhuv3.c:568:25: sparse:     got struct pdbcw_int *
   drivers/mailbox/arm_mhuv3.c:569:25: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got struct pdbcw_int * @@
   drivers/mailbox/arm_mhuv3.c:569:25: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/mailbox/arm_mhuv3.c:569:25: sparse:     got struct pdbcw_int *
   drivers/mailbox/arm_mhuv3.c:569:25: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got struct pdbcw_int * @@
   drivers/mailbox/arm_mhuv3.c:569:25: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/mailbox/arm_mhuv3.c:569:25: sparse:     got struct pdbcw_int *
>> drivers/mailbox/arm_mhuv3.c:570:25: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got struct xbcw_ctrl * @@
   drivers/mailbox/arm_mhuv3.c:570:25: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/mailbox/arm_mhuv3.c:570:25: sparse:     got struct xbcw_ctrl *
>> drivers/mailbox/arm_mhuv3.c:570:25: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got struct xbcw_ctrl * @@
   drivers/mailbox/arm_mhuv3.c:570:25: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/mailbox/arm_mhuv3.c:570:25: sparse:     got struct xbcw_ctrl *
>> drivers/mailbox/arm_mhuv3.c:573:46: sparse: sparse: incorrect type in initializer (different address spaces) @@     expected struct mdbcw_page *dbcw @@     got struct mdbcw_page [noderef] __iomem * @@
   drivers/mailbox/arm_mhuv3.c:573:46: sparse:     expected struct mdbcw_page *dbcw
   drivers/mailbox/arm_mhuv3.c:573:46: sparse:     got struct mdbcw_page [noderef] __iomem *
>> drivers/mailbox/arm_mhuv3.c:576:25: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got unsigned int * @@
   drivers/mailbox/arm_mhuv3.c:576:25: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/mailbox/arm_mhuv3.c:576:25: sparse:     got unsigned int *
   drivers/mailbox/arm_mhuv3.c:577:25: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got unsigned int * @@
   drivers/mailbox/arm_mhuv3.c:577:25: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/mailbox/arm_mhuv3.c:577:25: sparse:     got unsigned int *
   drivers/mailbox/arm_mhuv3.c:578:25: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got struct xbcw_ctrl * @@
   drivers/mailbox/arm_mhuv3.c:578:25: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/mailbox/arm_mhuv3.c:578:25: sparse:     got struct xbcw_ctrl *
   drivers/mailbox/arm_mhuv3.c:578:25: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got struct xbcw_ctrl * @@
   drivers/mailbox/arm_mhuv3.c:578:25: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/mailbox/arm_mhuv3.c:578:25: sparse:     got struct xbcw_ctrl *
>> drivers/mailbox/arm_mhuv3.c:360:9: sparse: sparse: dereference of noderef expression
   drivers/mailbox/arm_mhuv3.c:370:9: sparse: sparse: dereference of noderef expression
   drivers/mailbox/arm_mhuv3.c:373:9: sparse: sparse: dereference of noderef expression
   drivers/mailbox/arm_mhuv3.c:639:30: sparse: sparse: dereference of noderef expression
   drivers/mailbox/arm_mhuv3.c:659:33: sparse: sparse: dereference of noderef expression
   drivers/mailbox/arm_mhuv3.c:688:14: sparse: sparse: dereference of noderef expression
   drivers/mailbox/arm_mhuv3.c:700:17: sparse: sparse: dereference of noderef expression
   drivers/mailbox/arm_mhuv3.c:719:14: sparse: sparse: dereference of noderef expression
   drivers/mailbox/arm_mhuv3.c:732:14: sparse: sparse: dereference of noderef expression
   drivers/mailbox/arm_mhuv3.c:789:22: sparse: sparse: dereference of noderef expression
   drivers/mailbox/arm_mhuv3.c:795:22: sparse: sparse: dereference of noderef expression
   drivers/mailbox/arm_mhuv3.c:796:22: sparse: sparse: dereference of noderef expression
   drivers/mailbox/arm_mhuv3.c:802:31: sparse: sparse: dereference of noderef expression
   drivers/mailbox/arm_mhuv3.c:806:17: sparse: sparse: dereference of noderef expression
   drivers/mailbox/arm_mhuv3.c:1038:17: sparse: sparse: dereference of noderef expression

vim +565 drivers/mailbox/arm_mhuv3.c

   558	
   559	static void mhuv3_dbe_combined_irq_setup(struct mhuv3 *mhu)
   560	{
   561		int i;
   562		struct mhuv3_extension *e = mhu->ext[DBE_EXT];
   563	
   564		if (mhu->frame == PBX_FRAME) {
 > 565			struct pdbcw_page *dbcw = mhu->pbx->dbcw;
   566	
   567			for (i = 0; i < e->max_chans; i++) {
 > 568				writel_relaxed_bitfield(0x1, &dbcw[i].int_clr, tfr_ack);
   569				writel_relaxed_bitfield(0x0, &dbcw[i].int_en, tfr_ack);
 > 570				writel_relaxed_bitfield(0x1, &dbcw[i].ctrl, comb_en);
   571			}
   572		} else {
 > 573			struct mdbcw_page *dbcw = mhu->mbx->dbcw;
   574	
   575			for (i = 0; i < e->max_chans; i++) {
 > 576				writel_relaxed(0xFFFFFFFF, &dbcw[i].clr);
   577				writel_relaxed(0xFFFFFFFF, &dbcw[i].msk_set);
   578				writel_relaxed_bitfield(0x1, &dbcw[i].ctrl, comb_en);
   579			}
   580		}
   581	}
   582	

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




[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]


  Powered by Linux