| From 72ff3b8998a675900fcb7c18c0e03f1552b13a8b Mon Sep 17 00:00:00 2001 |
| From: Shubham Chakraborty <chakrabortyshubham66@gmail.com> |
| Date: Tue, 14 Apr 2026 11:04:08 +0530 |
| Subject: [PATCH] include/mount-api-utils.h: fix LSMT_ROOT definition |
| |
| Commit |
| ded434a63f3eee7fd7805b18d6c9bb912016c3c8 ("include/mount-api-utils: |
| add statmount and listmount") introduce a fallback definition for the |
| LSMT_ROOT defined, but a small typo makes this fallback definition |
| ineffective: |
| |
| #ifdef LSMT_ROOT |
| # define LSMT_ROOT ... |
| #endif |
| |
| Should obviously have been: |
| |
| #ifndef LSMT_ROOT |
| # define LSMT_ROOT ... |
| #endif |
| |
| Signed-off-by: Shubham Chakraborty <chakrabortyshubham66@gmail.com> |
| Upstream: https://lore.kernel.org/util-linux/20260530094932.2351791-1-thomas.petazzoni@bootlin.com/T/#u |
| Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> |
| --- |
| include/mount-api-utils.h | 2 +- |
| 1 file changed, 1 insertion(+), 1 deletion(-) |
| |
| diff --git a/include/mount-api-utils.h b/include/mount-api-utils.h |
| index a916f99..87e173e 100644 |
| --- a/include/mount-api-utils.h |
| +++ b/include/mount-api-utils.h |
| @@ -339,7 +339,7 @@ struct ul_statmount { |
| /* |
| * Special @mnt_id values that can be passed to listmount |
| */ |
| -#ifdef LSMT_ROOT |
| +#ifndef LSMT_ROOT |
| # define LSMT_ROOT 0xffffffffffffffff /* root mount */ |
| #endif |
| |
| -- |
| 2.53.0 |
| |