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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id CE953C43217 for ; Fri, 25 Nov 2022 11:03:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230352AbiKYLDE (ORCPT ); Fri, 25 Nov 2022 06:03:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56394 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230351AbiKYLDD (ORCPT ); Fri, 25 Nov 2022 06:03:03 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AAA054B990 for ; Fri, 25 Nov 2022 03:01:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1669374117; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=TfA9A7l0JYE/L8ETH4uO/o+2VqeJpw2uLOXbWd1Oacg=; b=RYF5ajSd17NP2QCq0u0G1BHrNoKXMY9bLk046xPAznEs0hZv44MD9g9zLO18F31bxrTLKk FxJ5sqSYgB0x9/RjRQO5E/+UFe5Iybra9G6COKCOP686MeuLG7ooPFHE6eAGqFDRfV4//7 +yqLUIj4d2ztA1JS/D6DgC/RF24D1Fg= Received: from mail-wm1-f69.google.com (mail-wm1-f69.google.com [209.85.128.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-522-46aaLZEdNmiZxzJ2io3rrA-1; Fri, 25 Nov 2022 06:01:53 -0500 X-MC-Unique: 46aaLZEdNmiZxzJ2io3rrA-1 Received: by mail-wm1-f69.google.com with SMTP id m34-20020a05600c3b2200b003cf549cb32bso4049519wms.1 for ; Fri, 25 Nov 2022 03:01:53 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=TfA9A7l0JYE/L8ETH4uO/o+2VqeJpw2uLOXbWd1Oacg=; b=21gzlr8wHtm+H4xT48iLFE7TQqIJb6dkNYRWXcqHuNSN6bM/IfSy336wT2+/Ble7Xz RzYwGZ+LQbNneMn5DpnwNPls7vQMYe8l5N3IVtaxXc+LEVPvYDf+fw9LtZ5bU6lD1xi2 rdPsfRcz5GJMnnKmHL+XsZWINKEdsowpqYZopGpCLjYy7zihIK0pUXmTBglPwY1NX/1l r6Jr4qpNsAonCJajLAbEyCmw4LDp3gXN5LXPzJ+oLy+PpDkyRIGIsgwT1eUz4QerP9l/ B7DE2pOGQuVMUA4Ud/bnJmShfXFCpTe91lePx7CRGWFZyUFNu+P66jB9+tTbwMY2ftht +D2w== X-Gm-Message-State: ANoB5pkXJqnHfZ1ifs+uHn0V9Ket5zKpEUs2Ft6xgu2chE1X6zIu8blK aqbgtkHQhdzJDuu5ecTrivkdddlmBgcnEMFdzhuSBvRswN7mDhw4Hr2yc18O6e8uBN9u6VaXrFZ qro2sSRKLPK5KRK9juyy7P4dn3dBj X-Received: by 2002:a7b:c456:0:b0:3a5:f600:502e with SMTP id l22-20020a7bc456000000b003a5f600502emr18311884wmi.39.1669374111319; Fri, 25 Nov 2022 03:01:51 -0800 (PST) X-Google-Smtp-Source: AA0mqf54zF2uRxU4RbTU39UVEvJ1RZet14YgzdlvBFjd7gpCV0KEEizmQ7IkJumuXXzHwnc2Bml0/Q== X-Received: by 2002:a7b:c456:0:b0:3a5:f600:502e with SMTP id l22-20020a7bc456000000b003a5f600502emr18311846wmi.39.1669374111092; Fri, 25 Nov 2022 03:01:51 -0800 (PST) Received: from [192.168.1.130] (205.pool92-176-231.dynamic.orange.es. [92.176.231.205]) by smtp.gmail.com with ESMTPSA id r11-20020a05600c35cb00b003a84375d0d1sm9723651wmq.44.2022.11.25.03.01.49 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 25 Nov 2022 03:01:50 -0800 (PST) Message-ID: <8df31d1d-1ed9-eb6e-80bd-1f82adfb0185@redhat.com> Date: Fri, 25 Nov 2022 12:01:49 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.1 Subject: Re: [PATCH 11/24] drm/vc4: Constify container_of wrappers Content-Language: en-US To: Maxime Ripard , Maxime Ripard , Maarten Lankhorst , Daniel Vetter , David Airlie , Thomas Zimmermann Cc: David Gow , linaro-mm-sig@lists.linaro.org, Greg Kroah-Hartman , linux-kselftest@vger.kernel.org, =?UTF-8?Q?Ma=c3=adra_Canal?= , linux-media@vger.kernel.org, kunit-dev@googlegroups.com, dri-devel@lists.freedesktop.org, Brendan Higgins , linux-kernel@vger.kernel.org, Dave Stevenson References: <20221123-rpi-kunit-tests-v1-0-051a0bb60a16@cerno.tech> <20221123-rpi-kunit-tests-v1-11-051a0bb60a16@cerno.tech> From: Javier Martinez Canillas In-Reply-To: <20221123-rpi-kunit-tests-v1-11-051a0bb60a16@cerno.tech> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org On 11/23/22 16:25, Maxime Ripard wrote: > None of our wrappers around container_of to access our objects from the > DRM object pointer actually modify the latter. > > Let's make them const. > > Signed-off-by: Maxime Ripard > --- Reviewed-by: Javier Martinez Canillas -- Best regards, Javier Martinez Canillas Core Platforms Red Hat 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 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 82C81C4332F for ; Fri, 25 Nov 2022 11:01:59 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 2C8F610E725; Fri, 25 Nov 2022 11:01:58 +0000 (UTC) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by gabe.freedesktop.org (Postfix) with ESMTPS id 74C2F10E725 for ; Fri, 25 Nov 2022 11:01:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1669374113; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=TfA9A7l0JYE/L8ETH4uO/o+2VqeJpw2uLOXbWd1Oacg=; b=CvYH19UJaMPJqGoLIoAUHp0HMz57MuFdBt2ncJWc0neAYZbYbpMR013kfVpqFyqkKxgcd0 qRIQ1MRj7ZW6WRoNKNIKwyuzX6zrg8UxAXiks7O83j2RosYenoDxZtSKgAX3LRr4sISw05 pVv1/fhOqb66S5ZWoAqXrgDqYyghU4Y= Received: from mail-wr1-f70.google.com (mail-wr1-f70.google.com [209.85.221.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-335-dUzpEYZFO1ySl6TnkTAHsg-1; Fri, 25 Nov 2022 06:01:52 -0500 X-MC-Unique: dUzpEYZFO1ySl6TnkTAHsg-1 Received: by mail-wr1-f70.google.com with SMTP id h2-20020adfa4c2000000b00241cf936619so768476wrb.9 for ; Fri, 25 Nov 2022 03:01:52 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=TfA9A7l0JYE/L8ETH4uO/o+2VqeJpw2uLOXbWd1Oacg=; b=yM7/1AS3Glsg1XfP2XiH3ZKFwAV6RnWGvBuWb3zEUeJ6VWXXTeJwCRGaW4SrTLBboN 6JILlOVLhI9CIZ7Rapd6S7gsXDjuB4SLmnExNba97UJoCMSH4Ul1XePVXeBPuJpy+59K bTJ/riVkMUhK9Z4QEIyrO3LbH6PbWeWV6S7wzq8AJ6/YBtMYe0Bpi2DKUzDwGcDOV/IF gZkTSQX/bLxchnahHFaSVJKj3nGcZMhASm1vPIRUF109pF82VGa2pKymjWMCEZkuEzLJ BntEN+V0JAGPFoYXyY15YHecKSMcaG8oIIAeIAiyTRfBdiyd/uIwIH4WOhXySeAjYqZz XxqA== X-Gm-Message-State: ANoB5pmcDu2LUAlvaw60+6Wu/ctXtOdVyPm51NudyBAJXFWGyOaidXD2 D64oOheu/4FTH7BvxEdWNTbpSxdHim35/S0C76oBFCEd1mMo1nRL3ZwmN63N7eIACDevYJI1Oy2 rt8MZU46SOJiZgRmC5sasffZy8XUl X-Received: by 2002:a7b:c456:0:b0:3a5:f600:502e with SMTP id l22-20020a7bc456000000b003a5f600502emr18311883wmi.39.1669374111319; Fri, 25 Nov 2022 03:01:51 -0800 (PST) X-Google-Smtp-Source: AA0mqf54zF2uRxU4RbTU39UVEvJ1RZet14YgzdlvBFjd7gpCV0KEEizmQ7IkJumuXXzHwnc2Bml0/Q== X-Received: by 2002:a7b:c456:0:b0:3a5:f600:502e with SMTP id l22-20020a7bc456000000b003a5f600502emr18311846wmi.39.1669374111092; Fri, 25 Nov 2022 03:01:51 -0800 (PST) Received: from [192.168.1.130] (205.pool92-176-231.dynamic.orange.es. [92.176.231.205]) by smtp.gmail.com with ESMTPSA id r11-20020a05600c35cb00b003a84375d0d1sm9723651wmq.44.2022.11.25.03.01.49 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 25 Nov 2022 03:01:50 -0800 (PST) Message-ID: <8df31d1d-1ed9-eb6e-80bd-1f82adfb0185@redhat.com> Date: Fri, 25 Nov 2022 12:01:49 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.1 Subject: Re: [PATCH 11/24] drm/vc4: Constify container_of wrappers To: Maxime Ripard , Maxime Ripard , Maarten Lankhorst , Daniel Vetter , David Airlie , Thomas Zimmermann References: <20221123-rpi-kunit-tests-v1-0-051a0bb60a16@cerno.tech> <20221123-rpi-kunit-tests-v1-11-051a0bb60a16@cerno.tech> From: Javier Martinez Canillas In-Reply-To: <20221123-rpi-kunit-tests-v1-11-051a0bb60a16@cerno.tech> X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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: David Gow , Brendan Higgins , Greg Kroah-Hartman , Dave Stevenson , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linaro-mm-sig@lists.linaro.org, =?UTF-8?Q?Ma=c3=adra_Canal?= , linux-kselftest@vger.kernel.org, kunit-dev@googlegroups.com, linux-media@vger.kernel.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" On 11/23/22 16:25, Maxime Ripard wrote: > None of our wrappers around container_of to access our objects from the > DRM object pointer actually modify the latter. > > Let's make them const. > > Signed-off-by: Maxime Ripard > --- Reviewed-by: Javier Martinez Canillas -- Best regards, Javier Martinez Canillas Core Platforms Red Hat