]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
quota-util: explicitly include linux/quota.h
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 11 Jul 2025 08:17:43 +0000 (17:17 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 11 Jul 2025 08:26:28 +0000 (17:26 +0900)
The header linux/quota.h provides e.g. QIF_DQBLKSIZE or PRJQUOTA, which
is used where the quota-util.h is included.
Let's explicitly include the header with 'IWYU pragma: export' tag.

src/shared/quota-util.h

index ec4da0cbb89fe9bb4c36073a9006bfec98fd7513..2e82b94134bc54a3228c0ed2781bfe834dd0e6a5 100644 (file)
@@ -1,7 +1,8 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 #pragma once
 
-#include <sys/quota.h> /* IWYU pragma: export */
+#include <linux/quota.h>        /* IWYU pragma: export */
+#include <sys/quota.h>          /* IWYU pragma: export */
 
 #include "forward.h"