From: Nicola Vetrini <nicola.vetrini@bugseng.com>
To: Jan Beulich <jbeulich@suse.com>
Cc: sstabellini@kernel.org, michal.orzel@amd.com,
xenia.ragiadakou@amd.com, ayan.kumar.halder@amd.com,
consulting@bugseng.com,
"Andrew Cooper" <andrew.cooper3@citrix.com>,
"Roger Pau Monné" <roger.pau@citrix.com>, "Wei Liu" <wl@xen.org>,
"George Dunlap" <george.dunlap@citrix.com>,
"Julien Grall" <julien@xen.org>,
xen-devel@lists.xenproject.org
Subject: Re: [XEN PATCH v2 3/3] drivers/video: make declarations of defined functions available
Date: Thu, 17 Aug 2023 16:52:14 +0200 [thread overview]
Message-ID: <b61b9659a790701ec0b20e6c92dfb701@bugseng.com> (raw)
In-Reply-To: <111382a3-0845-99b5-1efa-dfc505084c66@suse.com>
On 17/08/2023 15:28, Jan Beulich wrote:
> On 17.08.2023 14:39, Nicola Vetrini wrote:
>> --- a/xen/include/xen/vga.h
>> +++ b/xen/include/xen/vga.h
>> @@ -15,4 +15,20 @@
>> extern struct xen_vga_console_info vga_console_info;
>> #endif
>>
>> +int fill_console_start_info(struct dom0_vga_console_info *);
>> +
>> +#ifdef CONFIG_X86
>> +void vesa_early_init(void);
>> +void vesa_endboot(bool_t keep);
>> +#else
>> +#define vesa_early_init() ((void)0)
>> +#define vesa_endboot(x) ((void)0)
>> +#endif
>> +
>> +#ifdef CONFIG_VIDEO
>> +void vesa_init(void);
>> +#else
>> +static inline void vesa_init(void) {};
>> +#endif
>
> Hmm, on one hand you simply move existing code here. But then why don't
> you leverage the existing #ifdef? The more that it's more specific and
> in line with drivers/video/Makefile having
>
> obj-$(CONFIG_VGA) := vga.o
>
> and
>
> obj-$(CONFIG_VGA) += vesa.o
>
> Jan
Are you saying that CONFIG_VGA implies CONFIG_VIDEO and therefore
"#ifdef CONFIG_VGA"
at line 14 of vga.h can be used instead of the #ifdefs inherited from
the original locations
to wrap all the declarations that are being moved?
--
Nicola Vetrini, BSc
Software Engineer, BUGSENG srl (https://bugseng.com)
next prev parent reply other threads:[~2023-08-17 14:52 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-17 12:39 [XEN PATCH v2 0/3] xen: fix inclusions and static storage duration Nicola Vetrini
2023-08-17 12:39 ` [XEN PATCH v2 1/3] vm_event: rework inclusions to use arch-indipendent header Nicola Vetrini
2023-08-17 18:00 ` Stefano Stabellini
2023-08-17 12:39 ` [XEN PATCH v2 2/3] vpci/msix: make 'get_slot' static Nicola Vetrini
2023-08-23 14:09 ` Nicola Vetrini
2023-08-23 14:14 ` Roger Pau Monné
2023-08-17 12:39 ` [XEN PATCH v2 3/3] drivers/video: make declarations of defined functions available Nicola Vetrini
2023-08-17 13:28 ` Jan Beulich
2023-08-17 14:52 ` Nicola Vetrini [this message]
2023-08-17 15:02 ` Jan Beulich
2023-08-17 16:04 ` Nicola Vetrini
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=b61b9659a790701ec0b20e6c92dfb701@bugseng.com \
--to=nicola.vetrini@bugseng.com \
--cc=andrew.cooper3@citrix.com \
--cc=ayan.kumar.halder@amd.com \
--cc=consulting@bugseng.com \
--cc=george.dunlap@citrix.com \
--cc=jbeulich@suse.com \
--cc=julien@xen.org \
--cc=michal.orzel@amd.com \
--cc=roger.pau@citrix.com \
--cc=sstabellini@kernel.org \
--cc=wl@xen.org \
--cc=xen-devel@lists.xenproject.org \
--cc=xenia.ragiadakou@amd.com \
/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.