From patchwork Wed Jun 24 15:06:57 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 191693 Delivered-To: patch@linaro.org Received: by 2002:a92:1f07:0:0:0:0:0 with SMTP id i7csp677567ile; Wed, 24 Jun 2020 08:08:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwmgq4/L/xo7sWstRWBQS42t5JW90UM0/qm1dQYlWdkFqPvFxbiC7vtrobYVEf+0EJUkULe X-Received: by 2002:a17:906:fc20:: with SMTP id ov32mr23893097ejb.531.1593011282498; Wed, 24 Jun 2020 08:08:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593011282; cv=none; d=google.com; s=arc-20160816; b=g5hpJ0ECB+6Bqq46rWGXYeqABJ+t9JuKFOwcW/ctKIrXSoypdWmZUZyFjeHwRhI4Iq XMVnyZGXV3NA0qe5yANNoe07/vV18j1+/l1ZDXPFbcAVMD/WnuFHQsChjfy4M5hQD2vv Haa4B6dMMFaZEQbkeUTRwGW8p4zh3NKhE9cFA3yx8wnEnGlWqivEqUCF/mO4kx8624C6 55kVC6thxQjIQoF4nJk4BD12T8MbFxOlpHkwMr7HcZMsS8qWmsPxgmhFDSukpSszgRE7 7BTrCz8xDkcXWSDfbF39CbTMWXqoHcwUnFWLERaZgu2lj4wbw6Apjkw2SFFehsra9eHj PSWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=s6bqmwyzyHG2RdGTyEeF3lokJJurQOvKiY/PaolAzM0=; b=GDVG2gpw3L0WE+aYkwOYKNjFjRDf1TzfN5raRTlfd+AoDShhZn32PLoxvrJkR8pWbP vJdhTCziRqVgMr14+UtpGnMDycrO7JfCOmQL63Kg8o0TvgpBnhj5nufPWoNucapqKllx uB5WFurjCe4slVuplFz++8pVmg6QKdemYkmcW0KcDKKmhHcfmCQD5Mh3HXtSJEbgBo5j LlP7mSR1yHjLc8cSUyhbnzHoLTgye9AFYVsuHNU3i10Uy/pVl49bXYT+i9az3C3P9s53 Hk2bKhCo03GKUea6z+x3FSAX6xqvotUrnI+evVS6oQ36jO2B9OWRy/jV0CbrR8oEkYBT q+xQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="UDb/Vse+"; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s14si1843822ejx.43.2020.06.24.08.08.02; Wed, 24 Jun 2020 08:08:02 -0700 (PDT) Received-SPF: pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="UDb/Vse+"; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404427AbgFXPH4 (ORCPT + 15 others); Wed, 24 Jun 2020 11:07:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56424 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404135AbgFXPHQ (ORCPT ); Wed, 24 Jun 2020 11:07:16 -0400 Received: from mail-wm1-x343.google.com (mail-wm1-x343.google.com [IPv6:2a00:1450:4864:20::343]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4F7C8C061797 for ; Wed, 24 Jun 2020 08:07:16 -0700 (PDT) Received: by mail-wm1-x343.google.com with SMTP id l2so1381508wmf.0 for ; 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=VA8Lj143XQAJDUoSu2gJMr2tWWrecKsKBC+Iq9aDVOoh/DPijLmFBc4QPme+IL9DtW B8bNZROSD6YqELkQce2lfNCnplwl1f1vIBXhK9K23YbSDcOjCGKFHcfGGeo6aSq5UwUt uUIIF0jwlr0G8mzCkc/zcgTA2gcExWtEs58pZrr/dOeYPVG2zHFCRZxPr10IedMVg7jY D/ZWS90jx7uZatYjCq15DowMW58YxBozmjB5vE+bRAThzWjdznUdiQPyQhPRLzm00YG6 0CWln0zY30ZIqc0qmC+UCXU2xUQVIc8eA7R5tk1uaooXuSMUsGBJE8ixbwruBGImk1bQ MGBw== X-Gm-Message-State: AOAM533Ldjan5I/rhQgjr0WuHsx5mKDQhRn9tWCbDJSqN8t1YOahexgJ nPJPsY+Y/DnXsHRA3m3q2QCfRA== 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 To: lee.jones@linaro.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org, Mike Rapoport , Eric Miao 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 Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org 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: Cc: Mike Rapoport Cc: Eric Miao Signed-off-by: Lee Jones --- drivers/mfd/tps6586x.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) -- 2.25.1 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);