Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp699206pxx; Thu, 29 Oct 2020 12:15:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzBNDKjt9jfc4iET+P6OGBwKRqK2395VZqAairfGT+947j0mOFwrvsEw5uSFrJxUevqpC53 X-Received: by 2002:a17:906:74c6:: with SMTP id z6mr5782187ejl.448.1603998909260; Thu, 29 Oct 2020 12:15:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603998909; cv=none; d=google.com; s=arc-20160816; b=YSHQlCIxGVPJBIeCdEKUcDiupzRuA/uxM9/qHepGIBaRsdjRN2m9lztF8TF/lKaKU7 KYFanfKGICoPpTxRBGdt8w2Ma4SzleQt6b5yYY+6xMadH8mNZO+BUoR1A93b/5B/Tosu zi15+ltIUDp/s5qKI381ztf5Xjx/PDUTKX95u5aY7+wrXHjnIJn+yT1KeXpPz4DUTanT BdrMsJVx1RC5Gc4e/vyxtkZ8/BgjdNr5DBOXfKviGA9kIp7PTU9NWovc7noXemsQe1Tr O0lY3295ToJ6I3k+0ZhzeR8PWPoNFrH34w3b1tXKMmhjvA/N3S6F3dgfb6du4QtpFseJ 6fFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject; bh=q9ILMNHo04MTS2oKrajaWJKNZjE4nmFJWsX62X4hyzA=; b=aPu3D3HEgpQcIY/lMHsQoj85J7YxFJKpJpFR7hZuNIKThmtlUg/OYeMxeXI2IaGpY0 YcJBgZUax/zIQhN3zMl4GVPpRSoY4PSHvlBEPS8u9xjmLPDQlapF63hXsZ3A9c7z7WRb RcSXeVQm9jo4SdTFWV8By6kq72uhk9IIlruD+pat1a0sVSkyToivtgoui7JUl6/39KnL RKcTVf1kD+pPy6K0gQmrFS/sSPkChCdn2ZiZY2sQ4YXupISTCj3KvlMdN+1Mit7X4FsZ Uid1XubXa9CgGMpAfctFweBWnzUEhfcnyKQQ1DDDH0+Di/CMuUNz4GJVIthPEwd9c2eI 0QGw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id fx22si2322754ejb.299.2020.10.29.12.14.43; Thu, 29 Oct 2020 12:15:09 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725787AbgJ2TNL (ORCPT + 99 others); Thu, 29 Oct 2020 15:13:11 -0400 Received: from mx2.suse.de ([195.135.220.15]:40642 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725379AbgJ2TNK (ORCPT ); Thu, 29 Oct 2020 15:13:10 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 8AED1B817; Thu, 29 Oct 2020 19:13:08 +0000 (UTC) Subject: Re: [PATCH] drm/hisilicon: Adding a const declaration to an invariant construct To: Tian Tao , airlied@linux.ie, daniel@ffwll.ch, kraxel@redhat.com, alexander.deucher@amd.com, tglx@linutronix.de, dri-devel@lists.freedesktop.org, xinliang.liu@linaro.org, linux-kernel@vger.kernel.org References: <1603955505-43942-1-git-send-email-tiantao6@hisilicon.com> From: Thomas Zimmermann Message-ID: <40055cdc-c8eb-c71e-f362-51edbfd5970f@suse.de> Date: Thu, 29 Oct 2020 20:13:07 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.3.3 MIME-Version: 1.0 In-Reply-To: <1603955505-43942-1-git-send-email-tiantao6@hisilicon.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="0qAEaciWReSAur6uMnGDdzpAk0mHt0335" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --0qAEaciWReSAur6uMnGDdzpAk0mHt0335 Content-Type: multipart/mixed; boundary="l8Z9qrI2a1VTzBVPE8t5NgKiwxnE3Til2"; protected-headers="v1" From: Thomas Zimmermann To: Tian Tao , airlied@linux.ie, daniel@ffwll.ch, kraxel@redhat.com, alexander.deucher@amd.com, tglx@linutronix.de, dri-devel@lists.freedesktop.org, xinliang.liu@linaro.org, linux-kernel@vger.kernel.org Message-ID: <40055cdc-c8eb-c71e-f362-51edbfd5970f@suse.de> Subject: Re: [PATCH] drm/hisilicon: Adding a const declaration to an invariant construct References: <1603955505-43942-1-git-send-email-tiantao6@hisilicon.com> In-Reply-To: <1603955505-43942-1-git-send-email-tiantao6@hisilicon.com> --l8Z9qrI2a1VTzBVPE8t5NgKiwxnE3Til2 Content-Type: multipart/mixed; boundary="------------4FE2B866322B727289E4B1EB" Content-Language: en-US This is a multi-part message in MIME format. --------------4FE2B866322B727289E4B1EB Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi Am 29.10.20 um 08:11 schrieb Tian Tao: > Some constructs cannot be changed after being assigned a value, > so add const declarations to invariant constructs. >=20 > Signed-off-by: Tian Tao Reviewed-by: Thomas Zimmermann > --- > drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_de.c | 2 +- > drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) >=20 > diff --git a/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_de.c b/drivers/g= pu/drm/hisilicon/hibmc/hibmc_drm_de.c > index a1eabad..ef18b47 100644 > --- a/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_de.c > +++ b/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_de.c > @@ -139,7 +139,7 @@ static const u32 channel_formats1[] =3D { > DRM_FORMAT_ABGR8888 > }; > =20 > -static struct drm_plane_funcs hibmc_plane_funcs =3D { > +static const struct drm_plane_funcs hibmc_plane_funcs =3D { > .update_plane =3D drm_atomic_helper_update_plane, > .disable_plane =3D drm_atomic_helper_disable_plane, > .destroy =3D drm_plane_cleanup, > diff --git a/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c b/drivers/= gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c > index 0c1b40d..fee6fe8 100644 > --- a/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c > +++ b/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c > @@ -369,7 +369,7 @@ static void hibmc_pci_remove(struct pci_dev *pdev) > drm_dev_put(dev); > } > =20 > -static struct pci_device_id hibmc_pci_table[] =3D { > +static const struct pci_device_id hibmc_pci_table[] =3D { > { PCI_VDEVICE(HUAWEI, 0x1711) }, > {0,} > }; >=20 --=20 Thomas Zimmermann Graphics Driver Developer SUSE Software Solutions Germany GmbH Maxfeldstr. 5, 90409 N=C3=BCrnberg, Germany (HRB 36809, AG N=C3=BCrnberg) Gesch=C3=A4ftsf=C3=BChrer: Felix Imend=C3=B6rffer --------------4FE2B866322B727289E4B1EB Content-Type: application/pgp-keys; name="OpenPGP_0x680DC11D530B7A23.asc" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="OpenPGP_0x680DC11D530B7A23.asc" -----BEGIN PGP PUBLIC KEY BLOCK----- xsBNBFs50uABCADEHPidWt974CaxBVbrIBwqcq/WURinJ3+2WlIrKWspiP83vfZKaXhFYsdgX= H47 fDVbPPj+d6tQrw5lPQCyqjwrCPYnq3WlIBnGPJ4/jreTL6V+qfKRDlGLWFjZcsrPJGE0B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NsLhWv1APYrh9RQefODYHrNRHU= E9e osYbT6XMryR9hT8XlGOYRwKWwiQBoWSDiTMo/Xi29jUnn4BXfI2px2DTXwc22LKtLAgTRjP+q= bU6 3Y0xnQN29UGDbYgyyK51DW3H0If2a3JNsheAAK+Xc9baj0LGIc8T9uiEWHBnCH+RdhgATnWWG= KdD egUR5BkDfDg5O/FISymJBHx2Dyoklv5g4BzkgqTqwmaYzsl8UxZKvbaxq0zbehDda8lvhFXod= NFM AgTLJlLuDYOGLK2AwbrS3Sp0AEbkpdJBb44qVlGm5bApZouHeJ/+n+7r12+lqdsAEQEAAcLAf= AQY AQgAJhYhBHIX+6yM6c9jRKFo5WgNwR1TC3ojBQJbOdLgAhsMBQkDwmcAAAoJEGgNwR1TC3ojp= fcI AInwP5OlcEKokTnHCiDTz4Ony4GnHRP2fXATQZCKxmu4AJY2h9ifw9Nf2TjCZ6AMvC3thAN0r= FDj 55N9l4s1CpaDo4J+0fkrHuyNacnT206CeJV1E7NYntxUn+LSiRrOdywn6erjxRi9EYTVLCHcD= hBE jKmFZfg4AM4GZMWX1lg0+eHbd5oL1as28WvvI/uIaMyV8RbyXot1r/8QLlWldU3NrTF5p7TMU= 2y3 ZH2mf5suSKHAMtbE4jKJ8ZHFOo3GhLgjVrBWHE9JXO08xKkgD+w6v83+nomsEuf6C6LYrqY/t= sZv yEX6zN8CtirPdPWu/VXNRYAl/lat7lSI3H26qrE=3D =3DmxFq -----END PGP PUBLIC KEY BLOCK----- --------------4FE2B866322B727289E4B1EB-- --l8Z9qrI2a1VTzBVPE8t5NgKiwxnE3Til2-- --0qAEaciWReSAur6uMnGDdzpAk0mHt0335 Content-Type: application/pgp-signature; name="OpenPGP_signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="OpenPGP_signature" -----BEGIN PGP SIGNATURE----- wsB5BAABCAAjFiEEchf7rIzpz2NEoWjlaA3BHVMLeiMFAl+bFEMFAwAAAAAACgkQaA3BHVMLeiOX DQf/ZPdCdWZtSN6qOhm7NGvUHRHxV5XkIhyWWoF42rwlu9R+UmChQ9W+tNNOzsvIn+AcFC1Yun4y TVtQdyjnHDWsuM4q9Vm2YudY98GZ+4wOQe4q9BvvJi8dMqdF7Ic97+65JykBtCyh/5Z3Jiod5diB Wi40cotzIHhj+1guUupKwT9W0pkpK/2Attb87F8o35nGlnh+KIgg/DOfp27xuIUdLR9SBSxQzM0C nZj+3eNf+60GAa1H5X0ncFBn6oZXVFIqvgi571kI1zMHHABf0DKMWfVaNBeuVpDn1S6GHfWYi5AP wo3MPaG8Li0mbBg/D7W3MRKSeOCbh4zDqjOsgBLPZw== =9hb7 -----END PGP SIGNATURE----- --0qAEaciWReSAur6uMnGDdzpAk0mHt0335--