Message ID | 20200624150704.2729736-4-lee.jones@linaro.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <SRS0=Zeyf=AF=lists.infradead.org=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@kernel.org> Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 5E17A138C for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 24 Jun 2020 15:11:43 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (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 36AAE20656 for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 24 Jun 2020 15:11:43 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="lm2zXs8U"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="UDb/Vse+" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 36AAE20656 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version: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=X1S17CQTHgbZdzwPfaxhQSbcimeb7hzZ4wIRRop7SKk=; b=lm2zXs8U7ng2FwYFFUriiIfhX mdtO/9mzxRxh70YkNHME3+uY/eNsYHU9BgZyDooTSRjTXFnVZhlH/5R0DmB5aTQOshHHn31NN9C3d wJG/xf0VWKa06BjEFcwzoQWTNxgkFaNi5VH9oxPhwLhQwxuw9oXgnJ6dElHqWoQG7dB1tfhm+tyP4 i+y7geKMftrmzwicRHRQ/HT3VuoSoLNaDcxSTAwNTwKgQbsSWNlxJnWVXwVgpYY+9vEDrvl7+VdTA Jn3DmLqapx9smfBiyA1o+/amwZIncG8WvKIXoIpAKqqAtxdqJNH9rrYTk+3ATArjG1mqXL1SPOe6f fHzLhhq2g==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jo718-000568-A9; Wed, 24 Jun 2020 15:08:50 +0000 Received: from mail-wm1-x342.google.com ([2a00:1450:4864:20::342]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jo6zc-0004AA-Aj for linux-arm-kernel@lists.infradead.org; Wed, 24 Jun 2020 15:07:17 +0000 Received: by mail-wm1-x342.google.com with SMTP id f18so2862286wml.3 for <linux-arm-kernel@lists.infradead.org>; Wed, 24 Jun 2020 08:07:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=s6bqmwyzyHG2RdGTyEeF3lokJJurQOvKiY/PaolAzM0=; b=UDb/Vse+j4PLUklMPE1jOG89dEqQuO2i7OzePR1xZB+Siiw5RD0TNhZ61xg09kUs89 /j6gfY5MnzUfpvNACK/AyPui2vyY89OSGCOHsoIVLaqSqPW9LpLNZAFOlC1J8E0fmIdp an9XJ9DImy6JVYbEUnIPVyxSCmwdNyhEkapxPgOahBtkigo0F522HmM5oAB7yoM0WR1U D32plII+0qv9D9duq0tohxdfVCI6gjoYS/9hQYTQQmTvnHOBVyeSxKVGEiIKxXoGzl5B Ax/pJQOymt1mxWUlguQssE0BX/ehCYDcRuTAyJiWxEyRVtjn0QJTfb+Hq32A+W97Jhov Ch/Q== 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:mime-version:content-transfer-encoding; bh=s6bqmwyzyHG2RdGTyEeF3lokJJurQOvKiY/PaolAzM0=; b=VvY53QBKDW+ox+fOZSzdNxn+Q/1wfd3rcf7nYqQVKDodYjvco8Rz37Hp3dYRHm4lvk i5zURfK1eFXMSufCMYQfgbIe7TDLQAz8dBZReXh+TrLQ9d4v14umH4TdelDplKp1BQol 3KQwLUYoh3XHAMmWiqDmPnUgntH5mJJRcMzmITuBcOOifSXZ/xCY9Y/KzID71M9gjISZ Q8zYAHKwvpIbDorb4r5U/zNXYPEuzP5Hc/e7WDflLi7Sz+ZrFu9pDc1VNF82lOIApTZs ViTT5YZtUGU84ebDngvIYoYXwzAnEwjwH0BtX+GJHuM6FTl8zrhJ/1k4V1T2fXH94w86 5loA== X-Gm-Message-State: AOAM530/d9cwA4DjhOaNkFSXWr8YYkKeAaKi1Yzv2tKy0RpgwHar+Lah 6LWAn6KHmrvFSHXXVMzK9p2M0Q== X-Google-Smtp-Source: ABdhPJwfNOYCqcizNAWS6wfigwc8Rf4j01V19FGJhjfXQf2U6h6zjrh7PY3vYsNnGql2y9vxSlE+Gg== X-Received: by 2002:a1c:3881:: with SMTP id f123mr29878381wma.178.1593011235038; Wed, 24 Jun 2020 08:07:15 -0700 (PDT) Received: from localhost.localdomain ([2.27.35.144]) by smtp.gmail.com with ESMTPSA id h14sm11543361wrt.36.2020.06.24.08.07.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Jun 2020 08:07:14 -0700 (PDT) From: Lee Jones <lee.jones@linaro.org> To: lee.jones@linaro.org Subject: [PATCH 03/10] mfd: tps6586x: Fix cast to restricted __le32 warning Date: Wed, 24 Jun 2020 16:06:57 +0100 Message-Id: <20200624150704.2729736-4-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200624150704.2729736-1-lee.jones@linaro.org> References: <20200624150704.2729736-1-lee.jones@linaro.org> MIME-Version: 1.0 X-Spam-Note: CRM114 invocation failed X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:342 listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: stable@vger.kernel.org, Eric Miao <eric.miao@marvell.com>, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Mike Rapoport <mike@compulab.co.il> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org |
Series |
Fix a bunch of W=1 warnings in MFD
|
expand
|
diff --git a/drivers/mfd/tps6586x.c b/drivers/mfd/tps6586x.c index c8aadd39324e3..c36597797ddd8 100644 --- a/drivers/mfd/tps6586x.c +++ b/drivers/mfd/tps6586x.c @@ -309,18 +309,19 @@ static const struct irq_domain_ops tps6586x_domain_ops = { static irqreturn_t tps6586x_irq(int irq, void *data) { struct tps6586x *tps6586x = data; - u32 acks; + uint32_t acks; + __le32 val; int ret = 0; ret = tps6586x_reads(tps6586x->dev, TPS6586X_INT_ACK1, - sizeof(acks), (uint8_t *)&acks); + sizeof(acks), (uint8_t *)&val); if (ret < 0) { dev_err(tps6586x->dev, "failed to read interrupt status\n"); return IRQ_NONE; } - acks = le32_to_cpu(acks); + acks = le32_to_cpu(val); while (acks) { int i = __ffs(acks);
Silences Sparse warning(s): drivers/mfd/tps6586x.c:323:16: warning: cast to restricted __le32 drivers/mfd/tps6586x.c:323:16: warning: cast to restricted __le32 drivers/mfd/tps6586x.c:323:16: warning: cast to restricted __le32 drivers/mfd/tps6586x.c:323:16: warning: cast to restricted __le32 drivers/mfd/tps6586x.c:323:16: warning: cast to restricted __le32 drivers/mfd/tps6586x.c:323:16: warning: cast to restricted __le32 Cc: <stable@vger.kernel.org> Cc: Mike Rapoport <mike@compulab.co.il> Cc: Eric Miao <eric.miao@marvell.com> Signed-off-by: Lee Jones <lee.jones@linaro.org> --- drivers/mfd/tps6586x.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)