From patchwork Tue Feb 13 20:40:39 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Markus Mayer X-Patchwork-Id: 10217571 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id CA43F6055C for ; Tue, 13 Feb 2018 20:42:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B99E728717 for ; Tue, 13 Feb 2018 20:42:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id ACEA328B44; Tue, 13 Feb 2018 20:42:18 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 34A9028717 for ; Tue, 13 Feb 2018 20:42:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=939OuBeDAElcW9v9csridKwX2z3/pf9PUvP+jgsNq40=; b=PURJmlmezEV5jhaWKZ3CAXdmt7 M1D0f4pMKeFg6xNdNAilw3kQSLhmHJJEukb4mZUzraywBf3zeBUiY2uSstG/1ceij+9QF+lWNDOkB JSGEXlCuGYsnOZNfYvrZbOs1OLOVQP9zVR/S1nC11EL47DC+igXZ6a1lc7TNaewtacGKuMD6gf/sw YaBBymzJbBwYZ4BgTzOhHb3Iy/eqGSGn2ql+7Me3RoQ7wYu6mnCn7pE8YEbKSGrcicgbfMmHqqLOh ZJaaHO7q2NqtCWyl5+nG4SZdxld3LAn3c6aJlsIbZnYM2pUQpZb2P70qKxL4oay+S87hszT6J5mE3 fbvgwO9w==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1elhP4-0001VZ-7F; Tue, 13 Feb 2018 20:42:14 +0000 Received: from mail-qk0-x243.google.com ([2607:f8b0:400d:c09::243]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1elhOh-00011n-Nx for linux-arm-kernel@lists.infradead.org; Tue, 13 Feb 2018 20:42:00 +0000 Received: by mail-qk0-x243.google.com with SMTP id l23so264667qkk.11 for ; Tue, 13 Feb 2018 12:41:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=kq4zgX+0anCdyZLfRzpdkBucmnkhcBWJnlKeWXMt80U=; b=gi6f5avRg+MiirLbBDBit/N2xOJAbG7Ukjegd5/udbDR40Cr+3/+db+Jj2jMIx5lzq Chis1IcCJqyNV85t8RXArHkKQn4j+wsIe4/uOYwJmzzHManIMBsHKYU9xsbNSeJDl+xv uMcO7V7Csg16hn19wtnH9RPnVEhfTHwjOtSZY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=kq4zgX+0anCdyZLfRzpdkBucmnkhcBWJnlKeWXMt80U=; b=RHd0BHRRlfuUDP02tYu18iAMp6Fo74X/Sdt3u3X09NbJbSyDehMiBExwna81EHhJH4 ZrY6zOtc4P5yrOMgXT1D64ElaUZSy0nOdxohO24ujxX/KoibcUX4XvSff3gfJEG2Pox0 rurgK77xiO2KTqWPXZqG1WT929Ccj9HGFqZCdVfO/Qy4HNy7E7lUDr5DAl3Lft0Eg7TW 8BzQW6I2he75QCUeXAhyRgt0geN9qHoiemiWWvgrl/tyhGNWMN2D1I9MtmEiEdN9X2TE iCmNg39tUUgmK3dxEoqjH8RhrHOtU2FlFMf7uiELU0OEl2tymmDFejCufO+v3r1Zxu5I bfgw== X-Gm-Message-State: APf1xPCwlv/1ii98CbCy0NZCpKDc01EhhHuINbTkaE5NzyG3bQELJBqc 7iE23hEc8zFYZwPkYRsmBnsbkQ== X-Google-Smtp-Source: AH8x226IB7jQ2waIbkHCEU+BEWcllVzRssEzxJqVGo6uRPZNO0/hzpTvS7jtyshhBAxss+opLTR9pQ== X-Received: by 10.55.178.5 with SMTP id b5mr3983933qkf.335.1518554500358; Tue, 13 Feb 2018 12:41:40 -0800 (PST) Received: from lbrmn-mmayer.igp.broadcom.net ([192.19.224.250]) by smtp.gmail.com with ESMTPSA id m28sm2907978qtc.65.2018.02.13.12.41.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 13 Feb 2018 12:41:38 -0800 (PST) From: Markus Mayer To: Brian Norris , Florian Fainelli , Gregory Fong Subject: [PATCH 2/3] memory: brcmstb: dpfe: fix type declaration of variable "ret" Date: Tue, 13 Feb 2018 12:40:39 -0800 Message-Id: <1518554440-21805-3-git-send-email-mmayer@broadcom.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1518554440-21805-1-git-send-email-mmayer@broadcom.com> References: <1518554440-21805-1-git-send-email-mmayer@broadcom.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180213_124151_853511_E37F9C78 X-CRM114-Status: GOOD ( 11.21 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Broadcom Kernel List , ARM Kernel List , Markus Mayer , Linux Kernel Mailing List MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP In some functions, variable "ret" should be ssize_t, so we fix it. Fixes: 2f330caff577 ("memory: brcmstb: Add driver for DPFE") Signed-off-by: Markus Mayer --- drivers/memory/brcmstb_dpfe.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/memory/brcmstb_dpfe.c b/drivers/memory/brcmstb_dpfe.c index 088153760e52..2013a91217a9 100644 --- a/drivers/memory/brcmstb_dpfe.c +++ b/drivers/memory/brcmstb_dpfe.c @@ -507,7 +507,7 @@ static ssize_t show_info(struct device *dev, struct device_attribute *devattr, { u32 response[MSG_FIELD_MAX]; unsigned int info; - int ret; + ssize_t ret; ret = generic_show(DPFE_CMD_GET_INFO, response, dev, buf); if (ret) @@ -531,7 +531,7 @@ static ssize_t show_refresh(struct device *dev, unsigned int offset; u8 refresh, sr_abort, ppre, thermal_offs, tuf; u32 mr4; - int ret; + ssize_t ret; ret = generic_show(DPFE_CMD_GET_REFRESH, response, dev, buf); if (ret) @@ -588,7 +588,7 @@ static ssize_t show_vendor(struct device *dev, struct device_attribute *devattr, struct private_data *priv; void __iomem *info; unsigned int offset; - int ret; + ssize_t ret; ret = generic_show(DPFE_CMD_GET_VENDOR, response, dev, buf); if (ret)