From patchwork Wed Apr 25 13:22:31 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 134311 Delivered-To: patch@linaro.org Received: by 10.46.151.6 with SMTP id r6csp865256lji; Wed, 25 Apr 2018 06:26:04 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/OSCAFl3sAKjVEuVqqECGpwjMSKZ1IwH1fx47KpwI5X2DLMKDvmJCC2G0JJSGityNa54UU X-Received: by 10.101.76.77 with SMTP id l13mr16441807pgr.46.1524662764207; Wed, 25 Apr 2018 06:26:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524662764; cv=none; d=google.com; s=arc-20160816; b=DdYeN+Z/WIPtzcJ6KqITwX4BndgQsD0h6EzJp9cigfv4ylk2ruvYYmdRJa6EtrmxVA C2r3NvxJ2vll/DkXU49aMX86ZFBpucnozX+T0M3OOR/gNDpoHoxigFygmIgXpu9Y0zXm 8K5ZGJXebABqe4A/rRGk8kv0z396ly/BjsHDhJq3oGtpclzqA8CzI3uTK22FkRAB1hz4 FAndc+HN2Vd4gt/qIXDr6mdZ8SzpEYUlpNBzuVuJ5ALagpXVNQ29x7yfRpQtKhP80tWt BohBCtWrUPKR4AKrL1bqB4jyVAjaba+ydvfP4I0b4TVCaibXu3WiARrh1AfFiNLqzwqB 2IUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=i79rdsUgCi4psCZeuUzrVQSFeCQdrNBTw2cSNLXKi4w=; b=Ib1/wcFtaL+lRDFXrrFnJs4N3vByIOJMoPz9Ks0l4Xt6IVNpuPaAWM9dZ9nkTt2QlX wa0uJmS3z04yFhcCNai+WQBOy7rZXyU+3BU2PuGHpzbQEw+P2vJTXraC9krgwD8Es15d g08gPnPRakdWYAzeTI8qQdnalbKRcgMRx9Y2Qvz9AyEpj0tD6MA2b2jVaC0CUT3m/jBu cWfEFrNUy8/extX84YrHdJ6qjXXR6kaB3jdhX0qHzenlwGImmdr+6uRyV4028j2UkBiF JG8M2tuhyO4KndQKmIzy+Ce/WnKZ1PiKjgJy3WNoGaRx/lYwgEUnbszhI0Mzdt8k4bsa i55A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a23si11991128pfh.295.2018.04.25.06.26.03; Wed, 25 Apr 2018 06:26:04 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754452AbeDYN0A (ORCPT + 29 others); Wed, 25 Apr 2018 09:26:00 -0400 Received: from mout.kundenserver.de ([212.227.17.24]:34925 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753336AbeDYNW7 (ORCPT ); Wed, 25 Apr 2018 09:22:59 -0400 Received: from wuerfel.lan ([95.208.111.237]) by mrelayeu.kundenserver.de (mreue105 [212.227.15.145]) with ESMTPA (Nemesis) id 0MLfrX-1fC9b70UV9-000sAe; Wed, 25 Apr 2018 15:22:58 +0200 From: Arnd Bergmann To: y2038@lists.linaro.org, linux-kernel@vger.kernel.org Cc: Arnd Bergmann Subject: [PATCH v4 05/16] y2038: s390: Remove unneeded ipc uapi header files Date: Wed, 25 Apr 2018 15:22:31 +0200 Message-Id: <20180425132242.1500539-6-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 In-Reply-To: <20180425132242.1500539-1-arnd@arndb.de> References: <20180425132242.1500539-1-arnd@arndb.de> X-Provags-ID: V03:K1:zePQTeRdeE7zFeZ1Qfq8ao1FJNUDtbxjwtwaGAWUJUyZIPhsmeM LJjBwNwZiTsPDArZBKppSE9EdjjAD7v6VfYEROr1lrIk8fKNtMyLC0ikW3YSZp+sp1oChk7 h5dxGDtLZO1LGUPUQXGTVM2Jh2lQmmMLAOw6X1R7RVTWAZhhNfgUQaP5WEfEe8c6zDtRNCA gQ5lXfqvDmoevGfVxV8bA== X-UI-Out-Filterresults: notjunk:1; V01:K0:Xd5aQGE5T2E=:Iu+hWtV7l18hpZKk6Dsz1u vkwng5wJjsfOf3zAPM4Mz/ZQDshVUnbAVeMc7Lmnte0+zdS8mLFJuYop9NqN1YaGV2qNqAXNQ 0WgsYKL82NJ23yYWQtXYMdXgjx+j1J5Xr2QervEyPa71GC2rv1WMrDszYLQ4efzVYFHRwR6GY WNA0P+Aj5cjJym/rmUPaKDFuH1uB2wFou7nOeAk6jwV8WpRo6DxRUnSf+7vpFla4iKDJX3caG s8nI4mYCVvkNZ+mDzxzenHVduf7msvDniUT5pC8Jy1/NpEPOV3Igr0ertOFyLD+8lp1IMECwI G3Kf3xQab21L88cZ5LwXZ0zRJNN3wMrPyIrbCLQm+Esgi8s27bZPtxyoRNLKgjciiHpjYQJaJ kuqC7RuHbeZZb43L4xdmm1Atje0lqTUxbsLdNrOrQVes6WBRhtm0C+cAwz1RyGNK5Yb1js3Qd CXJ3Y9pFES4JSRxmTu++GtowLcgpZsKVO5C+cBpwVn9FHjtL/hoOXs60a0Sh6nmwqlJvt97br FvVXHPtHSd2Om/haqNKYkl1UYaSXybvGc1ZKk5dGNSY0QS8p0pXOBOcPcQRERseUSInpeFOdX VLMpJ7AJjyke+S+nxgO/mzGsspDi6GEjgTASBLxETzDUgIEv8EY07EyorbrLfDw1DXfc5j2ap nD0z1/NhqhlH+UAOzyIgcwLVm6iwAHUpSjvPqDqAGLhOVFPn3woRes1UWtkvM9GJuh/3i1N/C TUUgfC3gT3Z8cPJE3qPfGNinZv38AewmRiuV1w== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The s390 msgbuf/sembuf/shmbuf header files are all identical to the version from asm-generic. This patch removes the files and replaces them with 'generic-y' statements, to avoid having to modify each copy when we extend sysvipc to deal with 64-bit time_t in 32-bit user space. Note that unlike alpha and ia64, the ipcbuf.h header file is slightly different here, so I'm leaving the private copy. To deal with 32-bit compat tasks, we also have to adapt the definitions of compat_{shm,sem,msg}id_ds to match the changes to the respective asm-generic files. Acked-by: Heiko Carstens Signed-off-by: Arnd Bergmann --- arch/s390/include/asm/compat.h | 32 ++++++++++++------------ arch/s390/include/uapi/asm/Kbuild | 3 +++ arch/s390/include/uapi/asm/msgbuf.h | 38 ---------------------------- arch/s390/include/uapi/asm/sembuf.h | 30 ----------------------- arch/s390/include/uapi/asm/shmbuf.h | 49 ------------------------------------- 5 files changed, 19 insertions(+), 133 deletions(-) delete mode 100644 arch/s390/include/uapi/asm/msgbuf.h delete mode 100644 arch/s390/include/uapi/asm/sembuf.h delete mode 100644 arch/s390/include/uapi/asm/shmbuf.h -- 2.9.0 diff --git a/arch/s390/include/asm/compat.h b/arch/s390/include/asm/compat.h index 501aaff85304..97db2fba546a 100644 --- a/arch/s390/include/asm/compat.h +++ b/arch/s390/include/asm/compat.h @@ -232,10 +232,10 @@ struct compat_ipc64_perm { struct compat_semid64_ds { struct compat_ipc64_perm sem_perm; - compat_time_t sem_otime; - compat_ulong_t __pad1; - compat_time_t sem_ctime; - compat_ulong_t __pad2; + compat_ulong_t sem_otime; + compat_ulong_t sem_otime_high; + compat_ulong_t sem_ctime; + compat_ulong_t sem_ctime_high; compat_ulong_t sem_nsems; compat_ulong_t __unused1; compat_ulong_t __unused2; @@ -243,12 +243,12 @@ struct compat_semid64_ds { struct compat_msqid64_ds { struct compat_ipc64_perm msg_perm; - compat_time_t msg_stime; - compat_ulong_t __pad1; - compat_time_t msg_rtime; - compat_ulong_t __pad2; - compat_time_t msg_ctime; - compat_ulong_t __pad3; + compat_ulong_t msg_stime; + compat_ulong_t msg_stime_high; + compat_ulong_t msg_rtime; + compat_ulong_t msg_rtime_high; + compat_ulong_t msg_ctime; + compat_ulong_t msg_ctime_high; compat_ulong_t msg_cbytes; compat_ulong_t msg_qnum; compat_ulong_t msg_qbytes; @@ -261,12 +261,12 @@ struct compat_msqid64_ds { struct compat_shmid64_ds { struct compat_ipc64_perm shm_perm; compat_size_t shm_segsz; - compat_time_t shm_atime; - compat_ulong_t __pad1; - compat_time_t shm_dtime; - compat_ulong_t __pad2; - compat_time_t shm_ctime; - compat_ulong_t __pad3; + compat_ulong_t shm_atime; + compat_ulong_t shm_atime_high; + compat_ulong_t shm_dtime; + compat_ulong_t shm_dtime_high; + compat_ulong_t shm_ctime; + compat_ulong_t shm_ctime_high; compat_pid_t shm_cpid; compat_pid_t shm_lpid; compat_ulong_t shm_nattch; diff --git a/arch/s390/include/uapi/asm/Kbuild b/arch/s390/include/uapi/asm/Kbuild index faef3f7e8353..e364873e0d10 100644 --- a/arch/s390/include/uapi/asm/Kbuild +++ b/arch/s390/include/uapi/asm/Kbuild @@ -9,9 +9,12 @@ generic-y += errno.h generic-y += fcntl.h generic-y += ioctl.h generic-y += mman.h +generic-y += msgbuf.h generic-y += param.h generic-y += poll.h generic-y += resource.h +generic-y += sembuf.h +generic-y += shmbuf.h generic-y += sockios.h generic-y += swab.h generic-y += termbits.h diff --git a/arch/s390/include/uapi/asm/msgbuf.h b/arch/s390/include/uapi/asm/msgbuf.h deleted file mode 100644 index 604f847cd68c..000000000000 --- a/arch/s390/include/uapi/asm/msgbuf.h +++ /dev/null @@ -1,38 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -#ifndef _S390_MSGBUF_H -#define _S390_MSGBUF_H - -/* - * The msqid64_ds structure for S/390 architecture. - * Note extra padding because this structure is passed back and forth - * between kernel and user space. - * - * Pad space is left for: - * - 64-bit time_t to solve y2038 problem - * - 2 miscellaneous 32-bit values - */ - -struct msqid64_ds { - struct ipc64_perm msg_perm; - __kernel_time_t msg_stime; /* last msgsnd time */ -#ifndef __s390x__ - unsigned long __unused1; -#endif /* ! __s390x__ */ - __kernel_time_t msg_rtime; /* last msgrcv time */ -#ifndef __s390x__ - unsigned long __unused2; -#endif /* ! __s390x__ */ - __kernel_time_t msg_ctime; /* last change time */ -#ifndef __s390x__ - unsigned long __unused3; -#endif /* ! __s390x__ */ - unsigned long msg_cbytes; /* current number of bytes on queue */ - unsigned long msg_qnum; /* number of messages in queue */ - unsigned long msg_qbytes; /* max number of bytes on queue */ - __kernel_pid_t msg_lspid; /* pid of last msgsnd */ - __kernel_pid_t msg_lrpid; /* last receive pid */ - unsigned long __unused4; - unsigned long __unused5; -}; - -#endif /* _S390_MSGBUF_H */ diff --git a/arch/s390/include/uapi/asm/sembuf.h b/arch/s390/include/uapi/asm/sembuf.h deleted file mode 100644 index 3e917697b668..000000000000 --- a/arch/s390/include/uapi/asm/sembuf.h +++ /dev/null @@ -1,30 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -#ifndef _S390_SEMBUF_H -#define _S390_SEMBUF_H - -/* - * The semid64_ds structure for S/390 architecture. - * Note extra padding because this structure is passed back and forth - * between kernel and user space. - * - * Pad space is left for: - * - 64-bit time_t to solve y2038 problem (for !__s390x__) - * - 2 miscellaneous 32-bit values - */ - -struct semid64_ds { - struct ipc64_perm sem_perm; /* permissions .. see ipc.h */ - __kernel_time_t sem_otime; /* last semop time */ -#ifndef __s390x__ - unsigned long __unused1; -#endif /* ! __s390x__ */ - __kernel_time_t sem_ctime; /* last change time */ -#ifndef __s390x__ - unsigned long __unused2; -#endif /* ! __s390x__ */ - unsigned long sem_nsems; /* no. of semaphores in array */ - unsigned long __unused3; - unsigned long __unused4; -}; - -#endif /* _S390_SEMBUF_H */ diff --git a/arch/s390/include/uapi/asm/shmbuf.h b/arch/s390/include/uapi/asm/shmbuf.h deleted file mode 100644 index 9cdce8d7ce60..000000000000 --- a/arch/s390/include/uapi/asm/shmbuf.h +++ /dev/null @@ -1,49 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -#ifndef _S390_SHMBUF_H -#define _S390_SHMBUF_H - -/* - * The shmid64_ds structure for S/390 architecture. - * Note extra padding because this structure is passed back and forth - * between kernel and user space. - * - * Pad space is left for: - * - 64-bit time_t to solve y2038 problem (for !__s390x__) - * - 2 miscellaneous 32-bit values - */ - -struct shmid64_ds { - struct ipc64_perm shm_perm; /* operation perms */ - size_t shm_segsz; /* size of segment (bytes) */ - __kernel_time_t shm_atime; /* last attach time */ -#ifndef __s390x__ - unsigned long __unused1; -#endif /* ! __s390x__ */ - __kernel_time_t shm_dtime; /* last detach time */ -#ifndef __s390x__ - unsigned long __unused2; -#endif /* ! __s390x__ */ - __kernel_time_t shm_ctime; /* last change time */ -#ifndef __s390x__ - unsigned long __unused3; -#endif /* ! __s390x__ */ - __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 */ - unsigned long __unused4; - unsigned long __unused5; -}; - -struct shminfo64 { - unsigned long shmmax; - unsigned long shmmin; - unsigned long shmmni; - unsigned long shmseg; - unsigned long shmall; - unsigned long __unused1; - unsigned long __unused2; - unsigned long __unused3; - unsigned long __unused4; -}; - -#endif /* _S390_SHMBUF_H */