Received: by 10.213.65.68 with SMTP id h4csp481988imn; Fri, 16 Mar 2018 09:05:14 -0700 (PDT) X-Google-Smtp-Source: AG47ELs/QEHyvsdDwZ/QYDcCA2UTOidRSzUbITuL1WEohC5i7DtzXFLJHA6dlapQySfd3fAW/pEs X-Received: by 2002:a17:902:be14:: with SMTP id r20-v6mr2695876pls.302.1521216314885; Fri, 16 Mar 2018 09:05:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521216314; cv=none; d=google.com; s=arc-20160816; b=dr/LPBrVlXa0NabYTTYqEtE5j5ik7KUfeWgh8aB5QloUR2dc2m8oDoMavamutncc+u uCGfVGbCTYL4tMJXXexz/MEAJEgLfL+19GqBc9Q1Qmb8eGwPz2JWkTei9GSJjw974e8d eE6xZjqenP/Xs1IkIzEDuexsfvBFXtetnuq/xvQ0zZJW9PPXREMkECcmkhA2lx7vVl6F ZPoeqt97HZBaRTSwpGVFr/0YHX7rTs4kbjZBKZlilt17qN9qFw27dVT3y8iYCO3EpsD4 bsVOzhuAs/l8n2y8gdgFlZvMjJabuo1/Fwbxh12+p62rGenKtKveJvK6Cu958aCb+Pnz HAzA== 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=J06M+Ugo2PEaFhJXzCgCQP2P20OgQLFQlZVfYtSm7gg=; b=UGfEYAuFBBCaMi/3jhLvhBeIYUCJ4BoO5XhuKomoe4gLNa5rTkhw/vwizdx3YhEZjU AtXaGxuy9s2GkgP9zl4+qhO8eUQy0aKbURaHh7tCBM9lf/OtijjblocBVq6Fga9yLgyq hcWr3t4CoAGZ6jW4xaeEM5uaUCvkt1NJ/FD0ZO8AFwb1HaF6DyMD9fZmjW0mOKP97YxI rQVdBA2+kYW+vKFKloY40ksIzNkZeDs42OcYikSLVT95/P1uxxPaqWegceap8NmHYure 9ZmRLYO5gDSe32c7f8DrjNYVrRGmIYG75dHAoLoqZlIVqUkBLSzi8EPPHGwfmSDzvGw9 kvjA== 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 t10-v6si1996352plq.531.2018.03.16.09.04.59; Fri, 16 Mar 2018 09:05:14 -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 S1754858AbeCPPmR (ORCPT + 99 others); Fri, 16 Mar 2018 11:42:17 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:44356 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754837AbeCPPmG (ORCPT ); Fri, 16 Mar 2018 11:42:06 -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 8F2C3FC6; Fri, 16 Mar 2018 15:42:05 +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.15 066/128] leds: pm8058: Silence pointer to integer size warning Date: Fri, 16 Mar 2018 16:23:27 +0100 Message-Id: <20180316152340.045907166@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180316152336.199007505@linuxfoundation.org> References: <20180316152336.199007505@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.15-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) {