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 9F1EAC433FE for ; Wed, 30 Nov 2022 09:14:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231314AbiK3JOh (ORCPT ); Wed, 30 Nov 2022 04:14:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45564 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229805AbiK3JOg (ORCPT ); Wed, 30 Nov 2022 04:14:36 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B27FA2EF79 for ; Wed, 30 Nov 2022 01:13:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1669799623; 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=H4kmVPYqwbxGU6PTsZRjCspb80cku12to9pgPPCu54U=; b=XVwoHDGlBs9z9Fzt9m2GQPnbUWifYYvUM0xI/Bpr3k6ve0F/U82rcokau+N8fyctXNrrYs OQE7eSYMew4RAj77mnsiWr/kHjl8Y1nqC/T7ml+5ZMcIkH1ZI/vaMcqUOxgAuTzpttyIcU cjbtcxYO4OXgWzrMDUC6MmHVuJpkGd4= Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com [209.85.128.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-407-z_u63i4BMTmfPqSdMZtGZQ-1; Wed, 30 Nov 2022 04:13:42 -0500 X-MC-Unique: z_u63i4BMTmfPqSdMZtGZQ-1 Received: by mail-wm1-f72.google.com with SMTP id z18-20020a05600c221200b003cf7fcc286aso417375wml.1 for ; Wed, 30 Nov 2022 01:13:42 -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=H4kmVPYqwbxGU6PTsZRjCspb80cku12to9pgPPCu54U=; b=pGqd14c4BuexcBZ63ZxqhySCduhiFWMIiuHAnAMZ7KM5cs0UjdWs0jZFUtNGfvVASS qmWpbHfZ5PIUoL4QkWQp5KKjaDSPmJDoefOOmBVmv12SV/2pRwQayQCQB6n1GEBiAzw3 O6tdzeV87TR+dkR+Y1ClqgwKSj9ByRUZwQfXfsr3lwFjMAj+Qh6VjfxybiggWlt9G+O+ 2qjC4IUISRZouJOguYXwAy577OoY3TougaB4HkFr6gzIB7/tSC2OVXs61nyOTX/zu+tE 5oGAzWcq7kPHIyTqazWLsXOXcURtQqpwvnuCsmmleHhV8tyhV78533E03BqOIquEWQKq DBzg== X-Gm-Message-State: ANoB5pkImk3d6ugay3Zz8zGL5ZcAhyhFsxeq1BBdlYnqlIsL8RDvQspF AMiBrdq3OGJIN+H8sl6i7NCJCtDHIc8vsgUoS3nnUR/y6va/6+UHUws/99/NrHMx11L2xh0gpfT LvSd2ADbSRTB5/rXKtcjnzr8= X-Received: by 2002:a1c:7513:0:b0:3cf:8896:e1c9 with SMTP id o19-20020a1c7513000000b003cf8896e1c9mr46817781wmc.119.1669799621488; Wed, 30 Nov 2022 01:13:41 -0800 (PST) X-Google-Smtp-Source: AA0mqf5vvCv9O/1R9RXSG17BNuO4k/AT1pMos0jlXhZZ5YoVQ/8d1PLV/cKODBBZcjZF5bgcENOdFQ== X-Received: by 2002:a1c:7513:0:b0:3cf:8896:e1c9 with SMTP id o19-20020a1c7513000000b003cf8896e1c9mr46817770wmc.119.1669799621277; Wed, 30 Nov 2022 01:13:41 -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 h4-20020a5d5044000000b00241bc4880fesm905866wrt.111.2022.11.30.01.13.40 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 30 Nov 2022 01:13:40 -0800 (PST) Message-ID: Date: Wed, 30 Nov 2022 10:13:39 +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 v2 08/17] drm/tests: helpers: Allow for a custom device struct to be allocated Content-Language: en-US To: Maxime Ripard , Daniel Vetter , Maarten Lankhorst , Maxime Ripard , David Airlie , Thomas Zimmermann Cc: dri-devel@lists.freedesktop.org, Greg Kroah-Hartman , kunit-dev@googlegroups.com, linux-media@vger.kernel.org, linux-kselftest@vger.kernel.org, linaro-mm-sig@lists.linaro.org, Brendan Higgins , =?UTF-8?Q?Ma=c3=adra_Canal?= , Dave Stevenson , linux-kernel@vger.kernel.org, David Gow References: <20221123-rpi-kunit-tests-v2-0-efe5ed518b63@cerno.tech> <20221123-rpi-kunit-tests-v2-8-efe5ed518b63@cerno.tech> From: Javier Martinez Canillas In-Reply-To: <20221123-rpi-kunit-tests-v2-8-efe5ed518b63@cerno.tech> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org On 11/28/22 15:53, Maxime Ripard wrote: > The current helper to allocate a DRM device doesn't allow for any > subclassing by drivers, which is going to be troublesome as we work on > getting some kunit testing on atomic modesetting code. > > Let's use a similar pattern to the other allocation helpers by providing > the structure size and offset as arguments. > > Signed-off-by: Maxime Ripard > --- [...] > -EXPORT_SYMBOL(drm_kunit_helper_alloc_drm_device); > +EXPORT_SYMBOL(__drm_kunit_helper_alloc_drm_device); > I'm not sure if I would add a __ prefix to exported symbols, but I see that this is a convention in the DRM subsystem so I'm OK with it. Another thing that came to mind is if we want to use EXPORT_SYMBOL_GPL() instead for the DRM KUnit helpers. But that's not related to this series. Reviewed-by: Javier Martinez Canillas -- Best regards, Javier Martinez Canillas Core Platforms Red Hat