From patchwork Tue May 13 05:05:11 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bharat Bhushan X-Patchwork-Id: 348227 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id D79DA1400D5 for ; Tue, 13 May 2014 15:07:15 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752303AbaEMFHM (ORCPT ); Tue, 13 May 2014 01:07:12 -0400 Received: from mail-bn1lp0139.outbound.protection.outlook.com ([207.46.163.139]:32146 "EHLO na01-bn1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752086AbaEMFHK (ORCPT ); Tue, 13 May 2014 01:07:10 -0400 Received: from DM2PR03CA004.namprd03.prod.outlook.com (10.141.52.152) by DM2PR03MB397.namprd03.prod.outlook.com (10.141.84.139) with Microsoft SMTP Server (TLS) id 15.0.939.12; Tue, 13 May 2014 05:07:06 +0000 Received: from BN1AFFO11FD014.protection.gbl (2a01:111:f400:7c10::111) by DM2PR03CA004.outlook.office365.com (2a01:111:e400:2414::24) with Microsoft SMTP Server (TLS) id 15.0.944.11 via Frontend Transport; Tue, 13 May 2014 05:07:06 +0000 Received: from az84smr01.freescale.net (192.88.158.2) by BN1AFFO11FD014.mail.protection.outlook.com (10.58.52.74) with Microsoft SMTP Server (TLS) id 15.0.939.9 via Frontend Transport; Tue, 13 May 2014 05:07:06 +0000 Received: from freescale.com ([10.232.15.72]) by az84smr01.freescale.net (8.14.3/8.14.0) with SMTP id s4D571Z0003673; Mon, 12 May 2014 22:07:02 -0700 Received: by freescale.com (sSMTP sendmail emulation); Tue, 13 May 2014 10:35:12 +0530 From: Bharat Bhushan To: , , , CC: Bharat Bhushan Subject: [PATCH] booke/powerpc: define wimge shift mask to fix compilation error Date: Tue, 13 May 2014 10:35:11 +0530 Message-ID: <1399957511-28657-1-git-send-email-Bharat.Bhushan@freescale.com> X-Mailer: git-send-email 1.7.0.4 X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:192.88.158.2; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10009001)(6009001)(199002)(189002)(81156002)(88136002)(50986999)(87936001)(6806004)(4396001)(50226001)(92566001)(2201001)(36756003)(87286001)(83072002)(50466002)(46102001)(77156001)(2009001)(89996001)(102836001)(64706001)(97736001)(69596002)(83322001)(84676001)(77982001)(44976005)(92726001)(19580405001)(76482001)(19580395003)(81342001)(80022001)(20776003)(47776003)(74502001)(68736004)(42186004)(48376002)(81542001)(79102001)(16796002)(99396002)(62966002)(85852003)(74662001)(93916002)(31966008)(21056001)(42262001); DIR:OUT; SFP:1101; SCL:1; SRVR:DM2PR03MB397; H:az84smr01.freescale.net; FPR:; MLV:sfv; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; MIME-Version: 1.0 X-Forefront-PRVS: 0210479ED8 Received-SPF: Fail (: domain of freescale.com does not designate 192.88.158.2 as permitted sender) receiver=; client-ip=192.88.158.2; helo=az84smr01.freescale.net; Authentication-Results: spf=fail (sender IP is 192.88.158.2) smtp.mailfrom=Bharat.Bhushan@freescale.com; X-OriginatorOrg: freescale.com Sender: kvm-ppc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm-ppc@vger.kernel.org This fixes below compilation error on SOCs where CONFIG_PHYS_64BIT is not defined: arch/powerpc/kvm/e500_mmu_host.c: In function 'kvmppc_e500_shadow_map': | arch/powerpc/kvm/e500_mmu_host.c:631:20: error: 'PTE_WIMGE_SHIFT' undeclared (first use in this function) | wimg = (*ptep >> PTE_WIMGE_SHIFT) & MAS2_WIMGE_MASK; | ^ | arch/powerpc/kvm/e500_mmu_host.c:631:20: note: each undeclared identifier is reported only once for each function it appears in | make[1]: *** [arch/powerpc/kvm/e500_mmu_host.o] Error 1 Signed-off-by: Bharat Bhushan --- arch/powerpc/include/asm/pte-fsl-booke.h | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/arch/powerpc/include/asm/pte-fsl-booke.h b/arch/powerpc/include/asm/pte-fsl-booke.h index 2c12be5..e84dd7e 100644 --- a/arch/powerpc/include/asm/pte-fsl-booke.h +++ b/arch/powerpc/include/asm/pte-fsl-booke.h @@ -37,5 +37,7 @@ #define _PMD_PRESENT_MASK (PAGE_MASK) #define _PMD_BAD (~PAGE_MASK) +#define PTE_WIMGE_SHIFT (6) + #endif /* __KERNEL__ */ #endif /* _ASM_POWERPC_PTE_FSL_BOOKE_H */