Received: by 10.223.164.202 with SMTP id h10csp1063057wrb; Wed, 15 Nov 2017 12:31:40 -0800 (PST) X-Google-Smtp-Source: AGs4zMYufo2CcipAQKkYa2sal04LVlMhYlsVR1/C6T/YuK4j3mHXLG3BvNFyB/pcZNMn9fwlch3j X-Received: by 10.99.121.9 with SMTP id u9mr16927843pgc.37.1510777900668; Wed, 15 Nov 2017 12:31:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510777900; cv=none; d=google.com; s=arc-20160816; b=hraxjGdQopM1LjUAYxNYL4wxl8hbsBFP2pI1D8rWyexY62vFE+OPJ+cJcbCzvKQbN3 7lr5BF8kZDt39BiUapPc20jKSc2disF4lsPrZH/ihJXsWRRIXE+eTym6aC3PPF7yBYD6 uD89jub76CWm+gGR63/zh2agKKOudUv8fUuc0rDJ6umH9zKR6XZYr3sy4iCvm2pgPeHV tMjrGYGkAb5uM1lR2ZE1jgoqMAEZCCWfYRZGsA21rLR3rQrVqpnR2PeTq/8Cqa7vS6sD wS+LwyCp1IJ0SL0r+Ix9vh5zl2KNWtsgTOkYj4y6qMyhT6nD0j4XJgkybaLmG8tV/Ii8 TY6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=HmZy1iBu4NeFNzDRXenEmlPelkSW02yGx/B39Z6ixK4=; b=zlqal+f3FWw0QvcfqdAezqJw0CJSe1FX6uAVo3MxZnILCQLpMEcZo5JJUJJAg8sbn+ SExLfoLsQc9GCRUJUDXxQw4eX2FbQi3WqYrP9N6j4gEoGYU1MG8ceCcml4XhAKPGoUON lpacZUvomHgaPZ7BdO52FkyJBcCPZvmA5IxG9eh6aRZ4vC7JczWcfuF9E9gdA8Jequ6e o4zIcPdFt1DF0sJJIrENMNRjlN7PNNKLd2f+U5/mAL3wn8qtGBRQY2zq7101UwmyAzDh gBWkZsNxVoqNmABpvY8WINVnGc5440aBrul8FBm2pJcN2gdDd5nHYDvhEKPFfkoacr9k qO1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=TnRVzwHC; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 71si14074044pfs.2.2017.11.15.12.31.28; Wed, 15 Nov 2017 12:31:40 -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=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=TnRVzwHC; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758698AbdKOTdg (ORCPT + 89 others); Wed, 15 Nov 2017 14:33:36 -0500 Received: from mail-wr0-f196.google.com ([209.85.128.196]:45941 "EHLO mail-wr0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757242AbdKOTda (ORCPT ); Wed, 15 Nov 2017 14:33:30 -0500 Received: by mail-wr0-f196.google.com with SMTP id w95so2552067wrc.2 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=Spja0K//pIS4E8iAJqo5JvggVxnlTylHXSURWftAgG1UpCXbRecUbD8MeVzWTL077Q PPU5Lxnas3roeQ8dSL3zBNIQJLmFq2AMR7mqKJ93tWjm4/zLdAW7z1iK9nr072XDlfFD mKs7wvDAen6EZcPwhxO2weeHMDRirRILz1cIuK7tJFQbfFLIfLvja4Apk31XhGpYpeuh Mxdr/H+THTRCvOXROfx/H4f62t+vwq0IHKQMC+TyNl1p+6ujcrFA2x69aJ6WF73uzAzO eVjoFN07Yru7QC7Y/09OWPHjkzw43BglQ5A5CH/n2ErXPOGgJM+u9xnNivPgRJWSbP1C V1qw== X-Gm-Message-State: AJaThX7V7cE/GtdT1JzNmAKXWOEYmauH1zYv5R3nHFP7ykRvFHvlglyl AZvEXJA9sZOxOrUf1KjkzQGZJA== 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 Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Corentin Labbe 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 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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)); -- 2.13.6 From 1584272680690980099@xxx Fri Nov 17 00:56:05 +0000 2017 X-GM-THRID: 1584176522888136291 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread