From patchwork Tue Aug 15 06:16:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tony Lindgren X-Patchwork-Id: 135651 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a888:0:b0:3f2:4152:657d with SMTP id x8csp377112vqo; Tue, 15 Aug 2023 05:05:01 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEyG5BUFtp35yjCUPxulBv0qWzQD5A3BsNASsjyw95AoNTNS//nufOU0NVpSueMyhUwTj4O X-Received: by 2002:aa7:df0f:0:b0:522:45db:48e3 with SMTP id c15-20020aa7df0f000000b0052245db48e3mr8453056edy.30.1692101100998; Tue, 15 Aug 2023 05:05:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692101100; cv=none; d=google.com; s=arc-20160816; b=okMPUn9/OUj/xnoAzRB8gXhw//invWAGzU9O8cN3XguBqSwx1c2sp/twdrfWaqAp87 pUDl5YT338cJkNlzOV3SLqwwNqvSHpcBTZHc67dFVrVJK/SezI01vkTOxzmrd+eh0UKc BmdDyDAXjs9U7n3zoAQ17rs+BHjzpoIgAAtrlPhLgjzPEIAF5/IimVuaEsBJqeees+9z q6KgILX82h9DbcVJurmUC30KWIJJeGbKACYqvgE5ZWSoi0c+wTfuBn8xjdZ/LvenBX8o AoGhDVLtsXVl4JFPOaZzKlVu7ppG2P4vJ7VVWosjuZcyxkhQ5Rj84DXLt/P+Gf6lB4XW HUgg== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u24-20020a05640207d800b00525672a80dfsi2799236edy.571.2023.08.15.05.04.03; Tue, 15 Aug 2023 05:05:00 -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 S234920AbjHOGQz (ORCPT + 99 others); Tue, 15 Aug 2023 02:16:55 -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 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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1774296603608701060 X-GMAIL-MSGID: 1774296603608701060 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