Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3270574imm; Fri, 20 Jul 2018 13:17:00 -0700 (PDT) X-Google-Smtp-Source: AAOMgpehS6RkB/dkTzBYYR/+zg6wAeYkQnfZSNvz4GrXKuddJkPkSZ4zC08hU4lDz2e2mvMMx9T/ X-Received: by 2002:a63:67c3:: with SMTP id b186-v6mr3368602pgc.5.1532117820902; Fri, 20 Jul 2018 13:17:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532117820; cv=none; d=google.com; s=arc-20160816; b=OWrZCgFKZ5dAE/m9ek7rRPzUR5lBYf1nwgHN1OvMz7Dv+kb5Sdaehs5RQtWDNXCr4G 1kihMkq8FFHytsOZK8a0lk1/LudwqlrWxR4XEPSgD4bsXorAp3Q4+e1/x9ReR16zMIX/ M0X0qMhIEP8LVqDFFqe3mQuLdXm5YVhvo78J97eFAWLnn6+CMSrDEBCibhc6Mtn1vfdO Eyd44YuP7a/xJYDujmiYS+FWNtOlf6rWSTD8WhV1z2jb/00buIJtYS+CaZV2IjcPUEL5 3ovXI98NztjtTyV8QysIzxzoXD8GIlL9rCeZFv2crc6e/gfBYteUqY8eba0HUOKmrFKm Ej6Q== 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=74SSK+YvwPJw8a7XuH/8OaCpBh2qG5nXP4WSsVG/Iko=; b=ZfdEmZZYidWq09FLBOIf2Y0njPIp1Ir+A2SXLClAF6Z9UJwDOmPOVllu3id9aAk4gf PaYWw25z7gAAy7ufwbLwP8woCNHp+36WuYgwCagld14/WkEOxaqMu2aZgR9o3bG9UjTU pSQBIosqg5iB3LtgsD7fTrCair5NDUuQ/pcYPjPm5o/2AorG9fnkNy/Pt92oBL5ePmg9 HdiWvNhGjZ8sqhz12km5f7MflrGgUsY6luELZTAtky9bH1vyJ59zh1Y1oYqI9YCqxuyp mN/Q1irNLjXItEELb46sLkSZCSLpIVwPP5NA49NC9a29M0vkkD7IZQoa0MCTGSz1kZOd Y8ZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="aR/MWyDn"; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q16-v6si2427550pgg.619.2018.07.20.13.16.46; Fri, 20 Jul 2018 13:17:00 -0700 (PDT) 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=@gmail.com header.s=20161025 header.b="aR/MWyDn"; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728189AbeGTVFL (ORCPT + 99 others); Fri, 20 Jul 2018 17:05:11 -0400 Received: from mail-lj1-f195.google.com ([209.85.208.195]:39545 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727383AbeGTVFL (ORCPT ); Fri, 20 Jul 2018 17:05:11 -0400 Received: by mail-lj1-f195.google.com with SMTP id l15-v6so12080669lji.6 for ; Fri, 20 Jul 2018 13:15:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=74SSK+YvwPJw8a7XuH/8OaCpBh2qG5nXP4WSsVG/Iko=; b=aR/MWyDnoJ93PqmpGLRZsAEgCdCOvopfPOSsPTdzVYKm8vgypRcAewRz/jhhqhBY3E g1qKIrIw1KFbCqHvcC+0v8ciJ3rfQvWi5XFtx+mCblGWPSUKP5AQoC4aiencCu1DkcVF 6l2ZnoXJ5WePkFyBdDPEeeNVHuTGb4l0D+KZOwQrbROFbOKxBgvtMXg6hj/pt+ICd+a0 xpvXGu+eCS8s/w/AkquTD0ebK/aJrwzxw3gQ/GgcO+lNyY4t3lkWg5nLLiRg+gq64YcX 9tLKooDlnBi2isLp+N/hMUDxpOcR8t1iZZULZdsrZgrdrUyD/E8h86ciNL5j6InBfnuo ygJg== 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=74SSK+YvwPJw8a7XuH/8OaCpBh2qG5nXP4WSsVG/Iko=; b=bK9gPcK9p334SYNF7RbRBd8crVQdvNeY1vblPYVWlX7wZeUnD9wOcWOGgzFc/m04W/ 4pgkSTHQ6Q2gv8jobf30bAKMLZvBZyWzdbGDxoYBLuybuJFY0YM8ILspz3m/odoKV2yA yTlx4X4bdWSeIJFzw6CuqCTMAmCkzXQIt1arMcOIVWmBFQIqia3Div2YuLQzjhwvDkuA ov4cJ61GOMvCV6yAGuDldix5+QDK1efB0RF/Nt4GHQ6Z4QH6s09gIELZEgnNcYUDgKSr oL0WRpK6JIfC1279L6KLYaeWxEh+D8kXfMEAYB3IgZX0iMP0bxcYnYhTh78xBSZb1Qjg bJNg== X-Gm-Message-State: AOUpUlGY6Afyo2tAwMDLOmJBgshkDFQgeIGl/LPITZ+E9DC0VGd+vo7i 2J/2r+92dIB2wmyMJnsxy44= X-Received: by 2002:a2e:9a16:: with SMTP id o22-v6mr2754544lji.17.1532117720798; Fri, 20 Jul 2018 13:15:20 -0700 (PDT) Received: from linux.local ([5.166.218.73]) by smtp.gmail.com with ESMTPSA id z5-v6sm411894lff.96.2018.07.20.13.15.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 20 Jul 2018 13:15:20 -0700 (PDT) From: Serge Semin To: paul.burton@mips.com, jhogan@kernel.org, ralf@linux-mips.org Cc: hch@infradead.org, okaya@codeaurora.org, chenhc@lemote.com, Sergey.Semin@t-platforms.ru, linux-kernel@vger.kernel.org, Serge Semin , linux-mips@linux-mips.org Subject: [PATCH] mips: mm: Discard ioremap_cacheable_cow() method Date: Fri, 20 Jul 2018 23:14:27 +0300 Message-Id: <20180720201427.18845-1-fancer.lancer@gmail.com> X-Mailer: git-send-email 2.12.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This macro substitution is the shortcut to map cacheable IO memory with coherent and write-back attributes. Since it is entirely unused by kernel, lets just remove it. Signed-off-by: Serge Semin Suggested-by: Christoph Hellwig CC: Paul Burton Cc: James Hogan Cc: Ralf Baechle Cc: Sinan Kaya Cc: Huacai Chen Cc: Sergey.Semin@t-platforms.ru Cc: linux-mips@linux-mips.org Cc: linux-kernel@vger.kernel.org --- arch/mips/include/asm/io.h | 7 ------- 1 file changed, 7 deletions(-) diff --git a/arch/mips/include/asm/io.h b/arch/mips/include/asm/io.h index f613d1df66c0..cd170d920d55 100644 --- a/arch/mips/include/asm/io.h +++ b/arch/mips/include/asm/io.h @@ -300,13 +300,6 @@ static inline void __iomem * __ioremap_mode(phys_addr_t offset, unsigned long si #define ioremap_wc(offset, size) \ __ioremap_mode((offset), (size), boot_cpu_data.writecombine) -/* - * This is a MIPS specific ioremap variant. ioremap_cacheable_cow - * requests a cachable mapping with CWB attribute enabled. - */ -#define ioremap_cacheable_cow(offset, size) \ - __ioremap_mode((offset), (size), _CACHE_CACHABLE_COW) - static inline void iounmap(const volatile void __iomem *addr) { if (plat_iounmap(addr)) -- 2.12.0