[ofa-general] Re: [PATCH] osm: Converting the the C++ code to C in osm_ucast_lash.c
Michael S. Tsirkin
mst at mellanox.co.il
Wed Mar 7 00:40:58 PST 2007
> Quoting Yevgeny Kliteynik <kliteyn at dev.mellanox.co.il>:
> Subject: Re: [PATCH] osm: Converting the the C++ code to C in osm_ucast_lash.c
>
>
> Michael S. Tsirkin wrote:
> >> Hi Hal.
> >>
> >> Converting the the C++ code to C.
> >>
> >> Please apply both to trunk and to 1.2
> >>
> >> Thanks.
> >>
> >> Signed-off-by: Yevgeny Kliteynik <kliteyn at dev.mellanox.co.il>
> >
> > NAK.
> > 1. I don't see any C++ here.
> >
> > 2. Why do we need this on ofed branch?
> > Only bugfixes should go there. What bug does it fix?
>
> There are 3 things in this patch:
> 1. int i -> uint16_t i
> 2. Moving variable declaration (switch_bitmap) to the beginning
> of the function (currently, it is declared after OSM_LOG_ENTER)
> 3. Changing C99 dynamically allocated array to the old style.
>
> First two can be categorized as bugs.
>
> The third one is for compiler on windows.
>
> Each of these elements breaks OSM compilation on Windows.
>
> If we don't include either of these, then OFED 1.2 OpenSM compilation
> on windows will be broken.
Ultimately, whether to merge this this and where is up to the maintainer. But I
note that OFED 1.2 goals do not include windows builds. Why aren't you using the
master branch on windows?
Change 3 seems fairly big, and since it's not a bugfix, I'd be inclined
not to put it on ofed_1_2 branch.
--
MST
More information about the general
mailing list