Received: by 2002:a05:7412:bb8d:b0:d7:7d3a:4fe2 with SMTP id js13csp469804rdb; Tue, 15 Aug 2023 02:16:38 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH6/ptuH7DO6I5yUGk5HoeG8rvfCSCPoUxpAJl13MofsbDHAkxVIKq2yXbW+MraEB2cBf10 X-Received: by 2002:a19:f80c:0:b0:4fe:19ef:8794 with SMTP id a12-20020a19f80c000000b004fe19ef8794mr7074757lff.28.1692090998058; Tue, 15 Aug 2023 02:16:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692090998; cv=none; d=google.com; s=arc-20160816; b=wuG6w1A9pUkjQHza3vVku7m85Ghe4xQdzNbc401K+ovBJOLbnvs8aSEZP/gQDsm25z SPCpZZIglr8LvkYEE3HST0qe7/niRIWfMRLHw9OsSQ80hMvhzFopNPvVzK1bbvRuxmCX hLb2KeD85guWDELq/19jDylsv12Lh5dlh/okAzCyZb0JMnbC/bQrKE+3kqvvtQma5oOG 1egr57uoWR7Dawbw6U+hIXf4uhPGN0wyxyQYhCzi0TyzaIaRI7gg3UF0secQsoQuM4gO OidoeXfLMk+qLpcvWo340YuRITCJH3dXJZTdT7r9QXk2ZvURP00FXoAM6opWI3N7Ce6Y f7hg== 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=gWMgPm/tzNmDTKu1zC4ZYMESaqiZNyDBoyluIpSLBBk=; fh=CjNL7Vq/qB2Qj8//EImamDE1+hRulmUCJBGWyPQkx1I=; b=hcoKW9N87jHAIK3wvPInbMeIdIUOUIuxpvYPYwvAM5hG4PUTSLp+9oBFYWTU/8IfVz YH9pJN7Y7w2HwDaRSL+7Y5Pry942FtanajL9RElQPHjBqWWjyHgp+1jh1TZBtQHr/Zmo 7xS3M5DzJq1B/Pab9Z0TXbVrAqtqSbb0BmlDRgDwmLu1wwcZGYl9zetHtWHe+nOCI1EA iUT9R4Xv72cILe4QWRKVdfLgrJ7BpO25I4KHf0p7B75gDzlotq/8kUYZpJ80HG9OLulm OwjfSFtFUc5BdNOJjqj+ybJ8ziLxipBkYXWoeopNCvLVriGe4wnG5pPjVIHcxXnTfaGB Kp6Q== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v19-20020a056402185300b0052370772262si9531181edy.131.2023.08.15.02.16.12; Tue, 15 Aug 2023 02:16:38 -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 S234917AbjHOGQy (ORCPT + 99 others); Tue, 15 Aug 2023 02:16:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49406 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234757AbjHOGQc (ORCPT ); Tue, 15 Aug 2023 02:16:32 -0400 Received: from muru.com (muru.com [72.249.23.125]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D3E1E13E; Mon, 14 Aug 2023 23:16:30 -0700 (PDT) Received: from hillo.muru.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTP id 125DE80E0; Tue, 15 Aug 2023 06:16:28 +0000 (UTC) From: Tony Lindgren To: linux-omap@vger.kernel.org Cc: Dhruva Gole , Greg Kroah-Hartman , Keerthy , Kevin Hilman , Nishanth Menon , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kernel test robot Subject: [PATCH] bus: ti-sysc: Fix cast to enum warning Date: Tue, 15 Aug 2023 09:16:22 +0300 Message-ID: <20230815061622.61525-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: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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 @@ -3107,7 +3107,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.41.0