Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp1755750pxb; Mon, 23 Aug 2021 04:00:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy35XfYoIKz/YPzLJnC2odPPJTxxLhb/Lw27j4hXW+sCaqszZauX/zGU1HCq6rcsuIUnytE X-Received: by 2002:a50:cc08:: with SMTP id m8mr35523092edi.60.1629716408151; Mon, 23 Aug 2021 04:00:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629716408; cv=none; d=google.com; s=arc-20160816; b=GbFhiJjMeybFpy0rYat6hgWNFT8EgYG6HF1abFjph8WAQK2vlofxU6Wx6xmuQxEqPd t1+N3gtOILoA7hgJ2J5zHQ17c5S1xGfM6ztNMm/ex74fC9h+Hc+auQyGu0coO4iG/HcW UCkwVxpvwOqsdN1sMpl8aI7Mqcz2SIRyGgjZuq+dJcXgkgpV9JFtm0tjtbDgyh6SfRM9 O1kUKeaLZoyyiW5UGxj0znpmf6LGzQ0kLqVWuWa5beAebmNXQZ/4W2PSbPoj64Ei/gbB YUk8X16a/NQx6HeklmhERRTDsoOfDTZYmTGkxmF5fFw17h8tRHws5KvPBXtQQbiQfhsY llsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id; bh=HivFG2rx7Sx8+2L+M9Hufls+mYR6sw3q9wrhzZu+Ikw=; b=qd/tWb4kM8uBIhgNdUKhs/qzQyOkdCFkYC5076gC7J4N0zvD+sajAf1oCNldQxr+st dQ5BM5JW7f1PKPUj9qph+ZL+6E8X6XeGfpU7cd1cYvcjd9PzIVTY9ldNwWXWTih5u9Lf yTaXknE1HnmvS7HebVwLADEBjLNvF1S4QGRH9haa7XDMxO20LTisPDOXYJJJ3PZNDTzj swnc9/r7WHBUTB5hgT1+830oqBsXnsdMdfUeIV4IpGqSQoBJIHmyK10MxbsMYAMm398J 9FFaG+V+3pj9Esk0xhQCmozW2WKdZ1sHmxnkXSUzyfMgSVPEhRCJYgnSJykesr4FBqMM gKxA== 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 bm2si14504136edb.354.2021.08.23.03.59.45; Mon, 23 Aug 2021 04:00:08 -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 S234865AbhHWK5O convert rfc822-to-8bit (ORCPT + 99 others); Mon, 23 Aug 2021 06:57:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37104 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234155AbhHWK5K (ORCPT ); Mon, 23 Aug 2021 06:57:10 -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 8573AC061575 for ; Mon, 23 Aug 2021 03:56:25 -0700 (PDT) Received: from lupine.hi.pengutronix.de ([2001:67c:670:100:3ad5:47ff:feaf:1a17] helo=lupine) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mI7cu-00036Y-20; Mon, 23 Aug 2021 12:56:24 +0200 Received: from pza by lupine with local (Exim 4.92) (envelope-from ) id 1mI7ct-0005KP-4l; Mon, 23 Aug 2021 12:56:23 +0200 Message-ID: <8c6674e387615b49bf2aa3304bd49c0e99e37094.camel@pengutronix.de> Subject: Re: [PATCH] reset: reset-zynqmp: Fixed the argument data type From: Philipp Zabel To: Michal Simek , linux-kernel@vger.kernel.org, monstr@monstr.eu, git@xilinx.com Cc: Sai Krishna Potthuri , linux-arm-kernel@lists.infradead.org Date: Mon, 23 Aug 2021 12:56:23 +0200 In-Reply-To: <925cebbe4eb73c7d0a536da204748d33c7100d8c.1624448778.git.michal.simek@xilinx.com> References: <925cebbe4eb73c7d0a536da204748d33c7100d8c.1624448778.git.michal.simek@xilinx.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT User-Agent: Evolution 3.30.5-1.1 MIME-Version: 1.0 X-SA-Exim-Connect-IP: 2001:67c:670:100:3ad5:47ff:feaf:1a17 X-SA-Exim-Mail-From: p.zabel@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 Hi Michal, On Wed, 2021-06-23 at 13:46 +0200, Michal Simek wrote: > 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) Thank you, applied to reset/fixes. regards Philipp