From patchwork Fri Jul 2 13:47:51 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 12356209 X-Patchwork-Delegate: bhelgaas@google.com Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-26.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_CR_TRAILER,INCLUDES_PATCH, INCLUDES_PULL_REQUEST,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 61326C11F68 for ; Fri, 2 Jul 2021 13:48:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 40B506142E for ; Fri, 2 Jul 2021 13:48:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232565AbhGBNuk (ORCPT ); Fri, 2 Jul 2021 09:50:40 -0400 Received: from mail.kernel.org ([198.145.29.99]:49980 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232386AbhGBNuk (ORCPT ); Fri, 2 Jul 2021 09:50:40 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 910436142B; Fri, 2 Jul 2021 13:48:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1625233688; bh=2sqvaKpsBfNMgq83CEar15dETBn3QWs27Pt8LM/rCwM=; h=From:Date:Subject:To:Cc:From; b=rc62/bOo5T2jDzR4RHPSTBU9uRAByYE4yKqqeivveY0JA8eJssOJVIEfs4EEX9KR4 IrPz2C1OHXFxfio5zL9ScYUVfVpHi+OjIZlwgHNng3KBYm8KKAL+dYGLu889KvdIss fVFNvo7E+VSwodDiRF+vWIF4GJDR3Zy+uNmCHZ7vaEazMC3DpeWUDWUVlwaDhSqKcx QMu8wJv7wuaNTcicgKSOeNP+BaC1q/oUQKf/u0QWsAc2DHQsPrc4+Eep50U/kLxyhq umlzUc/4pDN/spuMUbKadOeONFFU/IcYgJTX1atZh8dGPu9YZwT2y3EJSMHgQDUxPa Fpxib2ruZpQNQ== Received: by mail-wr1-f42.google.com with SMTP id a13so12520603wrf.10; Fri, 02 Jul 2021 06:48:08 -0700 (PDT) X-Gm-Message-State: AOAM531HmZiGYBoh4yGtqDG8rEH7cLPaeeQKb4FsoqEaMP3mIm/oV+SN M003SqBHeS269JAKkVMVYp8i4/Nmzd2ixxRW/Ko= X-Google-Smtp-Source: ABdhPJxjuAcWk+fUW2iebkdnRr3QNskMI/RshqdGsVxS1+zazUtNB4DLWU+IzcKQARqYjKSwvSI4o2tSJmitDSPbyTM= X-Received: by 2002:adf:ee10:: with SMTP id y16mr6057171wrn.99.1625233687201; Fri, 02 Jul 2021 06:48:07 -0700 (PDT) MIME-Version: 1.0 From: Arnd Bergmann Date: Fri, 2 Jul 2021 15:47:51 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: [GIT PULL 1/2] asm-generic: rework PCI I/O space access To: Linus Torvalds Cc: linux-arch , linux-pci , Linux Kernel Mailing List , Niklas Schnelle Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org The following changes since commit 6efb943b8616ec53a5e444193dccf1af9ad627b5: Linux 5.13-rc1 (2021-05-09 14:17:44 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/arnd/asm-generic.git tags/asm-generic-pci-ioport-5.14 for you to fetch changes up to 5ae6eadfdaf431f47adbdf1754f3b5a5fd638de2: asm-generic/io.h: warn in inb() and friends with undefined PCI_IOBASE (2021-05-10 17:37:55 +0200) ---------------------------------------------------------------- asm-generic: rework PCI I/O space access A rework for PCI I/O space access from Niklas Schnelle: "This is version 5 of my attempt to get rid of a clang -Wnull-pointer-arithmetic warning for the use of PCI_IOBASE in asm-generic/io.h. This was originally found on s390 but should apply to all platforms leaving PCI_IOBASE undefined while making use of the inb() and friends helpers from asm-generic/io.h. This applies cleanly and was compile tested on top of v5.12 for the previously broken ARC, nds32, h8300 and risc-v architecture. It also applies cleanly on v5.13-rc1 for which I boot tested it on s390. I did boot test this only on x86_64 and s390x the former implements inb() itself while the latter would emit a WARN_ONCE() but no drivers use inb(). Link: https://lore.kernel.org/lkml/20210510145234.594814-1-schnelle@linux.ibm.com/ Signed-off-by: Arnd Bergmann ---------------------------------------------------------------- Niklas Schnelle (3): sparc: explicitly set PCI_IOBASE to 0 risc-v: Use generic io.h helpers for nommu asm-generic/io.h: warn in inb() and friends with undefined PCI_IOBASE arch/riscv/include/asm/io.h | 5 +++-- arch/sparc/include/asm/io.h | 8 ++++++++ include/asm-generic/io.h | 68 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++---- 3 files changed, 75 insertions(+), 6 deletions(-)