From patchwork Wed Aug 16 18:03:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Gustavo A. R. Silva" X-Patchwork-Id: 13355541 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 45B63C001DF for ; Wed, 16 Aug 2023 18:02:13 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 247F710E397; Wed, 16 Aug 2023 18:02:09 +0000 (UTC) Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by gabe.freedesktop.org (Postfix) with ESMTPS id 74B9F10E396; Wed, 16 Aug 2023 18:02:06 +0000 (UTC) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id D0A5A62DBC; Wed, 16 Aug 2023 18:02:05 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 35EC3C433C7; Wed, 16 Aug 2023 18:02:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1692208925; bh=gp3yZZEYckBcBiq4VFVIch47+nBca1xYajti9VUSwiI=; h=Date:From:To:Cc:Subject:From; b=HBWJCVNUjtLnjIq8WbmJ2KGhH+Kd7ZW9c3uIHfULCLaiVFas0AR7vH0HmvENgyIiv tB8w0MflSTiexZe2Jx7YA+npAHAxRSy/sPomD/YPO7JQrBNY5m2jMSHvQ/DjeE1rFA BEHdJTWG5Qspj3bn0WMUS6AMEAAcTNKYb05Luu+QFRHcuTlbYC+JkU36dUDt0VS0Ti oq0WTMdD7IdOCLr7kMbz+fYq3ZITmkBI7fPuCgJI4VJ/ifMB2heemvLgZQWvn8wxqc +wXYcc4r0VRUoy/+1b//G4oBQWnrt74O8tF0B26JhrzLjJeTEHhvDFzQAgVP+Q8RoP v719CEBxHNTzA== Date: Wed, 16 Aug 2023 12:03:06 -0600 From: "Gustavo A. R. Silva" To: Ben Skeggs , Karol Herbst , Lyude Paul , David Airlie , Daniel Vetter Subject: [PATCH 0/2][next] nouveau/svm: Replace one-element array with flexible-array member Message-ID: MIME-Version: 1.0 Content-Disposition: inline X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: nouveau@lists.freedesktop.org, linux-hardening@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, "Gustavo A. R. Silva" Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" This small series aims to replace a one-element array with a flexible-array member in struct nouveau_svm. And, while at it, fix a checkpatch.pl error. Gustavo A. R. Silva (2): nouveau/svm: Replace one-element array with flexible-array member in struct nouveau_svm nouveau/svm: Split assignment from if conditional drivers/gpu/drm/nouveau/nouveau_svm.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)