Message ID | 20230809092722.11000-1-tony@atomide.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c44e:0:b0:3f2:4152:657d with SMTP id w14csp2678625vqr; Wed, 9 Aug 2023 02:45:02 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHGHBl1HC3DGKyi3qJr5ehGGE4wucBmpkcgpLC+i7iBjMRvE9bbP1N0sX/vne3bnCDhEfK+ X-Received: by 2002:a05:6a21:2783:b0:12c:b10d:693d with SMTP id rn3-20020a056a21278300b0012cb10d693dmr1590654pzb.6.1691574302114; Wed, 09 Aug 2023 02:45:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691574302; cv=none; d=google.com; s=arc-20160816; b=xxUz5fgSSQI980/Fq/6DLlwiZ6T7J+rIJ+a2k9fkFF/8MgN2890OMHsLmtGn8uvmFy jzmk/WIrZDSnNYpphE45h26Q6S6lftRWqHr6El4XClkX4DMFHbDCrpWCBzOxlSEq4maq 6Bj/qraj5WtCpOqIjFUW+zQbejxl61CEutqwt3hzM/gcFKL4hh+fZ9CKrLbWmAD06vLG cIYg+YjYKPGnJa0sembV/NClDOvBU12DpOCKWMSc7mcbygsd7IbgbBZwF5Lxuxt9PCt3 JCkyu6CRV6k7VySVYetvVRV04SFlF701/6ogylAgQKbc1eBBcix797qIL601FVFPrz3b 43bw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=e/nnkvtaOZ4ysg5K9fZQnsJBqZ43AmRedjxMODdyPSQ=; fh=XxaTlmIpB8G5M8cXR44Z9VEvqpqe6YzQ/MRJDhKrirA=; b=C7/3tHT1b2oa9sqaHW5fmamMaKyxqfKlbS+o5dzV5JD6EF4AG0yILsY9idsV13+IZ/ 70TIOeDP7Qtd51bDQI2VikyxAYOOJEFLpJgbwxWCpKU50jfM/yVfdj+U0YZmaXK7jpLT D3ozpfbJg6F+zJQOOXaUAJ8owtQWzmWo2wX3kFDGfFTIMwW2DQ9gRQfcKpiAMIZ3gEpC eCp+V/8QpQiiInTMDlGRmEYdhrwvnzdkbOjCjVUTy3NRQaXB9Kv3UwiQksTLWZzwfSpf P2AzqG5EmLr1NWuM3x7EYqllCdFu9LA6v9UF8pHNBCt56b62Gu3eBiDAKH/qA8cS1SoH eiuw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o5-20020a170902d4c500b001b9e8ebe5a0si9259183plg.613.2023.08.09.02.44.48; Wed, 09 Aug 2023 02:45:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230245AbjHIJ1d (ORCPT <rfc822;aaronkmseo@gmail.com> + 99 others); Wed, 9 Aug 2023 05:27:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56096 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230147AbjHIJ1a (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 9 Aug 2023 05:27:30 -0400 Received: from muru.com (muru.com [72.249.23.125]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 56E1719BC; Wed, 9 Aug 2023 02:27:30 -0700 (PDT) Received: from hillo.muru.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTP id 5A4548105; Wed, 9 Aug 2023 09:27:28 +0000 (UTC) From: Tony Lindgren <tony@atomide.com> To: linux-omap@vger.kernel.org Cc: Dave Gerlach <d-gerlach@ti.com>, Dhruva Gole <d-gole@ti.com>, Faiz Abbas <faiz_abbas@ti.com>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, Keerthy <j-keerthy@ti.com>, Kevin Hilman <khilman@baylibre.com>, Nishanth Menon <nm@ti.com>, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 1/3] bus: ti-sysc: Fix build warning for 64-bit build Date: Wed, 9 Aug 2023 12:27:20 +0300 Message-ID: <20230809092722.11000-1-tony@atomide.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773296256632784776 X-GMAIL-MSGID: 1773744215238501729 |
Series |
[v2,1/3] bus: ti-sysc: Fix build warning for 64-bit build
|
|
Commit Message
Tony Lindgren
Aug. 9, 2023, 9:27 a.m. UTC
Fix "warning: cast from pointer to integer of different size" on 64-bit
builds.
Note that this is a cosmetic fix at this point as the driver is not yet
used for 64-bit systems.
Fixes: feaa8baee82a ("bus: ti-sysc: Implement SoC revision handling")
Signed-off-by: Tony Lindgren <tony@atomide.com>
---
drivers/bus/ti-sysc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On Aug 09, 2023 at 12:27:20 +0300, Tony Lindgren wrote: > Fix "warning: cast from pointer to integer of different size" on 64-bit > builds. > > Note that this is a cosmetic fix at this point as the driver is not yet > used for 64-bit systems. > > Fixes: feaa8baee82a ("bus: ti-sysc: Implement SoC revision handling") > Signed-off-by: Tony Lindgren <tony@atomide.com> > --- > drivers/bus/ti-sysc.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/bus/ti-sysc.c b/drivers/bus/ti-sysc.c > --- a/drivers/bus/ti-sysc.c > +++ b/drivers/bus/ti-sysc.c > @@ -3104,7 +3104,7 @@ static int sysc_init_static_data(struct sysc *ddata) > > match = soc_device_match(sysc_soc_match); > if (match && match->data) > - sysc_soc->soc = (int)match->data; > + sysc_soc->soc = (enum sysc_soc)match->data; Thanks for the suggestion Nishanth, Reviewed-by: Dhruva Gole <d-gole@ti.com> Maybe something unrelated to this patch, but the driver has some minor warning when built with W=1: make W=1 ARCH=arm64 CROSS_COMPILE=aarch64-none-linux-gnu- drivers/bus/ti-sysc.o drivers/bus/ti-sysc.c:156: warning: Function parameter or member 'sysconfig' not described in 'sysc' > > /* > * Check and warn about possible old incomplete dtb. We now want to see > -- > 2.41.0
* Dhruva Gole <d-gole@ti.com> [230809 09:41]: > Maybe something unrelated to this patch, but the driver has some minor > warning when built with W=1: > > make W=1 ARCH=arm64 CROSS_COMPILE=aarch64-none-linux-gnu- drivers/bus/ti-sysc.o > > drivers/bus/ti-sysc.c:156: warning: Function parameter or member 'sysconfig' not described in 'sysc' Thanks yes it's unrelated, looks like sysconfig is not documented. I'll send a patch for that separately. Regards, Tony
On 12:27-20230809, Tony Lindgren wrote: > Fix "warning: cast from pointer to integer of different size" on 64-bit > builds. > > Note that this is a cosmetic fix at this point as the driver is not yet > used for 64-bit systems. > > Fixes: feaa8baee82a ("bus: ti-sysc: Implement SoC revision handling") > Signed-off-by: Tony Lindgren <tony@atomide.com> > --- > drivers/bus/ti-sysc.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/bus/ti-sysc.c b/drivers/bus/ti-sysc.c > --- a/drivers/bus/ti-sysc.c > +++ b/drivers/bus/ti-sysc.c > @@ -3104,7 +3104,7 @@ static int sysc_init_static_data(struct sysc *ddata) > > match = soc_device_match(sysc_soc_match); > if (match && match->data) > - sysc_soc->soc = (int)match->data; > + sysc_soc->soc = (enum sysc_soc)match->data; > > /* > * Check and warn about possible old incomplete dtb. We now want to see > -- > 2.41.0 Reviewed-by: Nishanth Menon <nm@ti.com>
diff --git a/drivers/bus/ti-sysc.c b/drivers/bus/ti-sysc.c --- a/drivers/bus/ti-sysc.c +++ b/drivers/bus/ti-sysc.c @@ -3104,7 +3104,7 @@ static int sysc_init_static_data(struct sysc *ddata) match = soc_device_match(sysc_soc_match); if (match && match->data) - sysc_soc->soc = (int)match->data; + sysc_soc->soc = (enum sysc_soc)match->data; /* * Check and warn about possible old incomplete dtb. We now want to see