From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E3866C433E0 for ; Wed, 10 Feb 2021 13:15:05 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 9D3C764DD8 for ; Wed, 10 Feb 2021 13:15:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231157AbhBJNPB (ORCPT ); Wed, 10 Feb 2021 08:15:01 -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-Google-Smtp-Source: ABdhPJzaMMmb4JfbfYiORqaQNccdJmyShOrVZsJEkutd675pXDThmmVuBjfO9+5KkU1bjFmrTMFG0A== 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