[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Minios-devel] [UNIKRAFT/LWIP PATCH 5/5] patches: Declare mem_* functions only for lwip internal use


  • To: minios-devel@xxxxxxxxxxxxx
  • From: Costin Lupu <costin.lupu@xxxxxxxxx>
  • Date: Fri, 2 Aug 2019 15:57:43 +0300
  • Cc: felipe.huici@xxxxxxxxx, simon.kuenzer@xxxxxxxxx, sharan.santhanam@xxxxxxxxx
  • Delivery-date: Fri, 02 Aug 2019 12:58:00 +0000
  • Ironport-phdr: 9a23:RoAH2h9LPfn06P9uRHKM819IXTAuvvDOBiVQ1KB21+kcTK2v8tzYMVDF4r011RmVBN+duqMP0LKempujcFRI2YyGvnEGfc4EfD4+ouJSoTYdBtWYA1bwNv/gYn9yNs1DUFh44yPzahANS47xaFLIv3K98yMZFAnhOgppPOT1HZPZg9iq2+yo9JDffhtEiCC5bL52Ixm7oxndvdQKjIV/Lao81gHHqWZSdeRMwmNoK1OTnxLi6cq14ZVu7Sdete8/+sBZSan1cLg2QrJeDDQ9LmA6/9brugXZTQuO/XQTTGMbmQdVDgff7RH6WpDxsjbmtud4xSKXM9H6QawyVD+/6apgVR3mhzodNzMh8G/ZlNF+gqxYrhympRN/zZXZbJ2JOPdkYq/QZ88WSXZHU81MVyJBGIS8b44XAucfOuZYtJX9p1oIrRCjAwesGfvvyiJVjXLxwaI61P8hER3H3AwmBd4OtGnUrM3oNKoJTe+117PEzS3eb/xNwzv98o/IfwknrPqRXrxwadLcxVQgGg/YlFmdqozoMymL2ugTsWWX9eRtWfqyh2Motg19uDuiy8c2hoXXiI8YxErI+Th2zYorI9CzVVR1bsS+EJRKsiGXL452QsQ/TG52oCs60bgGuYKjfCgN1ZQn2wbTa/yZfIiM5RLuTPiRITJii3JkfLKznQq98VO6xu3kS8m7y0xGrjBCktXUt3AN0QLc6tSfR/dg8UqtxCyD2gPT5+1eP0w4i6jWJ4Qvz7Iok5ocq0XDHiv4mEXsi6+Wc10p9fSv6+T8frXmp5mcO5VwigHjKqQuh9eyDvgjMgQUR2ib5P+z2Kf5/U3+WLlKlOE5krHFsJDGIsQWvqu5Aw5T0oYi7Ba/FC6q38kGknkZMl1FfAmKj4zoO1HVPPD4Fu2zgluynzdt3fzGOafhAprVJHjZjLjhZap961JbyAcrw9BQ+ZZUCrAZIP3tQEPxtMHYDh4lPAy12OvnDsty2Z8aWW2VGaCVKr3dsUKQ7OI1P+aMfJMVuCr6K/U9/P7ujWU2mUUHcqmvx5cXc2q3HvJ6I0WZe3XshM0OEWIRswo4UuPllFmCXiRIaHqoQa08+ykxCJi6AofbWoCtnLuB0T+gHp1XY2BGDVaMHW3rd4WZRfgMbiOTLdF7kjEfU7iuVZMu1RW0uwDh0bZoMPfUqWUkssfm1d504PaWmRws+DhcC8WGz3rLX2xy2GQSSGwYxqd69Gd60UuC1+BcnuRFXYhY4OhVUwF8MYPE0sRxEJbqRwiHZNDfGwXuecmvHTxkFoF5+NQJeUsoQ9g=
  • Ironport-sdr: 8Eu9maPFV39VS6oJNKb5pZLjPiA0AqqtcRjO1v/VO/1GjKT2Br0d5bJ7frZx+nPR68/bUXKUnT RFayCwwVN4Hg==
  • List-id: Mini-os development list <minios-devel.lists.xenproject.org>

Openssl has its own mem_* functions declarations, which differ from the lwip
ones. Therefore we enable the lwip declarations only for lwip code.

Signed-off-by: Costin Lupu <costin.lupu@xxxxxxxxx>
---
 ...functions-only-for-lwip-internal-use.patch | 31 +++++++++++++++++++
 1 file changed, 31 insertions(+)
 create mode 100644 
patches/0003-Declare-mem_-functions-only-for-lwip-internal-use.patch

diff --git 
a/patches/0003-Declare-mem_-functions-only-for-lwip-internal-use.patch 
b/patches/0003-Declare-mem_-functions-only-for-lwip-internal-use.patch
new file mode 100644
index 0000000..1f594e4
--- /dev/null
+++ b/patches/0003-Declare-mem_-functions-only-for-lwip-internal-use.patch
@@ -0,0 +1,31 @@
+From f9306780b544b45cdb091695b486ba56a892e70d Mon Sep 17 00:00:00 2001
+From: Costin Lupu <costin.lup@xxxxxxxxx>
+Date: Fri, 2 Aug 2019 13:21:19 +0200
+Subject: [UNIKRAFT PATCH] Declare mem_* functions only for lwip internal use
+
+Signed-off-by: Costin Lupu <costin.lupu@xxxxxxxxx>
+---
+ src/include/lwip/mem.h | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/src/include/lwip/mem.h b/src/include/lwip/mem.h
+index 424de91..dbb5230 100644
+--- a/src/include/lwip/mem.h
++++ b/src/include/lwip/mem.h
+@@ -69,11 +69,13 @@ typedef u16_t mem_size_t;
+ #endif /* MEM_SIZE > 64000 */
+ #endif
+ 
++#ifdef __liblwip__
+ void  mem_init(void);
+ void *mem_trim(void *mem, mem_size_t size);
+ void *mem_malloc(mem_size_t size);
+ void *mem_calloc(mem_size_t count, mem_size_t size);
+ void  mem_free(void *mem);
++#endif
+ 
+ #ifdef __cplusplus
+ }
+-- 
+2.20.1
+
-- 
2.20.1


_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/minios-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.