From patchwork Wed Jun 14 09:03:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ashok Reddy Soma X-Patchwork-Id: 1794862 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=amd.com header.i=@amd.com header.a=rsa-sha256 header.s=selector1 header.b=t2Whc+gH; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4QgzyN6ZQNz20Vx for ; Wed, 14 Jun 2023 19:04:44 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 69B7D860A6; Wed, 14 Jun 2023 11:04:32 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=amd.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=amd.com header.i=@amd.com header.b="t2Whc+gH"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 5360A8609B; Wed, 14 Jun 2023 11:04:30 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=0.9 required=5.0 tests=AC_FROM_MANY_DOTS,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on20608.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe59::608]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 8D54585FE2 for ; Wed, 14 Jun 2023 11:04:26 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=amd.com Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=ashok.reddy.soma@amd.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CSvUhKnEJTvWdFkoWIgjVl7L62roU+dFjYHvaz71cJAR8SOUa05g4xq2xnmQ9WyN18JZaWQqrll5xA26ko5fWcEQ3oiuXYFVeo+JAxom4wi8Zs2uAFXHOOWMN6D/JCsdThXFg0XjMsUG5HUM3vPkBYq0ZTf6f9L1/cqMhIFT93kF9arir8oZ3/WsBbsK0JJyTTUOo9uLADhCI2MGd7x4RvSiAo93YJK6puvFEBGCq35ZlQ39EYuJwhiY0L/xy6f8+2vA3aS3hLNTRM655UorBnmVn/0bLNUlwKYjJYfV7eHN7Ga6GUT6mdEEa4ZOTqzdm7Kez7uvfinpZS19EDMg5w== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=JJsJf6hw4iEXPYMjF7Q8h0AL8ylTuXWKUHDRopbqj7g=; b=SAPjSpAexGJSBwyCXwuAB5ol6GqXCIPYgq67wGAuzUAI1wfF7QW/YavJVgIs/QhO8uBxmlXZ9ghZupqZ7MuWaNWsw7uO0eB0RuiJ9qtl2qrSM1CBEM6mP5tw9XMtclgfePGhC8ngLMgt8w1KxD6uBLJ2rYyBcqhPh5pPm8eKSIK6hXIDQQ4ZUP3rYRa0ds4QcdoT7Dij4Ivcjt8BO7pieaztRIZCRZT05K5n/feQJPqdWsjQ7wR280umsZzpcR4kvBysfE7c/As72fp4txHH7/wZISrz5PLymverOT1qcMh/WjN5DIUghcmbVsKgvanCsCXijqHtcavguw1LldXKGg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=lists.denx.de smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=JJsJf6hw4iEXPYMjF7Q8h0AL8ylTuXWKUHDRopbqj7g=; b=t2Whc+gHyZ0vTcWOjxfqvb0Do9uybBmKurLkMyeW5oO2afLw0q244W9Ay2vFbJ8ovUO+efU9YXJLpm00XMOY7rfFjSFRIAzFd9D2EDITwx5x00q/jMdKo6fBuJFK10/3pIKdxB8cRJ36JqsoBJVfCSbdyqTgGA5nBBNSxCa5qdk= Received: from DM6PR13CA0029.namprd13.prod.outlook.com (2603:10b6:5:bc::42) by PH0PR12MB8797.namprd12.prod.outlook.com (2603:10b6:510:28d::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6477.29; Wed, 14 Jun 2023 09:04:21 +0000 Received: from DM6NAM11FT038.eop-nam11.prod.protection.outlook.com (2603:10b6:5:bc:cafe::50) by DM6PR13CA0029.outlook.office365.com (2603:10b6:5:bc::42) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6500.23 via Frontend Transport; Wed, 14 Jun 2023 09:04:20 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB03.amd.com; pr=C Received: from SATLEXMB03.amd.com (165.204.84.17) by DM6NAM11FT038.mail.protection.outlook.com (10.13.173.137) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6500.25 via Frontend Transport; Wed, 14 Jun 2023 09:04:20 +0000 Received: from SATLEXMB05.amd.com (10.181.40.146) by SATLEXMB03.amd.com (10.181.40.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Wed, 14 Jun 2023 04:04:18 -0500 Received: from SATLEXMB04.amd.com (10.181.40.145) by SATLEXMB05.amd.com (10.181.40.146) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Wed, 14 Jun 2023 04:04:18 -0500 Received: from xhdashokred41.xilinx.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23 via Frontend Transport; Wed, 14 Jun 2023 04:04:16 -0500 From: Ashok Reddy Soma To: CC: , , , , , Ashok Reddy Soma Subject: [PATCH v2 0/6] Fix sparse warnings in zynq platform Date: Wed, 14 Jun 2023 03:03:53 -0600 Message-ID: <20230614090359.10809-1-ashok.reddy.soma@amd.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6NAM11FT038:EE_|PH0PR12MB8797:EE_ X-MS-Office365-Filtering-Correlation-Id: 8ed3a5b4-3939-4122-a9c5-08db6cb656ef X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 2R8izxWoJGv9eD3Ktp7ThYGsddEmq/Hq3o3UboHrWRZqOfaS31fppb9r2PNe4Js+Aq37fXXjes2APYhVhJeibPstys6jDqRaHCXo3dXsHAGhiui2FfeBBaPosHZr8cdAP1QmaFAuvLryQFD1uxWuUZvRufoUuvp07qs8lLw2fw9TmdULJXh83/GvQYZai0WAcZEGSmABjbS+5JTTXryZ7qlwzDbXFgRxkgooTSBOc4uXvaoi/DYUjTutkXNGO4homyq+ZfGADPh8d1NgeqIVXxx4aqEWkciALzIl1o8PApi1eTUS6gaPpS/yr2uJc2mdsjglbN87zqWXb7mO9D9e2dJkFUKrl+OENfYt/LoVLMaDcUS2DN9QxeH/lSsxvphcxKIdbXJV4zSusEdtAuGJIGqWrCBJQNmxpXu+4/dCdgeNciHPUi173mXW/anrVRAtyKmLbEjbNjLHwOq5xQGVYZYeRQjVRiItKnxHCyiTFjKtZ6OnloFFx4i9yABAz3Uv2HzWiYY/40ob7/m7s+5U3o5E76FQIFTuWtLWqT+WToAfoZHztgFAhIadJWKeXpa8b4391hIw3Lpdpfbejao6yz4GwGyQdy74tT9rCk64oRKYd+VMFbnbghCYkU2VBXyR9XIFpGp1cguN9WR/dc+fQHq59vvfZJwBf2HXlNdLkp18Gge3vslu2+Z6ZwLGFaZ6e1nr1szUt3EP0j5PuMuWUKEnIJFWYpbCiYWaomZYnwVPVFhiCDACAvMqebuYIk6UDb3s8ab8I+AOo5Y2eglnMA== X-Forefront-Antispam-Report: CIP:165.204.84.17; CTRY:US; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:SATLEXMB03.amd.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230028)(4636009)(39860400002)(346002)(376002)(136003)(396003)(451199021)(46966006)(36840700001)(40470700004)(316002)(41300700001)(40460700003)(2616005)(336012)(1076003)(86362001)(426003)(82310400005)(36860700001)(47076005)(186003)(26005)(103116003)(83380400001)(2906002)(81166007)(82740400003)(356005)(40480700001)(5660300002)(8936002)(8676002)(54906003)(70206006)(70586007)(6916009)(478600001)(36756003)(6666004)(4326008)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Jun 2023 09:04:20.0514 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 8ed3a5b4-3939-4122-a9c5-08db6cb656ef X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d; Ip=[165.204.84.17]; Helo=[SATLEXMB03.amd.com] X-MS-Exchange-CrossTenant-AuthSource: DM6NAM11FT038.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR12MB8797 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean Fix below sparse warnings - Add missing prototype for zynqmp_mmio_write - Add missing prototype for zynq_qspi_mem_exec_op - Change datatype of status and ecc_status from u32 to int - Pass the missing argument type in function definition - Add the missing function prototypes - Add missing prototype for xilinx_qspi_mem_exec_op Changes in v2: - Move prototype declaration from sys_proto.h to include/zynqmp_firmware.h - Added argument void in below files to fix warning board/xilinx/zynq/zynq-microzed/ps7_init_gpl.c board/xilinx/zynq/zynq-zc702/ps7_init_gpl.c board/xilinx/zynq/zynq-zed/ps7_init_gpl.c Algapally Santosh Sagar (6): spi: xilinx_spi: Add missing prototype for xilinx_qspi_mem_exec_op xilinx: zynq: Add missing prototype for zynqmp_mmio_write spi: zynq_qspi: Add missing prototype for zynq_qspi_mem_exec_op mtd: nand: zynq_nand: Change datatype of status and ecc_status to int arm: zynq: Pass the missing argument type in function definition xilinx: zynq: Add the missing function prototypes board/xilinx/zynq/board.c | 2 ++ board/xilinx/zynq/zynq-microzed/ps7_init_gpl.c | 4 ++-- board/xilinx/zynq/zynq-zc702/ps7_init_gpl.c | 4 ++-- board/xilinx/zynq/zynq-zc706/ps7_init_gpl.c | 4 ++-- board/xilinx/zynq/zynq-zed/ps7_init_gpl.c | 4 ++-- drivers/mtd/nand/raw/zynq_nand.c | 4 ++-- drivers/spi/xilinx_spi.c | 4 ++-- drivers/spi/zynq_qspi.c | 4 ++-- include/zynqmp_firmware.h | 1 + 9 files changed, 17 insertions(+), 14 deletions(-)