From patchwork Wed Mar 6 14:29:28 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 159753 Delivered-To: patch@linaro.org Received: by 2002:a02:5cc1:0:0:0:0:0 with SMTP id w62csp6234860jad; Wed, 6 Mar 2019 06:30:00 -0800 (PST) X-Google-Smtp-Source: APXvYqyttkv+4U13PW1KtOOnGPuXWaAveJYRi5aHhLqHoQ7tbafr6Gh+t3FuFp4avkyFdEx/dzZZ X-Received: by 2002:a62:4553:: with SMTP id s80mr7409372pfa.141.1551882600263; Wed, 06 Mar 2019 06:30:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551882600; cv=none; d=google.com; s=arc-20160816; b=V11PCN8xbzekSNeRUQX9RlRjuYL4fzrIfv47wnF+F6Wv8fYB34B/G77Ij9L5rGiJ/M f12Wr8X6hG1lVP9X2ghv3dC7t+xAbGLLzVjbN5yGtdDwoND9XpcHHiPuW1OeiTXSfmq3 Um3eS+8Qwlfyem6ktsANET40Zd0ztiYdTDYjhwy3jMeiFMV/9/hJLulQZisw+dw8vpEa H4nGtARvE5+GheOE774rt1P03XZYnpYTJK0qm5+vrkvXh8tvZMQrQlTMtXUNy/z9C9qm D+qEldW/jVyMSahZFF4tWDcb9ZPmJBxXIADirZx3VV73Meq5hK46jylY3RG1XiiH27OP eQ8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=mdzrJ07XTV67i14Spns5OomMeWLGVnl3qiKptlKeqe8=; b=iNFbbk4mD0vA2TwTzLSN+EWJnX5LUsvrpag2uEaWtm6Cb7n4krKA2Va9fEtruencZH Oj1KDiSgOVNeiGjGERiq2Q8AN1fJ6Jp6qhOAbdyCnSu8XM45yA/B27nXAlyUcR7tWKzI AXkDfCOacKEbGcg6VFel6Y1E8DEj9Xh1kj13+6V6om6CSF0hzj7+vFL3ilDMA+C11Onk xcMWdydMWoNpZGJ1EDL2zsFzVcvVs60SQQy8f7YuRiCAjYRQb68jgEMS61lQ+A+UVW2f OqVUWlACqsZ8TzWrAJZ1Tn9as2AW6ElBfZqONWzZDvIKCrpOjMsQd23flY6RTvAO++aQ GeEw== 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 r74si1674849pfa.249.2019.03.06.06.29.59; Wed, 06 Mar 2019 06:30:00 -0800 (PST) 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 S1727453AbfCFO36 (ORCPT + 31 others); Wed, 6 Mar 2019 09:29:58 -0500 Received: from mout.kundenserver.de ([212.227.17.13]:57513 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725267AbfCFO36 (ORCPT ); Wed, 6 Mar 2019 09:29:58 -0500 Received: from wuerfel.lan ([109.192.41.194]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.145]) with ESMTPA (Nemesis) id 1MfqCF-1hThQW2uaH-00gIqB; Wed, 06 Mar 2019 15:29:45 +0100 From: Arnd Bergmann To: y2038@lists.linaro.org Cc: Arnd Bergmann , Laura Abbott , John Stultz , Thomas Gleixner , Dominik Brodowski , linux-api@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] ipc: Fix building compat mode without sysvipc Date: Wed, 6 Mar 2019 15:29:28 +0100 Message-Id: <20190306142944.834167-1-arnd@arndb.de> X-Mailer: git-send-email 2.20.0 MIME-Version: 1.0 X-Provags-ID: V03:K1:H75Y3y1XhhuHgtSKsBZJYqG7qLjLASDqSw56HBZbDKRz2Jxdu25 yoWU5INq589yGf24ThmfDpfM94RakAFKKY03O3npaCtgp5I8n10seUVRz+YVeVjELyEOXuC Rv8nMvF4Mggi3E6nxCzMOvlbQaqflQLGhKGboYMwKKkKHGp45+GNCgi+JQRccs2f9/Ycti8 QajF9HsfgrETKO50dB1rQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1; V03:K0:PDeflx3fzNA=:R1oo1EzXibYjLApPlCCzZb DkcoRix4Q9uc+K0GfCC1BlPlm19kOuDLLkDS6DYmxjIxunsKJTzuTaqPkJzoXh6FGE49kQFEz cqzPkhNM5NKUIOq6FnjBhGAecJ/bw3VV2StTuaB/P5e5ZuEqoC8Qz4fDlT9ttKbacbztLBsnp w26V3XtbwS9RUlS3O8NTFL2MDlb68wMFYHqGBLl/+6pXVnPq2iAr2G0OWqr3XnF6bL27PxBF7 zU0NNjzTG/8V6/6Yd00qnd52DSDzXFg2KxY1O42XNEOgwKBjIVhh05XJmXSJ5Bzqy3M/+pMou tBshXOdGTdALzeobPF1lSJb38TyF5Dsio/wS+v0opWefW07n8DnI60zJev6kEOGqZBfsIvj3b WmLQwzH9d/tPcB2Qho3LWTipCKF/idk+VIvXX/iMUGwpO+MxUckHbyWkQ/LQuzu089lGTSZNu sJWdkWIRnmxPNFL/kEwW3i13pEJX6S/b5glI+o9p8COrQgdGfx8FZN8m2kWRfen8R/RQ+TWhJ 58z2565CK5J8v/O1Jt0llwYn3Qgc8V8RCK1WvwKwKDg7KPsMkUWOr7JVaJla/hlfCf5k5MfTe zVeTJlCV1UjCpw/vbgM18v+u7a3ZeIfQZCruk0BM2/0SGbONH/ehDeQgCDc7tunaO/Jb7pwEc J8bGvgvtWt2MMlsa+e/lgMp3lVamuOS0jN5mndydWc3G914J15F2E7Hhq/1r+E0ozce/Kv127 1+PVbt/z/GCHYxY2ybPlQyKkyzbznPUTGXCZSw== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org As John Stultz noticed, my y2038 syscall series caused a link failure when CONFIG_SYSVIPC is enabled but CONFIG_COMPAT is enabled: arch/arm64/kernel/sys32.o:(.rodata+0x960): undefined reference to `__arm64_compat_sys_old_semctl' arch/arm64/kernel/sys32.o:(.rodata+0x980): undefined reference to `__arm64_compat_sys_old_msgctl' arch/arm64/kernel/sys32.o:(.rodata+0x9a0): undefined reference to `__arm64_compat_sys_old_shmctl' Add the missing entries in kernel/sys_ni.c for the new system calls. Cc: Laura Abbott Cc: John Stultz Cc: Thomas Gleixner Signed-off-by: Arnd Bergmann --- I'm about to send off my pull requests for arm-soc, so I'd just send another one with just this common from my y2038 tree. --- kernel/sys_ni.c | 3 +++ 1 file changed, 3 insertions(+) -- 2.20.0 diff --git a/kernel/sys_ni.c b/kernel/sys_ni.c index 85e5ccec0955..62a6c8707799 100644 --- a/kernel/sys_ni.c +++ b/kernel/sys_ni.c @@ -202,6 +202,7 @@ COND_SYSCALL(msgget); COND_SYSCALL(old_msgctl); COND_SYSCALL(msgctl); COND_SYSCALL_COMPAT(msgctl); +COND_SYSCALL_COMPAT(old_msgctl); COND_SYSCALL(msgrcv); COND_SYSCALL_COMPAT(msgrcv); COND_SYSCALL(msgsnd); @@ -212,6 +213,7 @@ COND_SYSCALL(semget); COND_SYSCALL(old_semctl); COND_SYSCALL(semctl); COND_SYSCALL_COMPAT(semctl); +COND_SYSCALL_COMPAT(old_semctl); COND_SYSCALL(semtimedop); COND_SYSCALL(semtimedop_time32); COND_SYSCALL(semop); @@ -221,6 +223,7 @@ COND_SYSCALL(shmget); COND_SYSCALL(old_shmctl); COND_SYSCALL(shmctl); COND_SYSCALL_COMPAT(shmctl); +COND_SYSCALL_COMPAT(old_shmctl); COND_SYSCALL(shmat); COND_SYSCALL_COMPAT(shmat); COND_SYSCALL(shmdt);