From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BB020C4338F for ; Tue, 24 Aug 2021 05:44:07 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 96CD161248 for ; Tue, 24 Aug 2021 05:44:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231296AbhHXFou (ORCPT ); Tue, 24 Aug 2021 01:44:50 -0400 Received: from verein.lst.de ([213.95.11.211]:50191 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229885AbhHXFou (ORCPT ); Tue, 24 Aug 2021 01:44:50 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id 7FCB867357; Tue, 24 Aug 2021 07:44:03 +0200 (CEST) Date: Tue, 24 Aug 2021 07:44:03 +0200 From: Christoph Hellwig To: Dan Williams Cc: Christoph Hellwig , Vishal Verma , Dave Jiang , Mike Snitzer , Matthew Wilcox , linux-xfs , Linux NVDIMM , linux-fsdevel , linux-ext4 Subject: Re: [PATCH 7/9] dax: stub out dax_supported for !CONFIG_FS_DAX Message-ID: <20210824054403.GA23025@lst.de> References: <20210823123516.969486-1-hch@lst.de> <20210823123516.969486-8-hch@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-xfs@vger.kernel.org On Mon, Aug 23, 2021 at 02:15:47PM -0700, Dan Williams wrote: > > +static inline bool dax_supported(struct dax_device *dax_dev, > > + struct block_device *bdev, int blocksize, sector_t start, > > + sector_t len) > > +{ > > + return false; > > +} > > I've started clang-formatting new dax and nvdimm code: > > static inline bool dax_supported(struct dax_device *dax_dev, > struct block_device *bdev, int blocksize, > sector_t start, sector_t len) > { > return false; > } > > ...but I also don't mind staying consistent with the surrounding code for now. While Linux has historically used both styles, I find this second one pretty horrible. It is hard to read due to the huge amounts of wasted space, and needs constant realignment when the return type or symbol name changes.