]> git-server-git.apps.pok.os.sepia.ceph.com Git - xfsprogs-dev.git/commitdiff
xfs_healer_start: fix static checking
authorDarrick J. Wong <djwong@kernel.org>
Thu, 11 Jun 2026 14:05:52 +0000 (07:05 -0700)
committerAndrey Albershteyn <aalbersh@kernel.org>
Wed, 17 Jun 2026 10:49:27 +0000 (12:49 +0200)
Fix static checking for the startup program's source code.  Alternately,
we could move it to its own subdirectory.

Signed-off-by: "Darrick J. Wong" <djwong@kernel.org>
Reviewed-by: Andrey Albershteyn <aalbersh@kernel.org>
healer/Makefile

index 49a48b52782e722bccdc8a3f3bf41fd00faba211..a95ef9586d369bb63005896f036f1921f49fe1b5 100644 (file)
@@ -50,9 +50,14 @@ LDIRT += $(SYSTEMD_SERVICES)
 
 default: depend $(BUILD_TARGETS) $(SYSTEMD_SERVICES)
 
+ifeq ($(CHECKSRC),2)
+xfs_healer_start: $(SUBDIRS) xfs_healer_start.o
+.PHONY: xfs_healer_start
+else
 xfs_healer_start: $(SUBDIRS) xfs_healer_start.o $(LTDEPENDENCIES)
        @echo "    [LD]     $@"
        $(Q)$(LTLINK) -o $@ $(LDFLAGS) xfs_healer_start.o $(LDLIBS)
+endif
 
 %.service: %.service.in $(builddefs)
        @echo "    [SED]    $@"