From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4E34DCA0ECD for ; Mon, 11 Sep 2023 22:51:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235327AbjIKWug (ORCPT ); Mon, 11 Sep 2023 18:50:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47764 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238927AbjIKOHs (ORCPT ); Mon, 11 Sep 2023 10:07:48 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 622D0E40 for ; Mon, 11 Sep 2023 07:07:43 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 62CD6C433C9; Mon, 11 Sep 2023 14:07:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1694441262; bh=g5Qqjn5D4Pjev7pGxRsD6K1SR/bwDQHcHGIymFeTu8A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZFcxvHp+FVCmWJSufBzpOPwJ3fJpJ6PBE3IpE6EHYdX0pdVMXM1ic44DYfXZvdcm6 qpTu7tlALdSJ/3hiDZv3Cvmj1UIs48/zWnvz7jZxlY8yV1tjbGs/mTPnZmZkU/2g8D gxJpeNdQBzbun+N80riB3/AcbIzLvx9oAIS9UcNY= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Nishanth Menon , kernel test robot , Tony Lindgren , Sasha Levin Subject: [PATCH 6.5 352/739] bus: ti-sysc: Fix cast to enum warning Date: Mon, 11 Sep 2023 15:42:31 +0200 Message-ID: <20230911134700.954660368@linuxfoundation.org> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20230911134650.921299741@linuxfoundation.org> References: <20230911134650.921299741@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org 6.5-stable review patch. If anyone has any objections, please let me know. ------------------ From: Tony Lindgren [ Upstream commit de44bf2f7683347f75690ef6cf61a1d5ba8f0891 ] Fix warning for "cast to smaller integer type 'enum sysc_soc' from 'const void *'". Cc: Nishanth Menon Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202308150723.ziuGCdM3-lkp@intel.com/ Fixes: e1e1e9bb9d94 ("bus: ti-sysc: Fix build warning for 64-bit build") Signed-off-by: Tony Lindgren Signed-off-by: Sasha Levin --- 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 index dbc37b3b84a8d..c95fa4335fee2 100644 --- a/drivers/bus/ti-sysc.c +++ b/drivers/bus/ti-sysc.c @@ -3106,7 +3106,7 @@ static int sysc_init_static_data(struct sysc *ddata) match = soc_device_match(sysc_soc_match); if (match && match->data) - sysc_soc->soc = (enum sysc_soc)match->data; + sysc_soc->soc = (enum sysc_soc)(uintptr_t)match->data; /* * Check and warn about possible old incomplete dtb. We now want to see -- 2.40.1