Re: [PATCH] RDMA/mlx5: hide unused code

From: Jason Gunthorpe
Date: Tue Apr 01 2025 - 11:36:49 EST


On Tue, Apr 01, 2025 at 06:20:09PM +0300, Patrisious Haddad wrote:

> > > #ifdefing away half the file seems ugly.
> agreed, which is why I think mark bloch suggestion makes more sense, do you
> think it is okay ? or you think there is issues with it ?

I think you should split the file so we get the proper level of code
elimination.

But Mark's is small and sane enough to fix the build problems.

Jason