Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 09793D2E9CA for ; Mon, 11 Nov 2024 09:35:24 +0000 (UTC) Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4Xn4Cb0V7Yz2yl1 for ; Mon, 11 Nov 2024 20:35:23 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; arc=none smtp.remote-ip=115.124.30.124 ARC-Seal: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1731317721; cv=none; b=IK/cCwp5mIv5/5P3nLXPyhsaNFJERnP1dy3LZ4kydWIUDl4T4qQjzmoghbg3a3/BLhegNqPE3hRMQDmGEc2Wn44EZI6VUQht7mINW7sIIqAcldcGJn2UecuVjbtuRrDxL2CAWedjlWBl3VJiXIp6ajcc4GgZ2GFfAQNPwXZRakH42OCDxsFGU+j7fLGmkv0pL69rxvYH80G3Xut/zQqeDvfttRvHcdjgy38bwMPXW604bKIfIXzGTGuyXDUBeiw2owXEhbYbkPx70zNtHurG6XTt6Jtk8fDnm9GWl5nPdHJloC+IpmJui0jIeFzJ03w5R2PDcUJMzkRmfzuAtEgAoA== ARC-Message-Signature: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1731317721; c=relaxed/relaxed; bh=imF9vXnbhK6tf9A//yaLBZDF5fuZWWgcXpd6NyPBo9A=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=DgwiIiQNq3WpUPoOZnHRmE2maBeweVLfZvT4z2XkGmQAbjjikgQ0ShgdsbKprVSS8YZOEussgY7kdfNtNhlg1jtKs7HBONnu3p7b7dYaP1yEkknGSJ7rV9A9JHFDwAUDMziWGAN+zQrznJpsUHEKxH6yhs44JZ76sprdmpO/ra5ErK/m2QwQ5UzolcC1tR0lVpTRqOyxk8fGX+Uh/am4PqYPR28ahr+1xM5XANOkDG2zAUv0FFfreYDOVpbZB6n0VXMiXCqtLIDj1CLZpficXRbHyp2TyHm5QiKQ/pJRqMvW3CJj8ev8pgzdQI5NEwrbFXrNtkXs7kIxgBVwLe+Sqw== ARC-Authentication-Results: i=1; lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com; dkim=pass (1024-bit key; unprotected) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.a=rsa-sha256 header.s=default header.b=Jw+4gNxN; dkim-atps=neutral; spf=pass (client-ip=115.124.30.124; helo=out30-124.freemail.mail.aliyun.com; envelope-from=hongzhen@linux.alibaba.com; receiver=lists.ozlabs.org) smtp.mailfrom=linux.alibaba.com Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com Authentication-Results: lists.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.a=rsa-sha256 header.s=default header.b=Jw+4gNxN; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=linux.alibaba.com (client-ip=115.124.30.124; helo=out30-124.freemail.mail.aliyun.com; envelope-from=hongzhen@linux.alibaba.com; receiver=lists.ozlabs.org) Received: from out30-124.freemail.mail.aliyun.com (out30-124.freemail.mail.aliyun.com [115.124.30.124]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4Xn4CV2Qs5z2yG9 for ; Mon, 11 Nov 2024 20:35:13 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.alibaba.com; s=default; t=1731317708; h=From:To:Subject:Date:Message-ID:MIME-Version; bh=imF9vXnbhK6tf9A//yaLBZDF5fuZWWgcXpd6NyPBo9A=; b=Jw+4gNxN7kbYq++zmjpl5vkhiQiKA2NnevGuNFl3SH4gsi2bMzXAO2JHC4Umia3pdaHpOrI8F21ycERJZi0w0qrghDj31JQHXbwNJ/nYxvb/gBJ0WDxJ+J93Q4ayXOpRngrFOzHgA8iSUqo25KgqYdFUx23+EESiMMJg2+ntnZU= Received: from localhost(mailfrom:hongzhen@linux.alibaba.com fp:SMTPD_---0WJ91TM7_1731317706 cluster:ay36) by smtp.aliyun-inc.com; Mon, 11 Nov 2024 17:35:06 +0800 From: Hongzhen Luo To: linux-erofs@lists.ozlabs.org Subject: [PATCH] erofs-utils: lib: rearrange struct erofs_configure Date: Mon, 11 Nov 2024 17:35:04 +0800 Message-ID: <20241111093504.3784696-1-hongzhen@linux.alibaba.com> X-Mailer: git-send-email 2.43.5 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: linux-erofs@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development of Linux EROFS file system List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: linux-erofs-bounces+linux-erofs=archiver.kernel.org@lists.ozlabs.org Sender: "Linux-erofs" Move the content defined by the NDEBUG macro to the end. The reason for doing this is to maintain a consistent layout for all preceding variables when a third-party application defines NDEBUG while erofs-utils does not (by default). Fixes: ad6c80dc168d ("erofs-utils: lib: add erofs_get_configure()") Signed-off-by: Hongzhen Luo --- include/erofs/config.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/erofs/config.h b/include/erofs/config.h index ae366c150232..cff4ceadb7bc 100644 --- a/include/erofs/config.h +++ b/include/erofs/config.h @@ -46,10 +46,6 @@ struct erofs_configure { int c_dbg_lvl; bool c_dry_run; bool c_legacy_compress; -#ifndef NDEBUG - bool c_random_pclusterblks; - bool c_random_algorithms; -#endif char c_timeinherit; char c_chunkbits; bool c_inline_data; @@ -94,6 +90,10 @@ struct erofs_configure { char *fs_config_file; char *block_list_file; #endif +#ifndef NDEBUG + bool c_random_pclusterblks; + bool c_random_algorithms; +#endif }; extern struct erofs_configure cfg; -- 2.43.5