All of lore.kernel.org
 help / color / mirror / Atom feed
* [intel-linux-intel-lts:5.4/yocto 230/8959] drivers/net/ethernet/stmicro/stmmac/dwmac5_tsn.c:431:30: sparse: sparse: incorrect type in argument 1 (different address spaces)
@ 2020-08-05 15:13 kernel test robot
  2020-08-05 15:13 ` [RFC PATCH intel-linux-intel-lts] net: stmmac: dwmac5_fpe_get_config() can be static kernel test robot
  0 siblings, 1 reply; 2+ messages in thread
From: kernel test robot @ 2020-08-05 15:13 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 6523 bytes --]

tree:   https://github.com/intel/linux-intel-lts.git 5.4/yocto
head:   894da5cd0b768e16210c20d2316c196241df842a
commit: 98ed5c8cc7e67dea6273ad21a3442e4168b2b7af [230/8959] net: stmmac: introduce IEEE 802.1Qbu implementation
config: i386-randconfig-s002-20200805 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.2-117-g8c7aee71-dirty
        git checkout 98ed5c8cc7e67dea6273ad21a3442e4168b2b7af
        # save the attached .config to linux build tree
        make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=i386 

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


sparse warnings: (new ones prefixed by >>)

   drivers/net/ethernet/stmicro/stmmac/dwmac5_tsn.c:19:27: sparse: sparse: symbol 'dwmac5_tsn_mmc_desc' was not declared. Should it be static?
   drivers/net/ethernet/stmicro/stmmac/dwmac5_tsn.c:331:5: sparse: sparse: symbol 'dwmac5_est_irq_status' was not declared. Should it be static?
>> drivers/net/ethernet/stmicro/stmmac/dwmac5_tsn.c:431:30: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] <asn:2> *addr @@     got void * @@
>> drivers/net/ethernet/stmicro/stmmac/dwmac5_tsn.c:431:30: sparse:     expected void const volatile [noderef] <asn:2> *addr
>> drivers/net/ethernet/stmicro/stmmac/dwmac5_tsn.c:431:30: sparse:     got void *
>> drivers/net/ethernet/stmicro/stmmac/dwmac5_tsn.c:435:30: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] <asn:2> *addr @@     got void * @@
>> drivers/net/ethernet/stmicro/stmmac/dwmac5_tsn.c:435:30: sparse:     expected void volatile [noderef] <asn:2> *addr
   drivers/net/ethernet/stmicro/stmmac/dwmac5_tsn.c:435:30: sparse:     got void *
   drivers/net/ethernet/stmicro/stmmac/dwmac5_tsn.c:442:30: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] <asn:2> *addr @@     got void * @@
   drivers/net/ethernet/stmicro/stmmac/dwmac5_tsn.c:442:30: sparse:     expected void const volatile [noderef] <asn:2> *addr
   drivers/net/ethernet/stmicro/stmmac/dwmac5_tsn.c:442:30: sparse:     got void *
   drivers/net/ethernet/stmicro/stmmac/dwmac5_tsn.c:448:30: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] <asn:2> *addr @@     got void * @@
   drivers/net/ethernet/stmicro/stmmac/dwmac5_tsn.c:448:30: sparse:     expected void volatile [noderef] <asn:2> *addr
   drivers/net/ethernet/stmicro/stmmac/dwmac5_tsn.c:448:30: sparse:     got void *
   drivers/net/ethernet/stmicro/stmmac/dwmac5_tsn.c:455:30: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] <asn:2> *addr @@     got void * @@
   drivers/net/ethernet/stmicro/stmmac/dwmac5_tsn.c:455:30: sparse:     expected void const volatile [noderef] <asn:2> *addr
   drivers/net/ethernet/stmicro/stmmac/dwmac5_tsn.c:455:30: sparse:     got void *
   drivers/net/ethernet/stmicro/stmmac/dwmac5_tsn.c:459:30: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] <asn:2> *addr @@     got void * @@
   drivers/net/ethernet/stmicro/stmmac/dwmac5_tsn.c:459:30: sparse:     expected void const volatile [noderef] <asn:2> *addr
   drivers/net/ethernet/stmicro/stmmac/dwmac5_tsn.c:459:30: sparse:     got void *
>> drivers/net/ethernet/stmicro/stmmac/dwmac5_tsn.c:451:6: sparse: sparse: symbol 'dwmac5_fpe_get_config' was not declared. Should it be static?
   drivers/net/ethernet/stmicro/stmmac/dwmac5_tsn.c:467:30: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] <asn:2> *addr @@     got void * @@
   drivers/net/ethernet/stmicro/stmmac/dwmac5_tsn.c:467:30: sparse:     expected void const volatile [noderef] <asn:2> *addr
   drivers/net/ethernet/stmicro/stmmac/dwmac5_tsn.c:467:30: sparse:     got void *
>> drivers/net/ethernet/stmicro/stmmac/dwmac5_tsn.c:463:6: sparse: sparse: symbol 'dwmac5_fpe_get_pmac_sts' was not declared. Should it be static?
   drivers/net/ethernet/stmicro/stmmac/dwmac5_tsn.c:601:27: sparse: sparse: incorrect type in initializer (incompatible argument 1 (different address spaces)) @@     expected int ( *est_irq_status )( ... ) @@     got int ( * )( ... ) @@
   drivers/net/ethernet/stmicro/stmmac/dwmac5_tsn.c:601:27: sparse:     expected int ( *est_irq_status )( ... )
   drivers/net/ethernet/stmicro/stmmac/dwmac5_tsn.c:601:27: sparse:     got int ( * )( ... )
   drivers/net/ethernet/stmicro/stmmac/dwmac5_tsn.c:582:24: sparse: sparse: symbol 'dwmac510_tsnif_ops' was not declared. Should it be static?

Please review and possibly fold the followup patch.

vim +431 drivers/net/ethernet/stmicro/stmmac/dwmac5_tsn.c

   426	
   427	static void dwmac5_fpe_set_txqpec(void *ioaddr, u32 txqpec, u32 txqmask)
   428	{
   429		u32 value;
   430	
 > 431		value = readl(ioaddr + MTL_FPE_CTRL_STS);
   432		value &= ~(txqmask << MTL_FPE_CTRL_STS_PEC_SHIFT);
   433		value |= (txqpec << MTL_FPE_CTRL_STS_PEC_SHIFT);
   434	
 > 435		writel(value, ioaddr + MTL_FPE_CTRL_STS);
   436	}
   437	
   438	static void dwmac5_fpe_set_enable(void *ioaddr, bool enable)
   439	{
   440		u32 value;
   441	
   442		value = readl(ioaddr + MAC_FPE_CTRL_STS);
   443		if (enable)
   444			value |= MAC_FPE_CTRL_STS_EFPE;
   445		else
   446			value &= ~MAC_FPE_CTRL_STS_EFPE;
   447	
 > 448		writel(value, ioaddr + MAC_FPE_CTRL_STS);
   449	}
   450	
 > 451	void dwmac5_fpe_get_config(void *ioaddr, u32 *txqpec, bool *enable)
   452	{
   453		u32 value;
   454	
 > 455		value = readl(ioaddr + MTL_FPE_CTRL_STS);
   456		*txqpec = (value & MTL_FPE_CTRL_STS_PEC) >>
   457			  MTL_FPE_CTRL_STS_PEC_SHIFT;
   458	
   459		value = readl(ioaddr + MAC_FPE_CTRL_STS);
   460		*enable = (bool)(value & MAC_FPE_CTRL_STS_EFPE);
   461	}
   462	
 > 463	void dwmac5_fpe_get_pmac_sts(void *ioaddr, u32 *hrs)
   464	{
   465		u32 value;
   466	
   467		value = readl(ioaddr + MTL_FPE_CTRL_STS);
   468		*hrs = (value & MTL_FPE_CTRL_STS_HRS) >> MTL_FPE_CTRL_STS_HRS_SHIFT;
   469	}
   470	

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

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 33299 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [RFC PATCH intel-linux-intel-lts] net: stmmac: dwmac5_fpe_get_config() can be static
  2020-08-05 15:13 [intel-linux-intel-lts:5.4/yocto 230/8959] drivers/net/ethernet/stmicro/stmmac/dwmac5_tsn.c:431:30: sparse: sparse: incorrect type in argument 1 (different address spaces) kernel test robot
@ 2020-08-05 15:13 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2020-08-05 15:13 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 1070 bytes --]


Fixes: 98ed5c8cc7e6 ("net: stmmac: introduce IEEE 802.1Qbu implementation")
Signed-off-by: kernel test robot <lkp@intel.com>
---
 dwmac5_tsn.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac5_tsn.c b/drivers/net/ethernet/stmicro/stmmac/dwmac5_tsn.c
index 826e623350bfac..ed2055ff2f257a 100644
--- a/drivers/net/ethernet/stmicro/stmmac/dwmac5_tsn.c
+++ b/drivers/net/ethernet/stmicro/stmmac/dwmac5_tsn.c
@@ -448,7 +448,7 @@ static void dwmac5_fpe_set_enable(void *ioaddr, bool enable)
 	writel(value, ioaddr + MAC_FPE_CTRL_STS);
 }
 
-void dwmac5_fpe_get_config(void *ioaddr, u32 *txqpec, bool *enable)
+static void dwmac5_fpe_get_config(void *ioaddr, u32 *txqpec, bool *enable)
 {
 	u32 value;
 
@@ -460,7 +460,7 @@ void dwmac5_fpe_get_config(void *ioaddr, u32 *txqpec, bool *enable)
 	*enable = (bool)(value & MAC_FPE_CTRL_STS_EFPE);
 }
 
-void dwmac5_fpe_get_pmac_sts(void *ioaddr, u32 *hrs)
+static void dwmac5_fpe_get_pmac_sts(void *ioaddr, u32 *hrs)
 {
 	u32 value;
 

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-08-05 15:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-05 15:13 [intel-linux-intel-lts:5.4/yocto 230/8959] drivers/net/ethernet/stmicro/stmmac/dwmac5_tsn.c:431:30: sparse: sparse: incorrect type in argument 1 (different address spaces) kernel test robot
2020-08-05 15:13 ` [RFC PATCH intel-linux-intel-lts] net: stmmac: dwmac5_fpe_get_config() can be static kernel test robot

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.