All of lore.kernel.org
 help / color / mirror / Atom feed
From: Louis Chauvet <louis.chauvet@bootlin.com>
To: "José Expósito" <jose.exposito89@gmail.com>
Cc: hamohammed.sa@gmail.com, simona@ffwll.ch, melissa.srw@gmail.com,
	maarten.lankhorst@linux.intel.com, mripard@kernel.org,
	tzimmermann@suse.de, airlied@gmail.com,
	dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 05/15] drm/vkms: Extract vkms_config header
Date: Fri, 14 Feb 2025 18:03:37 +0100	[thread overview]
Message-ID: <ab4f7ee6-921d-4892-9a3f-e2dc0f9bd709@bootlin.com> (raw)
In-Reply-To: <Z64RZu4HdoBOzroM@fedora>



Le 13/02/2025 à 16:36, José Expósito a écrit :
> On Thu, Feb 13, 2025 at 02:59:25PM +0100, Louis Chauvet wrote:
>> On 11/02/25 - 12:09, José Expósito wrote:
>>> Creating a new vkms_config structure will be more complex once we
>>> start adding more options.
>>>
>>> Extract the vkms_config structure to its own header and source files
>>> and add functions to create and delete a vkms_config and to initialize
>>> debugfs.
>>>
>>> Refactor, no functional changes.
>>>
>>> Co-developed-by: Louis Chauvet <louis.chauvet@bootlin.com>
>>> Signed-off-by: Louis Chauvet <louis.chauvet@bootlin.com>
>>> Signed-off-by: José Expósito <jose.exposito89@gmail.com>
>>
>> This does not build in module, can you add this in the next version?
> 
> Interesting. I have "CONFIG_DRM_VKMS=m" in my config and it compiles here.
> 
> What do you have as module? CONFIG_DRM_VKMS_KUNIT_TESTS=m?

Yes sorry, I forgot to say it was for kunit tests. I just saw your other 
mail, thank you for the fix on all patches!

Louis Chauvet

> I'll rebuild every patch to make sure there are no errors.
> 
> Thanks for the heads up!
> Jose
>   
>> diff --git a/drivers/gpu/drm/vkms/vkms_config.c b/drivers/gpu/drm/vkms/vkms_config.c
>> index 152b2ecd6aef..42caa421876e 100644
>> --- a/drivers/gpu/drm/vkms/vkms_config.c
>> +++ b/drivers/gpu/drm/vkms/vkms_config.c
>> @@ -4,6 +4,7 @@
>>
>>   #include <drm/drm_print.h>
>>   #include <drm/drm_debugfs.h>
>> +#include <kunit/visibility.h>
>>
>>   #include "vkms_config.h"
>>
>> @@ -17,11 +18,13 @@ struct vkms_config *vkms_config_create(void)
>>
>>          return config;
>>   }
>> +EXPORT_SYMBOL_IF_KUNIT(vkms_config_create);
>>
>>   void vkms_config_destroy(struct vkms_config *config)
>>   {
>>          kfree(config);
>>   }
>> +EXPORT_SYMBOL_IF_KUNIT(vkms_config_destroy);
>>
>>   static int vkms_config_show(struct seq_file *m, void *data)
>>   {
>>
>> With this:
>>
>> Reviewed-by: Louis Chauvet <louis.chauvet@bootlin.com>

-- 
Louis Chauvet, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com


  reply	other threads:[~2025-02-14 17:03 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-02-11 11:08 [PATCH v2 00/15] drm/vkms: Allow to configure device José Expósito
2025-02-11 11:08 ` [PATCH v2 01/15] drm/vkms: Fix use after free and double free on init error José Expósito
2025-02-11 14:33   ` Thomas Zimmermann
2025-02-12  8:52     ` José Expósito
2025-02-11 11:08 ` [PATCH v2 02/15] drm/vkms: Extract vkms_connector header José Expósito
2025-02-11 11:09 ` [PATCH v2 03/15] drm/vkms: Create vkms_connector struct José Expósito
2025-02-11 11:09 ` [PATCH v2 04/15] drm/vkms: Add KUnit test scaffolding José Expósito
2025-02-13 13:59   ` Louis Chauvet
2025-02-11 11:09 ` [PATCH v2 05/15] drm/vkms: Extract vkms_config header José Expósito
2025-02-13 13:59   ` Louis Chauvet
2025-02-13 15:36     ` José Expósito
2025-02-14 17:03       ` Louis Chauvet [this message]
2025-02-11 11:09 ` [PATCH v2 06/15] drm/vkms: Move default_config creation to its own function José Expósito
2025-02-13 13:59   ` Louis Chauvet
2025-02-11 11:09 ` [PATCH v2 07/15] drm/vkms: Set device name from vkms_config José Expósito
2025-02-11 11:09 ` [PATCH v2 08/15] drm/vkms: Add a validation function for VKMS configuration José Expósito
2025-02-13 13:59   ` Louis Chauvet
2025-02-14 15:53     ` José Expósito
2025-02-14 18:20       ` Louis Chauvet
2025-02-11 11:09 ` [PATCH v2 09/15] drm/vkms: Allow to configure multiple planes José Expósito
2025-02-13 13:59   ` Louis Chauvet
2025-02-11 11:09 ` [PATCH v2 10/15] drm/vkms: Allow to configure multiple CRTCs José Expósito
2025-02-13 13:59   ` Louis Chauvet
2025-02-11 11:09 ` [PATCH v2 11/15] drm/vkms: Allow to attach planes and CRTCs José Expósito
2025-02-11 11:09 ` [PATCH v2 12/15] drm/vkms: Allow to configure multiple encoders José Expósito
2025-02-13 13:59   ` Louis Chauvet
2025-02-11 11:09 ` [PATCH v2 13/15] drm/vkms: Allow to attach encoders and CRTCs José Expósito
2025-02-13 13:59   ` Louis Chauvet
2025-02-11 11:09 ` [PATCH v2 14/15] drm/vkms: Allow to configure multiple connectors José Expósito
2025-02-13 13:59   ` Louis Chauvet
2025-02-11 11:09 ` [PATCH v2 15/15] drm/vkms: Allow to attach connectors and encoders José Expósito
2025-02-13 13:59   ` Louis Chauvet

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ab4f7ee6-921d-4892-9a3f-e2dc0f9bd709@bootlin.com \
    --to=louis.chauvet@bootlin.com \
    --cc=airlied@gmail.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=hamohammed.sa@gmail.com \
    --cc=jose.exposito89@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=maarten.lankhorst@linux.intel.com \
    --cc=melissa.srw@gmail.com \
    --cc=mripard@kernel.org \
    --cc=simona@ffwll.ch \
    --cc=tzimmermann@suse.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.