From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755456AbXLDP2Q (ORCPT ); Tue, 4 Dec 2007 10:28:16 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754465AbXLDP12 (ORCPT ); Tue, 4 Dec 2007 10:27:28 -0500 Received: from outbound-sin.frontbridge.com ([207.46.51.80]:60377 "EHLO outbound3-sin-R.bigfish.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754857AbXLDP11 (ORCPT ); Tue, 4 Dec 2007 10:27:27 -0500 X-BigFish: VP X-MS-Exchange-Organization-Antispam-Report: OrigIP: 139.95.251.8;Service: EHS X-Server-Uuid: 9D002D81-0D89-4A8A-BDDE-D174997CF0D6 From: "Joerg Roedel" To: tglx@linutronix.de, mingo@redhat.com, hpa@zytor.com cc: linux-kernel@vger.kernel.org, "Joerg Roedel" Subject: [PATCH 3/3] x86_64: use __PAGE_KERNEL_EXEC in ioremap_64.c Date: Tue, 4 Dec 2007 16:23:51 +0100 Message-ID: <11967818311122-git-send-email-joerg.roedel@amd.com> X-Mailer: git-send-email 1.5.2.5 In-Reply-To: <11967818313616-git-send-email-joerg.roedel@amd.com> References: <11967818313616-git-send-email-joerg.roedel@amd.com> X-OriginalArrivalTime: 04 Dec 2007 15:23:51.0100 (UTC) FILETIME=[AC685FC0:01C83689] MIME-Version: 1.0 X-WSS-ID: 6B4BAEC00QK3710789-01-01 Content-Type: text/plain Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch replaces the manual permission setup for pages in ioremap_64.c with the pre-defined __PAGE_KERNEL_EXEC value. Signed-off-by: Joerg Roedel --- arch/x86/mm/ioremap_64.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/arch/x86/mm/ioremap_64.c b/arch/x86/mm/ioremap_64.c index 6cac90a..9a67fc6 100644 --- a/arch/x86/mm/ioremap_64.c +++ b/arch/x86/mm/ioremap_64.c @@ -103,8 +103,7 @@ void __iomem * __ioremap(unsigned long phys_addr, unsigned long size, unsigned l } #endif - pgprot = __pgprot(_PAGE_PRESENT | _PAGE_RW | _PAGE_GLOBAL - | _PAGE_DIRTY | _PAGE_ACCESSED | flags); + pgprot = __pgprot(__PAGE_KERNEL_EXEC | _PAGE_GLOBAL | flags); /* * Mappings have to be page-aligned */ -- 1.5.2.5