Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp711567rdb; Tue, 19 Sep 2023 08:05:29 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGTkufb0XRGD/XqdQl8yoaL8lwZFRzf95RyV5m9ZVfP6Ui2nVCMoMG96Ir9QMj+XYHtM9PW X-Received: by 2002:a17:90a:db8d:b0:274:67f4:30f1 with SMTP id h13-20020a17090adb8d00b0027467f430f1mr11000057pjv.14.1695135928733; Tue, 19 Sep 2023 08:05:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695135928; cv=none; d=google.com; s=arc-20160816; b=X7zUdBbwogLcMfhawiaVhZXgFgV9t3s3uzZXhDhZ16jh6bFTetegD5qi9Q/idm6dqT F1Dx0e+80Wiltkx+3tLZxFYo0PcWjW9dEAlZrXbLSGTZkyqYivEVuXkcStvy6AqBdFB5 hXAX+ZA3rXMbHWmul6gCJ3zZ6FKpsblN0KaK8xUvhPYDOtorEmmfQmz97/ahGs7rpGDD kDZYhF1IfulgrBdajEDE09Wm+NJS4xR4Id/jnAm5Owr739L6WkVvho88nAAxeHh6pHvx JXBCxCSK4X5a87pUXrh6Qupslqvc7k9KszgVzwQd9KdVn0k+hbXQfwqgDgzl7vYAP+5+ 6Osw== 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:date :message-id:subject:references:in-reply-to:cc:to:from:dkim-signature; bh=sSWNzDCCF2PlnmmW9HK168j4cI2DefhTRNQOv/evNyg=; fh=SrGRlMtDLpi4h0JE6PDX/wl8ZpGFJxdn0EwXQSLNsZA=; b=BRtqUE6Iv3IEt2rlv/ABc/+FSxhokmdb2wQ/4AW2n0gJ+UYMnoTwy7g3w+127OWFt+ B58nTNQFo/Rw28Sq/rMP7YRV1tGD+brFByYYIIHiwrCIqmSfj8oPndHUql26Gd6a3kBZ sxp4yoYxG9YyhTzevGUQNWFTzkB8uW91eAB9ntIP3fapKeahNoK60SpBw4A2il4vKjkV RqqUF5GcKKd7D02uW6BIwc2UPBDvprc2y83MlD5I8kVnU7hbVduQzQiEd2aNycPnTboA FbeiB5SihOR6Z/x9yIROmcfljQe04WuF7CzMNCnJZxlodqUpIHEs3gaqHm9t3QIkaRSI 8jeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=I7yain0l; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id a23-20020a17090a8c1700b002741a4172a2si4069973pjo.84.2023.09.19.08.05.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Sep 2023 08:05:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=I7yain0l; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 5FA1581FD9F3; Tue, 19 Sep 2023 07:55:55 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232965AbjISOzr (ORCPT + 99 others); Tue, 19 Sep 2023 10:55:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45142 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232942AbjISOzp (ORCPT ); Tue, 19 Sep 2023 10:55:45 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2D545DF; Tue, 19 Sep 2023 07:55:40 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0CDACC433C7; Tue, 19 Sep 2023 14:55:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695135339; bh=PHhE/Lt3Hz7iR4g9GdYD+OxDJ309R2RTFntqEuHpPoQ=; h=From:To:Cc:In-Reply-To:References:Subject:Date:From; b=I7yain0l/vUioWrBwIjH0N5q+w1z2y2RW62AuBQd8J6SrQlVw+2vrhpAEEmKB36hu Oro0oXkl+Ahnuz1F8DmXUUMqQjnX2S81eS6WD5VXNsbRhcMia3ViwjX9fN6FRL6Wsf s791Y+AuMLLJSsQL3siONHetA7uz/qF4o0HmgWaEsxOtUw0Kh8I5FqK0enDagk+3R3 l+z7SHRpkyxgrw6OLRH4uIRhJdeQDSf3QLFlzImNBnEkG8RxahUxt41b8PNN96S3mR QTbGR7j2aD6YU+6UaroIWuuSeV4amQW8d4dusBc0Oi+7yQcRzTKoviHi0cytli1CaV B1p+32db/zhaw== From: Lee Jones To: Pavel Machek , Lee Jones , Nathan Chancellor , Nick Desaulniers , Tom Rix , Justin Stitt Cc: linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev In-Reply-To: <20230816-void-drivers-leds-leds-pca955x-v1-1-2967e4c1bdcc@google.com> References: <20230816-void-drivers-leds-leds-pca955x-v1-1-2967e4c1bdcc@google.com> Subject: Re: (subset) [PATCH] leds: pca955x: fix -Wvoid-pointer-to-enum-cast warning Message-Id: <169513533778.3252260.12959111862312719443.b4-ty@kernel.org> Date: Tue, 19 Sep 2023 15:55:37 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Mailer: b4 0.12.2 X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Tue, 19 Sep 2023 07:55:55 -0700 (PDT) On Wed, 16 Aug 2023 19:37:52 +0000, Justin Stitt wrote: > When building with clang 18 I see the following warning: > | drivers/leds/leds-pca955x.c:487:15: warning: cast to smaller integer > | type 'enum pca955x_type' from 'const void *' [-Wvoid-pointer-to-enum-cast] > | 487 | chip_type = (enum pca955x_type)md; > > This is due to the fact that `md` is a void* while `enum pca995x_type` has the > size of an int. > > [...] Applied, thanks! [1/1] leds: pca955x: fix -Wvoid-pointer-to-enum-cast warning commit: 0e2e05099162c089a9b4dac563ae71b4c01a5f8b -- Lee Jones [李琼斯]