From: Anatolij Gustschin <agust@denx.de>
To: Dzmitry Sankouski <dsankouski@gmail.com>
Cc: u-boot@lists.denx.de, Simon Glass <sjg@chromium.org>
Subject: Re: [PATCH v7 01/10] video console: refactoring and optimization
Date: Wed, 1 Mar 2023 23:24:36 +0100 [thread overview]
Message-ID: <20230301232436.2dbfed0b@crub> (raw)
In-Reply-To: <20230227173710.1688611-2-dsankouski@gmail.com>
Hi Dzmitry,
On Mon, 27 Feb 2023 20:37:01 +0300
Dzmitry Sankouski dsankouski@gmail.com wrote:
> - move common code to vidconsole_internal.h and console_core.c
> - unite probe functions
> - get rid of code duplications in switch across bpp values
> - extract common pixel fill logic in two functions one per
> horizontal and vertical filling
> - rearrange statements in put_xy* methods in unified way
> - replace types - uint*_t to u*
>
> Signed-off-by: Dzmitry Sankouski <dsankouski@gmail.com>
> Reviewed-by: Simon Glass <sjg@chromium.org>
> ---
> Changes for v2: none
> Changes for v3: none
> Changes for v4:
> - move common code to vidconsole_internal.h
> - unite probe functions
> Changes for v5:
> - move common functions to console-core.c file
> - remove static keyword from shared functions
> Changes for v6: none
> Changes for v7: none
>
> drivers/video/Makefile | 6 +
> drivers/video/console_core.c | 141 +++++++++++++
Building console_core.c fails for board configs without CONFIG_VIDEO_COPY,
i.e.:
https://source.denx.de/u-boot/custodians/u-boot-video/-/jobs/587261
I fixed it for further build testing by additionally applying:
diff --git a/include/video_console.h b/include/video_console.h
index 9d2c0f210e..3e1e00c23f 100644
--- a/include/video_console.h
+++ b/include/video_console.h
@@ -340,6 +340,9 @@ int vidconsole_sync_copy(struct udevice *dev, void *from, void *to);
int vidconsole_memmove(struct udevice *dev, void *dst, const void *src,
int size);
#else
+
+#include <string.h>
+
static inline int vidconsole_sync_copy(struct udevice *dev, void *from,
void *to)
{
--
Anatolij
next prev parent reply other threads:[~2023-03-01 22:24 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-27 17:37 [PATCH v7 00/10] vidconsole: refactoring and support for wider fonts Dzmitry Sankouski
2023-02-27 17:37 ` [PATCH v7 01/10] video console: refactoring and optimization Dzmitry Sankouski
2023-03-01 22:24 ` Anatolij Gustschin [this message]
2023-02-27 17:37 ` [PATCH v7 02/10] video console: add support for fonts wider than 1 byte Dzmitry Sankouski
2023-02-27 17:37 ` [PATCH v7 03/10] video console: move 8x16 font data in named header Dzmitry Sankouski
2023-02-27 17:37 ` [PATCH v7 04/10] video console: implement multiple fonts configuration Dzmitry Sankouski
2023-02-27 17:37 ` [PATCH v7 05/10] video console: move vidconsole_get_font_size() logic to driver ops Dzmitry Sankouski
2023-02-28 0:35 ` Simon Glass
2023-02-27 17:37 ` [PATCH v7 06/10] video console: allow font size configuration at runtime Dzmitry Sankouski
2023-02-27 17:37 ` [PATCH v7 07/10] video console: add 12x22 Sun font from linux Dzmitry Sankouski
2023-02-27 17:37 ` [PATCH v7 08/10] video console: add 16x32 Terminus " Dzmitry Sankouski
2023-02-27 17:37 ` [PATCH v7 09/10] video console: sandbox_defconfig: add 12x22 font Dzmitry Sankouski
2023-02-28 0:35 ` Simon Glass
2023-02-27 17:37 ` [PATCH v7 10/10] video console: add 12x22 console simple font test Dzmitry Sankouski
2023-03-01 22:20 ` Anatolij Gustschin
2023-03-02 8:24 ` Dzmitry Sankouski
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=20230301232436.2dbfed0b@crub \
--to=agust@denx.de \
--cc=dsankouski@gmail.com \
--cc=sjg@chromium.org \
--cc=u-boot@lists.denx.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox