Skip to contentSkip to conversation

mtd-utils: remove double hashtable iterator definition

PATCH In review Oleg Kokorin 2 participants 2 messages Jan 19, 2018

lore
Share & tools
lore
#0 lore raw

PATCH v4 1/1 mtd-utils: remove double hashtable iterator definition

hashtable_iterator_key and hashtable_iterator_value redefinition inside mkfs.ubifs/hashtable/hashtable_itr.h cause linker redefinition error

---
 .../mtd-utils-fix-hashtable_iterator.patch         | 58 ++++++++++++++++++++++
 meta/recipes-devtools/mtd/mtd-utils_git.bb         |  1 +
 2 files changed, 59 insertions(+)
 create mode 100644 meta/recipes-devtools/mtd/mtd-utils/mtd-utils-fix-hashtable_iterator.patch
meta/recipes-devtools/mtd/mtd-utils/mtd-utils-fix-hashtable_iterator.patch new file +58 -0
new file mode 100644
index 0000000..b6cf3a3
@@ -0,0 +1,58 @@
+Upstream-Status: Submitted to dizzy
+
+Author: Oleg Kokorin <[email protected]>
+Date:   Fri Jan 19 11:52:12 2018 +0100
+
+mtd-utils: remove double hashtable iterator definition
+
+hashtable_iterator_key and hashtable_iterator_value redefinition inside
+mkfs.ubifs/hashtable/hashtable_itr.h cause linker redefinition error:
+
+|   CC      mkfs.ubifs/hashtable/hashtable_itr.o
+| mkfs.ubifs/hashtable/hashtable_itr.c:42:1: error: redefinition of 'hashtable_iterator_key'
+|  hashtable_iterator_key(struct hashtable_itr *i)
+|  ^
+| In file included from mkfs.ubifs/hashtable/hashtable_itr.c:5:0:
+| mkfs.ubifs/hashtable/hashtable_itr.h:32:1: note: previous definition of 'hashtable_iterator_key' was here
+|  hashtable_iterator_key(struct hashtable_itr *i)
+|  ^
+| mkfs.ubifs/hashtable/hashtable_itr.c:46:1: error: redefinition of 'hashtable_iterator_value'
+|  hashtable_iterator_value(struct hashtable_itr *i)
+|  ^
+| In file included from mkfs.ubifs/hashtable/hashtable_itr.c:5:0:
+| mkfs.ubifs/hashtable/hashtable_itr.h:41:1: note: previous definition of 'hashtable_iterator_value' was here
+|  hashtable_iterator_value(struct hashtable_itr *i)
+
+Signed-off-by: Oleg Kokorin <[email protected]>
+
+Index: setup-scripts/build/tmp-angstrom_v2014_12-glibc/work/x86_64-linux/mtd-utils-native/1.5.1+gitAUTOINC+9f107132a6-r0/git/mkfs.ubifs/hashtable/hashtable_itr.h
+===================================================================
+--- a/mkfs.ubifs/hashtable/hashtable_itr.h
++++ b/mkfs.ubifs/hashtable/hashtable_itr.h
+@@ -27,22 +27,22 @@ hashtable_iterator(struct hashtable *h);
+ /*****************************************************************************/
+ /* hashtable_iterator_key
+  * - return the value of the (key,value) pair at the current position */
+-
++/*
+ extern inline void *
+ hashtable_iterator_key(struct hashtable_itr *i)
+ {
+     return i->e->k;
+ }
+-
++*/
+ /*****************************************************************************/
+ /* value - return the value of the (key,value) pair at the current position */
+-
++/*
+ extern inline 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 */
meta/recipes-devtools/mtd/mtd-utils_git.bb +1 -0
index 52297c6..f903a65 100644
@@ -11,6 +11,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://mtd-utils-fix-hashtable_iterator.patch \
 "
 
 PV = "1.5.1+git${SRCPV}"
Signature · 1 line
2.7.4
#1 lore raw

✗ patchtest: failure for mtd-utils: remove double hashtable iterator definition (rev4)

== Series Details ==

Series: mtd-utils: remove double hashtable iterator definition (rev4)
Revision: 4
URL : https://patchwork.openembedded.org/series/10612/
State : failure

== Summary ==

Thank you for submitting this patch series to OpenEmbedded Core. This is an automated response. Several tests have been executed on the proposed series by patchtest resulting in the following failures:

* Issue Series does not apply on top of target branch [test_series_merge_on_head]
Suggested fix Rebase your series on top of targeted branch
Targeted branch master (currently at 77144bc808)

* Issue Upstream-Status is Submitted, but it is not mentioned where [test_upstream_status_presence_format]

  Suggested fix    Include where mtd-utils-fix-hashtable_iterator.patch was submitted
  Current          Upstream-Status: Submitted to dizzy
  Standard format  Upstream-Status: Submitted [where]

If you believe any of these test results are incorrect, please reply to the mailing list ([email protected]) raising your concerns. Otherwise we would appreciate you correcting the issues and submitting a new version of the patchset if applicable. Please ensure you add/increment the version number when sending the new version (i.e. [PATCH] -> [PATCH v2] -> [PATCH v3] -> ...).

---

Guidelines:     https://www.openembedded.org/wiki/Commit_Patch_Message_Guidelines
Test framework: http://git.yoctoproject.org/cgit/cgit.cgi/patchtest
Test suite:     http://git.yoctoproject.org/cgit/cgit.cgi/patchtest-oe