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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C7ECBC001DE for ; Thu, 10 Aug 2023 08:57:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=WsPgpYIJ7PoUKgxVXfRa48vcaM76iA3z0GN2VePk58Q=; b=LHbjR+m3VqZMhG OlIVxqQBAzOJV+RRfaeujkj+L1qdo8C3Kbgn9KMDIQpfgVCXQdqM2zJ3PBsIdiNUrLrLbT56mQJKs ab25szArLnOCfEgP56qUyzQPW5JOC8U/G0+kf9aLRWMxWwAR/hLAWehqiXqCq9ObC+Gyi858SnS7T SXjTPFhhexbQt9AG05swJi3WaksPmISmhJj9f4ANRrmFuTw1uNDLtbNUeqb/h3GrjCxFRlFBzk/32 D/ng++JcV/IMQYLqxgNjkXvNkZ4naL2GnQxvzEzMY45W8eiyKQ8JVJ0mS1P4WY5U8h00h+Vpgwv+d UtT8M/m0ojwxyk11btEA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qU1TD-006unU-2X; Thu, 10 Aug 2023 08:56:39 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qU1TA-006umU-34 for linux-arm-kernel@lists.infradead.org; Thu, 10 Aug 2023 08:56:38 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 45BF463C5F; Thu, 10 Aug 2023 08:56:36 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DD84BC433C8; Thu, 10 Aug 2023 08:56:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691657795; bh=JnhEH4wMc8AeDCC0VFoQzQrj+iXNdjqhUQZWI00aVz4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Rr8FrM0ZIPljqAf/YtTP0nPqKVf0SAWcJYosFK7Q2LQ+ppagF7NZsocOKvKfWW8Iv tOcB+r+K6DXD4L5lCrPuff4QCziSJERHeTikodP0HTpOD/bXibzsloh9hziKLqC7c3 r6so+GeqiVHXchJPSJ5b2diWokVjVvkYHEbSSQUrfFe4WgAHFuJcDA8gM2FSKercB5 6Yx7rg5ZQmO2uPu73ODAdx1gchqSnOzzoxs17BUMrfEqcUOV+NKYP1cLbIV4qtQr48 SkZ7r50kj9j3QHeeuRJEHBgoFHEHqE2Y5lz4RT294C8Y8Z9vYMsA47Ne6KJqBVh8sz vRP4RsDiE8sKQ== Date: Thu, 10 Aug 2023 10:56:32 +0200 From: Andi Shyti To: Justin Stitt Cc: Ray Jui , Scott Branden , Broadcom internal kernel review list , linux-i2c@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, Nathan Chancellor Subject: Re: [PATCH 1/2] i2c: i2c-bcm-iproc: fix -Wvoid-pointer-to-enum-cast warning Message-ID: <20230810085632.xzonkmse27mu4yew@intel.intel> References: <20230809-cbl-1903-v1-0-df9d66a3ba3e@google.com> <20230809-cbl-1903-v1-1-df9d66a3ba3e@google.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20230809-cbl-1903-v1-1-df9d66a3ba3e@google.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230810_015637_029899_D2D46B77 X-CRM114-Status: GOOD ( 10.34 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi Justin, > @@ -1036,7 +1036,7 @@ static int bcm_iproc_i2c_probe(struct platform_device *pdev) > platform_set_drvdata(pdev, iproc_i2c); > iproc_i2c->device = &pdev->dev; > iproc_i2c->type = > - (enum bcm_iproc_i2c_type)of_device_get_match_data(&pdev->dev); > + (unsigned long) of_device_get_match_data(&pdev->dev); I think this should be uintptr_t, as defined in types.h: typedef unsigned long uintptr_t; (I'm a bit puzzled to see a void *data cast to a 0/1 value.) Andi _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel