Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1638410ybt; Thu, 18 Jun 2020 13:33:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxXiJdNcw8I52rvOvJVaCRa6xNewMjJm52g/cf+Cr863iFRO2vUYIoT8++Kkael5lOjzGei X-Received: by 2002:a17:906:5283:: with SMTP id c3mr468612ejm.22.1592512386953; Thu, 18 Jun 2020 13:33:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592512386; cv=none; d=google.com; s=arc-20160816; b=Lg6rq3QGqGanvA3AVLqFZeahA6Mpef62H38lP+MwvlR5ZJWebenBSp0hPFCK2HibxS yyhlg2nSfZy3z2WSbnMyyx2GgnSxyn1eslah36xWkbixQYN+0F3TKZShPu+4U/1OTOFj kfCrCz71G7+N50SvR9yxKeaPdg6D8ihYIswf9J0IGw+YKsJ4XaeszK9bVnY4RkUK/9wT pFRlkRmN3Au6P7joIctdQU4v6eo0tyV9nzGKrqIzQ4kVA2xVTavD+KXjbSYTwan1vpf2 NuCLamQ7M7vquiUhooyU/aLyEZnYo+g+o1tw+EyQF8jvLkRKv3PcRAMGvJGunEpYhzOD YNJA== 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=PV+9YEYQ/eKJfdzR7sUkO91Ox76B+4A4HwuKeLZ3rjI=; b=vcWGdwrbwMUg9muYgAPKNjIRu8ALg/nrv77Yn37XvmVdVNXBIYOu7uNYNXO6rP2k6y qi8caRrrwQQLqfnqTwBwcFBUjVqTBETuU9+lGcMzEYYo/RvFLu8o8nUa0dxIL83wJISB k8zmD0e/QnUTj4PotTuj/Rs/7OUVbEQDQzzgebRocHMbFzaYPrR6vzUxienXkQUAcy0Z CAq33+b1ift29tzcOd+wzp/fRRTgXU9m73FSZhWFnsYu3cm5Azi2z3aHnc9rBwwt27oQ RbgXY2mEPAYNjkfsjQaUzrqB0bG1BCo261xR6DdCU6YqDbv5dH4xxY44fyoKvCWVW6gV O8Xw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r23si2332352edb.72.2020.06.18.13.32.35; Thu, 18 Jun 2020 13:33:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730793AbgFROOq (ORCPT + 99 others); Thu, 18 Jun 2020 10:14:46 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:6284 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730596AbgFROOo (ORCPT ); Thu, 18 Jun 2020 10:14:44 -0400 Received: from DGGEMS410-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 00BEE1C7614B9EE3D7A1; Thu, 18 Jun 2020 22:14:38 +0800 (CST) Received: from use12-sp2.huawei.com (10.67.189.174) by DGGEMS410-HUB.china.huawei.com (10.3.19.210) with Microsoft SMTP Server id 14.3.487.0; Thu, 18 Jun 2020 22:14:29 +0800 From: Xiaoming Ni To: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , CC: , , , , , , Subject: [PATCH v2] s390: fix build error for sys_call_table_emu Date: Thu, 18 Jun 2020 22:14:26 +0800 Message-ID: <20200618141426.16884-1-nixiaoming@huawei.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.67.189.174] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Build error on s390: arch/s390/kernel/entry.o: in function `sys_call_table_emu': >> (.rodata+0x1288): undefined reference to `__s390_' In commit ("All arch: remove system call sys_sysctl") 148 common fdatasync sys_fdatasync sys_fdatasync -149 common _sysctl sys_sysctl compat_sys_sysctl +149 common _sysctl sys_ni_syscall 150 common mlock sys_mlock sys_mlock After the patch is integrated, there is a format error in the generated arch/s390/include/generated/asm/syscall_table.h: SYSCALL(sys_fdatasync, sys_fdatasync) SYSCALL(sys_ni_syscall,) /* cause build error */ SYSCALL(sys_mlock,sys_mlock) According to the guidance of Heiko Carstens, use "-" to fill the empty system call Similarly, modify tools/perf/arch/s390/entry/syscalls/syscall.tbl. Fixes: ("All arch: remove system call sys_sysctl") Fixes: https://lore.kernel.org/linuxppc-dev/20200616030734.87257-1-nixiaoming@huawei.com/ Reported-by: kernel test robot Signed-off-by: Xiaoming Ni changes in v2: use "-" to fill the empty system call v1: https://lore.kernel.org/lkml/20200618110320.104013-1-nixiaoming@huawei.com/ --- arch/s390/kernel/syscalls/syscall.tbl | 2 +- tools/perf/arch/s390/entry/syscalls/syscall.tbl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/s390/kernel/syscalls/syscall.tbl b/arch/s390/kernel/syscalls/syscall.tbl index f17aaf6fe5de..04c34c2ed916 100644 --- a/arch/s390/kernel/syscalls/syscall.tbl +++ b/arch/s390/kernel/syscalls/syscall.tbl @@ -138,7 +138,7 @@ 146 common writev sys_writev compat_sys_writev 147 common getsid sys_getsid sys_getsid 148 common fdatasync sys_fdatasync sys_fdatasync -149 common _sysctl sys_ni_syscall +149 common _sysctl - - 150 common mlock sys_mlock sys_mlock 151 common munlock sys_munlock sys_munlock 152 common mlockall sys_mlockall sys_mlockall diff --git a/tools/perf/arch/s390/entry/syscalls/syscall.tbl b/tools/perf/arch/s390/entry/syscalls/syscall.tbl index 0193f9b98753..29144b79a49d 100644 --- a/tools/perf/arch/s390/entry/syscalls/syscall.tbl +++ b/tools/perf/arch/s390/entry/syscalls/syscall.tbl @@ -138,7 +138,7 @@ 146 common writev sys_writev compat_sys_writev 147 common getsid sys_getsid sys_getsid 148 common fdatasync sys_fdatasync sys_fdatasync -149 common _sysctl sys_ni_syscall +149 common _sysctl - - 150 common mlock sys_mlock compat_sys_mlock 151 common munlock sys_munlock compat_sys_munlock 152 common mlockall sys_mlockall sys_mlockall -- 2.27.0