From patchwork Tue Jan 2 08:24:33 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greentime Hu X-Patchwork-Id: 854422 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=netdev-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="OMKVMU4B"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3z9nFx1N75z9t3h for ; Tue, 2 Jan 2018 19:26:13 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751879AbeABI0H (ORCPT ); Tue, 2 Jan 2018 03:26:07 -0500 Received: from mail-pg0-f66.google.com ([74.125.83.66]:42789 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751662AbeABI0C (ORCPT ); Tue, 2 Jan 2018 03:26:02 -0500 Received: by mail-pg0-f66.google.com with SMTP id q67so14853493pga.9; Tue, 02 Jan 2018 00:26:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=aDdEDopAF/k9RNXz4qdRFlrEFMkbrY08YQJeXkqUDn8=; b=OMKVMU4BbNMnNWCeKezFW+KobQ+yP22bT+FYN9c1h0Xjx6dkVX8ETILDQnVzqE3s+t oU5EZFBWTzvLfJWsUsnAwggPVdHMsusPNh+rkJp1Gocewg73IaoZHZb+uiaJydybQ7h/ adNHr2rxaYXSwbVRDhfp0RLxO6ra1nX3JKDrxfz609nmr8oerA8Lpz/kafrpULzoVt3X ajsJkLQp3h0KGH4KMNc3ptQqv+shCQsSRhGALmPrx/blHor+61uOGQjV5Ha9vhIOWq0+ D/3h0kmS9//qqBta998lJM7JPlOMnW1ByTFMjNpu6lAiKobKJFt95wB/vkq9xASdiO9m EvZA== 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:in-reply-to :references:in-reply-to:references; bh=aDdEDopAF/k9RNXz4qdRFlrEFMkbrY08YQJeXkqUDn8=; b=DbasCWaut1qnAyfbt7W42T7MtIFDMSjdJl1QzR0F2osPMDzGsUpRSmvzAmBztVP9PU dDU0d7OvRFdtdRRL5AksiRuBtSuqMFDXdeMzgPYdovGSgF3f05iupkAqwISqx5UDXS5N dRs/lJDQcxj6m/BHJ1WG8v7xj2SNVnau7T5+DAiEuEUcXPFuRrlHE30nvNuvF/hvS81T ocyF5anUwvXkUkR1iKVYMPu93mgSbvWZ0wK64YAFct63c23tmPtoQpH+JYqySQkUtCA0 lWLBtdTFIDw99+jmBGNWPtjkT50BvYTJ/qWxAMzgONxZy6rhWq7zxCzIuLlcHa8kygYY I58Q== X-Gm-Message-State: AKGB3mLLh1dwWMeaU1oLg2t6XffBqq+e+GwIjTptJTVZ6MIh8pH8/OEF 5fout8QpVGuYy3WZLicWbA8= X-Google-Smtp-Source: ACJfBotXjSNLN+1tVwQMRTUhFFxZyciXnLAu3s7GwiFILVajs2aNvMsY/+yEsARWKarmsXextlzMaw== X-Received: by 10.99.56.67 with SMTP id h3mr16257222pgn.311.1514881562116; Tue, 02 Jan 2018 00:26:02 -0800 (PST) Received: from app09.andestech.com ([118.163.51.199]) by smtp.gmail.com with ESMTPSA id 76sm19681729pge.89.2018.01.02.00.25.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 02 Jan 2018 00:26:01 -0800 (PST) From: Greentime Hu To: greentime@andestech.com, linux-kernel@vger.kernel.org, arnd@arndb.de, linux-arch@vger.kernel.org, tglx@linutronix.de, jason@lakedaemon.net, marc.zyngier@arm.com, robh+dt@kernel.org, netdev@vger.kernel.org, deanbo422@gmail.com, devicetree@vger.kernel.org, viro@zeniv.linux.org.uk, dhowells@redhat.com, will.deacon@arm.com, daniel.lezcano@linaro.org, linux-serial@vger.kernel.org, geert.uytterhoeven@gmail.com, linus.walleij@linaro.org, mark.rutland@arm.com, greg@kroah.com, ren_guo@c-sky.com, rdunlap@infradead.org, davem@davemloft.net, jonas@southpole.se, stefan.kristiansson@saunalahti.fi, shorne@gmail.com Cc: green.hu@gmail.com, Vincent Chen Subject: [PATCH v5 01/39] asm-generic/io.h: move ioremap_nocache/ioremap_uc/ioremap_wc/ioremap_wt out of ifndef CONFIG_MMU Date: Tue, 2 Jan 2018 16:24:33 +0800 Message-Id: X-Mailer: git-send-email 1.7.9.5 In-Reply-To: References: In-Reply-To: References: Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org From: Greentime Hu It allows some architectures to use this generic macro instead of defining theirs. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu Acked-by: Arnd Bergmann --- include/asm-generic/io.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/include/asm-generic/io.h b/include/asm-generic/io.h index b4531e3..7c6a39e 100644 --- a/include/asm-generic/io.h +++ b/include/asm-generic/io.h @@ -852,7 +852,16 @@ static inline void __iomem *__ioremap(phys_addr_t offset, size_t size, } #endif +#ifndef iounmap +#define iounmap iounmap + +static inline void iounmap(void __iomem *addr) +{ +} +#endif +#endif /* CONFIG_MMU */ #ifndef ioremap_nocache +void __iomem *ioremap(phys_addr_t phys_addr, size_t size); #define ioremap_nocache ioremap_nocache static inline void __iomem *ioremap_nocache(phys_addr_t offset, size_t size) { @@ -884,15 +893,6 @@ static inline void __iomem *ioremap_wt(phys_addr_t offset, size_t size) } #endif -#ifndef iounmap -#define iounmap iounmap - -static inline void iounmap(void __iomem *addr) -{ -} -#endif -#endif /* CONFIG_MMU */ - #ifdef CONFIG_HAS_IOPORT_MAP #ifndef CONFIG_GENERIC_IOMAP #ifndef ioport_map