From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5466E6FA7 for ; Sun, 17 Sep 2023 19:30:20 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5A6F2C433C7; Sun, 17 Sep 2023 19:30:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1694979020; bh=lhPawx+RErCG3RF54TGHwf9QLxH2qoSkk/W7g3CmzUg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=yLbi05yA3p04M1iIOzm9Di4akQW+lFf0XaFpkliJ+V5uQplZrRtE8/W0UnWlioDkQ ZKPiVQy5jA2kY13ym5JQGOal343xN/Xsa4TJ4aqXCH4oyy5UDnjvoTJLXytQn5cGSS Qfwu6/uMVBm1tKW8Qnhgu4MDBnRSiA3Y5v6Teu9Q= 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 5.10 166/406] bus: ti-sysc: Fix cast to enum warning Date: Sun, 17 Sep 2023 21:10:20 +0200 Message-ID: <20230917191105.566003625@linuxfoundation.org> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20230917191101.035638219@linuxfoundation.org> References: <20230917191101.035638219@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 5.10-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 fa7894cab2152..c8e0f8cb9aa32 100644 --- a/drivers/bus/ti-sysc.c +++ b/drivers/bus/ti-sysc.c @@ -3041,7 +3041,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; /* Ignore devices that are not available on HS and EMU SoCs */ if (!sysc_soc->general_purpose) { -- 2.40.1