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

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


  • To: Felipe Huici <Felipe.Huici@xxxxxxxxx>, Simon Kuenzer <simon.kuenzer@xxxxxxxxx>, "minios-devel@xxxxxxxxxxxxx" <minios-devel@xxxxxxxxxxxxx>
  • From: Costin Lupu <costin.lupu@xxxxxxxxx>
  • Date: Fri, 16 Aug 2019 09:07:44 +0200
  • Cc: Sharan Santhanam <Sharan.Santhanam@xxxxxxxxx>
  • Delivery-date: Fri, 16 Aug 2019 07:07:56 +0000
  • Ironport-phdr: 9a23:nd4gWRRMdVrGCvOvE+2L6iv81tpsv+yvbD5Q0YIujvd0So/mwa67ZRCOt8tkgFKBZ4jH8fUM07OQ7/m6HzVbu93Y6StKWacPfidNsd8RkQ0kDZzNImzAB9muURYHGt9fXkRu5XCxPBsdMs//Y1rPvi/6tmZKSV3wOgVvO+v6BJPZgdip2OCu4Z3TZBhDiCagbb9oIxi6sBvdutMLjYZsNKo9xQbFrmZGdu9L2W5mOFWfkgrm6Myt5pBj6SNQu/wg985ET6r3erkzQKJbAjo7LW07/dXnuhbfQwSB4HscSXgWnQFTAwfZ9hH6X4z+vTX8u+FgxSSVJ8z2TbQzWTS/86dmTQLjhSkbOzIl9mzcl9d9h7xHrh2/uxN/wpbUYICLO/p4YqPdZs4RSW5YUspMSyBNHoawYo0SBOQDIOlYtZHwqUYQoxuwBQeiB+3hxTFHiXD0waI03P8sER3f3AE6A94CrHrZodfzOawPUe611q7IzTDbYv5I3jf985TIchEnofqRW7xwbNLRyVQyHA7CklqQrpflPy+U1uQLqWSb6/dgVfqyi2M8tw5xuSKjxt8xiobSnI4V0FfE+Dx/zY0oK9O4T0t7bsSlEJtWryybOJV5QsU6Q2FyvyY6yKMJtoKnfCQQz5Qn3RHfZvqaeIaL+hLuTPudLDhliH5/e7+yhwy+/Va+xuD+TMW53k5Goy5Ln9XWuX0Bywbf5tWDR/dh5Eus3TmC2gbO4e9eO080j7DUK5s5z741kZocrFrMEzftmEXzkK+WbkIk+vW06+j/YrXpuJucN4hshwHgN6QhgM2/AeAiPgcSRGiX4/y81KD48kHjWrVKieU6kqjfsJ/EOcQWvrO1DgBI3oo56BuyDy2q3MoGkXQFNl5IdgqLj43zNFHPJPD4A+2/g1OpkDpz2//GOabhAonMLnjFirvheat961ZByAco0d9f/IhYCqkcIP3oQEPxrtvYAgcjMwOo2+bnFMl91oQGVGKKA6+ZNqLSsViT5u42PuaDepEVtyj5K/U+4/7ujGQ5mUMGfaWz0poYdna4Eu5hI0WDbnrmms0BHnsSvgoiUOzqj0WPXz5NaHa2XqI8/i80BJikA4feR4CinL2B0Ty9HpJIem9GDkqDHmzye4qaRvcGcDiSLdN5kjwYSbihTJcs2wyutADg0bpoNOzU9jcFu5350th1++3Tmgs09TNuCsSQyGeNQH9okWMMXTA5x7pzrlJgyl2by6h3n+RYFcBP5/NOSgo6Lp/cz+l9C9D0QA7BfcqJR0igQtSnHz4xVMk8w9kQbElhH9WtlAvM0zC0DL8IxPS3A8ka/6bdx3W5B9t8wHeOgIcsi1g+T41vKGyth4Z5+gPXDoSPnljP0+6RdKEb2mbu6WqF32eU9BVDUQt3V+PGQH0ZdEbMhdL07UfLRfmjFOJjekFEyMiDLbAPZtD3gFFuQPb4JM+Yc2+33WCqClzAkraNaovtYCAR0TvQDGAAkhsP5jCWOA54AT2u9THwFjtrQHnoeF/t96FatWumBhs/yBqWbksn06et5zYenrqEVvlVxLVS63RpkCl9AFvoh4GeMNGHvQc0OfwEOd4=
  • Ironport-sdr: DHMrVBut30r9dtKFU4sSbUrmNu1uvqe5ENTXXsjtYs0m02BR1/dpcqHuyK71hmc5K4ABG6bmh0 ViXoXmp0baMQ==
  • List-id: Mini-os development list <minios-devel.lists.xenproject.org>

Hi Felipe,

Please let me know if this happens again in v2. This patch is in deed a
bit weird. The 'src/include/lwip/mem.h' file in lwip origin code has
Windows End-Of-Lines, so the lines of patch changing the file have
Windows EOLs too. But the other lines of the patch have Unix EOLs.

Cheers,
Costin

On 8/15/19 4:53 PM, Felipe Huici wrote:
> Hi Costin,
> 
> In addition to Simon's comment below, this patch breaks the build:
> 
>   UNZIP   liblwip: lwip-2.1.2.zip
>   PATCH   liblwip: 0001-timeval-for-socket-c.patch
>   PATCH   liblwip: 
> 0002-Don-t-provide-file-status-flags-when-we-have-a-libc.patch
>   PATCH   liblwip: 
> 0003-Declare-mem_-functions-only-for-lwip-internal-use.patch
> 1 out of 1 hunk FAILED -- saving rejects to file src/include/lwip/mem.h.rej
> 
> -- Felipe
> 
> On 05.08.19, 14:27, "Simon Kuenzer" <simon.kuenzer@xxxxxxxxx> wrote:
> 
>     Hey,
>     
>     together with this patch, you could add the flag __liblwip__ (or written 
>     in capital letters) as library-local:
>     
>         LIBLWIP_CFLAGS-y   += -D__liblwip__
>     
>     What do you think?
>     
>     Thanks,
>     
>     Simon
>     
>     On 02.08.19 14:57, Costin Lupu wrote:
>     > 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
>     > +
>     > 
>     
> 
> _______________________________________________
> Minios-devel mailing list
> Minios-devel@xxxxxxxxxxxxxxxxxxxx
> https://lists.xenproject.org/mailman/listinfo/minios-devel
> 

_______________________________________________
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®.