From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jason Gunthorpe Subject: Re: [PATCH 21/28] mlx5: Avoid gcc 5.4 warning -Wempty-body Date: Thu, 15 Sep 2016 09:19:27 -0600 Message-ID: <20160915151927.GA18154@obsidianresearch.com> References: <1473109698-31408-1-git-send-email-jgunthorpe@obsidianresearch.com> <1473109698-31408-22-git-send-email-jgunthorpe@obsidianresearch.com> <6214bd07-f40c-8458-73a2-c07383c5d85a@dev.mellanox.co.il> <20160914165519.GC16014@obsidianresearch.com> <20160915051840.GJ26069@leon.nu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <20160915051840.GJ26069-2ukJVAZIZ/Y@public.gmane.org> Sender: linux-rdma-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Leon Romanovsky Cc: Yishai Hadas , Doug Ledford , linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Devesh Sharma , Hal Rosenstock , Mike Marciniszyn , Moni Shoua , Sean Hefty , Steve Wise , Tatyana Nikolova , Vladimir Sokolovsky , Yishai Hadas List-Id: linux-rdma@vger.kernel.org On Thu, Sep 15, 2016 at 08:18:40AM +0300, Leon Romanovsky wrote: > > I just checked, the assembly is the same before/after modulo compiler > > non-determinism. There are no extra function calls. > > There is always inline attribute to tell to GCC to inline it. > #define ALWAYS_INLINE inline __attribute__ ((always_inline)) If Yishai is dead set against this then I'll use #define mlx5_dbg(fp, mask, format, arg...) do {} while(0) But this patch really is a nice little #ifdef cleanup with no performance down side. Jason -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html