Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp687405pxb; Wed, 18 Nov 2020 14:35:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJwb5IbEOSPtpf75E1USov9ZEqqLtcs4uOx5zNqmF9rBJ4rjg20tHBH5ZYuDuqAQz4D0fAlv X-Received: by 2002:a05:6402:1d82:: with SMTP id dk2mr5676404edb.366.1605738901121; Wed, 18 Nov 2020 14:35:01 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1605738901; cv=pass; d=google.com; s=arc-20160816; b=JasSFFk065oSobH/TKcRC4TM5mfPdzHclur/TC8rCvvHGBDdb4rDOMCvHxkH0Dyao2 8e96yL7x2QQ28YICpWhW/AXKv2OVRpje4H8N0hkS8Fih/5C+HfEbOwhHpgx6bEN/ZvZr RDZUVRXLywqoQe8kZMX+HBNTxYs7NAYaXQwkGUeph8sPMwlvWamVoXiP/iA3fphbjJfv ci8TLN8wE45eMnG3US5WyP8J0d/jTuuJgO7uvnXFzoQZxPUHAtkKkHhLa/njl+9uEpqO sGtw7o9DvBOaXUJC/51pVnoiwhhxe5AdXsqirhSlmGXYsifMeeoAgLa56PJ2lA5KQds7 fyqw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from :envelope-to:dkim-signature; bh=0cjfyMtgUqQABapKTYnO3yVIjT9CsscIpv9z/ItT+9I=; b=Jqi3lMcsvfU2FcGsU8p5ek9yfMlbEgLf/aoPrhhthUMnr0dzlGbqJx14f2s+R1HyIo 2fNZwajcavCfIjr8d+z70h2AtwW34eQaC68wK/99MJ1Lp2RdE6BLdFFqrzHGZWhQuz4b 0pBAKpc5cBiJ2MPiR7JxQMmXCrYu3cq2I7Sk1XgUD+RIXCpJXT9BCV3sC9BQVnOATjXb JNbOwEqPDGAWgKWstar8ypn035gA3ywycSWp8EHgeO0Cq543PtrfEl6WBbzHPO0TxjDc wr3ui+A4c14c3MKqgi8kuFBUEaHdNM59ffdA021vOMrsV2e7YT6CSDQGmCI2rTqmWkua DpQA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@xilinx.onmicrosoft.com header.s=selector2-xilinx-onmicrosoft-com header.b=lk9ERVG7; arc=pass (i=1 spf=pass spfdomain=xilinx.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h25si15424138ejt.198.2020.11.18.14.34.36; Wed, 18 Nov 2020 14:35:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@xilinx.onmicrosoft.com header.s=selector2-xilinx-onmicrosoft-com header.b=lk9ERVG7; arc=pass (i=1 spf=pass spfdomain=xilinx.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726752AbgKRWbx (ORCPT + 99 others); Wed, 18 Nov 2020 17:31:53 -0500 Received: from mail-eopbgr760055.outbound.protection.outlook.com ([40.107.76.55]:28897 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726472AbgKRWbw (ORCPT ); Wed, 18 Nov 2020 17:31:52 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QgEohdX7i9ANUS2P6wGd5pfNFxV/+76YbtdekqKWcASoOyd6z/1Eh8lVC5s6yx+C7RHxlBhK6E0bK08OKacudyw4R4Pffj2Eh5kVcu7dMQlAxosGysc+79vMKZxH8eyChEpiU3Qx39vnEA/+5yFQfxIsWlgJhEQiFe1+9zDCE8rU1OCUG8eW/vWgLho1mrm9WqrVe8ePo+XQgRlOXK4pkiWMiyP1Av8DV98soAYShmkvzryZDye38l++qW/ZSvabxhtz2FKDF2tk+Btm7B2HbwoUzWfDQ87qxTX6cww6YhwqhPp+kPdyGNBBZNK4i9DETeJsWDitoa3f8u/dAQv74w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=0cjfyMtgUqQABapKTYnO3yVIjT9CsscIpv9z/ItT+9I=; b=GR1DHthi9KKiDeuXdeYjtG5ZNj5zGeuhRN1gkgYbK6l/nt1ywdmInOw13Y/BtF6+88LzSM2LxIDWKnq+JEh8ynA0yzjlpx/GrhZNOjpUHTZetBuBKWxUehxjpBkUnsgtRrKBwNgJAhsPY5EvNUAoHmYANpEksy4AoZ9OGjAteQQY8M3JP/HslS9ZUlfV4aPmyBa380BvOS2xR+UFQ73mkBeGg4sfHcXa5SqddyL7TCbm90JlrYIZKX9kyhal9Oy5PwYi4dPqdleWKU8m1qbIYPXgZs9UVLUfsf7suogTgFbEuuQTdBrLS9vKWWjpmJ++m96yqcyDroKmChRGX/tKVQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 149.199.62.198) smtp.rcpttodomain=linuxfoundation.org smtp.mailfrom=xilinx.com; dmarc=bestguesspass action=none header.from=xilinx.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xilinx.onmicrosoft.com; s=selector2-xilinx-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=0cjfyMtgUqQABapKTYnO3yVIjT9CsscIpv9z/ItT+9I=; b=lk9ERVG7d6aw4JJysYnoJ22mNE8NJSV22mTcivVgzTEiqIW2u3YBtKLoA84CKY1saXGZTtgsPHXY7y9rpuBjfx6u2yEr6VHy6csN0E6G2gnzGmB7m/ois9HKibiL/vBkZUDauMvAgJb6hBT8QGGxZSZbDuwH26pzNgOeWeKoo7k= Received: from DM6PR13CA0054.namprd13.prod.outlook.com (2603:10b6:5:134::31) by BN7PR02MB3956.namprd02.prod.outlook.com (2603:10b6:406:f4::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3564.25; Wed, 18 Nov 2020 22:31:49 +0000 Received: from CY1NAM02FT027.eop-nam02.prod.protection.outlook.com (2603:10b6:5:134:cafe::d8) by DM6PR13CA0054.outlook.office365.com (2603:10b6:5:134::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3589.15 via Frontend Transport; Wed, 18 Nov 2020 22:31:49 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 149.199.62.198) smtp.mailfrom=xilinx.com; linuxfoundation.org; dkim=none (message not signed) header.d=none;linuxfoundation.org; dmarc=bestguesspass action=none header.from=xilinx.com; Received-SPF: Pass (protection.outlook.com: domain of xilinx.com designates 149.199.62.198 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.62.198; helo=xsj-pvapexch01.xlnx.xilinx.com; Received: from xsj-pvapexch01.xlnx.xilinx.com (149.199.62.198) by CY1NAM02FT027.mail.protection.outlook.com (10.152.75.159) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.3589.20 via Frontend Transport; Wed, 18 Nov 2020 22:31:49 +0000 Received: from xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) by xsj-pvapexch01.xlnx.xilinx.com (172.19.86.40) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1913.5; Wed, 18 Nov 2020 14:31:48 -0800 Received: from smtp.xilinx.com (172.19.127.96) by xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) with Microsoft SMTP Server id 15.1.1913.5 via Frontend Transport; Wed, 18 Nov 2020 14:31:48 -0800 Envelope-to: michal.simek@xilinx.com, rajan.vaja@xilinx.com, tejas.patel@xilinx.com, manish.narani@xilinx.com, wendy.liang@xilinx.com, gregkh@linuxfoundation.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Received: from [172.19.2.167] (port=36246 helo=xsjjliang50.xilinx.com) by smtp.xilinx.com with esmtp (Exim 4.90) (envelope-from ) id 1kfVzQ-0002Bf-SQ; Wed, 18 Nov 2020 14:31:48 -0800 From: Wendy Liang To: , , , , CC: , , Wendy Liang Subject: [PATCH] firmware: xlnx-zynqmp: fix compilation warning Date: Wed, 18 Nov 2020 14:31:46 -0800 Message-ID: <1605738706-375-1-git-send-email-wendy.liang@xilinx.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 385975cd-4c3d-4c55-1261-08d88c11bd6e X-MS-TrafficTypeDiagnostic: BN7PR02MB3956: X-Microsoft-Antispam-PRVS: X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-MS-Oob-TLC-OOBClassifiers: OLM:873; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: QoU1nNX6FveFecA9XENQ/WGuRkG4y0RWVOsmiXydA890PFbRGHmO3oBldwYLqinhareQyWj5D+4HmelXUGqJu+TAeRPBlH6nwrO6qdv14+Shpi74xsk05/29l3buP4hmYaxsXpFJbg81sQWqYc5CnNaA6PmmSA4ea5o9mvYr5vpL1a/CHV91Y5xo8U85FNxL0O2nmnD40qZoj83DHnWo2DUmXjjFr1uxAarRtUyqCbN6YQpNXgK0MA56D3dLwBlsoCNpUYTCIcXOqhrLow8qJQjN7IulXB1aVjJqGMcHdqk+wZai2PU5mAcHb4vdsY5UKHOWj22TY7bwTUSX/fsNPxXIIhwE6ESqDWlIlI/vx+HpguJcn833zLdbrb+Y45ZjGRA9h+KgGGmAsU+G5bzp3k7vqW+EDfh2kEYt/soK2Gg= X-Forefront-Antispam-Report: CIP:149.199.62.198;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:xsj-pvapexch01.xlnx.xilinx.com;PTR:unknown-62-198.xilinx.com;CAT:NONE;SFS:(4636009)(376002)(396003)(39860400002)(346002)(136003)(46966005)(26005)(83380400001)(54906003)(110136005)(426003)(9786002)(2906002)(316002)(70206006)(82740400003)(7696005)(8676002)(107886003)(82310400003)(336012)(47076004)(2616005)(8936002)(356005)(44832011)(478600001)(4326008)(7636003)(36906005)(186003)(5660300002)(6636002)(36756003)(70586007)(102446001);DIR:OUT;SFP:1101; X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Nov 2020 22:31:49.2735 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 385975cd-4c3d-4c55-1261-08d88c11bd6e X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c;Ip=[149.199.62.198];Helo=[xsj-pvapexch01.xlnx.xilinx.com] X-MS-Exchange-CrossTenant-AuthSource: CY1NAM02FT027.eop-nam02.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN7PR02MB3956 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix compilation warning when ZYNQMP_FIRMWARE is not defined. include/linux/firmware/xlnx-zynqmp.h: In function 'zynqmp_pm_get_eemi_ops': include/linux/firmware/xlnx-zynqmp.h:363:9: error: implicit declaration of function 'ERR_PTR' [-Werror=implicit-function-declaration] 363 | return ERR_PTR(-ENODEV); include/linux/firmware/xlnx-zynqmp.h:363:18: note: each undeclared identifier is reported only once for each function it appears in include/linux/firmware/xlnx-zynqmp.h: In function 'zynqmp_pm_get_api_version': include/linux/firmware/xlnx-zynqmp.h:367:10: error: 'ENODEV' undeclared (first use in this function) 367 | return -ENODEV; | ^~~~~~ Signed-off-by: Wendy Liang --- include/linux/firmware/xlnx-zynqmp.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/linux/firmware/xlnx-zynqmp.h b/include/linux/firmware/xlnx-zynqmp.h index 5968df8..7b6f9fc 100644 --- a/include/linux/firmware/xlnx-zynqmp.h +++ b/include/linux/firmware/xlnx-zynqmp.h @@ -13,6 +13,10 @@ #ifndef __FIRMWARE_ZYNQMP_H__ #define __FIRMWARE_ZYNQMP_H__ +#if !IS_REACHABLE(CONFIG_ZYNQMP_FIRMWARE) +#include +#endif + #define ZYNQMP_PM_VERSION_MAJOR 1 #define ZYNQMP_PM_VERSION_MINOR 0 -- 2.7.4