Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2745783lqp; Mon, 25 Mar 2024 08:08:41 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVV0T5/qvCSfBnUnnQHE03Bh1bfh+aY3FR1xlnVJaCfIkusH12vXydHK/X4+zOoawp8c7Qx9eWH4Abzxl+qwGXv6YEtbc+W4F0/ybp/uQ== X-Google-Smtp-Source: AGHT+IHr4hqai8Pewdb76k5fVgq3JcZWesToZDpRidgFnvMexT82Gbvf5GYvIeJmR820CI5IwFpo X-Received: by 2002:a05:6a00:938f:b0:6ea:8e89:7faf with SMTP id ka15-20020a056a00938f00b006ea8e897fafmr7440799pfb.28.1711379321339; Mon, 25 Mar 2024 08:08:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711379321; cv=pass; d=google.com; s=arc-20160816; b=BnqTyWFwlxn7A8woGIUbXwMDE1LVsbLXPHXpk3QbzRNIYu6fMl5rapL572k29ne65U BrhXrcgFkqgI6Jvw4T8RSVaLTfM9zrKhD6ehvsfJmodAIy7SNFNvl7Jv8oe/Sg6einXW 7svEIh5eS+zeniPVQoAmES9mPZblb9vQp1qbc3GFJYiiVqlhNblp2URkQhCet1rBIDgk g2qIOGZ5CjcMZTe0VrqaHAsR3BrJaVO+y3YwcH+urPl/TuoRlSIX8uw1x2MNdQzqBKj1 cbVNTu9wx4TVkUJ+JaKyrGLs/Jm5PNNBfvAbfZKhGtpXfi4Y59UBNA/2kubhTitVqH7U zGOw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=IBhLBnQ6dxY0J40ZkrqxFrnFMQjEbA5RCDJCZQ7mI0o=; fh=URr6yXP2w9vp68pwO+yb8jq0tB2Cey7jSL5blboKTPg=; b=bVN+0qCJ5oEGOUdqUWvkoDa8UBY4EX8LlFgxdB/l5+CF9WcppoSeYH3C30TDLsQ7mj lFWSd61FjLtuzqTy9GZAot1NVb9cXMazoR3B3/qEro89/cRs1wJME7ZmpdWT3Btj8MVM zHHU25koSGLYhhDH5H3pwxoPWIgi3gT28zjofKqGuWezADVrwv7jzOM1YmQ+NDjdp7IQ tRxZ5qTZG3ultOQCsH5yUwAZQc5G9HmNR7FRX9JyxPls7k42thrwEtHqpm4YFvhfx4q3 JHBWXz51GeqyIeAV7Gah5KpUNfn+3JS3Ecgp+OyXgHxiiEdzt/Ay0GxB74mwoj0Fyozv 7XTQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=JxLzE8B1; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-116964-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-116964-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id x6-20020a056a00188600b006ea7e619dfesi5577035pfh.85.2024.03.25.08.08.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 08:08:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-116964-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=JxLzE8B1; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-116964-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-116964-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 5682B2E1952 for ; Mon, 25 Mar 2024 15:05:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 718D9156233; Mon, 25 Mar 2024 12:11:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="JxLzE8B1" Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C54901586E7 for ; Mon, 25 Mar 2024 12:04:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.235.227.194 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711368248; cv=none; b=om05rZsFoWGBbOgl8kvPRIeehlrbUhsbUk4ymRReUZrMjrVAeDaDn3vEij6J0J1QMDAAQCFReP16pUlLijWgIR68JRRTKewUwd5TEtunz1xfcl3ktvE2ZkweQiHYu+d83tQLK4woTC4xwncvFU4vHneoKsge1ggRoZ8imShhKW0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711368248; c=relaxed/simple; bh=7jHHqk7qDzRtTMvU3NTL2HuDw9jtVH01ZEEZaWVafZc=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=lw5+UO3G+p61Ob8BD1q6xCkULiBc1+E0HHpsRMl/CSVMid8bg1g8z+11StcRElf5g3Scv+jTCZiJuyU3e65s4VcOxd1ca3UIXSnnSHmWh31Wt1MwMGptj5d5bVvaJyaB6TNGUl+xB7Jp8zLFfgvkMGpxScpj61JSWjmYqS3UPw8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b=JxLzE8B1; arc=none smtp.client-ip=46.235.227.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1711368244; bh=7jHHqk7qDzRtTMvU3NTL2HuDw9jtVH01ZEEZaWVafZc=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=JxLzE8B1wPUWYNm5jcR9LHyMaPzypsrKPOukIUZkUH9ZXYZwwp7c77MUlfHIcP2m9 DIN221kxLve2nEpsZXv/r9YYpS6pjoE8Y11qhvf7rMytxi6/S3xEkHk5x/Q5fpeR79 djaqsmArB9Er2JSukPj/F2LNRCnVPk2Bq7SvnRIvYRcFUf55PlpCuhoOM2MLzAv9Rd 9P09LEy59POFl5ugledseZIhSNFc6p3sy/0ynUWAc9iZ0Cy+7E2YNC+IsYKbWRPsFo G9zTRnCpZXV9m7ZMU3CBaRHhjbmJ3//yfusk6PCQjYRz7+kPcNlHTV6YkiiRkRHZ7w VJYwPnIBYtsEw== Received: from eldfell (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: pq) by madrid.collaboradmins.com (Postfix) with ESMTPSA id 89D9837810C0; Mon, 25 Mar 2024 12:04:03 +0000 (UTC) Date: Mon, 25 Mar 2024 14:03:45 +0200 From: Pekka Paalanen To: Louis Chauvet Cc: Rodrigo Siqueira , Melissa Wen , =?UTF-8?B?TWHDrXJh?= Canal , Haneen Mohammed , Daniel Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , arthurgrillo@riseup.net, Jonathan Corbet , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, jeremie.dautheribes@bootlin.com, miquel.raynal@bootlin.com, thomas.petazzoni@bootlin.com, seanpaul@google.com, marcheu@google.com, nicolejadeyee@google.com Subject: Re: [PATCH v5 01/16] drm/vkms: Code formatting Message-ID: <20240325140345.4734f165.pekka.paalanen@collabora.com> In-Reply-To: <20240313-yuv-v5-1-e610cbd03f52@bootlin.com> References: <20240313-yuv-v5-0-e610cbd03f52@bootlin.com> <20240313-yuv-v5-1-e610cbd03f52@bootlin.com> X-Mailer: Claws Mail 4.1.1 (GTK 3.24.38; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/fpgQUd5yCj7yHb9c/ZPh1yJ"; protocol="application/pgp-signature"; micalg=pgp-sha256 --Sig_/fpgQUd5yCj7yHb9c/ZPh1yJ Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Wed, 13 Mar 2024 18:44:55 +0100 Louis Chauvet wrote: > Few no-op changes to remove double spaces and fix wrong alignments. >=20 > Signed-off-by: Louis Chauvet Reviewed-by: Pekka Paalanen Thanks, pq > --- > drivers/gpu/drm/vkms/vkms_composer.c | 10 +++++----- > drivers/gpu/drm/vkms/vkms_crtc.c | 6 ++---- > drivers/gpu/drm/vkms/vkms_drv.c | 3 +-- > drivers/gpu/drm/vkms/vkms_plane.c | 8 ++++---- > 4 files changed, 12 insertions(+), 15 deletions(-) >=20 > diff --git a/drivers/gpu/drm/vkms/vkms_composer.c b/drivers/gpu/drm/vkms/= vkms_composer.c > index e7441b227b3c..c6d9b4a65809 100644 > --- a/drivers/gpu/drm/vkms/vkms_composer.c > +++ b/drivers/gpu/drm/vkms/vkms_composer.c > @@ -96,7 +96,7 @@ static u16 lerp_u16(u16 a, u16 b, s64 t) > s64 a_fp =3D drm_int2fixp(a); > s64 b_fp =3D drm_int2fixp(b); > =20 > - s64 delta =3D drm_fixp_mul(b_fp - a_fp, t); > + s64 delta =3D drm_fixp_mul(b_fp - a_fp, t); > =20 > return drm_fixp2int(a_fp + delta); > } > @@ -302,8 +302,8 @@ static int compose_active_planes(struct vkms_writebac= k_job *active_wb, > void vkms_composer_worker(struct work_struct *work) > { > struct vkms_crtc_state *crtc_state =3D container_of(work, > - struct vkms_crtc_state, > - composer_work); > + struct vkms_crtc_state, > + composer_work); > struct drm_crtc *crtc =3D crtc_state->base.crtc; > struct vkms_writeback_job *active_wb =3D crtc_state->active_writeback; > struct vkms_output *out =3D drm_crtc_to_vkms_output(crtc); > @@ -328,7 +328,7 @@ void vkms_composer_worker(struct work_struct *work) > crtc_state->gamma_lut.base =3D (struct drm_color_lut *)crtc->state->ga= mma_lut->data; > crtc_state->gamma_lut.lut_length =3D > crtc->state->gamma_lut->length / sizeof(struct drm_color_lut); > - max_lut_index_fp =3D drm_int2fixp(crtc_state->gamma_lut.lut_length - = 1); > + max_lut_index_fp =3D drm_int2fixp(crtc_state->gamma_lut.lut_length - 1= ); > crtc_state->gamma_lut.channel_value2index_ratio =3D drm_fixp_div(max_l= ut_index_fp, > u16_max_fp); > =20 > @@ -367,7 +367,7 @@ void vkms_composer_worker(struct work_struct *work) > drm_crtc_add_crc_entry(crtc, true, frame_start++, &crc32); > } > =20 > -static const char * const pipe_crc_sources[] =3D {"auto"}; > +static const char *const pipe_crc_sources[] =3D { "auto" }; > =20 > const char *const *vkms_get_crc_sources(struct drm_crtc *crtc, > size_t *count) > diff --git a/drivers/gpu/drm/vkms/vkms_crtc.c b/drivers/gpu/drm/vkms/vkms= _crtc.c > index 61e500b8c9da..7586ae2e1dd3 100644 > --- a/drivers/gpu/drm/vkms/vkms_crtc.c > +++ b/drivers/gpu/drm/vkms/vkms_crtc.c > @@ -191,8 +191,7 @@ static int vkms_crtc_atomic_check(struct drm_crtc *cr= tc, > return ret; > =20 > drm_for_each_plane_mask(plane, crtc->dev, crtc_state->plane_mask) { > - plane_state =3D drm_atomic_get_existing_plane_state(crtc_state->state, > - plane); > + plane_state =3D drm_atomic_get_existing_plane_state(crtc_state->state,= plane); > WARN_ON(!plane_state); > =20 > if (!plane_state->visible) > @@ -208,8 +207,7 @@ static int vkms_crtc_atomic_check(struct drm_crtc *cr= tc, > =20 > i =3D 0; > drm_for_each_plane_mask(plane, crtc->dev, crtc_state->plane_mask) { > - plane_state =3D drm_atomic_get_existing_plane_state(crtc_state->state, > - plane); > + plane_state =3D drm_atomic_get_existing_plane_state(crtc_state->state,= plane); > =20 > if (!plane_state->visible) > continue; > diff --git a/drivers/gpu/drm/vkms/vkms_drv.c b/drivers/gpu/drm/vkms/vkms_= drv.c > index dd0af086e7fa..83e6c9b9ff46 100644 > --- a/drivers/gpu/drm/vkms/vkms_drv.c > +++ b/drivers/gpu/drm/vkms/vkms_drv.c > @@ -81,8 +81,7 @@ static void vkms_atomic_commit_tail(struct drm_atomic_s= tate *old_state) > drm_atomic_helper_wait_for_flip_done(dev, old_state); > =20 > for_each_old_crtc_in_state(old_state, crtc, old_crtc_state, i) { > - struct vkms_crtc_state *vkms_state =3D > - to_vkms_crtc_state(old_crtc_state); > + struct vkms_crtc_state *vkms_state =3D to_vkms_crtc_state(old_crtc_sta= te); > =20 > flush_work(&vkms_state->composer_work); > } > diff --git a/drivers/gpu/drm/vkms/vkms_plane.c b/drivers/gpu/drm/vkms/vkm= s_plane.c > index e5c625ab8e3e..5a8d295e65f2 100644 > --- a/drivers/gpu/drm/vkms/vkms_plane.c > +++ b/drivers/gpu/drm/vkms/vkms_plane.c > @@ -117,10 +117,10 @@ static void vkms_plane_atomic_update(struct drm_pla= ne *plane, > memcpy(&frame_info->map, &shadow_plane_state->data, sizeof(frame_info->= map)); > drm_framebuffer_get(frame_info->fb); > frame_info->rotation =3D drm_rotation_simplify(new_state->rotation, DRM= _MODE_ROTATE_0 | > - DRM_MODE_ROTATE_90 | > - DRM_MODE_ROTATE_270 | > - DRM_MODE_REFLECT_X | > - DRM_MODE_REFLECT_Y); > + DRM_MODE_ROTATE_90 | > + DRM_MODE_ROTATE_270 | > + DRM_MODE_REFLECT_X | > + DRM_MODE_REFLECT_Y); > =20 > drm_rect_rotate(&frame_info->rotated, drm_rect_width(&frame_info->rotat= ed), > drm_rect_height(&frame_info->rotated), frame_info->rotation); >=20 --Sig_/fpgQUd5yCj7yHb9c/ZPh1yJ Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEJQjwWQChkWOYOIONI1/ltBGqqqcFAmYBaCIACgkQI1/ltBGq qqeR7A//ZP3P4O6DhcAZt6lM343JU/XK0AmkWgZEUE6sN5F1PVm8E5F5mxEIHqYX vq8BrK9FZTILnbsY09ebfxDDvY3BKAbuUmbnsw0P3qgaJU5cs7JBq72Z7Qi8iTUP qCCqDGEhWJO0Z2I67dgN/vx3h62Di1IK8xaZTL9NwIxshK2CtDCkDmR0FvVwM69X D/pWMXmEw4xmzWK/Gh8C+/avdqVY+MG2Gm26/0/DPuo4rKvj7ZFneNX+qjUivIpj lr0eADvZWfCuVqh/ro/SrDKcbFUzw7pOxTVkEqkMzZYbX6DIcYbd6d6pyu5dBapv xiPAlLTlEe+5TZyzcXtfhLmp4WPBydlJt2Ktar4FUNEmAJLwcduS1ouhSu/ONCMw WP55MaqBlloC14dAgFNDMhQXd8AZ/FWsPt3PsAeVPNL9jH2gsA1mdxW5h79yroWX LBW1KOjRRiHK+vPTIvx41MdITn/eJmBn8L7B/aLoYHON9798OSBX9KHYGw43jtEU 8MOdgIoRKYxx+fyr6zauRX2vJ5ST7tY+xTuXzlnR4yyOAyi3yKmo4K+nh0FBZ+yS IVUlP6UquGQ4rMtxIq4EdQ5ZPnxuO6cE2G3cGlAsx0wWpN83zhLOdmAx+9Gm+90I iWxd8XhrsihiGUDDOUOUh+z3V30ftQEyhBpq1og7QlKvtF4I3qA= =Hb0E -----END PGP SIGNATURE----- --Sig_/fpgQUd5yCj7yHb9c/ZPh1yJ--