Received: by 2002:a05:6358:51dd:b0:131:369:b2a3 with SMTP id 29csp836503rwl; Thu, 10 Aug 2023 02:18:35 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE2tIxOGhlhhbLKhS2enkq4R2bFYY8UxCLW0pvL+bCn47xa2acxJhDglVcruy0VpSkPDh/k X-Received: by 2002:a05:620a:170d:b0:76c:e324:f647 with SMTP id az13-20020a05620a170d00b0076ce324f647mr1992198qkb.31.1691659115337; Thu, 10 Aug 2023 02:18:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691659115; cv=none; d=google.com; s=arc-20160816; b=QQuatnHR9uYXJYmCjLeScHTPTM4VeuctkCKqyfnFmLD95IsLXIjWAVIK/MWX65ner7 +56EWUivNvfD91tk4k0npoF6dBJDK1f4Ru4ST7bbq5EAL0JLevYUl/RqHT6cW6rnmGQF /94A2YQoVRIZu2AXhEpGYle34XUCWHDfL4a+R+gVSETuamjNmWNA4Qo+SAq5sTO+nx90 daBxKmDMGoROhIeSOubp4nvvb+mgFcDWRKfFJB2pwQer+l9omVcpDS+PReCvVFHSTXVB 1puDVquGcsUgSdi2KEJRWYZ2VuBF8ko2AjRgrFLUbZr5UNkgAwzuPzp/EFv9hqse+a4S FENw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=bUdKzeQooF9SrYu7PEPKwn2cs2j3+vjOYzYZhv1W8A4=; fh=wJ8SWxSanaGF4ZSPm3w6qQ59XNc0tuUpJQC/XvtXo2s=; b=EQnk66aFMKyPCrQFtudfkFIxffDnvdEgFuiwI3Wow30djpsDh5LJAoRq6F2PfgjDgQ +BTFSdZiwqU71ZdxYJoH0E4CfdVBTj/zT3+PTkQCOSIQQ0nYCAzxpZMN4s1c+GtJ9l8u VsdNpJhbut2ttpxDjwjUeQu7diFzxt2BwOnM3BoIzb9BvP65CBpOejCfqI/Wg9uOD+y5 33hNKggjm0VZb0cno4A623drKd39XeZghFiiCLwFCEcAH2i2H9m9gPae7WuINjlgpBP+ cu2NDmp4au1MfdaO+wlbEMi09760H2CHfOXP8qkFn12wBlO9ws2PcRPZcOz6iPOEG5aq FnyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Rr8FrM0Z; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k28-20020a634b5c000000b0055c92ea1f29si1256256pgl.145.2023.08.10.02.18.23; Thu, 10 Aug 2023 02:18:35 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Rr8FrM0Z; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234157AbjHJI4p (ORCPT + 99 others); Thu, 10 Aug 2023 04:56:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44336 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234222AbjHJI4m (ORCPT ); Thu, 10 Aug 2023 04:56:42 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 83B8B2123; Thu, 10 Aug 2023 01:56:36 -0700 (PDT) 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 0501860B7D; 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-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230809-cbl-1903-v1-1-df9d66a3ba3e@google.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS 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 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