Re: drivers/net/can/kvaser_pciefd.c:801:17: sparse: sparse: cast removes address space '' of expression

2020-06-15 Thread Greg Ungerer
On 13/6/20 2:35 am, Luc Van Oostenryck wrote: On Sat, Jun 13, 2020 at 01:33:16AM +1000, Greg Ungerer wrote: arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32 This one I am not sure about yet. Still investigating. swab32(__raw_readl(addr)) ?

Re: drivers/net/can/kvaser_pciefd.c:801:17: sparse: sparse: cast removes address space '' of expression

2020-06-12 Thread Greg Ungerer
On 13/6/20 2:35 am, Luc Van Oostenryck wrote: On Sat, Jun 13, 2020 at 01:33:16AM +1000, Greg Ungerer wrote: On 12/6/20 5:48 pm, Marc Kleine-Budde wrote: I think this one is due to not forcing the volatile cast in __raw_write(). So this change will fix that: diff --git

Re: drivers/net/can/kvaser_pciefd.c:801:17: sparse: sparse: cast removes address space '' of expression

2020-06-12 Thread Luc Van Oostenryck
On Sat, Jun 13, 2020 at 01:33:16AM +1000, Greg Ungerer wrote: > Hi Marc, > > On 12/6/20 5:48 pm, Marc Kleine-Budde wrote: > > the k-build robot found this sparse problem, triggered by building a CAN > > driver > > for m68k. Is this a problem in our CAN driver or in the m68k headers? > > I

Re: drivers/net/can/kvaser_pciefd.c:801:17: sparse: sparse: cast removes address space '' of expression

2020-06-12 Thread Greg Ungerer
tree make W=1 C=1 ARCH=m68k CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot sparse warnings: (new ones prefixed by >>) drivers/net/can/kvaser_pciefd.c:801:17: sparse: sparse: cast removes a

Re: drivers/net/can/kvaser_pciefd.c:801:17: sparse: sparse: cast removes address space '' of expression

2020-06-12 Thread Marc Kleine-Budde
CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' > > If you fix the issue, kindly add following tag as appropriate > Reported-by: kernel test robot > > > sparse warnings: (new ones prefixed by >>) > >>> drivers/net/can/kvaser_pciefd.c:801:17: sparse: sparse: cast remove

drivers/net/can/kvaser_pciefd.c:801:17: sparse: sparse: cast removes address space '' of expression

2020-06-11 Thread kernel test robot
ARCH=m68k CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot sparse warnings: (new ones prefixed by >>) >> drivers/net/can/kvaser_pciefd.c:801:17: sparse: sparse: cast removes address >> spac