Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1577400yba; Tue, 2 Apr 2019 11:30:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqwbOEVi5uX67BUOQ8O3TYlOiNUNt/qSd8NQRJKYYRichuDc1cPMKPBrKzCtGPcoi4ZLp1lp X-Received: by 2002:a62:5185:: with SMTP id f127mr29829868pfb.199.1554229824127; Tue, 02 Apr 2019 11:30:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554229824; cv=none; d=google.com; s=arc-20160816; b=dhpO2bu7w7kSmdFVQ3cDTnc+R8cnOUKCtz2YVdb2upwgIgKxMhPq8cMzMdyocWevlN zho4oKxL2UhKhEWDb3f8fKOhW/RqZRLzDpheZG5wgvGVGrkD2gREgfnM1P9Zd9AYMsuV rLUeGwBm7pLv1v1VhiNEL0JvsKXHWvHy1UlV6KazNxzmLeezxDCTKDEgoW6tV9bSt/j5 JtL946/afyYiFxsAQSK0WOIFuwEA/b5kigerjl80gVwRCMnqnSvGtRIdN7AbhOMEvUA1 W1pdStqcsDCRXBNi3TwZ2h5fEuSN+GBOv821bO3MeTbP4YXwIpuf+V+XOIuxzyHURliu pw+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:content-transfer-encoding :mime-version:references:in-reply-to:date:subject:cc:to:from; bh=oqHmPfrYkJuvivw/btjOnVfeuwIXU7R+hVqFQ+lz4M0=; b=G0kCT59bHLD5yg3bQY0dGFdmJfbbLqDS3Xl1DvlL+65/fTT1dXRZko7uw+kjP5V2vR FS2i6Jv281dBBtXDH8lQamL7CVF5+1tkcq/QnDFZgOdOWWC5DIjRZXiU0Z7BVPibJY26 ojSIs3oosdhldDRNUpFOfX6M8tjhmvkDaGsJmZj3I28XdCXvZwcr42udKdHyYH+v0l8+ 5QXaRWMcrlpm8G9I57J/80CHG1aGjrbXJoMNYF/P69mLND2Rc1RE6tUV81g+LceWSmKB Zs5azBa47y08XfZiMKe1FdVRa3L20JcH9nuWNuilyZNEGVTA69aiNzJ79I96nsa8wJbr diJA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g6si11377429pgq.506.2019.04.02.11.30.08; Tue, 02 Apr 2019 11:30:24 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730585AbfDBSPU (ORCPT + 99 others); Tue, 2 Apr 2019 14:15:20 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:60030 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730481AbfDBSPT (ORCPT ); Tue, 2 Apr 2019 14:15:19 -0400 Received: from pps.filterd (m0098394.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x32I9ZNH142203 for ; Tue, 2 Apr 2019 14:15:18 -0400 Received: from e13.ny.us.ibm.com (e13.ny.us.ibm.com [129.33.205.203]) by mx0a-001b2d01.pphosted.com with ESMTP id 2rmbn4kw7q-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 02 Apr 2019 14:15:18 -0400 Received: from localhost by e13.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 2 Apr 2019 19:15:17 +0100 Received: from b01cxnp22033.gho.pok.ibm.com (9.57.198.23) by e13.ny.us.ibm.com (146.89.104.200) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Tue, 2 Apr 2019 19:15:12 +0100 Received: from b01ledav004.gho.pok.ibm.com (b01ledav004.gho.pok.ibm.com [9.57.199.109]) by b01cxnp22033.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id x32IFB3I21233804 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 2 Apr 2019 18:15:11 GMT Received: from b01ledav004.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 0F47E112076; Tue, 2 Apr 2019 18:15:11 +0000 (GMT) Received: from b01ledav004.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 40C28112072; Tue, 2 Apr 2019 18:15:09 +0000 (GMT) Received: from rino.br.ibm.com (unknown [9.18.235.111]) by b01ledav004.gho.pok.ibm.com (Postfix) with ESMTP; Tue, 2 Apr 2019 18:15:09 +0000 (GMT) From: Claudio Carvalho To: linuxppc-dev@ozlabs.org, linux-efi@vger.kernel.org, linux-integrity@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Michael Ellerman , Paul Mackerras , Benjamin Herrenschmidt , Ard Biesheuvel , Jeremy Kerr , Matthew Garret , Claudio Carvalho , Nayna Jain Subject: [PATCH 1/4] powerpc/include: Override unneeded early ioremap functions Date: Tue, 2 Apr 2019 15:15:02 -0300 X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190402181505.25037-1-cclaudio@linux.ibm.com> References: <20190402181505.25037-1-cclaudio@linux.ibm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 x-cbid: 19040218-0064-0000-0000-000003C5817E X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00010862; HX=3.00000242; KW=3.00000007; PH=3.00000004; SC=3.00000284; SDB=6.01183359; UDB=6.00619523; IPR=6.00964108; MB=3.00026264; MTD=3.00000008; XFM=3.00000015; UTC=2019-04-02 18:15:15 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19040218-0065-0000-0000-00003CECEC80 Message-Id: <20190402181505.25037-2-cclaudio@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-04-02_07:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=856 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1904020121 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When CONFIG_EFI is enabled, the EFI driver includes the generic early_ioremap header, which assumes that architectures may want to provide their own early ioremap functions. This patch overrides the ioremap functions in powerpc because they are not required for secure boot on powerpc systems. Signed-off-by: Claudio Carvalho --- arch/powerpc/include/asm/early_ioremap.h | 41 ++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 arch/powerpc/include/asm/early_ioremap.h diff --git a/arch/powerpc/include/asm/early_ioremap.h b/arch/powerpc/include/asm/early_ioremap.h new file mode 100644 index 000000000000..a86a06e9f3b9 --- /dev/null +++ b/arch/powerpc/include/asm/early_ioremap.h @@ -0,0 +1,41 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +/* + * Early ioremap definitions + * + * Copyright (C) 2019 IBM Corporation + * Author: Claudio Carvalho + * + */ +#ifndef _ASM_POWERPC_EARLY_IOREMAP_H +#define _ASM_POWERPC_EARLY_IOREMAP_H + +static inline void __iomem *early_ioremap(resource_size_t phys_addr, + unsigned long size) +{ + return NULL; +} + +static inline void *early_memremap(resource_size_t phys_addr, + unsigned long size) +{ + return NULL; +} + +static inline void *early_memremap_ro(resource_size_t phys_addr, + unsigned long size) +{ + return NULL; +} + +static inline void *early_memremap_prot(resource_size_t phys_addr, + unsigned long size, + unsigned long prot_val) +{ + return NULL; +} + +static inline void early_iounmap(void __iomem *addr, unsigned long size) { } +static inline void early_memunmap(void *addr, unsigned long size) { } +static inline void early_ioremap_shutdown(void) { } + +#endif -- 2.20.1