Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id BD111E8305F for ; Tue, 3 Feb 2026 08:01:05 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id EBCA810E578; Tue, 3 Feb 2026 08:01:03 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=bootlin.com header.i=@bootlin.com header.b="RxCHWDmq"; dkim-atps=neutral Received: from smtpout-03.galae.net (smtpout-03.galae.net [185.246.85.4]) by gabe.freedesktop.org (Postfix) with ESMTPS id 8E4D689C55 for ; Mon, 2 Feb 2026 15:52:12 +0000 (UTC) Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-03.galae.net (Postfix) with ESMTPS id 7858D4E423C5 for ; Mon, 2 Feb 2026 15:52:11 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 4F52060767; Mon, 2 Feb 2026 15:52:11 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id C0364119A8888; Mon, 2 Feb 2026 16:52:09 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1770047530; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=FlrjzBqAScATxtCcq616e99cvmYynJ6dvZsxdz/vkag=; b=RxCHWDmqkTtk+fx3IhWxikF2jCxJtR2TBLkk77PoubDaDZ2Zr8HUCOcH/2JmF2KAsbD11H ESIxulM5UVAfgQHfxvSXG1VTaPqvCN+YlHmXk56zxsYwBSS78wWBOnJh4em+oPanAOxOrS BhZbGYCIIFhDYBWv5AedeUlfk3tBDGCWpUhE1wq3PvXU78jWgFEQfAA7gA9m7q4Q62xzCf dw1djFA1s/YEe1WWQgzwfP5oAdPaj6H0mv3uUCn4Lvog70P7i5BM02LUI4PKRfDnChB8XF mWOfEoefSG6f3pmNiKMqV+G2PjrYumso9X20CYRyfWa2FWy3Qxq91J98hoKKGw== Date: Mon, 2 Feb 2026 16:52:09 +0100 From: Kory Maincent To: Louis Chauvet Cc: igt-dev@lists.freedesktop.org, thomas.petazzoni@bootlin.com, luca.ceresoli@bootlin.com, markyacoub@google.com, khaled.almahallawy@intel.com Subject: Re: [PATCH i-g-t v6 13/48] lib/igt_kms: Add const when make sense Message-ID: <20260202165209.6f0eeef0@kmaincent-XPS-13-7390> In-Reply-To: <20260202-unigraf-integration-v6-13-834af822eee7@bootlin.com> References: <20260202-unigraf-integration-v6-0-834af822eee7@bootlin.com> <20260202-unigraf-integration-v6-13-834af822eee7@bootlin.com> Organization: bootlin X-Mailer: Claws Mail 4.2.0 (GTK 3.24.41; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Last-TLS-Session-Version: TLSv1.3 X-Mailman-Approved-At: Tue, 03 Feb 2026 08:01:01 +0000 X-BeenThere: igt-dev@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development mailing list for IGT GPU Tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" On Mon, 02 Feb 2026 15:32:52 +0100 Louis Chauvet wrote: > Const qualifier helps to avoid unwanted modification of a pointer. > To help avoiding those errors, modify the function signature to > use const. Reviewed-by: Kory Maincent Thank you! --=20 K=C3=B6ry Maincent, Bootlin Embedded Linux and kernel engineering https://bootlin.com