From patchwork Tue Nov 6 17:51:42 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 150285 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp4185203ljp; Tue, 6 Nov 2018 09:51:57 -0800 (PST) X-Google-Smtp-Source: AJdET5cJWNmW9TpR9FKp8ZzkgwBoYDKtO3704mWUgzxnodnXrlfxsHxkhNLtpC5GYxvVJFDgTFtC X-Received: by 2002:a62:2e04:: with SMTP id u4-v6mr27729756pfu.229.1541526716860; Tue, 06 Nov 2018 09:51:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541526716; cv=none; d=google.com; s=arc-20160816; b=L/uo+Wv8+eIa4Iz7arcoEP7GaEEoBtY6CHuZL7tOibATK7hwyQV2EhCh42KvT3ujRk UYZkvthLhQd8FxkhZD+EPdP52qpIDQWhRwno3Yl+gdKu8QJQPMKuiPxiCKfI5K7JuPvN cHCLrX9sQpUXC56Okt97cDV5R9sJHou6jFEJ1jDeBTBrTAaUe+p9k1zVpuwGHmE0ry53 iTo3WVeQ7zeJJHhjFVfblI+EWj+thaKn0KjAD7QtgGl91FR8wGdnuGf7r4IQL0IauTOO bCtlcDAw+/qq+4US0Hq9MzStt0m9CDDiK1u48/Mj2GKqJqH8T3waFDw1PAZNLzeHc4u2 2Iyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=CHuw1KmGmf+uPnv6AM4nW3dc0Xygli7B1SC42kWCxrI=; b=lQnJTUuIAFe5maJ4C3QaUIZSucD9d3+jfIKHv28tqtwgR/acF0FB6bxXS2HOcrvuW4 Sqk++Ny65/jrMLsqmYOSeiZFVt/NDJMUYjY3+G8p9zsVvr23bHrylk7FJz441kopaHKv OvKxPX1RQ7hy15LNxl2KbbqRwULrc+I0R8CQqATAPmYJp1vdhZ4VkedxewnifqnSMno+ w/Zj3tKQ1fk2xe6rjebqeEVfy0T03yokLs4N/nkxmL+cHZeQrZv2+tnujLz5us8W950t 3EnvEeQnx3TveIb/7/xJ8Ms8G+R55fjT9+Ny985cknYsKavJjOn2N+kYWTY+DGVqPkdL +aiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=SRukdNfL; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z15si7719602pgl.85.2018.11.06.09.51.56; Tue, 06 Nov 2018 09:51:56 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=SRukdNfL; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389707AbeKGDSO (ORCPT + 32 others); Tue, 6 Nov 2018 22:18:14 -0500 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:55864 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730671AbeKGDSO (ORCPT ); Tue, 6 Nov 2018 22:18:14 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sirena.org.uk; s=20170815-heliosphere; h=Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=CHuw1KmGmf+uPnv6AM4nW3dc0Xygli7B1SC42kWCxrI=; b=SRukdNfLCxm9Iwd0hLlVRogiF Yv6g61774GGIPKM5F1lwT1T79Fki2wwenvCO/IOW3WfmrAnikQ90izDu5r8NVsKJvmO/f6t6rYQl5 vFRUWszUMszdcfNSf6zZvny5Pmy4caHvQh3nnOp7io9gRYfKhyE+zA6VNvDlXh/mcUnzs=; Received: from cpc102320-sgyl38-2-0-cust46.18-2.cable.virginm.net ([82.37.168.47] helo=debutante.sirena.org.uk) by heliosphere.sirena.org.uk with esmtpa (Exim 4.89) (envelope-from ) id 1gK5W0-0002qJ-JJ; Tue, 06 Nov 2018 17:51:48 +0000 Received: by debutante.sirena.org.uk (Postfix, from userid 1000) id 347CF112266B; Tue, 6 Nov 2018 17:51:48 +0000 (GMT) From: Mark Brown To: Yoshinori Sato , Rich Felker Cc: arnd@arndb.de, akpm@linux-foundation.org, linux-sh@vger.kernel.org, linux-kernel@vger.kernel.org, Mark Brown Subject: [PATCH] sh: Provide prototypes for PCI I/O mapping in asm/io.h Date: Tue, 6 Nov 2018 17:51:42 +0000 Message-Id: <20181106175142.27988-1-broonie@kernel.org> X-Mailer: git-send-email 2.19.0.rc2 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Most architectures provide prototypes for the PCI I/O mapping operations when asm/io.h is included but SH doesn't currently do that, leading to for example warnings in sound/pci/hda/patch_ca0132.c when pci_iomap() is used on current -next. Make SH more consistent with other architectures by including asm-generic/pci_iomap.h in asm/io.h. Reported-by: kbuild test robot Signed-off-by: Mark Brown --- arch/sh/include/asm/io.h | 1 + 1 file changed, 1 insertion(+) -- 2.19.0.rc2 diff --git a/arch/sh/include/asm/io.h b/arch/sh/include/asm/io.h index 98cb8c802b1a..4f7f235f15f8 100644 --- a/arch/sh/include/asm/io.h +++ b/arch/sh/include/asm/io.h @@ -24,6 +24,7 @@ #define __IO_PREFIX generic #include #include +#include #include #define __raw_writeb(v,a) (__chk_io_ptr(a), *(volatile u8 __force *)(a) = (v))