Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp737468ybe; Fri, 6 Sep 2019 06:36:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqyUAH/yB6dr0h5Ui4lZixf7/3Cg2fFDVAw24FVcjhs6ClQmE9jKHl5LAZN5OZsx4fMC4Es0 X-Received: by 2002:a65:6713:: with SMTP id u19mr7519693pgf.403.1567777016124; Fri, 06 Sep 2019 06:36:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567777016; cv=none; d=google.com; s=arc-20160816; b=LsF7RekzRwMXkYEAvUR+LElMA5tbjFzLR98PDwYepLQsYh86tS2crTDdTNOIkZRHXs ZhQNNBTinxppCDoLeSQndcCJO3uFg791qmMQVi+oOotek3AWaOfWIdzmlXSTAi2ppnOz GPktqYcJOw7gUxPKhutnz53cv0dznX7CU/s031NU9fMy5M2seLjFSc5Hpp44ctfejvpj w6UWDkBrvroXYKPMAJk4aroKX1SX/Q6TqNJB3dHniD7hKCTyzGN65TJ6KBGatKKFeLLY IGHrs3WdFQ74IqJHHole68avQ2uCQ2cjPUhhPbUD3hMo4tr3bNteEOTu+zx8RRZ0iSQa rRCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=h8HI03N5BLgaFzntMBMsw92+79dMkbbsowzBAOlTbkM=; b=VDAvQA2cAOrtKFlWVoKZXRrn8qAI8nsnKFzlphuHvE7cHNTkgAub2uzl38a8insWY7 kh8imzJ5DINrp6DayT1apaB9J7liZAaotZUm+Cbpv2giMrIVGTmzJDRHe1rxwArJUo3Y yxhA5V2Ki6ey+/XA7aTE9gNqjqNjOqcvPqDl/mQfb6ZREZlSCKxGCQH6pVmtEO/IVh9A MsxqSyHmkCTxaU2F+3Dg8zeGGzZYifSxquolD4GJWLtBea3cmD6luPyfAB4Vr+UDY6q2 D7NM9UjCkga2UPHyGqtQygIEIlIlLt1nIK2iiqAPaTaaQHxjH5QgyzIFJah765IhPI4l Iqnw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 4si4807461plf.176.2019.09.06.06.36.40; Fri, 06 Sep 2019 06:36:56 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731167AbfIFGUM (ORCPT + 99 others); Fri, 6 Sep 2019 02:20:12 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:40232 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726525AbfIFGUM (ORCPT ); Fri, 6 Sep 2019 02:20:12 -0400 Received: from DGGEMS414-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id F0203237696BBB70532A; Fri, 6 Sep 2019 14:20:09 +0800 (CST) Received: from huawei.com (10.90.53.225) by DGGEMS414-HUB.china.huawei.com (10.3.19.214) with Microsoft SMTP Server id 14.3.439.0; Fri, 6 Sep 2019 14:20:00 +0800 From: yu kuai To: , , CC: , , , , Subject: [PATCH] xfs: include QUOTA, FATAL ASSERT build options in XFS_BUILD_OPTIONS Date: Fri, 6 Sep 2019 14:26:46 +0800 Message-ID: <1567751206-128735-1-git-send-email-yukuai3@huawei.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.90.53.225] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In commit d03a2f1b9fa8 ("xfs: include WARN, REPAIR build options in XFS_BUILD_OPTIONS"), Eric pointed out that the XFS_BUILD_OPTIONS string, shown at module init time and in modinfo output, does not currently include all available build options. So, he added in CONFIG_XFS_WARN and CONFIG_XFS_REPAIR. However, this is not enough, add in CONFIG_XFS_QUOTA and CONFIG_XFS_ASSERT_FATAL. Signed-off-by: yu kuai --- fs/xfs/xfs_super.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/fs/xfs/xfs_super.h b/fs/xfs/xfs_super.h index 763e43d..b552cf6 100644 --- a/fs/xfs/xfs_super.h +++ b/fs/xfs/xfs_super.h @@ -11,9 +11,11 @@ #ifdef CONFIG_XFS_QUOTA extern int xfs_qm_init(void); extern void xfs_qm_exit(void); +# define XFS_QUOTA_STRING "quota, " #else # define xfs_qm_init() (0) # define xfs_qm_exit() do { } while (0) +# define XFS_QUOTA_STRING #endif #ifdef CONFIG_XFS_POSIX_ACL @@ -50,6 +52,12 @@ extern void xfs_qm_exit(void); # define XFS_WARN_STRING #endif +#ifdef CONFIG_XFS_ASSERT_FATAL +# define XFS_ASSERT_FATAL_STRING "fatal assert, " +#else +# define XFS_ASSERT_FATAL_STRING +#endif + #ifdef DEBUG # define XFS_DBG_STRING "debug" #else @@ -63,6 +71,8 @@ extern void xfs_qm_exit(void); XFS_SCRUB_STRING \ XFS_REPAIR_STRING \ XFS_WARN_STRING \ + XFS_QUOTA_STRING \ + XFS_ASSERT_FATAL_STRING \ XFS_DBG_STRING /* DBG must be last */ struct xfs_inode; -- 2.7.4