Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp4330086pxt; Wed, 11 Aug 2021 03:38:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyKtNvXTfFgbqIRAFyPkEQ91sUt1hr+qMVy68O8zpCqZkbbzf9ZZJqQdcLE78C6qqZhakhb X-Received: by 2002:a17:906:184e:: with SMTP id w14mr2945134eje.526.1628678289440; Wed, 11 Aug 2021 03:38:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628678289; cv=none; d=google.com; s=arc-20160816; b=R3FUt0xfnNK2DlKpwySv8tThuj8trMoVo+u3lSBftjEllJD8DAiZPJ7K6AKAdVzuzE uz0DZ2SrJusaBuLRyz1F9v7WUsUEPXS5zBxJh2wjhGNlApxybv5dSFRUHDH3JfoJWmZc xsp0IBvv5JsL9sA83w3FjE178Sxz2T1axXiOyBQTFVmgIEdOBxN67gi8N66eRgBiknBy Rq7d7zbjBdd7vBZpgmgBCteCc6CpSWB7XctQVi0CJMdZpCovZTfXKGUiY6iQ2k861uh4 jwfCfU/eykzr7V1nbE476kbvLgHC4uXlgconvarACitjWnNHY6bmAMNZRGXJefNpxzj4 w1+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=5Or9hwHK7ypo0y1rgl2A1Fdmh0XJ4iUX6NTNNRFYtMk=; b=wDaaOp6xwe+gRJJXlGGCV8atcQpLeF9u9IlIWEfxKKfXPi63KqHge9k8q41wYoxXDy V0nOTZaC3gPC0pYzZ7is4S0ZabpAArDpifLzlm3hIsvtWJVdg8WiUnkXtpcDGMkWZgro 6Mg+N4Lex6vaYCKuKfEbcXVNm5o20uBz4RIsA9kMxAq9J66gTD7sgdDzXXFbxzOPbF9V w/NxMIPYiwk+zQ2sz8Ck86WmLK2s1J1OvMmqFaVJAm94DuqeWo26yeKtqEzRUIez2PPZ TfxZICTqcF+TILfjgLQOirsipjXp43bouRTwUryoFlS947S3rmfcMNnKUowbo/aSST73 tCFQ== ARC-Authentication-Results: i=1; mx.google.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 g20si2980094ejz.520.2021.08.11.03.37.44; Wed, 11 Aug 2021 03:38:09 -0700 (PDT) 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; 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 S236844AbhHKKgs (ORCPT + 99 others); Wed, 11 Aug 2021 06:36:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58408 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232644AbhHKKgr (ORCPT ); Wed, 11 Aug 2021 06:36:47 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 49123C061765 for ; Wed, 11 Aug 2021 03:36:24 -0700 (PDT) Received: from ptx.hi.pengutronix.de ([2001:67c:670:100:1d::c0]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mDlaw-0007X3-Kn; Wed, 11 Aug 2021 12:36:22 +0200 Received: from mtr by ptx.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1mDlav-0006UT-HD; Wed, 11 Aug 2021 12:36:21 +0200 Date: Wed, 11 Aug 2021 12:36:21 +0200 From: Michael Tretter To: Michal Simek Cc: linux-kernel@vger.kernel.org, monstr@monstr.eu, git@xilinx.com, Sai Krishna Potthuri , Philipp Zabel , linux-arm-kernel@lists.infradead.org, kernel@pengutronix.de Subject: Re: [PATCH] reset: reset-zynqmp: Fixed the argument data type Message-ID: <20210811103621.GA23827@pengutronix.de> References: <925cebbe4eb73c7d0a536da204748d33c7100d8c.1624448778.git.michal.simek@xilinx.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <925cebbe4eb73c7d0a536da204748d33c7100d8c.1624448778.git.michal.simek@xilinx.com> X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-IRC: #ptxdist @freenode X-Accept-Language: de,en X-Accept-Content-Type: text/plain X-Uptime: 12:28:45 up 174 days, 13:52, 93 users, load average: 0.02, 0.09, 0.15 User-Agent: Mutt/1.10.1 (2018-07-13) X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c0 X-SA-Exim-Mail-From: mtr@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 23 Jun 2021 13:46:20 +0200, Michal Simek wrote: > From: Sai Krishna Potthuri > > This patch changes the data type of the variable 'val' from > int to u32. > > Signed-off-by: Sai Krishna Potthuri > Signed-off-by: Michal Simek > Addresses-Coverity: argument of type "int *" is incompatible with parameter of type "u32 *" > --- > > 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; The function returns val as int instead of u32. While this shouldn't be a problem in this case, maybe there should be an additional check just to be sure? Michael > > err = zynqmp_pm_reset_get_status(priv->data->reset_id + id, &val); > if (err) > -- > 2.32.0