From nobody Mon Jun 8 07:22:04 2026 Received: from mail-wm1-f42.google.com (mail-wm1-f42.google.com [209.85.128.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2E88C38E8BE for ; Sun, 31 May 2026 14:53:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.42 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780239226; cv=none; b=Z9c4N3RKr+/fa7pgwobfdqK1zo5MWYG0cniovGviRFdFMbevCNeTxHxp5uMlaZE0NRsn2YbT2GW+JUeaA9N/L2hdgR6tleaEj9sjjrRQ90GSscCbnYxNLY9TAoxlaEzSPxdzEJNGQi0gmoqeo//TR7wZewZKZ3pBpyvrVJcdGmI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780239226; c=relaxed/simple; bh=XK51geeL3+peWDyqzG1dtEA1t9N0Y1/v6t0z4dZe6eA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=b1Wj6yDYbPXajoVIN/0SL0Cm/dWB/n7JOAoyfHqbZIYSEEN5k33DPyZrPPl8cW6tjQ3e5waIBu8yahJ7DVjVHGMWkEX6tuAFHNdrRjEye07GkvMd7JDLi/Ll/BgYWvKEJOBDNstOIluVkg5t0ezfJ9JgXSaGZEb2ClDaASDkkmc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=Saow/BR8; arc=none smtp.client-ip=209.85.128.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Saow/BR8" Received: by mail-wm1-f42.google.com with SMTP id 5b1f17b1804b1-49039a8851fso95480085e9.2 for ; Sun, 31 May 2026 07:53:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1780239224; x=1780844024; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=cFQehZMTwDLdoBhXrsPY8v0PLCjeGjVTdtI7THwMy3A=; b=Saow/BR8NSyqvKaQWIzsTHW7f1LgOJ92i0jflT+Xlvl6nE1Jqmg0nb4ZaVqFzG6mjR R6anqEJKi07bTKLlpIHZGSY0Rdv4oDBrP0HP0I/cRmoT2H57EiKddAyX1jYikiYTcR6d 5qQwkekUZNQ4yPkIMX3RjYYc36NtTxQ3xznoH4AGbZKDAqxIszHjUvrOqna9M75OBaZ7 BGAUHYIABUaNsdukFnPaxubj3sY4+AZh7I3q9YXsf44NXzl090s9YwHKFeMUfGS15iTU LgSnPCeX1ec7AMVFt+jH3WqLBUDUo/v40dMxUMv594+1/oHeqdV5rIZz1DgwPC6Pu5tN EVGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1780239224; x=1780844024; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=cFQehZMTwDLdoBhXrsPY8v0PLCjeGjVTdtI7THwMy3A=; b=F/BUjeUFe93w+56UJBJnSzCmuJ1uEFoYAE9o1ggMW1VFUqEqxTbNshwEjZAkAsVPTx nPidFCZfZbsVsyxPHcqHObyg6mSPkqowWEKRdcW7OirfR1dU/rpJ27R4MtjCpqvMFSNG STb+pYctRPKqt/EpnQhfzCBVdDB1UmUTfDa0e7X2/HXuwMLHpEng4h9L41o1JWwLCHk+ XSE9+jlHE+N2q38kvl3J5ozHgVzzbG8P3zZL6wNMePED8UgE1lGBuFx+M3U/IQmc1bGb ZnaAvfd+ufYCW8ZD+UtM/8s3rT3vVluLnCUtuAtCxfOPXrS3+zzzrz7zhwJhkn5QrRp7 Yh3w== X-Forwarded-Encrypted: i=1; AFNElJ8RHPgm598aQCTknJ0Pk68+yY45UXfvkBUNje2Ef14mTOFjoEr+5MeJtD7s0wZ6PudbfDd64yYG9mpkQqU=@vger.kernel.org X-Gm-Message-State: AOJu0YwwwWB9NeIOFvAAK6X9Ius7uLGFeZSubD9YbzH37FbP08GOjA6z c3MEXfD6RvKy5b0+0qYgTN96wziD/qTUCCpKGe+2ZvNZnrHetTSI1dSY X-Gm-Gg: Acq92OG5rgotoDUzUbCkNdk3WAADx2b7s9dVMx4XE/SUyVQAiPEnKRS9MhZrG7XcFYL wfMvmQx3N2VI6fNQAuXygrdW2tOT0nTb069sJO01N5QsTj50x3s4F1jGpwQTKvbMm3NUb/O3esS a7JC7hWAjhADLRv5OJaMr5bWf3allbnmiP62rvf3QSJyyQqSdCZ3Dt+ECsDJo6YFxup1li++Jmc Q0PUnaowxyQoDBThVHXiD4htVLxuV8RDmavC8wDX4hKPR0e5WJrMy2CtRwflB5kt6DHUpTJ1avo DilqSvCpQDpp5lUkkgWvvLaEi+7zGNbB1LKDah+DgMUG/4pCHAI+JhwFduTG6zXwykbcyfYyhft iaP7OZ+Vn6sAg6ClHFqpThvDegrLIxgCG2bnxbvLBsEbAo+Tui9UMHgeiK34b/8hwkUtHdrElQJ o3T/BqMrKBxNSYRw0SCi+Oifc= X-Received: by 2002:a05:600c:4f89:b0:489:e696:8362 with SMTP id 5b1f17b1804b1-490a292ed68mr133428765e9.13.1780239223323; Sun, 31 May 2026 07:53:43 -0700 (PDT) Received: from hisam ([39.40.47.211]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4909c0ad269sm59217195e9.11.2026.05.31.07.53.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 31 May 2026 07:53:42 -0700 (PDT) From: Hisam Mehboob To: pbonzini@redhat.com Cc: seanjc@google.com, shuah@kernel.org, me@brighamcampbell.com, kvm@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kernel-mentees@lists.linuxfoundation.org, Hisam Mehboob Subject: [PATCH] tools/include/linux/types.h: add ulong typedef for musl compatibility Date: Sun, 31 May 2026 19:49:36 +0500 Message-ID: <20260531144934.403888-3-hisamshar@gmail.com> X-Mailer: git-send-email 2.51.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Building KVM selftests with musl libc fails across multiple files (e.g. memslot_perf_test.c, cpuid_test.c) with 'ulong' undeclared. Under glibc, includes , which exposes ulong. Under musl, includes only , and , and does not include . As a result, ulong is not visible through the current selftests include chain. include/linux/types.h already defines both ulong and ullong in its sysv aliases block. tools/include/linux/types.h mirrors ullong but omits ulong. Add ulong alongside ullong to close the gap. Signed-off-by: Hisam Mehboob --- tools/include/linux/types.h | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/include/linux/types.h b/tools/include/linux/types.h index d41f8a261bce..ccc90dd4baeb 100644 --- a/tools/include/linux/types.h +++ b/tools/include/linux/types.h @@ -42,6 +42,7 @@ typedef __s16 s16; typedef __u8 u8; typedef __s8 s8; =20 +typedef unsigned long ulong; typedef unsigned long long ullong; =20 #ifdef __CHECKER__ --=20 2.51.0