Received: by 10.223.185.116 with SMTP id b49csp4097308wrg; Tue, 13 Feb 2018 12:43:16 -0800 (PST) X-Google-Smtp-Source: AH8x224OVhB1kbfD8ZK4EsQ0VivGEFrgfKxjzXZ+qvges6zG6CzLnVnVnTRXHfsRo39WQFL5QbCq X-Received: by 2002:a17:902:aa85:: with SMTP id d5-v6mr2289864plr.239.1518554596717; Tue, 13 Feb 2018 12:43:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518554596; cv=none; d=google.com; s=arc-20160816; b=UpenviBdnhKtaXwVBkihc3hzrH3XPTwHPjY/N1g2UawkLtXFKBQu9/GuBkSaYzgxPS fYhtSbNDIcQYobweWe2+F9HcAHoVNaDnTqh/2hNdBygAJL6BZODYyn3cLhNvXE+v36s4 shmD7yYaeqptAFB2Qd1O3UugIJvCa9rBADMtrlzBiK4ARnalv3f/Bw7rqV+n4pkT43pw avjdEbbhrrCnY8PqGTKmMkAx4ph7XynW+Cqi17vWNErK3j8EeuEPB7fxG/JekWJtIVWF FhXtIlSDzIup5ijAVyKhHY7FELNymHKXKmvsEtbvJM5snB2p3m5qlJDB0aciGBQwkmUd K/uA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=kq4zgX+0anCdyZLfRzpdkBucmnkhcBWJnlKeWXMt80U=; b=pWOOhY7QNPFjoM8z8WRiOhNhhNPfPYZWP2zCF01E2EtkxLqkH6SnzDB973MwcDln7O YERuG60BIAIAoGIoBMEiX36R8sf0adHBNBcAN87Tv00ipjyHB2L8RFsch3dPtrVNYRiP HHYtScaaF36cvTuvS+7hAfdZZqvnQlEQTk9+AXhg0fvlxPUVbPPlP/cPl0IrOg3JBi9J q4Re7ATaWy6ReWJ5PN0LVYeAn8YChPkzNR9lW4r/SEOcqCEROTj86y4sgcFacGVRMsPX BodBEvxRWBjTwM1F/IMstJIKlNXTyllWLVk5IzQUIKQeIOIAt3qYzGvG6j1ZNaeX6yWH o/Qw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=gi6f5avR; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d5si123203pfb.335.2018.02.13.12.43.02; Tue, 13 Feb 2018 12:43:16 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=gi6f5avR; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965839AbeBMUlm (ORCPT + 99 others); Tue, 13 Feb 2018 15:41:42 -0500 Received: from mail-qk0-f195.google.com ([209.85.220.195]:39560 "EHLO mail-qk0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752344AbeBMUll (ORCPT ); Tue, 13 Feb 2018 15:41:41 -0500 Received: by mail-qk0-f195.google.com with SMTP id z197so7188125qkb.6 for ; Tue, 13 Feb 2018 12:41:40 -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=OlabiOC7EOQq1kV7SGRm+imOXhEsjnBIOMeLt9eP6TLiz7IHLcA9NLtcoFeCJL6RXX cgouc+5bgCGEXBosq+8ApGitFNyCb24Yiqgq4Mqcgi2dTxjZ+GAP8H4C+wp8nPm3sRAj BYeo1CU1PHTh5AKlPhdXEezNkJkTeyIpzjLpyKgYjBIpccySeVrmacWwzz2BVVYO7lMb IHufJfKWATlcBd2Ytu472SVO3O9s+AVJJqbZ+C9UBOZ+Iq7TQ0jAMplwyj3bwnXuQg0h NpAl4Gfzboi0scqUVbh1a4aMJGl2BmmhI7GK3kmPIQG2eDsBgsqTAfWcVxw86RUsxUFc Rj8Q== X-Gm-Message-State: APf1xPAPEnLtnOWprUHr7g2ESV3DQTf3L+u+9IdWFoFyZjgR1GjjE+LC xgyuMBYGCAp/1oB/sAvrC+OiKA== 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 Cc: Markus Mayer , Broadcom Kernel List , ARM Kernel List , Linux Kernel Mailing List 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> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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) -- 2.7.4