From nobody Sun Apr 5 18:00:40 2026 Received: from todd.t-8ch.de (todd.t-8ch.de [159.69.126.157]) (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 4BEBB3E5593; Thu, 2 Apr 2026 14:36:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=159.69.126.157 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775140589; cv=none; b=uqD2onLePJK+LckkTkQ+HlFDfaiQb2OVZPSEEoowTZBpYHcBTL4yfV01bDNUtmadE8PAvnUgj5x5vttetf9xolZfRzPlc0WwP3IVDviIVqRfHg4llrvKkEpXolFeuVBd9pE4+PJ7ZFaRtl2Eg0aNJWur+1vozAn29LXDRBjoRDM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775140589; c=relaxed/simple; bh=y3aIGMOp1b9VTDfNribT+T7Mf+FjPMAH9yNwJsDKdYs=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=PLDonjVCkW8chAalDVJK6ilBkQ4xojItoQOM1AK97NqWfoEWD1jxtIA/daSypUEZ1aIjI8P82HKVhJFzJcO03IN+368+fyYHGfgJza2R72WaC1nxaLKOgHCuaxMBvs2tHFGorevfS5QcuYlKGE9MXv6sEs5YJgRJFwPYsgCvzCs= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=weissschuh.net; spf=pass smtp.mailfrom=weissschuh.net; dkim=pass (1024-bit key) header.d=weissschuh.net header.i=@weissschuh.net header.b=GfsUKvWj; arc=none smtp.client-ip=159.69.126.157 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=weissschuh.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=weissschuh.net Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=weissschuh.net header.i=@weissschuh.net header.b="GfsUKvWj" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=weissschuh.net; s=mail; t=1775140579; bh=y3aIGMOp1b9VTDfNribT+T7Mf+FjPMAH9yNwJsDKdYs=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=GfsUKvWjtPB92Wb+RCOBssOJOuwdasKXPvWjDnOaWryixXcre8JD+s5m1X7S0ktOf ZtjZT9+rVGTQBPTCYD/8U62GhCxooIpB61duMF9Raa33SPUt61gohAEbfddtoWNaUC oaPlpZbyg2ic6PMrPorzQJzioCZJ/hNr4yPOORgQ= From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= Date: Thu, 02 Apr 2026 16:36:20 +0200 Subject: [PATCH v3 3/3] checksyscalls: move instance functionality into generic code Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260402-kbuild-missing-syscalls-v3-3-6641be1de2db@weissschuh.net> References: <20260402-kbuild-missing-syscalls-v3-0-6641be1de2db@weissschuh.net> In-Reply-To: <20260402-kbuild-missing-syscalls-v3-0-6641be1de2db@weissschuh.net> To: Arnd Bergmann , Thomas Bogendoerfer , Nathan Chancellor , Nicolas Schier Cc: linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org, linux-kbuild@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Mailer: b4 0.15.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1775140579; l=2042; i=linux@weissschuh.net; s=20221212; h=from:subject:message-id; bh=y3aIGMOp1b9VTDfNribT+T7Mf+FjPMAH9yNwJsDKdYs=; b=025Nt1dUd01x2J1nlRjnU7Vbl4wsIVyJa6X4qkP1YA4c2di+2OdaEPCAm8+NiI5IG7XSE7Cbz b9hbEko+VaqCz0eCauOoZLgQch8k5lUQXR6tLaC9PqItqwyxz0tr4iW X-Developer-Key: i=linux@weissschuh.net; a=ed25519; pk=KcycQgFPX2wGR5azS7RhpBqedglOZVgRPfdFSPB1LNw= On MIPS the checksyscalls.sh script may be executed multiple times. Currently these multiple executions are executed on each build as kbuild see that the commands have changed each time. Use a dedicated stamp file for each different invocation to avoid the spurious executions. Signed-off-by: Thomas Wei=C3=9Fschuh Acked-by: Arnd Bergmann Reviewed-by: Nicolas Schier --- Kbuild | 4 ++-- arch/mips/Makefile | 6 ++---- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/Kbuild b/Kbuild index 515cc6a27477..a6a0192dea08 100644 --- a/Kbuild +++ b/Kbuild @@ -47,11 +47,11 @@ $(rq-offsets-file): kernel/sched/rq-offsets.s FORCE =20 # Check for missing system calls =20 -missing-syscalls-file :=3D .tmp_missing-syscalls +missing-syscalls-file :=3D .tmp_missing-syscalls$(missing_syscalls_instanc= e) =20 targets +=3D $(missing-syscalls-file) =20 -quiet_cmd_syscalls =3D CALL $< +quiet_cmd_syscalls =3D CALL $< $(addprefix for ,$(missing_syscalls_inst= ance)) cmd_syscalls =3D DEPFILE=3D$(depfile) $(CONFIG_SHELL) $< $(CC) $(c_f= lags) $(missing_syscalls_flags); touch $@ =20 $(missing-syscalls-file): scripts/checksyscalls.sh $(rq-offsets-file) FORCE diff --git a/arch/mips/Makefile b/arch/mips/Makefile index d9057e29bc62..6705fa5d9211 100644 --- a/arch/mips/Makefile +++ b/arch/mips/Makefile @@ -421,12 +421,10 @@ CLEAN_FILES +=3D vmlinux.32 vmlinux.64 =20 archprepare: ifdef CONFIG_MIPS32_N32 - @$(kecho) ' Checking missing-syscalls for N32' - $(Q)$(MAKE) $(build)=3D. missing-syscalls missing_syscalls_flags=3D"-mabi= =3Dn32" + $(Q)$(MAKE) $(build)=3D. missing-syscalls missing_syscalls_instance=3D"N3= 2" missing_syscalls_flags=3D"-mabi=3Dn32" endif ifdef CONFIG_MIPS32_O32 - @$(kecho) ' Checking missing-syscalls for O32' - $(Q)$(MAKE) $(build)=3D. missing-syscalls missing_syscalls_flags=3D"-mabi= =3D32" + $(Q)$(MAKE) $(build)=3D. missing-syscalls missing_syscalls_instance=3D"O3= 2" missing_syscalls_flags=3D"-mabi=3D32" endif =20 install: --=20 2.53.0