From patchwork Wed Nov 15 19:33:22 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin Labbe X-Patchwork-Id: 10060081 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 67A72604D4 for ; Wed, 15 Nov 2017 19:33:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 57B3C2A286 for ; Wed, 15 Nov 2017 19:33:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4B3972A288; Wed, 15 Nov 2017 19:33:59 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id BE06F2A286 for ; Wed, 15 Nov 2017 19:33:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=tphaawPzpYWlM28qkkM0nbJMLtMeNag4ID+XvWJAgE8=; b=CZq nEGqsrhqD6LyLp2Zh4/aUmqy1XzHYnbbq1ufjUGSmhH5ALx0oOCPaUhx88ar1D3KN25E8HljdZdnt AaJVCQfEY5dMrC5yoLpkso5j5BroBVKnMRZ59ol0dYV4WAfo6xdyElrOeEQ8Yvz82UqV+DPjfVy1/ 2a4PQnoxKJbs9a6c/N5+dtrR53AG8LNiaMxbZO1yK0AD88WrYE6hDQ+EDbtGRCRuctfg5H5Mkdu5u F6g7ygz8Nb2KZmVYTKIMNsjC82tk2Iv1LeeT2N8dzVp5FY3JErt2Qgv1baMoYvrtaQJPJY1Ke03FK 2fqeNk+v074+AAa1YYht/mxNBgPWUQQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1eF3Rc-0006gd-1p; Wed, 15 Nov 2017 19:33:56 +0000 Received: from mail-wr0-x241.google.com ([2a00:1450:400c:c0c::241]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eF3RX-0006eS-UK for linux-arm-kernel@lists.infradead.org; Wed, 15 Nov 2017 19:33:54 +0000 Received: by mail-wr0-x241.google.com with SMTP id u40so21366016wrf.10 for ; Wed, 15 Nov 2017 11:33:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=HmZy1iBu4NeFNzDRXenEmlPelkSW02yGx/B39Z6ixK4=; b=TnRVzwHCJmiZLWthnQN6QxxKFrWFpY2U91Ig/D0rGfD76Ouaz4mQXsFkC0BKynP50N 8xKDuysjIdUcnK1+yWLB1HAQYGQZLM9nCdgCuJ+hR3i6OkBY89Px6QNFmHMwjdGF8bNY bDc1TprwUgxzjvLA9NgoFW89A13GqUqRO6AdkgG5UlMCSadm4Hc6/iIhQN6ZEItcX/5M El9AsIDLXV8kxz0G5XqctczgS4RfINEb30LbdkMst0LQ2LexLEaas/ziHXbzm/OfzAMV iBhjUAJaKhNP0Ju7DhUKODYsBqLndMjYE2j1yIaFCGTUQECzv67EMoG0DR/jliY4xIet NtMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=HmZy1iBu4NeFNzDRXenEmlPelkSW02yGx/B39Z6ixK4=; b=ZqKKAQ797n+TG8uPMOpIxi2EO7ubeX/OF3/ThlB2WzA6XMwCEkN6Tap1sf5fgCC7fX jJLQGN++54iuWb5bBAd6w+2ov5AkxbXgseZ35EeP+O5Y4scDi7HgXPKrIr97f2KjnMFU XkxmQU8VW/lCwYF/W+KO90m/7K+MWqV3WO6fQDgw7jV3SEf5agDHhYEI/a+MCDB2ISNr LSmkIVMZ1NUOgfBckeiwKvPCYZkGBIeJAJyrNI0WV5HYTPPKDpQ6bNAsp0R09CfP43oc 6XcmLliEbMmCBdgd3C9w2lzS+FbAQxkKh828Iy81KZjH+hn0VfnLZFv2pmVOG0HPsZGo UBMg== X-Gm-Message-State: AJaThX4z1YJBAp4sZlSP64GG7o5WKp0CcriceuFv7EVk2bpjVVFWZLNR kDa9I87WNUfUuLRbtaOYk5k/fg== X-Google-Smtp-Source: AGs4zMaEbMcuxO6q+KmwlHloUYrwudU5hbUzVrEefdoubujoYNNv8EMQy2Ky9yyT9tJ/d4QP0KHPIw== X-Received: by 10.223.189.14 with SMTP id j14mr14716141wrh.141.1510774409646; Wed, 15 Nov 2017 11:33:29 -0800 (PST) Received: from localhost.localdomain ([51.15.160.169]) by smtp.googlemail.com with ESMTPSA id o135sm14781132wmg.1.2017.11.15.11.33.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 15 Nov 2017 11:33:28 -0800 (PST) From: Corentin Labbe To: linux@armlinux.org.uk Subject: [PATCH] arm: Remove unused __readwrite_bug function Date: Wed, 15 Nov 2017 19:33:22 +0000 Message-Id: <1510774402-34611-1-git-send-email-clabbe@baylibre.com> X-Mailer: git-send-email 2.7.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171115_113352_224874_17A770AB X-CRM114-Status: UNSURE ( 8.42 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Corentin Labbe MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The function __readwrite_bug() is not used at all, so this patch remove it. Signed-off-by: Corentin Labbe --- arch/arm/include/asm/io.h | 5 ----- arch/arm/kernel/traps.c | 7 ------- 2 files changed, 12 deletions(-) diff --git a/arch/arm/include/asm/io.h b/arch/arm/include/asm/io.h index 2cfbc531f63b..6a9d9d2d4c0a 100644 --- a/arch/arm/include/asm/io.h +++ b/arch/arm/include/asm/io.h @@ -150,11 +150,6 @@ extern void __iomem * (*arch_ioremap_caller)(phys_addr_t, size_t, extern void (*arch_iounmap)(volatile void __iomem *); /* - * Bad read/write accesses... - */ -extern void __readwrite_bug(const char *fn); - -/* * A typesafe __io() helper */ static inline void __iomem *__typesafe_io(unsigned long addr) diff --git a/arch/arm/kernel/traps.c b/arch/arm/kernel/traps.c index 5cf04888c581..cce8b18d673f 100644 --- a/arch/arm/kernel/traps.c +++ b/arch/arm/kernel/traps.c @@ -757,13 +757,6 @@ baddataabort(int code, unsigned long instr, struct pt_regs *regs) arm_notify_die("unknown data abort code", regs, &info, instr, 0); } -void __readwrite_bug(const char *fn) -{ - pr_err("%s called, but not implemented\n", fn); - BUG(); -} -EXPORT_SYMBOL(__readwrite_bug); - void __pte_error(const char *file, int line, pte_t pte) { pr_err("%s:%d: bad pte %08llx.\n", file, line, (long long)pte_val(pte));