Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1295995pxb; Wed, 10 Feb 2021 05:18:15 -0800 (PST) X-Google-Smtp-Source: ABdhPJy1ozA3ps1cnESNEquWcKK/LtvbwoW1iN3h2+cZ6Qe+rrGdTlVGU2uFuYh8REEFfhnn/b+n X-Received: by 2002:a17:906:c05a:: with SMTP id bm26mr3024450ejb.288.1612963094884; Wed, 10 Feb 2021 05:18:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612963094; cv=none; d=google.com; s=arc-20160816; b=ZnFGz2l3ae4/81dyZ2v9fIfsCaB6tkpzN+nvT+5us3MaTQ2O7ol+94A/KR2+Bghst4 e0d4reis2hgacQVlV2s4DenPWFdD85AgYmnzQ/NJ6FvLi3bWGFuq1LGIuYOx12DHezc6 qX9pFKahL+RMgQhbU3L7+BiJH7cCKQB4X7hvzfseTJO73C9TH57Df5ECWDUbE6zh2D6m 29eI2WnV4L/0iOzMc6x8lkmGpREOBFoIJU39NryyMVVa4hjPUYjwp6flf/OGbskzqo7j 0CzoMtgUJPyxK6UiWjSzqmymDQkxIABP1WZkCvsDBmEHUZ6Xa/pfJPZicECw9vsOny/j gorw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:mail-followup-to :message-id:subject:cc:to:from:date:dkim-signature; bh=yd/N+I5kkzyOJpCnRN7vd7lwOUGF6B7BATQPc1K2fYQ=; b=mKdtGPnw0mJAKJcyeT8ZjLwOXoFoAnmFZdmHxhkuCKuyE2h/pP9UM6pl2C5SoOT8tV eUNacAdEb/4EAt9HZY3rgbqSix44iLgy19o7H+EGKO/wdhK80FwsRbNZljaVUCW+LV3u 9tk5ZBqj6JsbQvjqy6bptk0y899hgZiPjbcd/M/orOhQOjSHEnJsuT75BZUVJAr71cJ7 pUkSueDtIPYMtBwp+N0RQR6vcXbjxn+OOt0wNgF0ycWE6+sLH2kw6bpOeauoFsDSknJC yX0gIZ6UYauley3mo2TCCys3iptmnqSlfytoohLdOOQU9JwABd1sGZoX6Thjhuiqo1is m1HQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ffwll.ch header.s=google header.b=Ku2flnqw; 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 i15si1383084edl.581.2021.02.10.05.17.50; Wed, 10 Feb 2021 05:18:14 -0800 (PST) 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=@ffwll.ch header.s=google header.b=Ku2flnqw; 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 S230166AbhBJNPA (ORCPT + 99 others); Wed, 10 Feb 2021 08:15:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53700 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231261AbhBJNO4 (ORCPT ); Wed, 10 Feb 2021 08:14:56 -0500 Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1614EC061574 for ; Wed, 10 Feb 2021 05:14:15 -0800 (PST) Received: by mail-wr1-x433.google.com with SMTP id u14so2513439wri.3 for ; Wed, 10 Feb 2021 05:14:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=date:from:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=yd/N+I5kkzyOJpCnRN7vd7lwOUGF6B7BATQPc1K2fYQ=; b=Ku2flnqwc5D6z3d9GmRgcHXuXbDphKiJCNyjgnzoxVdwxDs/52BrDyb7OcLZWnkYAz UR5IZLaVzdRpurLn7fxlbf1b3mo/RM5L29GsZ6tgTpsyMRaO55uRbNi615w5EEGuzuiH EftzrNQu9uZtxv0u8BEWObc6EWl1rD8xoM1xc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :content-transfer-encoding:in-reply-to; bh=yd/N+I5kkzyOJpCnRN7vd7lwOUGF6B7BATQPc1K2fYQ=; b=X2dFYDWFKU+Y964zWsuAvFW/9mePlC/Cn9TX44+Cmjg+UYNpBaZ5eCPChOt4qg5SWZ 5zwbxGKbF1Bt584r3xFZcLYUEqd2i86kFdgfQ2AKYGBm+LFJoV56l2dcHpSX1TfUtp+F p0fEEiXpwtlvgnDHhlIvWPnwoI1KbjmQt4avIDtInsWLpMM0EL1se9DXUyv42ZVl4NNp ciIWbp07XzEZ+YZtQYAp7uM2mCj41M+OYbVQPsqK05eFnmK3p5GkPyCvGh24bhhHvq9U iOmEPdYohhrnSWWghpsF03f2nQ1Nq2jhwDN9RHSOBUbU1gvVeeg1Ha8pSDn1nJwePMvp YXGw== X-Gm-Message-State: AOAM531ZpMHtSF+PqBv2G+ylJd1luRhQ8KT6NX5jtno5W8az7vFfTcOf D+l5v42OnQHAddacj4TsTRNLrw== X-Received: by 2002:a05:6000:1374:: with SMTP id q20mr3489704wrz.44.1612962853806; Wed, 10 Feb 2021 05:14:13 -0800 (PST) Received: from phenom.ffwll.local ([2a02:168:57f4:0:efd0:b9e5:5ae6:c2fa]) by smtp.gmail.com with ESMTPSA id r1sm2894759wrl.95.2021.02.10.05.14.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Feb 2021 05:14:13 -0800 (PST) Date: Wed, 10 Feb 2021 14:14:11 +0100 From: Daniel Vetter To: Christian =?iso-8859-1?Q?K=F6nig?= Cc: Rikard Falkeborn , David Airlie , Daniel Vetter , Alex Deucher , Ben Skeggs , Felix Kuehling , Likun Gao , amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, nouveau@lists.freedesktop.org Subject: Re: [PATCH 0/3] drm/ttm: constify static vm_operations_structs Message-ID: Mail-Followup-To: Christian =?iso-8859-1?Q?K=F6nig?= , Rikard Falkeborn , David Airlie , Alex Deucher , Ben Skeggs , Felix Kuehling , Likun Gao , amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, nouveau@lists.freedesktop.org References: <20210209234817.55112-1-rikard.falkeborn@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Operating-System: Linux phenom 5.7.0-1-amd64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 10, 2021 at 08:45:56AM +0100, Christian K?nig wrote: > Reviewed-by: Christian K?nig for the series. Smash it into -misc? -Daniel > > Am 10.02.21 um 00:48 schrieb Rikard Falkeborn: > > Constify a few static vm_operations_struct that are never modified. Their > > only usage is to assign their address to the vm_ops field in the > > vm_area_struct, which is a pointer to const vm_operations_struct. Make them > > const to allow the compiler to put them in read-only memory. > > > > With this series applied, all static struct vm_operations_struct in the > > kernel tree are const. > > > > Rikard Falkeborn (3): > > drm/amdgpu/ttm: constify static vm_operations_struct > > drm/radeon/ttm: constify static vm_operations_struct > > drm/nouveau/ttm: constify static vm_operations_struct > > > > drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 2 +- > > drivers/gpu/drm/nouveau/nouveau_ttm.c | 2 +- > > drivers/gpu/drm/radeon/radeon_ttm.c | 2 +- > > 3 files changed, 3 insertions(+), 3 deletions(-) > > > -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch