public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH mips-next 0/3] MIPS: fix the two most annoying sparse floods
@ 2020-06-20  9:33 Alexander Lobakin
  2020-06-20  9:34 ` [PATCH mips-next 1/3] MIPS: generic/ip32: io: fix __mem_ioswabq() Alexander Lobakin
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Alexander Lobakin @ 2020-06-20  9:33 UTC (permalink / raw)
  To: Thomas Bogendoerfer
  Cc: Alexandre Belloni, Paul Burton, Alexander Lobakin, linux-mips,
	linux-kernel

This set addresses the two most annoying sparse floods when building the
tree with C={1,2}: one in asm/io.h (in several mangle-port.h actually),
and one in asm/checksum.h.
Both of these comes from lack of forced typecasting and hence harmless,
but complicates real bug hunting, as asm/io.h is included in almost
every driver, while asm/checksum.h is included in lots of networking
code.

I also fixed two wrong __mem_ioswabq() macros while was nearby.
Tested on Generic MIPS platform -- no more flooding in console (there's
one more source in mips-cm.h, but it's included in just a few files, so
not a real problem. It can be issued separately anyway), while objdump
doesn't see any difference at all.

Alexander Lobakin (3):
  MIPS: generic/ip32: io: fix __mem_ioswabq()
  MIPS: io: fix sparse flood on asm/io.h
  MIPS: checksum: fix sparse flooding on asm/checksum.h

 arch/mips/include/asm/checksum.h                     |  4 ++--
 .../include/asm/mach-cavium-octeon/mangle-port.h     | 12 +++++++++---
 arch/mips/include/asm/mach-generic/mangle-port.h     | 12 ++++++------
 arch/mips/include/asm/mach-ip27/mangle-port.h        |  6 +++---
 arch/mips/include/asm/mach-ip30/mangle-port.h        |  6 +++---
 arch/mips/include/asm/mach-ip32/mangle-port.h        |  6 +++---
 arch/mips/include/asm/mach-tx39xx/mangle-port.h      |  6 +++---
 arch/mips/include/asm/mach-tx49xx/mangle-port.h      |  6 +++---
 8 files changed, 32 insertions(+), 26 deletions(-)

-- 
2.27.0



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

end of thread, other threads:[~2020-06-25  9:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-06-20  9:33 [PATCH mips-next 0/3] MIPS: fix the two most annoying sparse floods Alexander Lobakin
2020-06-20  9:34 ` [PATCH mips-next 1/3] MIPS: generic/ip32: io: fix __mem_ioswabq() Alexander Lobakin
2020-06-20  9:34 ` [PATCH mips-next 2/3] MIPS: io: fix sparse flood on asm/io.h Alexander Lobakin
2020-06-20  9:35 ` [PATCH mips-next 3/3] MIPS: checksum: fix sparse flooding on asm/checksum.h Alexander Lobakin
2020-06-25  9:40 ` [PATCH mips-next 0/3] MIPS: fix the two most annoying sparse floods Thomas Bogendoerfer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox