Skip to contentSkip to conversation

+ kselftest-alloc_tag-use-the-ll64-types-on-powerpc64.patch added to mm-unstable branch

PATCH Andrew Morton 1 participant 1 message Nov 10

lore
Share & tools
lore

Andrew Morton

author tree notice
#0 lore raw

The patch titled
Subject: kselftest: alloc_tag: use the ll64 types on powerpc64
has been added to the -mm mm-unstable branch. Its filename is
kselftest-alloc_tag-use-the-ll64-types-on-powerpc64.patch

This patch will shortly appear at
https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/kselftest-alloc_tag-use-the-ll64-types-on-powerpc64.patch

This patch will later appear in the mm-unstable branch at
git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***

The -mm tree is included into linux-next via various branches at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
and is updated there most days

------------------------------------------------------
From: Sasha Levin <[email protected]>
Subject: kselftest: alloc_tag: use the ll64 types on powerpc64
Date: Tue, 03 Nov 2026 10:54:54 -0500

On powerpc64 __u64 is an unsigned long unless __SANE_USERSPACE_TYPES__ is defined, so printing and scanning the __u64 fields with %llu warns:

allocinfo_ioctl_test.c:93:73: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 2 has type '__u64' {aka 'long unsigned int'} [-Wformat=]

Define __SANE_USERSPACE_TYPES__, as other selftests do.

---

 tools/testing/selftests/alloc_tag/allocinfo_ioctl_test.c |    1 +
 1 file changed, 1 insertion(+)
tools/testing/selftests/alloc_tag/allocinfo_ioctl_test.c renamed from tools/testing/selftests/alloc_tag/allocinfo_ioctl_test.c~kselftest-alloc_tag-use-the-ll64-types-on-powerpc64 +1 -0
@@ -1,4 +1,5 @@
 // SPDX-License-Identifier: GPL-2.0-only
+#define __SANE_USERSPACE_TYPES__
 
 /* kselftest for allocinfo ioctl
  * allocinfo ioctl retrieves allocinfo data through ioctl

_

Patches currently in -mm which might be from [email protected] are

selftests-proc-cast-the-procmap_query-address-through-uintptr_t.patch selftests-mm-fix-pointer-width-warnings-on-32-bit-architectures.patch selftests-mm-uffd-wp-mremap-keep-the-thp-sizes-in-unsigned-long.patch kselftest-alloc_tag-use-the-ll64-types-on-powerpc64.patch selftests-proc-search-the-kernel-headers-before-the-tools-copies.patch selftests-prctl-select-the-tests-by-arch-alone.patch