From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtpout-04.galae.net (smtpout-04.galae.net [185.171.202.116]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BC84E37F8C2 for ; Sat, 30 May 2026 09:49:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.171.202.116 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780134594; cv=none; b=R8Kg5sAyGVpx4UCdyzvlkAJg7xj4VaE4LCJiIoI6SsgsSvwTJXYXYjvlfKStyNOh10sLgdM6Af6k9H8+rARkmrK9QdexI1iCikQX71lDV4n1B9ENgH+9XwrgyZXx6LtD3jXi8Qf0Q2yhXoxfuAklk4FaZmOMEh3XT00kBkke/BQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780134594; c=relaxed/simple; bh=sYuVg5H8qMbuKaiZKfoMgvpbOwjWdic+ywKLiMcxcvE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=u3YdcHn7ZmBjyl5ebMXj8eOclBjqiMXdtUPQZfEYCXMhdqa7J1wCJnwaR302RrkCo6yRmHb3FAI2uQ34qYKxjpt64AsyUBliPZhCDIwyVWhWjC2Up9wt+E9vnvA+PPeXuxSORfTRSUHFoWKx5PeHsfOYK6gl5N2VEvgjdFwgI5E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=L11OBsgv; arc=none smtp.client-ip=185.171.202.116 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="L11OBsgv" Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-04.galae.net (Postfix) with ESMTPS id 28848C6246B; Sat, 30 May 2026 09:49:44 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 028536073B; Sat, 30 May 2026 09:49:43 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id B081310888054; Sat, 30 May 2026 11:49:41 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1780134582; h=from:subject:date:message-id:to:cc:mime-version: content-transfer-encoding; bh=XfDC+Gu+rbghAhtTaHjj4569TxJ3M0wucS16Ah6F1Qg=; b=L11OBsgvRs5LfY8cp83PQooc1Tx9SEXGawnwSQFZ1l02tgrAcbI36cYx3dUq14VQof88+A 9Hb8VVHjE5Jh7+KRR7hmjRm+tSUwcBl7S88noJVhldCkIcGEPM+JhZbg1TmwICoGmrChgS 507y51FSCSzK1wakQYvdQhAhbDLAcKe1NpmCwHKK/Vf2txT6f29zgvN5LNS2S8WebQSz/a hkCghx5TH8TBMyCV+2PAZm/GbQuf5b0urPWTdzBafknF4uKdyd/yJr3B3FpxdgICSCJBHc wPuymQpDfiTYrpjqJjcwx0ke5eR81xsUgyFWyBmiDQQGqTqes8fxbK0YmgGNqA== From: Thomas Petazzoni To: util-linux@vger.kernel.org Cc: Shubham Chakraborty , Thomas Petazzoni Subject: [PATCH] include/mountutils.h: fix LSMT_ROOT definition Date: Sat, 30 May 2026 11:49:32 +0200 Message-ID: <20260530094932.2351791-1-thomas.petazzoni@bootlin.com> X-Mailer: git-send-email 2.54.0 Precedence: bulk X-Mailing-List: util-linux@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Last-TLS-Session-Version: TLSv1.3 From: Shubham Chakraborty 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 [Thomas: improve commit message] Signed-off-by: Thomas Petazzoni --- include/mountutils.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/mountutils.h b/include/mountutils.h index 9eba451d4..057a29d90 100644 --- a/include/mountutils.h +++ b/include/mountutils.h @@ -371,7 +371,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.54.0