From nobody Sun Jun 28 08:38:01 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id ED52BC433EF for ; Thu, 10 Feb 2022 02:20:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231587AbiBJCUx (ORCPT ); Wed, 9 Feb 2022 21:20:53 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:39694 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230372AbiBJCUj (ORCPT ); Wed, 9 Feb 2022 21:20:39 -0500 Received: from condef-05.nifty.com (condef-05.nifty.com [202.248.20.70]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8B13722B36; Wed, 9 Feb 2022 18:20:38 -0800 (PST) Received: from conuserg-12.nifty.com ([10.126.8.75])by condef-05.nifty.com with ESMTP id 21A2CEgX007238; Thu, 10 Feb 2022 11:12:14 +0900 Received: from localhost.localdomain (133-32-232-101.west.xps.vectant.ne.jp [133.32.232.101]) (authenticated) by conuserg-12.nifty.com with ESMTP id 21A2BVGw030193; Thu, 10 Feb 2022 11:11:32 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-12.nifty.com 21A2BVGw030193 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1644459092; bh=9rlTIDf+U0DYlyosnkaUCepGIAJ7vKKws/NpiQ+PL4I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BX06GH+WTisBdFFp+EltlSA9tkoYjTNeBLO7faiKnMDs7ZLUmIsKRWStl5IhyytnX PYJGfycgxdchdg12CxlQoENG8h9dVJFRLEOE5kpRGXBkVRAukfS87erh35xanyWtvQ QAQPOPAGSc6IcOr9vHsXKARlCN83342LfRCHcxQy/aiLrLLHDqH3hVEPK9aJmhfYrg YhYutTdWp/eMzVoIsD8wVBxf56ihdHWdWwtnSVorxcDXqwVYN50JYWcglod/oWsIsu e+W/jMKXF4K6MvXOVnJiMTPdMmVtxXVdvL9UvkMAWi6GHkhSDu1twcEjuCXWdqzpI0 bI7Zvcnr1SnJw== X-Nifty-SrcIP: [133.32.232.101] From: Masahiro Yamada To: Andrew Morton Cc: linux-arch@vger.kernel.org, Arnd Bergmann , linux-kernel@vger.kernel.org, Masahiro Yamada Subject: [PATCH 1/6] signal.h: add linux/signal.h and asm/signal.h to UAPI compile-test coverage Date: Thu, 10 Feb 2022 11:11:24 +0900 Message-Id: <20220210021129.3386083-2-masahiroy@kernel.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220210021129.3386083-1-masahiroy@kernel.org> References: <20220210021129.3386083-1-masahiroy@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org linux/signal.h and asm/signal.h are currently excluded from the UAPI compile-test because of the errors like follows: HDRTEST usr/include/asm/signal.h In file included from : ./usr/include/asm/signal.h:103:9: error: unknown type name =E2=80=98size_= t=E2=80=99 103 | size_t ss_size; | ^~~~~~ The errors can be fixed by replacing size_t with __kernel_size_t. Then, remove the no-header-test entries from user/include/Makefile. Signed-off-by: Masahiro Yamada Acked-by: Geert Uytterhoeven Reviewed-by: Arnd Bergmann Reviewed-by: Dmitry V. Levin Reviewed-by: Geert Uytterhoeven --- arch/alpha/include/uapi/asm/signal.h | 2 +- arch/arm/include/uapi/asm/signal.h | 2 +- arch/h8300/include/uapi/asm/signal.h | 2 +- arch/ia64/include/uapi/asm/signal.h | 2 +- arch/m68k/include/uapi/asm/signal.h | 2 +- arch/mips/include/uapi/asm/signal.h | 2 +- arch/parisc/include/uapi/asm/signal.h | 2 +- arch/powerpc/include/uapi/asm/signal.h | 2 +- arch/s390/include/uapi/asm/signal.h | 2 +- arch/sparc/include/uapi/asm/signal.h | 3 ++- arch/x86/include/uapi/asm/signal.h | 2 +- arch/xtensa/include/uapi/asm/signal.h | 2 +- include/uapi/asm-generic/signal.h | 2 +- usr/include/Makefile | 2 -- 14 files changed, 14 insertions(+), 15 deletions(-) diff --git a/arch/alpha/include/uapi/asm/signal.h b/arch/alpha/include/uapi= /asm/signal.h index a69dd8d080a8..1413075f7616 100644 --- a/arch/alpha/include/uapi/asm/signal.h +++ b/arch/alpha/include/uapi/asm/signal.h @@ -100,7 +100,7 @@ struct sigaction { typedef struct sigaltstack { void __user *ss_sp; int ss_flags; - size_t ss_size; + __kernel_size_t ss_size; } stack_t; =20 /* sigstack(2) is deprecated, and will be withdrawn in a future version diff --git a/arch/arm/include/uapi/asm/signal.h b/arch/arm/include/uapi/asm= /signal.h index c9a3ea1d8d41..9e2178420db2 100644 --- a/arch/arm/include/uapi/asm/signal.h +++ b/arch/arm/include/uapi/asm/signal.h @@ -93,7 +93,7 @@ struct sigaction { typedef struct sigaltstack { void __user *ss_sp; int ss_flags; - size_t ss_size; + __kernel_size_t ss_size; } stack_t; =20 =20 diff --git a/arch/h8300/include/uapi/asm/signal.h b/arch/h8300/include/uapi= /asm/signal.h index 2cd0dce2b6a6..1165481f80f6 100644 --- a/arch/h8300/include/uapi/asm/signal.h +++ b/arch/h8300/include/uapi/asm/signal.h @@ -85,7 +85,7 @@ struct sigaction { typedef struct sigaltstack { void *ss_sp; int ss_flags; - size_t ss_size; + __kernel_size_t ss_size; } stack_t; =20 =20 diff --git a/arch/ia64/include/uapi/asm/signal.h b/arch/ia64/include/uapi/a= sm/signal.h index 38166a88e4c9..63d574e802a2 100644 --- a/arch/ia64/include/uapi/asm/signal.h +++ b/arch/ia64/include/uapi/asm/signal.h @@ -90,7 +90,7 @@ struct siginfo; typedef struct sigaltstack { void __user *ss_sp; int ss_flags; - size_t ss_size; + __kernel_size_t ss_size; } stack_t; =20 =20 diff --git a/arch/m68k/include/uapi/asm/signal.h b/arch/m68k/include/uapi/a= sm/signal.h index 4619291df601..80f520b9b10b 100644 --- a/arch/m68k/include/uapi/asm/signal.h +++ b/arch/m68k/include/uapi/asm/signal.h @@ -83,7 +83,7 @@ struct sigaction { typedef struct sigaltstack { void __user *ss_sp; int ss_flags; - size_t ss_size; + __kernel_size_t ss_size; } stack_t; =20 #endif /* _UAPI_M68K_SIGNAL_H */ diff --git a/arch/mips/include/uapi/asm/signal.h b/arch/mips/include/uapi/a= sm/signal.h index e6c78a15cb2f..94a00f82e373 100644 --- a/arch/mips/include/uapi/asm/signal.h +++ b/arch/mips/include/uapi/asm/signal.h @@ -100,7 +100,7 @@ struct sigaction { /* IRIX compatible stack_t */ typedef struct sigaltstack { void __user *ss_sp; - size_t ss_size; + __kernel_size_t ss_size; int ss_flags; } stack_t; =20 diff --git a/arch/parisc/include/uapi/asm/signal.h b/arch/parisc/include/ua= pi/asm/signal.h index e5a2657477ac..8e4895c5ea5d 100644 --- a/arch/parisc/include/uapi/asm/signal.h +++ b/arch/parisc/include/uapi/asm/signal.h @@ -67,7 +67,7 @@ struct siginfo; typedef struct sigaltstack { void __user *ss_sp; int ss_flags; - size_t ss_size; + __kernel_size_t ss_size; } stack_t; =20 #endif /* !__ASSEMBLY */ diff --git a/arch/powerpc/include/uapi/asm/signal.h b/arch/powerpc/include/= uapi/asm/signal.h index 04873dd311c2..37d41d87c45b 100644 --- a/arch/powerpc/include/uapi/asm/signal.h +++ b/arch/powerpc/include/uapi/asm/signal.h @@ -86,7 +86,7 @@ struct sigaction { typedef struct sigaltstack { void __user *ss_sp; int ss_flags; - size_t ss_size; + __kernel_size_t ss_size; } stack_t; =20 =20 diff --git a/arch/s390/include/uapi/asm/signal.h b/arch/s390/include/uapi/a= sm/signal.h index 0189f326aac5..e74d6ba1bd3b 100644 --- a/arch/s390/include/uapi/asm/signal.h +++ b/arch/s390/include/uapi/asm/signal.h @@ -108,7 +108,7 @@ struct sigaction { typedef struct sigaltstack { void __user *ss_sp; int ss_flags; - size_t ss_size; + __kernel_size_t ss_size; } stack_t; =20 =20 diff --git a/arch/sparc/include/uapi/asm/signal.h b/arch/sparc/include/uapi= /asm/signal.h index 53758d53ac0e..d395af9b46d2 100644 --- a/arch/sparc/include/uapi/asm/signal.h +++ b/arch/sparc/include/uapi/asm/signal.h @@ -2,6 +2,7 @@ #ifndef _UAPI__SPARC_SIGNAL_H #define _UAPI__SPARC_SIGNAL_H =20 +#include #include #include =20 @@ -171,7 +172,7 @@ struct __old_sigaction { typedef struct sigaltstack { void __user *ss_sp; int ss_flags; - size_t ss_size; + __kernel_size_t ss_size; } stack_t; =20 =20 diff --git a/arch/x86/include/uapi/asm/signal.h b/arch/x86/include/uapi/asm= /signal.h index 164a22a72984..777c3a0f4e23 100644 --- a/arch/x86/include/uapi/asm/signal.h +++ b/arch/x86/include/uapi/asm/signal.h @@ -104,7 +104,7 @@ struct sigaction { typedef struct sigaltstack { void __user *ss_sp; int ss_flags; - size_t ss_size; + __kernel_size_t ss_size; } stack_t; =20 #endif /* __ASSEMBLY__ */ diff --git a/arch/xtensa/include/uapi/asm/signal.h b/arch/xtensa/include/ua= pi/asm/signal.h index 79ddabaa4e5d..b8c824dd4b74 100644 --- a/arch/xtensa/include/uapi/asm/signal.h +++ b/arch/xtensa/include/uapi/asm/signal.h @@ -103,7 +103,7 @@ struct sigaction { typedef struct sigaltstack { void *ss_sp; int ss_flags; - size_t ss_size; + __kernel_size_t ss_size; } stack_t; =20 #endif /* __ASSEMBLY__ */ diff --git a/include/uapi/asm-generic/signal.h b/include/uapi/asm-generic/s= ignal.h index f634822906e4..0eb69dc8e572 100644 --- a/include/uapi/asm-generic/signal.h +++ b/include/uapi/asm-generic/signal.h @@ -85,7 +85,7 @@ struct sigaction { typedef struct sigaltstack { void __user *ss_sp; int ss_flags; - size_t ss_size; + __kernel_size_t ss_size; } stack_t; =20 #endif /* __ASSEMBLY__ */ diff --git a/usr/include/Makefile b/usr/include/Makefile index 8dbd1d8a245f..e7230a5a402a 100644 --- a/usr/include/Makefile +++ b/usr/include/Makefile @@ -24,7 +24,6 @@ override c_flags =3D $(UAPI_CFLAGS) -Wp,-MMD,$(depfile) -= I$(objtree)/usr/include # # Sorted alphabetically. no-header-test +=3D asm/shmbuf.h -no-header-test +=3D asm/signal.h no-header-test +=3D asm/ucontext.h no-header-test +=3D drm/vmwgfx_drm.h no-header-test +=3D linux/am437x-vpfe.h @@ -44,7 +43,6 @@ no-header-test +=3D linux/patchkey.h no-header-test +=3D linux/phonet.h no-header-test +=3D linux/reiserfs_xattr.h no-header-test +=3D linux/sctp.h -no-header-test +=3D linux/signal.h no-header-test +=3D linux/sysctl.h no-header-test +=3D linux/usb/audio.h no-header-test +=3D linux/v4l2-mediabus.h --=20 2.32.0 From nobody Sun Jun 28 08:38:01 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 10B4CC433F5 for ; Thu, 10 Feb 2022 02:19:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230401AbiBJCTF (ORCPT ); Wed, 9 Feb 2022 21:19:05 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:38896 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229704AbiBJCS7 (ORCPT ); Wed, 9 Feb 2022 21:18:59 -0500 Received: from condef-01.nifty.com (condef-01.nifty.com [202.248.20.66]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AB7A725CA; Wed, 9 Feb 2022 18:19:00 -0800 (PST) Received: from conuserg-12.nifty.com ([10.126.8.75])by condef-01.nifty.com with ESMTP id 21A2CEFY024863; Thu, 10 Feb 2022 11:12:14 +0900 Received: from localhost.localdomain (133-32-232-101.west.xps.vectant.ne.jp [133.32.232.101]) (authenticated) by conuserg-12.nifty.com with ESMTP id 21A2BVGx030193; Thu, 10 Feb 2022 11:11:32 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-12.nifty.com 21A2BVGx030193 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1644459093; bh=BgrcsyoUOdWLgz4rAIphuCEW51c0c/5R+2Ow60R9bB4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=feNGzLID3LYlOV5n4mKLtXUPF4kgKQ2Abd84X5tlxdFtpKDaiFAVs2xfCcQu8cEDS k+4p/Bb6BN8a+1umUvAc6TkLtPggeYWvpayf5A+miDrgOhCB/hRBx+ph1lV8anUzGp cwTSRrfsVyUDhmq6inujkOyNMVPCbifK8cLYH/OiMygLh7DzITppkBYKgabDuxXHFM kR7BnOAjsO1CGP8TfFpcwq4qWD9cb3BK/Wy960k0eOySl1QQv+RYuTGatFa9g8H21Z Vf4rYyrQj8UgKnAn7Omy/MTrV3ZIvvWnXWfqNCPxUzkA/LfLMqqfc5l5/aezzWpTL6 IacZ41RYUZTMg== X-Nifty-SrcIP: [133.32.232.101] From: Masahiro Yamada To: Andrew Morton Cc: linux-arch@vger.kernel.org, Arnd Bergmann , linux-kernel@vger.kernel.org, Masahiro Yamada Subject: [PATCH 2/6] shmbuf.h: add asm/shmbuf.h to UAPI compile-test coverage Date: Thu, 10 Feb 2022 11:11:25 +0900 Message-Id: <20220210021129.3386083-3-masahiroy@kernel.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220210021129.3386083-1-masahiroy@kernel.org> References: <20220210021129.3386083-1-masahiroy@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org asm/shmbuf.h is currently excluded from the UAPI compile-test because of the errors like follows: HDRTEST usr/include/asm/shmbuf.h In file included from ./usr/include/asm/shmbuf.h:6, from : ./usr/include/asm-generic/shmbuf.h:26:33: error: field =E2=80=98shm_perm= =E2=80=99 has incomplete type 26 | struct ipc64_perm shm_perm; /* operation perm= s */ | ^~~~~~~~ ./usr/include/asm-generic/shmbuf.h:27:9: error: unknown type name =E2=80= =98size_t=E2=80=99 27 | size_t shm_segsz; /* size of segmen= t (bytes) */ | ^~~~~~ ./usr/include/asm-generic/shmbuf.h:40:9: error: unknown type name =E2=80= =98__kernel_pid_t=E2=80=99 40 | __kernel_pid_t shm_cpid; /* pid of creator= */ | ^~~~~~~~~~~~~~ ./usr/include/asm-generic/shmbuf.h:41:9: error: unknown type name =E2=80= =98__kernel_pid_t=E2=80=99 41 | __kernel_pid_t shm_lpid; /* pid of last op= erator */ | ^~~~~~~~~~~~~~ The errors can be fixed by replacing size_t with __kernel_size_t and by including proper headers. Then, remove the no-header-test entry from user/include/Makefile. Signed-off-by: Masahiro Yamada Reviewed-by: Arnd Bergmann --- arch/mips/include/uapi/asm/shmbuf.h | 7 +++++-- arch/parisc/include/uapi/asm/shmbuf.h | 2 ++ arch/powerpc/include/uapi/asm/shmbuf.h | 5 ++++- arch/sparc/include/uapi/asm/shmbuf.h | 5 ++++- arch/x86/include/uapi/asm/shmbuf.h | 6 +++++- arch/xtensa/include/uapi/asm/shmbuf.h | 5 ++++- include/uapi/asm-generic/shmbuf.h | 4 +++- usr/include/Makefile | 1 - 8 files changed, 27 insertions(+), 8 deletions(-) diff --git a/arch/mips/include/uapi/asm/shmbuf.h b/arch/mips/include/uapi/a= sm/shmbuf.h index 680bb95b2240..eb74d304b779 100644 --- a/arch/mips/include/uapi/asm/shmbuf.h +++ b/arch/mips/include/uapi/asm/shmbuf.h @@ -2,6 +2,9 @@ #ifndef _ASM_SHMBUF_H #define _ASM_SHMBUF_H =20 +#include +#include + /* * The shmid64_ds structure for the MIPS architecture. * Note extra padding because this structure is passed back and forth @@ -16,7 +19,7 @@ #ifdef __mips64 struct shmid64_ds { struct ipc64_perm shm_perm; /* operation perms */ - size_t shm_segsz; /* size of segment (bytes) */ + __kernel_size_t shm_segsz; /* size of segment (bytes) */ long shm_atime; /* last attach time */ long shm_dtime; /* last detach time */ long shm_ctime; /* last change time */ @@ -29,7 +32,7 @@ struct shmid64_ds { #else struct shmid64_ds { struct ipc64_perm shm_perm; /* operation perms */ - size_t shm_segsz; /* size of segment (bytes) */ + __kernel_size_t shm_segsz; /* size of segment (bytes) */ unsigned long shm_atime; /* last attach time */ unsigned long shm_dtime; /* last detach time */ unsigned long shm_ctime; /* last change time */ diff --git a/arch/parisc/include/uapi/asm/shmbuf.h b/arch/parisc/include/ua= pi/asm/shmbuf.h index 5da3089be65e..532da742fb56 100644 --- a/arch/parisc/include/uapi/asm/shmbuf.h +++ b/arch/parisc/include/uapi/asm/shmbuf.h @@ -3,6 +3,8 @@ #define _PARISC_SHMBUF_H =20 #include +#include +#include =20 /*=20 * The shmid64_ds structure for parisc architecture. diff --git a/arch/powerpc/include/uapi/asm/shmbuf.h b/arch/powerpc/include/= uapi/asm/shmbuf.h index 00422b2f3c63..439a3a02ba64 100644 --- a/arch/powerpc/include/uapi/asm/shmbuf.h +++ b/arch/powerpc/include/uapi/asm/shmbuf.h @@ -2,6 +2,9 @@ #ifndef _ASM_POWERPC_SHMBUF_H #define _ASM_POWERPC_SHMBUF_H =20 +#include +#include + /* * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License @@ -34,7 +37,7 @@ struct shmid64_ds { unsigned long shm_ctime; /* last change time */ unsigned long __unused4; #endif - size_t shm_segsz; /* size of segment (bytes) */ + __kernel_size_t shm_segsz; /* size of segment (bytes) */ __kernel_pid_t shm_cpid; /* pid of creator */ __kernel_pid_t shm_lpid; /* pid of last operator */ unsigned long shm_nattch; /* no. of current attaches */ diff --git a/arch/sparc/include/uapi/asm/shmbuf.h b/arch/sparc/include/uapi= /asm/shmbuf.h index a5d7d8d681c4..ed4f061c7a15 100644 --- a/arch/sparc/include/uapi/asm/shmbuf.h +++ b/arch/sparc/include/uapi/asm/shmbuf.h @@ -2,6 +2,9 @@ #ifndef _SPARC_SHMBUF_H #define _SPARC_SHMBUF_H =20 +#include +#include + /*=20 * The shmid64_ds structure for sparc architecture. * Note extra padding because this structure is passed back and forth @@ -25,7 +28,7 @@ struct shmid64_ds { unsigned long shm_ctime_high; unsigned long shm_ctime; /* last change time */ #endif - size_t shm_segsz; /* size of segment (bytes) */ + __kernel_size_t shm_segsz; /* size of segment (bytes) */ __kernel_pid_t shm_cpid; /* pid of creator */ __kernel_pid_t shm_lpid; /* pid of last operator */ unsigned long shm_nattch; /* no. of current attaches */ diff --git a/arch/x86/include/uapi/asm/shmbuf.h b/arch/x86/include/uapi/asm= /shmbuf.h index fce18eaa070c..13775bfdfee2 100644 --- a/arch/x86/include/uapi/asm/shmbuf.h +++ b/arch/x86/include/uapi/asm/shmbuf.h @@ -5,6 +5,10 @@ #if !defined(__x86_64__) || !defined(__ILP32__) #include #else + +#include +#include + /* * The shmid64_ds structure for x86 architecture with x32 ABI. * @@ -15,7 +19,7 @@ =20 struct shmid64_ds { struct ipc64_perm shm_perm; /* operation perms */ - size_t shm_segsz; /* size of segment (bytes) */ + __kernel_size_t shm_segsz; /* size of segment (bytes) */ __kernel_long_t shm_atime; /* last attach time */ __kernel_long_t shm_dtime; /* last detach time */ __kernel_long_t shm_ctime; /* last change time */ diff --git a/arch/xtensa/include/uapi/asm/shmbuf.h b/arch/xtensa/include/ua= pi/asm/shmbuf.h index 554a57a6a90f..bb8bdddae9b5 100644 --- a/arch/xtensa/include/uapi/asm/shmbuf.h +++ b/arch/xtensa/include/uapi/asm/shmbuf.h @@ -20,9 +20,12 @@ #ifndef _XTENSA_SHMBUF_H #define _XTENSA_SHMBUF_H =20 +#include +#include + struct shmid64_ds { struct ipc64_perm shm_perm; /* operation perms */ - size_t shm_segsz; /* size of segment (bytes) */ + __kernel_size_t shm_segsz; /* size of segment (bytes) */ unsigned long shm_atime; /* last attach time */ unsigned long shm_atime_high; unsigned long shm_dtime; /* last detach time */ diff --git a/include/uapi/asm-generic/shmbuf.h b/include/uapi/asm-generic/s= hmbuf.h index 2bab955e0fed..2979b6dd2c56 100644 --- a/include/uapi/asm-generic/shmbuf.h +++ b/include/uapi/asm-generic/shmbuf.h @@ -3,6 +3,8 @@ #define __ASM_GENERIC_SHMBUF_H =20 #include +#include +#include =20 /* * The shmid64_ds structure for x86 architecture. @@ -24,7 +26,7 @@ =20 struct shmid64_ds { struct ipc64_perm shm_perm; /* operation perms */ - size_t shm_segsz; /* size of segment (bytes) */ + __kernel_size_t shm_segsz; /* size of segment (bytes) */ #if __BITS_PER_LONG =3D=3D 64 long shm_atime; /* last attach time */ long shm_dtime; /* last detach time */ diff --git a/usr/include/Makefile b/usr/include/Makefile index e7230a5a402a..b0b6cc455930 100644 --- a/usr/include/Makefile +++ b/usr/include/Makefile @@ -23,7 +23,6 @@ override c_flags =3D $(UAPI_CFLAGS) -Wp,-MMD,$(depfile) -= I$(objtree)/usr/include # Please consider to fix the header first. # # Sorted alphabetically. -no-header-test +=3D asm/shmbuf.h no-header-test +=3D asm/ucontext.h no-header-test +=3D drm/vmwgfx_drm.h no-header-test +=3D linux/am437x-vpfe.h --=20 2.32.0 From nobody Sun Jun 28 08:38:01 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 04B4FC433F5 for ; Thu, 10 Feb 2022 02:18:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231550AbiBJCRy (ORCPT ); Wed, 9 Feb 2022 21:17:54 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:38350 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230372AbiBJCRv (ORCPT ); Wed, 9 Feb 2022 21:17:51 -0500 Received: from condef-09.nifty.com (condef-09.nifty.com [202.248.20.74]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7E67A22B18; Wed, 9 Feb 2022 18:17:52 -0800 (PST) Received: from conuserg-12.nifty.com ([10.126.8.75])by condef-09.nifty.com with ESMTP id 21A2CFEP025231; Thu, 10 Feb 2022 11:12:15 +0900 Received: from localhost.localdomain (133-32-232-101.west.xps.vectant.ne.jp [133.32.232.101]) (authenticated) by conuserg-12.nifty.com with ESMTP id 21A2BVH0030193; Thu, 10 Feb 2022 11:11:33 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-12.nifty.com 21A2BVH0030193 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1644459093; bh=mLWWEi1eNL+fE8D/ke2cTxgfWwEUC2jo0gGhItPyzZk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ds6XXxftljXHuqTMlRT1Xup0SdU7zZCfpwYKwAEeY0PCITuVRMN3uRLt3A0/M1X1V Kv/L25kt8Lgh57bvHWdwb540wDHT8ym9lLcIJg6YPRcr+SOjwuRkr8Uy99hRtIiLht OlsFVFAUusy99HPpj14K3KdnDP8JCBW2m6gB6VZ+Qmn1nboVgQL3F9n4/jyvs1AKqx XN+5LK2eLbhd0uMudNOThT2aTXuW8DKWOkRQDgbu1eQXluCgReX6MkGBGpSAo+udBI eldyuhbJqmMD4ljK0KmYWTtcfF+KGlCoIMC7F8sPJ5LBQKcimmoh+zPdXV9wUj+0ab fDo7I9CufRdHA== X-Nifty-SrcIP: [133.32.232.101] From: Masahiro Yamada To: Andrew Morton Cc: linux-arch@vger.kernel.org, Arnd Bergmann , linux-kernel@vger.kernel.org, Masahiro Yamada Subject: [PATCH 3/6] android/binder.h: add linux/android/binder(fs).h to UAPI compile-test coverage Date: Thu, 10 Feb 2022 11:11:26 +0900 Message-Id: <20220210021129.3386083-4-masahiroy@kernel.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220210021129.3386083-1-masahiroy@kernel.org> References: <20220210021129.3386083-1-masahiroy@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org linux/android/binder.h and linux/android/binderfs.h are currently excluded from the UAPI compile-test because of the errors like follows: HDRTEST usr/include/linux/android/binder.h In file included from : ./usr/include/linux/android/binder.h:291:9: error: unknown type name =E2= =80=98pid_t=E2=80=99 291 | pid_t sender_pid; | ^~~~~ ./usr/include/linux/android/binder.h:292:9: error: unknown type name =E2= =80=98uid_t=E2=80=99 292 | uid_t sender_euid; | ^~~~~ The errors can be fixed by replacing {pid,uid}_t with __kernel_{pid,uid}_t. Then, remove the no-header-test entries from user/include/Makefile. Signed-off-by: Masahiro Yamada Reviewed-by: Arnd Bergmann --- include/uapi/linux/android/binder.h | 4 ++-- usr/include/Makefile | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/include/uapi/linux/android/binder.h b/include/uapi/linux/andro= id/binder.h index 3246f2c74696..11157fae8a8e 100644 --- a/include/uapi/linux/android/binder.h +++ b/include/uapi/linux/android/binder.h @@ -288,8 +288,8 @@ struct binder_transaction_data { =20 /* General information about the transaction. */ __u32 flags; - pid_t sender_pid; - uid_t sender_euid; + __kernel_pid_t sender_pid; + __kernel_uid_t sender_euid; binder_size_t data_size; /* number of bytes of data */ binder_size_t offsets_size; /* number of bytes of offsets */ =20 diff --git a/usr/include/Makefile b/usr/include/Makefile index b0b6cc455930..717c7d4c89bb 100644 --- a/usr/include/Makefile +++ b/usr/include/Makefile @@ -26,8 +26,6 @@ override c_flags =3D $(UAPI_CFLAGS) -Wp,-MMD,$(depfile) -= I$(objtree)/usr/include no-header-test +=3D asm/ucontext.h no-header-test +=3D drm/vmwgfx_drm.h no-header-test +=3D linux/am437x-vpfe.h -no-header-test +=3D linux/android/binder.h -no-header-test +=3D linux/android/binderfs.h no-header-test +=3D linux/coda.h no-header-test +=3D linux/cyclades.h no-header-test +=3D linux/errqueue.h --=20 2.32.0 From nobody Sun Jun 28 08:38:01 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 44F2DC433F5 for ; Thu, 10 Feb 2022 02:16:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231199AbiBJCQG (ORCPT ); Wed, 9 Feb 2022 21:16:06 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:36540 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229696AbiBJCQA (ORCPT ); Wed, 9 Feb 2022 21:16:00 -0500 Received: from condef-02.nifty.com (condef-02.nifty.com [202.248.20.67]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DDEA9263D; Wed, 9 Feb 2022 18:16:01 -0800 (PST) Received: from conuserg-12.nifty.com ([10.126.8.75])by condef-02.nifty.com with ESMTP id 21A2CEfC020362; Thu, 10 Feb 2022 11:12:14 +0900 Received: from localhost.localdomain (133-32-232-101.west.xps.vectant.ne.jp [133.32.232.101]) (authenticated) by conuserg-12.nifty.com with ESMTP id 21A2BVH1030193; Thu, 10 Feb 2022 11:11:34 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-12.nifty.com 21A2BVH1030193 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1644459094; bh=EBMkOKAnMrvy5dowfLOIUWafGuf2A3oU3Qa+cTxHO/k=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=U1BY2Gf+SymejXVDtpcey2bI14xjnXX4aL9iVbP1R0ZP3WJB5Q3/XI6yedmJ55DrA ts2kwjfP9/8KwLWDbmhOF4Ab/iStomKwW5T4F5cg6+7YYgj9m50RArbDztuayQcoXw khhJHdVzjlpwvYP7sGL/c4Ofm1dKn/aMGsIH/WSJ3d1uEtgiDNQpy92ZaKaxw9RMPq DzKotF3ZvEHc/qdq67fKtICBtE3ayS8WNaAnnOmzHFGi0twtU/7vQHtJuC18QxI2L2 iXxGCUivyutb1KWu30Y1VX+bhwTLMf1vaDVMWHYh2uAxEeevhkzl+pFyVU7tgWr7u+ FWf66P+5ZS14A== X-Nifty-SrcIP: [133.32.232.101] From: Masahiro Yamada To: Andrew Morton Cc: linux-arch@vger.kernel.org, Arnd Bergmann , linux-kernel@vger.kernel.org, Masahiro Yamada Subject: [PATCH 4/6] fsmap.h: add linux/fsmap.h to UAPI compile-test coverage Date: Thu, 10 Feb 2022 11:11:27 +0900 Message-Id: <20220210021129.3386083-5-masahiroy@kernel.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220210021129.3386083-1-masahiroy@kernel.org> References: <20220210021129.3386083-1-masahiroy@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org linux/fsmap.h is currently excluded from the UAPI compile-test because of the error like follows: HDRTEST usr/include/linux/fsmap.h In file included from : ./usr/include/linux/fsmap.h:72:19: error: unknown type name =E2=80=98size= _t=E2=80=99 72 | static __inline__ size_t | ^~~~~~ The error can be fixed by replacing size_t with __kernel_size_t. Then, remove the no-header-test entry from user/include/Makefile. Signed-off-by: Masahiro Yamada --- include/uapi/linux/fsmap.h | 2 +- usr/include/Makefile | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/include/uapi/linux/fsmap.h b/include/uapi/linux/fsmap.h index 91fd519a3f7d..c690d17f1d07 100644 --- a/include/uapi/linux/fsmap.h +++ b/include/uapi/linux/fsmap.h @@ -69,7 +69,7 @@ struct fsmap_head { }; =20 /* Size of an fsmap_head with room for nr records. */ -static inline size_t +static inline __kernel_size_t fsmap_sizeof( unsigned int nr) { diff --git a/usr/include/Makefile b/usr/include/Makefile index 717c7d4c89bb..9e35d022fd88 100644 --- a/usr/include/Makefile +++ b/usr/include/Makefile @@ -29,7 +29,6 @@ no-header-test +=3D linux/am437x-vpfe.h no-header-test +=3D linux/coda.h no-header-test +=3D linux/cyclades.h no-header-test +=3D linux/errqueue.h -no-header-test +=3D linux/fsmap.h no-header-test +=3D linux/hdlc/ioctl.h no-header-test +=3D linux/ivtv.h no-header-test +=3D linux/kexec.h --=20 2.32.0 From nobody Sun Jun 28 08:38:01 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 789DBC433EF for ; Thu, 10 Feb 2022 02:20:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231519AbiBJCUp (ORCPT ); Wed, 9 Feb 2022 21:20:45 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:39696 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229704AbiBJCUj (ORCPT ); Wed, 9 Feb 2022 21:20:39 -0500 Received: from condef-10.nifty.com (condef-10.nifty.com [202.248.20.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A71C922B3E; Wed, 9 Feb 2022 18:20:41 -0800 (PST) Received: from conuserg-12.nifty.com ([10.126.8.75])by condef-10.nifty.com with ESMTP id 21A2CEu3020648; Thu, 10 Feb 2022 11:12:14 +0900 Received: from localhost.localdomain (133-32-232-101.west.xps.vectant.ne.jp [133.32.232.101]) (authenticated) by conuserg-12.nifty.com with ESMTP id 21A2BVH2030193; Thu, 10 Feb 2022 11:11:34 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-12.nifty.com 21A2BVH2030193 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1644459095; bh=m1Mtw5y9Bf5RZ4MURQ8EIMvDxV6oJIXKhKHtyEcMzzg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=g+DVott1MKQy6T+LFYOgJdyjdMWeO97ujnib1/2R0WZJ3bNPShbKlpuSOBvKD3Rds lt7CA6dxwg8YmMSpbEbZMAr+VSAxv1ClNWq0tHVtC2YkjPsCBtKGVJL9Th9yxUXb0C V5Z+ZBxUhJiZwruT4QnGCUPwe8HzrJ9ra4MX1gSYOaWnRwvKxEAup+uBi9TpKeKdwT 6T/y3UGNwmnzpILF7WtCXpEj1icQzG8/nc1IX4U8lLPuy3BPM09rfr5iT7kDpNHRFG HWu6tnyRw1rue/SGk1f0r1hqiQgYSvOg5mv6ydkwNFTszQGZRwtZawpr/opRvi/g52 nQ43x+rpRiH4g== X-Nifty-SrcIP: [133.32.232.101] From: Masahiro Yamada To: Andrew Morton Cc: linux-arch@vger.kernel.org, Arnd Bergmann , linux-kernel@vger.kernel.org, Masahiro Yamada Subject: [PATCH 5/6] kexec.h: add linux/kexec.h to UAPI compile-test coverage Date: Thu, 10 Feb 2022 11:11:28 +0900 Message-Id: <20220210021129.3386083-6-masahiroy@kernel.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220210021129.3386083-1-masahiroy@kernel.org> References: <20220210021129.3386083-1-masahiroy@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org linux/kexec.h is currently excluded from the UAPI compile-test because of the errors like follows: HDRTEST usr/include/linux/kexec.h In file included from : ./usr/include/linux/kexec.h:56:9: error: unknown type name =E2=80=98size_= t=E2=80=99 56 | size_t bufsz; | ^~~~~~ ./usr/include/linux/kexec.h:58:9: error: unknown type name =E2=80=98size_= t=E2=80=99 58 | size_t memsz; | ^~~~~~ The errors can be fixed by replacing size_t with __kernel_size_t. Then, remove the no-header-test entry from user/include/Makefile. Signed-off-by: Masahiro Yamada --- include/uapi/linux/kexec.h | 4 ++-- usr/include/Makefile | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/include/uapi/linux/kexec.h b/include/uapi/linux/kexec.h index 778dc191c265..fb7e2ef60825 100644 --- a/include/uapi/linux/kexec.h +++ b/include/uapi/linux/kexec.h @@ -54,9 +54,9 @@ */ struct kexec_segment { const void *buf; - size_t bufsz; + __kernel_size_t bufsz; const void *mem; - size_t memsz; + __kernel_size_t memsz; }; =20 #endif /* __KERNEL__ */ diff --git a/usr/include/Makefile b/usr/include/Makefile index 9e35d022fd88..48bb789099d5 100644 --- a/usr/include/Makefile +++ b/usr/include/Makefile @@ -31,7 +31,6 @@ no-header-test +=3D linux/cyclades.h no-header-test +=3D linux/errqueue.h no-header-test +=3D linux/hdlc/ioctl.h no-header-test +=3D linux/ivtv.h -no-header-test +=3D linux/kexec.h no-header-test +=3D linux/matroxfb.h no-header-test +=3D linux/omap3isp.h no-header-test +=3D linux/omapfb.h --=20 2.32.0 From nobody Sun Jun 28 08:38:01 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 983FDC433EF for ; Thu, 10 Feb 2022 02:16:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231542AbiBJCQR (ORCPT ); Wed, 9 Feb 2022 21:16:17 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:36550 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230372AbiBJCQC (ORCPT ); Wed, 9 Feb 2022 21:16:02 -0500 Received: from condef-04.nifty.com (condef-04.nifty.com [202.248.20.69]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6A8A6264B; Wed, 9 Feb 2022 18:16:04 -0800 (PST) Received: from conuserg-12.nifty.com ([10.126.8.75])by condef-04.nifty.com with ESMTP id 21A2CEEn028502; Thu, 10 Feb 2022 11:12:14 +0900 Received: from localhost.localdomain (133-32-232-101.west.xps.vectant.ne.jp [133.32.232.101]) (authenticated) by conuserg-12.nifty.com with ESMTP id 21A2BVH3030193; Thu, 10 Feb 2022 11:11:35 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-12.nifty.com 21A2BVH3030193 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1644459095; bh=rkmmaG81+CGD7vgz9hJpVQO2/VXHXcuVX9wVZdpGLMU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=peI9or4mZVTEEKja0i7XgnT0TqcNSKKYLOhDMrCMg1c9sbDG3hV7YKKNlZGP/Q4n6 ZYNRKdfeJJ5RskR+r9lT+qtzcCOhdBPq18jpgfpMGnNRL/rN4bRll3jmNQEm72yHyu 6/hI4Mx7NQtvHvcPLEQjACqNXbfmkv5kXSSr6LsocAOhbIqtX78sEuUgOckK0MIr1v 2zHM1AHhU/Gky6hJlaTSBkkVMJZaLKAkyQYaWXFqEwlFte+SJMo3ekDP+mII4Kr7xZ Pakouqkpi9yKrfDOkfWkMEMx/U6fQhNvjUVNgO5em9x7j7kf+jaeJ7K1EyBnVmuEO+ FitV+3TMM/HSQ== X-Nifty-SrcIP: [133.32.232.101] From: Masahiro Yamada To: Andrew Morton Cc: linux-arch@vger.kernel.org, Arnd Bergmann , linux-kernel@vger.kernel.org, Masahiro Yamada Subject: [PATCH 6/6] reiserfs_xattr.h: add linux/reiserfs_xattr.h to UAPI compile-test coverage Date: Thu, 10 Feb 2022 11:11:29 +0900 Message-Id: <20220210021129.3386083-7-masahiroy@kernel.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220210021129.3386083-1-masahiroy@kernel.org> References: <20220210021129.3386083-1-masahiroy@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org linux/reiserfs_xattr.h is currently excluded from the UAPI compile-test because of the error like follows: HDRTEST usr/include/linux/reiserfs_xattr.h In file included from : ./usr/include/linux/reiserfs_xattr.h:22:9: error: unknown type name =E2= =80=98size_t=E2=80=99 22 | size_t length; | ^~~~~~ The error can be fixed by replacing size_t with __kernel_size_t. Then, remove the no-header-test entry from user/include/Makefile. Signed-off-by: Masahiro Yamada --- include/uapi/linux/reiserfs_xattr.h | 2 +- usr/include/Makefile | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/include/uapi/linux/reiserfs_xattr.h b/include/uapi/linux/reise= rfs_xattr.h index 28f10842f047..503ad018ce5b 100644 --- a/include/uapi/linux/reiserfs_xattr.h +++ b/include/uapi/linux/reiserfs_xattr.h @@ -19,7 +19,7 @@ struct reiserfs_xattr_header { struct reiserfs_security_handle { const char *name; void *value; - size_t length; + __kernel_size_t length; }; =20 #endif /* _LINUX_REISERFS_XATTR_H */ diff --git a/usr/include/Makefile b/usr/include/Makefile index 48bb789099d5..5e703af0f83c 100644 --- a/usr/include/Makefile +++ b/usr/include/Makefile @@ -36,7 +36,6 @@ no-header-test +=3D linux/omap3isp.h no-header-test +=3D linux/omapfb.h no-header-test +=3D linux/patchkey.h no-header-test +=3D linux/phonet.h -no-header-test +=3D linux/reiserfs_xattr.h no-header-test +=3D linux/sctp.h no-header-test +=3D linux/sysctl.h no-header-test +=3D linux/usb/audio.h --=20 2.32.0