Received: by 10.213.65.68 with SMTP id h4csp503737imn; Fri, 16 Mar 2018 09:44:48 -0700 (PDT) X-Google-Smtp-Source: AG47ELusfWQ4KWJwWFXM1i658GClR9iNKkxgkOgvKxCXUZwjkTYWMp7btE9UqOaToij5m8/bEvxT X-Received: by 2002:a17:902:bc41:: with SMTP id t1-v6mr2822797plz.56.1521218688003; Fri, 16 Mar 2018 09:44:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521218687; cv=none; d=google.com; s=arc-20160816; b=TUxYOv2pWf0uYUye3CCv4IJx/dbmiNtlDXzbvwU0fAKvCfDS18gQLl+AYX9hvtzIEh 1Qt310SMSDHdWHPRxzQzDEFwuzwPgNNxEw2mCN+v0cpYIN4TAovpoz2By8SV8efmtkMl WKKNES+lbVTRIL+RFr7GGbQO8mZrP0ixk+fhEzTN/t0iDGUuDOyOicaJxg9mNh3En9dE Eik6Nj0xHu46LPZJP15zT7hDVJeRZik/R1b3ol/WUy1vpMW8+rBTX4UQKO/2R1IUc6IK pbXHw+ADwD5TlcJSwaswncFEbeyfBS5yUGlwcLRboJspPU+5Sj5+efcgdDi5Ysizga7i Ah0Q== 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=8j0vHtvuUoL3s7VM8OgKgm+ln/vqLyVNy9mX/oDIVmk=; b=dIUWxCan/0C4O1D2WCl+8tal+apqRyGtAl6+z38P4SjcE4qVwv1jd93Xi44qIftLAp SpJXGr8O3jjHfaFHDHexKvYlUbJ6Eq/2YkPZmuN3DzWQPMuqpUkabMN1+gzzURYgYnvN ejQZTb8hvFAduBIADNGgRJ1pJ+/xMb+8h1Rljn6vkWBPDmm7y4QAdVWGwAYKwFgwWKyZ rIRP5p2rBj4Iz80kjsipXfqjTh27iK09urMS/rodfbPNNSX4/h5H32lPTs+P+M7VnQ4k T9Wf8VQQqYGieGWXFVG3lppdPJDOoiEtTCrfxY5iIcQNu3LgBSbl7+Mvr9Zsp8NpEp8c vSgg== 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 g1si5228773pge.694.2018.03.16.09.44.33; Fri, 16 Mar 2018 09:44:47 -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 S934274AbeCPPgV (ORCPT + 99 others); Fri, 16 Mar 2018 11:36:21 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:40208 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934217AbeCPPgR (ORCPT ); Fri, 16 Mar 2018 11:36:17 -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 A2A8D10D0; Fri, 16 Mar 2018 15:36:16 +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.14 055/109] leds: pm8058: Silence pointer to integer size warning Date: Fri, 16 Mar 2018 16:23:24 +0100 Message-Id: <20180316152332.946712593@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180316152329.844663293@linuxfoundation.org> References: <20180316152329.844663293@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.14-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) {