From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: Khem Raj <raj.khem@gmail.com>
Cc: openembedded-core@lists.openembedded.org
Subject: Re: [PATCH 02/24] mtd-utils: update to latest and fix static inlining
Date: Thu, 09 Apr 2015 11:23:01 +0100 [thread overview]
Message-ID: <1428574981.6976.7.camel@linuxfoundation.org> (raw)
In-Reply-To: <fe627d2aeef3ed39caa98f73942c0f23ff2bf825.1428341478.git.raj.khem@gmail.com>
On Mon, 2015-04-06 at 17:36 +0000, Khem Raj wrote:
> use static storage class instead of extern for inline functions
> and remove duplicate definitions as a result
This says what this does but not why. Upstream-Status is also missing.
Cheers,
Richard
> Change-Id: I72e8c5f19dff656c18f719d1e9e2ca697c9a856f
> Signed-off-by: Khem Raj <raj.khem@gmail.com>
> ---
> ...emove-duplicate-hashtable_iterator_value-.patch | 56 ++++++++++++++++++++++
> meta/recipes-devtools/mtd/mtd-utils_git.bb | 1 +
> 2 files changed, 57 insertions(+)
> create mode 100644 meta/recipes-devtools/mtd/mtd-utils/0001-hashtable-Remove-duplicate-hashtable_iterator_value-.patch
>
> diff --git a/meta/recipes-devtools/mtd/mtd-utils/0001-hashtable-Remove-duplicate-hashtable_iterator_value-.patch b/meta/recipes-devtools/mtd/mtd-utils/0001-hashtable-Remove-duplicate-hashtable_iterator_value-.patch
> new file mode 100644
> index 0000000..695f020
> --- /dev/null
> +++ b/meta/recipes-devtools/mtd/mtd-utils/0001-hashtable-Remove-duplicate-hashtable_iterator_value-.patch
> @@ -0,0 +1,56 @@
> +From b856ff35c20124ceae40bbc4d32584df47618c96 Mon Sep 17 00:00:00 2001
> +From: Khem Raj <raj.khem@gmail.com>
> +Date: Wed, 25 Feb 2015 09:28:26 +0000
> +Subject: [PATCH] hashtable: Remove duplicate
> + hashtable_iterator_value/hashtable_iterator_key
> +
> +Signed-off-by: Khem Raj <raj.khem@gmail.com>
> +---
> + mkfs.ubifs/hashtable/hashtable_itr.c | 12 ------------
> + 1 file changed, 12 deletions(-)
> +
> +Index: git/mkfs.ubifs/hashtable/hashtable_itr.h
> +===================================================================
> +--- git.orig/mkfs.ubifs/hashtable/hashtable_itr.h
> ++++ git/mkfs.ubifs/hashtable/hashtable_itr.h
> +@@ -28,7 +28,7 @@ hashtable_iterator(struct hashtable *h);
> + /* hashtable_iterator_key
> + * - return the value of the (key,value) pair at the current position */
> +
> +-extern inline void *
> ++static inline void *
> + hashtable_iterator_key(struct hashtable_itr *i)
> + {
> + return i->e->k;
> +@@ -37,7 +37,7 @@ hashtable_iterator_key(struct hashtable_
> + /*****************************************************************************/
> + /* value - return the value of the (key,value) pair at the current position */
> +
> +-extern inline void *
> ++static inline void *
> + hashtable_iterator_value(struct hashtable_itr *i)
> + {
> + return i->e->v;
> +Index: git/mkfs.ubifs/hashtable/hashtable_itr.c
> +===================================================================
> +--- git.orig/mkfs.ubifs/hashtable/hashtable_itr.c
> ++++ git/mkfs.ubifs/hashtable/hashtable_itr.c
> +@@ -35,18 +35,6 @@ hashtable_iterator(struct hashtable *h)
> + }
> +
> + /*****************************************************************************/
> +-/* key - return the key of the (key,value) pair at the current position */
> +-/* value - return the value of the (key,value) pair at the current position */
> +-
> +-void *
> +-hashtable_iterator_key(struct hashtable_itr *i)
> +-{ return i->e->k; }
> +-
> +-void *
> +-hashtable_iterator_value(struct hashtable_itr *i)
> +-{ return i->e->v; }
> +-
> +-/*****************************************************************************/
> + /* advance - advance the iterator to the next element
> + * returns zero if advanced to end of table */
> +
> diff --git a/meta/recipes-devtools/mtd/mtd-utils_git.bb b/meta/recipes-devtools/mtd/mtd-utils_git.bb
> index 12daffe..f991ea1 100644
> --- a/meta/recipes-devtools/mtd/mtd-utils_git.bb
> +++ b/meta/recipes-devtools/mtd/mtd-utils_git.bb
> @@ -13,6 +13,7 @@ SRCREV = "9f107132a6a073cce37434ca9cda6917dd8d866b"
> SRC_URI = "git://git.infradead.org/mtd-utils.git \
> file://add-exclusion-to-mkfs-jffs2-git-2.patch \
> file://fix-armv7-neon-alignment.patch \
> + file://0001-hashtable-Remove-duplicate-hashtable_iterator_value-.patch \
> "
>
> S = "${WORKDIR}/git/"
> --
> 2.1.4
>
next prev parent reply other threads:[~2015-04-09 10:23 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-06 17:35 [PATCH 00/24] Upgrade binutils,gdb,gcc-4.8 Khem Raj
2015-04-06 17:36 ` [PATCH 01/24] ncurses: Upgrade 4.9 stable to latest patchlevel 20150329 Khem Raj
2015-04-06 17:36 ` [PATCH 02/24] mtd-utils: update to latest and fix static inlining Khem Raj
2015-04-09 10:23 ` Richard Purdie [this message]
2015-04-10 5:18 ` Khem Raj
2015-04-06 17:36 ` [PATCH 03/24] binutils: upgrade to 2.25 Khem Raj
2015-04-07 9:32 ` Richard Purdie
2015-04-07 19:41 ` Khem Raj
2015-04-06 17:36 ` [PATCH 04/24] binutils: Fix ICE in gold Khem Raj
2015-04-06 17:36 ` [PATCH 05/24] binuitls: Switch to using binutils stable/2.25 branch Khem Raj
2015-04-06 17:36 ` [PATCH 06/24] gdb: Upgrade 7.8.1 -> 7.9 Khem Raj
2015-04-06 17:36 ` [PATCH 07/24] binutils: Fix linking issue for R_ARM_REL32 relocs Khem Raj
2015-04-06 17:36 ` [PATCH 08/24] var/volatile: Mount it if doing ro-rfs Khem Raj
2015-04-06 17:36 ` [PATCH 09/24] gcc-4.8: Upgrade 4.8.2 -> 4.8.4 Khem Raj
2015-04-06 17:36 ` [PATCH 10/24] quota: Upgrade quota_4.01.bb -> quota_4.02.bb Khem Raj
2015-04-06 17:36 ` [PATCH 11/24] util-linux: Upgrade to 2.26 Khem Raj
2015-04-06 17:36 ` [PATCH 12/24] libusb-compat: Include sys/types.h in usb.h Khem Raj
2015-04-06 17:36 ` [PATCH 13/24] libdaemon: Explicitly include unisttd.h instead of sys/unistd.h Khem Raj
2015-04-06 17:36 ` [PATCH 14/24] common-licenses: Add BSD-0-Clause Khem Raj
2015-04-06 17:36 ` [PATCH 15/24] libffi: Use proper compiler define for linux platform Khem Raj
2015-04-06 17:36 ` [PATCH 16/24] quota: Fix build with musl Khem Raj
2015-04-06 17:36 ` [PATCH 17/24] bluez4: Fix encrypt symbol namespace collision Khem Raj
2015-04-06 17:36 ` [PATCH 18/24] mesa: Fix building with musl Khem Raj
2015-04-06 17:36 ` [PATCH 19/24] at-spi2-core: Add nls.m4 from gettext Khem Raj
2015-04-06 17:36 ` [PATCH 20/24] ofono: Disable backtrace for non-glibc libraries Khem Raj
2015-04-06 17:36 ` [PATCH 21/24] pixman,libpciaccess: Fix build on musl Khem Raj
2015-04-06 17:36 ` [PATCH 22/24] wpa-supplicant: Replace non-standard base defines with c99 compliant ones Khem Raj
2015-04-06 17:36 ` [PATCH 23/24] libxml2: Contain glibc-extentions under __GLIBC__ Khem Raj
2015-04-06 17:36 ` [PATCH 24/24] rpcbind: Fix build with musl Khem Raj
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=1428574981.6976.7.camel@linuxfoundation.org \
--to=richard.purdie@linuxfoundation.org \
--cc=openembedded-core@lists.openembedded.org \
--cc=raj.khem@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox