From patchwork Wed Mar 30 14:46:03 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 64712 Delivered-To: patch@linaro.org Received: by 10.112.199.169 with SMTP id jl9csp2640432lbc; Wed, 30 Mar 2016 07:50:40 -0700 (PDT) X-Received: by 10.66.90.226 with SMTP id bz2mr13978320pab.31.1459349440639; Wed, 30 Mar 2016 07:50:40 -0700 (PDT) Return-Path: Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id ny6si7000148pab.59.2016.03.30.07.50.40 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 30 Mar 2016 07:50:40 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 2001:1868:205::9 as permitted sender) client-ip=2001:1868:205::9; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 2001:1868:205::9 as permitted sender) smtp.mailfrom=linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org; dmarc=fail (p=NONE dis=NONE) header.from=linaro.org Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1alHR3-0001zJ-35; Wed, 30 Mar 2016 14:49:29 +0000 Received: from mail-wm0-x22e.google.com ([2a00:1450:400c:c09::22e]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1alHOX-0008HG-CV for linux-arm-kernel@lists.infradead.org; Wed, 30 Mar 2016 14:46:54 +0000 Received: by mail-wm0-x22e.google.com with SMTP id 20so74640943wmh.1 for ; Wed, 30 Mar 2016 07:46:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=xaKYBIPjipVZOr6LWU1iGt/jA7sB+mHXaTFld9I4Nbs=; b=bKqpjdc+WPHN+dnfjjzcSHyZYtjRH7+4cAFQiMo/Il3gqYyBGxXVGnLqAKg/BqNpZn BXa9p2lPGMYwpJQx/jh7tgSC+9QSLhVfj2CsnY2hQztaPChuW07HQAjoKvLGurwaN6Oa nZ3D4/j/b1gQV7i1iPN3M+7aXIvhWjGYpE+00= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=xaKYBIPjipVZOr6LWU1iGt/jA7sB+mHXaTFld9I4Nbs=; b=j8HsStAJqGxPk1TnE0s72MkGsY2C0kNhg3bn9B5cEH2Dvjfos87JdyiIF2tp/wNO8L MPKNdR/TCCDh2XI1hRiJharYJEG3pgqbir1XVERzpVj9Ob7EygdG5S0mky7Ib/SzIQfT /8Yz8KfsBQGXA745GIbzGqBxTt2b7gnGmQrk7kiLoL+CmbN1HDHovLDpur1oLpEZgzTG m2XzLI9mX0wftn89q5kFCP1PbsjgOu0yWTwoaO3lSJCv1NOtMVqVUR91LV5p1/poyiY5 gl1q72ZYdQ1ZeWkLLB7I6qO7qrMR7QEgnrNbzCncS4vKoRyFGj6i2XLUmMyluXlX5Zfy 5ohg== X-Gm-Message-State: AD7BkJLEfyPLPwEKDaPs9mr+47KJeVKDKiXRHyIjKdp4Bl7rnMfRwUKhrSSt8WHLjGsIjFFG X-Received: by 10.28.180.86 with SMTP id d83mr15106503wmf.67.1459349191169; Wed, 30 Mar 2016 07:46:31 -0700 (PDT) Received: from localhost.localdomain ([195.55.142.58]) by smtp.gmail.com with ESMTPSA id i5sm4325336wjx.15.2016.03.30.07.46.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 30 Mar 2016 07:46:30 -0700 (PDT) From: Ard Biesheuvel To: linux-arm-kernel@lists.infradead.org, catalin.marinas@arm.com, will.deacon@arm.com, linux-mm@kvack.org, akpm@linux-foundation.org, nios2-dev@lists.rocketboards.org, lftan@altera.com, jonas@southpole.se, linux@lists.openrisc.net Subject: [PATCH v2 8/9] openrisc: drop wrongly typed definition of page_to_virt() Date: Wed, 30 Mar 2016 16:46:03 +0200 Message-Id: <1459349164-27175-9-git-send-email-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1459349164-27175-1-git-send-email-ard.biesheuvel@linaro.org> References: <1459349164-27175-1-git-send-email-ard.biesheuvel@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160330_074653_712300_83A554DA X-CRM114-Status: UNSURE ( 9.60 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.7 (--) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-2.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [2a00:1450:400c:c09:0:0:0:22e listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mark.rutland@arm.com, steve.capper@linaro.org, Ard Biesheuvel MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org To align with generic code and other architectures that expect the macro page_to_virt to produce an expression whose type is 'void*', drop the arch specific definition, which is never referenced anyway. Signed-off-by: Ard Biesheuvel --- arch/openrisc/include/asm/page.h | 2 -- 1 file changed, 2 deletions(-) -- 2.5.0 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel diff --git a/arch/openrisc/include/asm/page.h b/arch/openrisc/include/asm/page.h index e613d3673034..35bcb7cd2cde 100644 --- a/arch/openrisc/include/asm/page.h +++ b/arch/openrisc/include/asm/page.h @@ -81,8 +81,6 @@ typedef struct page *pgtable_t; #define virt_to_page(addr) \ (mem_map + (((unsigned long)(addr)-PAGE_OFFSET) >> PAGE_SHIFT)) -#define page_to_virt(page) \ - ((((page) - mem_map) << PAGE_SHIFT) + PAGE_OFFSET) #define page_to_phys(page) ((dma_addr_t)page_to_pfn(page) << PAGE_SHIFT)