diff options
author | Patrick Williams <patrick@stwcx.xyz> | 2015-09-15 22:41:29 +0300 |
---|---|---|
committer | Patrick Williams <patrick@stwcx.xyz> | 2015-09-15 22:41:29 +0300 |
commit | 21f9b84b4b729fbd7acbd465e7a3f726e4d20f91 (patch) | |
tree | eb2d091d427ca0813b445509d59cc8e27e8ad25f /yocto-poky/meta/recipes-core/psplash/files/0001-psplash-fb-Convert-psplash_fb_plot_pixel-to-a-static.patch | |
parent | 101cef31e2bf54c678501155cd2106251acbd076 (diff) | |
parent | c124f4f2e04dca16a428a76c89677328bc7bf908 (diff) | |
download | openbmc-21f9b84b4b729fbd7acbd465e7a3f726e4d20f91.tar.xz |
Merge commit 'c124f4f2e04dca16a428a76c89677328bc7bf908' as 'yocto-poky'
Diffstat (limited to 'yocto-poky/meta/recipes-core/psplash/files/0001-psplash-fb-Convert-psplash_fb_plot_pixel-to-a-static.patch')
-rw-r--r-- | yocto-poky/meta/recipes-core/psplash/files/0001-psplash-fb-Convert-psplash_fb_plot_pixel-to-a-static.patch | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/yocto-poky/meta/recipes-core/psplash/files/0001-psplash-fb-Convert-psplash_fb_plot_pixel-to-a-static.patch b/yocto-poky/meta/recipes-core/psplash/files/0001-psplash-fb-Convert-psplash_fb_plot_pixel-to-a-static.patch new file mode 100644 index 000000000..93b3c6bc7 --- /dev/null +++ b/yocto-poky/meta/recipes-core/psplash/files/0001-psplash-fb-Convert-psplash_fb_plot_pixel-to-a-static.patch @@ -0,0 +1,53 @@ +From 8f5de12cc75bfaa8400adf32f30c015d8f813540 Mon Sep 17 00:00:00 2001 +From: Khem Raj <raj.khem@gmail.com> +Date: Sat, 22 Aug 2015 07:12:20 -0700 +Subject: [PATCH] psplash-fb: Convert psplash_fb_plot_pixel() to a static + inline + +This function is not used outside psplash-fb.c and by making it +static inline we keep the performance and also make it portable across +multiple compilers and gcc versions + +Signed-off-by: Khem Raj <raj.khem@gmail.com> +--- +Upstream-Status: Pending + + psplash-fb.c | 2 +- + psplash-fb.h | 8 -------- + 2 files changed, 1 insertion(+), 9 deletions(-) + +diff --git a/psplash-fb.c b/psplash-fb.c +index bd9cd9d..6d235db 100644 +--- a/psplash-fb.c ++++ b/psplash-fb.c +@@ -260,7 +260,7 @@ psplash_fb_new (int angle) + + #define OFFSET(fb,x,y) (((y) * (fb)->stride) + ((x) * ((fb)->bpp >> 3))) + +-inline void ++static inline void + psplash_fb_plot_pixel (PSplashFB *fb, + int x, + int y, +diff --git a/psplash-fb.h b/psplash-fb.h +index 42592ed..c6c3144 100644 +--- a/psplash-fb.h ++++ b/psplash-fb.h +@@ -57,14 +57,6 @@ psplash_fb_destroy (PSplashFB *fb); + PSplashFB* + psplash_fb_new (int angle); + +-inline void +-psplash_fb_plot_pixel (PSplashFB *fb, +- int x, +- int y, +- uint8 red, +- uint8 green, +- uint8 blue); +- + void + psplash_fb_draw_rect (PSplashFB *fb, + int x, +-- +2.1.4 + |