From patchwork Sat Jun 20 09:33:38 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Lobakin X-Patchwork-Id: 11615841 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 4617A14E3 for ; Sat, 20 Jun 2020 09:33:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0539623A77 for ; Sat, 20 Jun 2020 09:33:51 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=pm.me header.i=@pm.me header.b="Z6QXkwTp" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727841AbgFTJdv (ORCPT ); Sat, 20 Jun 2020 05:33:51 -0400 Received: from mail-40136.protonmail.ch ([185.70.40.136]:53117 "EHLO mail-40136.protonmail.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726533AbgFTJdu (ORCPT ); Sat, 20 Jun 2020 05:33:50 -0400 Date: Sat, 20 Jun 2020 09:33:38 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pm.me; s=protonmail; t=1592645627; bh=+6kZxlKJG86Z+7goQSio+X9/leY9eeHUIPXcjxNN0Do=; h=Date:To:From:Cc:Reply-To:Subject:From; b=Z6QXkwTproBEynDrBVRFmsctfFAYDUmJKCQF4L/hCa5hl5TDPzlhz5I42mB34z1jw 4Yx53tsRHY6OGWXzd9mMsHNMFHkahD7jfBwGkoRYsK9j3JVb4Iq6YNF+JDtUxRjGbs tRx3A5Ja1sHcfSkhEeTtVRHvPBb8z173mxfLpeea3QalHA2kURuckz968mnRFsz67V JJGKUoC7xqEU+j7USMAepiAkJpB5wDkTU0KClnXAx5eNOonm7NEEudZOZ1e6JYMwKq p5gTR7uJjKZ5pHkY7lC8b8G2YaQy4VUqlX0Vr5ep4qPsuXyrFDiP69ag88JvgBk2Uz 52bQYR81GWj/g== To: Thomas Bogendoerfer From: Alexander Lobakin Cc: Alexandre Belloni , Paul Burton , Alexander Lobakin , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Reply-To: Alexander Lobakin Subject: [PATCH mips-next 0/3] MIPS: fix the two most annoying sparse floods Message-ID: MIME-Version: 1.0 X-Spam-Status: No, score=-1.2 required=7.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mail.protonmail.ch Sender: linux-mips-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.org 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(-)