Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp134112pxk; Fri, 11 Sep 2020 02:32:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwFuZsqjGnf+k+t3OARsDFobo1Mgl6MGxej5K8JRukIhiZKqG5kkZbBuLQaERVOuwF5a3oU X-Received: by 2002:a17:906:6158:: with SMTP id p24mr1145137ejl.35.1599816766375; Fri, 11 Sep 2020 02:32:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599816766; cv=none; d=google.com; s=arc-20160816; b=PzJ72XeMBUMqqI6VYW9wYhZSlZ+1jzaqjpElafKjwIjZTMkSRi3pcIHaBqy2z9t+d2 fC81HJq0rltctcvcRD/8RYNIB6YEsTFCGyiXUdsUhcEOVKXevcCoJnLyo61PbxsN/Mty B6s2DXg6umA5hM13JRnhKLGW/XlGW24YuzF6/P1WZOnCxBORE3gS3AEJ+QRNtimrWNzL 8klVZhEjVfAArRQGMAx8Euq9XVbGQtg453pP8F6BQ951IX7/SDKuLy4Pxs1S4ua7+zNw +9ONGcOIBlE38QeEfKOVjrbwMr9XHHpF7DmpXusoDErdHfrsvqFlbJYMJtFNRkTuIB4S /QfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature:dkim-signature; bh=ZwdqKhGGpnOv01iu/ZFbhMuvlS1d50CA8GNjVwdf/1M=; b=GmB1bBlp46Zrb7OiCapnjqs+g4lgBs3ma4iYVLjI2C/P70uh3da/7M0k11Gz3np8jo KxcZraRT3nPFqGgiemajXS9EJFkj0ZfC/LUYZksrTCQp/0KKjr6gf0vPZUbRANQL0kAn 7DAzIzodqnBUVq7MAFQTMZp0kreF/B7NcHauOsD5odN10FcgRo/I1qt9znjGMI5KGoZR pcswEsjkFflURAxm6F3pxuTZKpuJScIK5PnE/Ded5ZEe8hdEVKJznSdURY7DFIZTK8PJ UndDu4UKBYWOKNcKV54pPxc5i0LU9dZq2p/bPZ32yOEX+6fhk26XsT8MYn1LU2aMUl4p +AoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm3 header.b=AhubxJJT; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=OM3FsQOX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cerno.tech Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l8si892149edr.396.2020.09.11.02.32.23; Fri, 11 Sep 2020 02:32:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm3 header.b=AhubxJJT; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=OM3FsQOX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cerno.tech Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725798AbgIKJbD (ORCPT + 99 others); Fri, 11 Sep 2020 05:31:03 -0400 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:38657 "EHLO out2-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725710AbgIKJbC (ORCPT ); Fri, 11 Sep 2020 05:31:02 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 37F135C010D; Fri, 11 Sep 2020 05:31:01 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Fri, 11 Sep 2020 05:31:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cerno.tech; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm3; bh=ZwdqKhGGpnOv01iu/ZFbhMuvlS1 d50CA8GNjVwdf/1M=; b=AhubxJJTr7lxYqvjNd+hGbwoHjzixaHje+qG/uDYaP5 8qFFOzYUEuUHmavON4etWbQXxgknzgCiIb+gMEem1rFduefNGAQE+DY+lEdUrA6e OFKf5rAg6xQgAgxCVA3WtvCgeLnOpc1AvqziJKAiOETnJtt4lgpnc1hmqNqU+PMa XFzKox39XU9jWgoBkgO/qJWFAct+og9Odk/JhSnnDCLbwP7UT76oK/QU3ENuBs9K FPQJE0SPrYpW05OPal6+jrDxbQSDjqOsX6vvtvOzJl+TDsgoc7ag86Ge/qISVGTh dvbymeRR3ufMeQtn0SuvJVDK6y9YBfKXVwbAKC0vgQQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=ZwdqKh GGpnOv01iu/ZFbhMuvlS1d50CA8GNjVwdf/1M=; b=OM3FsQOXjQ4W/cq0S9C1Hq ItQEqojBKmqFvRBr/eL8X4+6KyKls2q6TUh0HPogNzp+FIaWSEVMaoGiLJlRnLrX c8Zemd8Af/VpoAwhjDioc+D2Icw0keNsvD8tLDK08CZ3Qs8Z6h9gs0rk2uZTAy0m f5nPyAxAreVCEsIFzdDs9Gu66TkG7tvCtA+b7+Ew0ujtfcn23vGImBrsvRx64Nyg DxgbwvmqUA3cz0ylrY4VFY8EWXr7S4R5uZFr2cQmgPFCFqNfgwxHxx5p5pIQQDs9 DbLBIYfONNYlTvIQ+K/mYJvOgYHBuoMJ+wiUDP+a/Ns/DmlPt58Rc43blQ3ULUKg == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduiedrudehledgudejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfhfgggtuggjsehgtderredttddvnecuhfhrohhmpeforgigihhm vgcutfhiphgrrhguuceomhgrgihimhgvsegtvghrnhhordhtvggthheqnecuggftrfgrth htvghrnhepveegudetkeethfetgffgtdekkefghefhffefgeduleehgeehieeuveefgedv ieegnecuffhomhgrihhnpehgihhthhhusgdrtghomhenucfkphepledtrdekledrieekrd ejieenucevlhhushhtvghrufhiiigvpedunecurfgrrhgrmhepmhgrihhlfhhrohhmpehm rgigihhmvgestggvrhhnohdrthgvtghh X-ME-Proxy: Received: from localhost (lfbn-tou-1-1502-76.w90-89.abo.wanadoo.fr [90.89.68.76]) by mail.messagingengine.com (Postfix) with ESMTPA id A6BFD3064685; Fri, 11 Sep 2020 05:31:00 -0400 (EDT) Date: Fri, 11 Sep 2020 11:30:59 +0200 From: Maxime Ripard To: Nathan Chancellor Cc: Eric Anholt , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, clang-built-linux@googlegroups.com Subject: Re: [PATCH] drm/vc4: Update type of reg parameter in vc4_hdmi_{read,write} Message-ID: <20200911093059.seyflq66mbvyhsb4@gilmour.lan> References: <20200910170401.3857250-1-natechancellor@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="nivno6pymk5epqhf" Content-Disposition: inline In-Reply-To: <20200910170401.3857250-1-natechancellor@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --nivno6pymk5epqhf Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Sep 10, 2020 at 10:04:02AM -0700, Nathan Chancellor wrote: > Clang warns 100+ times in the vc4 driver along the lines of: >=20 > drivers/gpu/drm/vc4/vc4_hdmi_phy.c:518:13: warning: implicit conversion > from enumeration type 'enum vc4_hdmi_field' to different enumeration > type 'enum vc4_hdmi_regs' [-Wenum-conversion] > HDMI_WRITE(HDMI_TX_PHY_POWERDOWN_CTL, > ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ >=20 > The HDMI_READ and HDMI_WRITE macros pass in enumerators of type > vc4_hdmi_field but vc4_hdmi_write and vc4_hdmi_read expect a enumerator > of type vc4_hdmi_regs, causing a warning for every instance of this. > Update the parameter type so there is no more mismatch. >=20 > Fixes: 311e305fdb4e ("drm/vc4: hdmi: Implement a register layout abstract= ion") > Link: https://github.com/ClangBuiltLinux/linux/issues/1149 > Signed-off-by: Nathan Chancellor Applied, thanks! Maxime --nivno6pymk5epqhf Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCX1tD0wAKCRDj7w1vZxhR xSMEAQCO33V9mqU3u9rBqhRNWajN4iqpvngIcDpnvW4MIldO7gEAqQSnWKYHs8I9 BUH19iF7iojqi5m2AoKIPCbJIyzAvgg= =YcrL -----END PGP SIGNATURE----- --nivno6pymk5epqhf--