From patchwork Wed Jun 23 11:46:20 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 12339697 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E1E78C4743C for ; Wed, 23 Jun 2021 11:48:05 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id AB9E860FEE for ; Wed, 23 Jun 2021 11:48:05 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org AB9E860FEE Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=xilinx.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=Swg5GDw42qFNvjJhGVf7GqROBqu77W9+XjXdH/nJmmk=; b=keIHYh90AJV821 euJn/JJq3wCSUbzK/PQYgpEMfNCpRDb6RWMeQFt/joLTjpxY65k4g1tn3womzbwfmtYsCwwH72j/a xGhXaBSqgA19Dre9bm38gFFLRH4Yhgm4HnbPPVrBPzA3iZMSnsNZeMbpyGyQf2YbzXoPX9FnKEpk/ SAlDxQuXyaI7Y66M2aFJdZUQphzKDySEi34Nl4oNI5ZxBSxRVEAH6qKITjBtxnExsHTydLmL6WRfg oRTtmfWQLNdMC6pQYkQFrOk132EPxFQL70dVQEgdrhVuOg56Rfxisg5ewtStCb1Ch4HOPXzPRQvIR aSImGrCPsZ0NnXCLpAAQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lw1Kz-00AUp0-UW; Wed, 23 Jun 2021 11:46:34 +0000 Received: from mail-ej1-x62f.google.com ([2a00:1450:4864:20::62f]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lw1Kw-00AUo5-Oi for linux-arm-kernel@lists.infradead.org; Wed, 23 Jun 2021 11:46:32 +0000 Received: by mail-ej1-x62f.google.com with SMTP id hz1so3593129ejc.1 for ; Wed, 23 Jun 2021 04:46:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monstr-eu.20150623.gappssmtp.com; s=20150623; h=sender:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=OPO+5qBMrh6CFAk2k2y7MZTP5rtIuHwphQETmqm9ae4=; b=IV8RA4qZbaPs6dyGZDf30g8xjvUexu24ke0c3RCoxjkmR1n7v/rheLjlr03YZWtzhv XUgSoHvJCit3h65/V6TroslFX61gZQV8B8EyoBqQIUTzxOEtoKQfLBGLUVRyUGuaL0FQ WsTmT0Zf4dkwPKeyKL8tsqIa2pwpz1DBJWRj4B1LnimqlJ6oyN22uzmaJOwK9mOEozkg 9YZnNtnnrmCvX4Qi3AZRU4D7XkJo7wJGj3oygNfL1Valkni7pHY63SH3vc3RXr8b6lPO 7AEfcNm/LNco+XxbBQvsb0blqzNCJJYbbPA0A0trU2qURWAj2UC46ZXGGsXTH+aNDTVq l+GQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; bh=OPO+5qBMrh6CFAk2k2y7MZTP5rtIuHwphQETmqm9ae4=; b=CC4FgCrOxL7R9wLmm7Ww/caRVuxuAQZlmMOAlJxtunAkt+gW33vTIl5w2K/wwzHGxC izpJG1K/om5EjTy03ulDTqXaYZGaxw76+MXbYICrlbev8CoE3Dj5mM9GzHQP9eCHSJcb J7KPLIfp3ryVXXG/CT8HycvkkKe3tWr0ObY0qXd94tQiz6tUfuy6BDophYCqqMBCEW0d Ki8g1DMgYCt2Gs+45gBp+V03eka5dBydfsRTFrwZRLNp4nmk3QEYoD37eSk97RaZslsb BdYmeHfBAeTjp2arKi4xvvykmk01oTmlssf9eE8RR/d0AF64BDs7XjA/SXAzJSZjW0Se YOBg== X-Gm-Message-State: AOAM532/CCoMhZ3bkbFig9pY409GDh+ysxqCpEL14mtqYwtSJKHku5IU D1miHPGgipNBdf5P0DqY5gNrfQ== X-Google-Smtp-Source: ABdhPJwtqiBRtTiM4vMwsazfbiO9H2qs6bsFiFh8eifmNz3SgrrGo1BNRrd22+TQxm+ZL/2OKgmzgQ== X-Received: by 2002:a17:906:ff48:: with SMTP id zo8mr9256580ejb.424.1624448781787; Wed, 23 Jun 2021 04:46:21 -0700 (PDT) Received: from localhost ([2a02:768:2307:40d6::648]) by smtp.gmail.com with ESMTPSA id j19sm3806941ejo.3.2021.06.23.04.46.21 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 23 Jun 2021 04:46:21 -0700 (PDT) From: Michal Simek To: linux-kernel@vger.kernel.org, monstr@monstr.eu, michal.simek@xilinx.com, git@xilinx.com Cc: Sai Krishna Potthuri , Philipp Zabel , linux-arm-kernel@lists.infradead.org Subject: [PATCH] reset: reset-zynqmp: Fixed the argument data type Date: Wed, 23 Jun 2021 13:46:20 +0200 Message-Id: <925cebbe4eb73c7d0a536da204748d33c7100d8c.1624448778.git.michal.simek@xilinx.com> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210623_044630_849139_ED80C711 X-CRM114-Status: GOOD ( 12.27 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Sai Krishna Potthuri This patch changes the data type of the variable 'val' from int to u32. Addresses-Coverity: argument of type "int *" is incompatible with parameter of type "u32 *" Signed-off-by: Sai Krishna Potthuri Signed-off-by: Michal Simek --- drivers/reset/reset-zynqmp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/reset/reset-zynqmp.c b/drivers/reset/reset-zynqmp.c index daa425e74c96..59dc0ff9af9e 100644 --- a/drivers/reset/reset-zynqmp.c +++ b/drivers/reset/reset-zynqmp.c @@ -53,7 +53,8 @@ static int zynqmp_reset_status(struct reset_controller_dev *rcdev, unsigned long id) { struct zynqmp_reset_data *priv = to_zynqmp_reset_data(rcdev); - int val, err; + int err; + u32 val; err = zynqmp_pm_reset_get_status(priv->data->reset_id + id, &val); if (err)