Received: by 10.213.65.68 with SMTP id h4csp1748881imn; Mon, 19 Mar 2018 12:11:22 -0700 (PDT) X-Google-Smtp-Source: AG47ELtKXViIyzgywmiiZRW+6LBLZi7GSTq8RnbRQ/3ukdrIWFUw6sxEDew/m77ccY0DbvDTjgeq X-Received: by 2002:a17:902:b48c:: with SMTP id y12-v6mr13657595plr.313.1521486682519; Mon, 19 Mar 2018 12:11:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521486682; cv=none; d=google.com; s=arc-20160816; b=I9KkPn19BakTObrMcs+SxdGHmgvBfc9rZr5ivzJ5gBP6P7kGJhgXQQQ+r6A1EsF7fb dWDQN27qfOQ0hWRIy6KIl2WbWAuoKyjF2mWPU1oy6Ifvz4dqo4FGg+lQPjcRU4udM6/0 4INcJxrKVkHWWl5GywOb0kWFBT8HwiimZq11enbv52lLPn1LzxRjkDnBIvX51SWdFiDU CUw5UUbGY377nqpgEsAhEBfrdZJwe5PWMTKM7jLLSWzGrWU+FV2Rw7e+zesKo+PgHlTu rQBU6dqlMFRP2h+gW0dvUrvy9iZWmVsHcnN2YyCjc9AX2GQ5MlyomZv9OZRuIH3S98GI U43g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=O1pceMFXBUFYoEAQ+XYR9O+rvqvqj+MO2C1zawtYvZs=; b=e944CDqk44FYNOBm3BsR7vtUSVGBUR03nHUVlyMLCHsvlh9nsWKobYULyv/WnFsUxi t+UskSEpTAqPvap8JmIyd57G32eNdLVm4LV50NCuJe88/3edxpZEJH7ASxyNCABkPMkx dnA2zyo0Es1ZKK8D4hMQvHjtlF4ivoWnuxVYqPVDOj6gQ/62VKf/03qv6JGrT7EY6eJH 1aDivHXs3bUWs06T451Fn47aLNF1gCKRyA6DiMG0blNH4LSPd9P39BlABC5ROF49BGsR nF7Vx6mlVc4cCqDgURWxZhm/l12CdPKFC+LLSxjkyXwDcpLL+Vm25oMviHP8l5unWIUA dluw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y3si373027pgc.601.2018.03.19.12.11.06; Mon, 19 Mar 2018 12:11:22 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1031720AbeCSS1t (ORCPT + 99 others); Mon, 19 Mar 2018 14:27:49 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:51314 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1031685AbeCSS1i (ORCPT ); Mon, 19 Mar 2018 14:27:38 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id E2FEE126C; Mon, 19 Mar 2018 18:27:37 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Bjorn Andersson , Linus Walleij , Pavel Machek , Lee Jones , Sasha Levin Subject: [PATCH 4.9 181/241] leds: pm8058: Silence pointer to integer size warning Date: Mon, 19 Mar 2018 19:07:26 +0100 Message-Id: <20180319180758.638613424@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180319180751.172155436@linuxfoundation.org> References: <20180319180751.172155436@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.9-stable review patch. If anyone has any objections, please let me know. ------------------ From: Bjorn Andersson [ Upstream commit 8f52df50d9366f770a894d14ef724e5e04574e98 ] The pointer returned by of_device_get_match_data() doesn't have the same size as u32 on 64-bit architectures, causing a compile warning when compile-testing the driver on such platform. Cast the return value of of_device_get_match_data() to unsigned long and then to u32 to silence this warning. Fixes: 7f866986e705 ("leds: add PM8058 LEDs driver") Signed-off-by: Bjorn Andersson Reviewed-by: Linus Walleij Acked-by: Pavel Machek Signed-off-by: Lee Jones Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/leds/leds-pm8058.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/leds/leds-pm8058.c +++ b/drivers/leds/leds-pm8058.c @@ -106,7 +106,7 @@ static int pm8058_led_probe(struct platf if (!led) return -ENOMEM; - led->ledtype = (u32)of_device_get_match_data(&pdev->dev); + led->ledtype = (u32)(unsigned long)of_device_get_match_data(&pdev->dev); map = dev_get_regmap(pdev->dev.parent, NULL); if (!map) {