From nobody Mon Dec 1 22:36:53 2025 Received: from canpmsgout12.his.huawei.com (canpmsgout12.his.huawei.com [113.46.200.227]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4530332ABCF for ; Thu, 27 Nov 2025 12:36:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=113.46.200.227 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764247002; cv=none; b=uyytZiTghrDNC1zvxg7xECvbG+P6NdAyOG7vZtfNjiwWPPh67Bc/gCRysqE7sJFS3OY4ps4kDtBAjTDL2c64lrjWpbJBdDz3BjgXcS1YWfKtE8x7A2H/F396hBtQR5dgeJHPEHY6sy8vWoxssZrs6OwSOBKH1Y3SIPGTrQhzdIA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764247002; c=relaxed/simple; bh=9nhn89546O1lvm/XQH7lxWDiHGdRrQ+jMHUr7oL/qL0=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=YPeje3VqFAoLlQHxItlW9h1xadtv+kGBf9VgnyQcURsx+TCvlWeN4WWMgHOb9MXqHapmuTUCcDFQdrc/5z7APunj6NZuIZHI+GdGKYkrBnIt+I/ll/m49l28p8Bi4tLxFLK4YIq+9+LQfdMEa/1+9W9wG/UJiAytQdIFfXmiuuA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com; spf=pass smtp.mailfrom=huawei.com; dkim=pass (1024-bit key) header.d=huawei.com header.i=@huawei.com header.b=5fuseUdd; arc=none smtp.client-ip=113.46.200.227 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=huawei.com header.i=@huawei.com header.b="5fuseUdd" dkim-signature: v=1; a=rsa-sha256; d=huawei.com; s=dkim; c=relaxed/relaxed; q=dns/txt; h=From; bh=QxUwcTasWefvx6WMBH8kfJ6j8Vy+jYr1BCP+24RtJxo=; b=5fuseUddg0mzdGN146s6tHbZhdSFutetc77lchrjUzNzDT2Q0nFwfVe15PVY5aeNr/XAAQX46 caVkmAd1/SC92RF+fXBgWqVUiL9h2t96W35Kpcq1b1eY0FdbhFTe8qlngiyIgIu/Gj1Pu2hCPIa Ef/JIC5NGKA7pRUslRtxuF4= Received: from mail.maildlp.com (unknown [172.19.88.163]) by canpmsgout12.his.huawei.com (SkyGuard) with ESMTPS id 4dHG9F4KGDznTY0; Thu, 27 Nov 2025 20:35:13 +0800 (CST) Received: from dggpemf500011.china.huawei.com (unknown [7.185.36.131]) by mail.maildlp.com (Postfix) with ESMTPS id 8F8DD180043; Thu, 27 Nov 2025 20:36:36 +0800 (CST) Received: from huawei.com (10.90.53.73) by dggpemf500011.china.huawei.com (7.185.36.131) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.11; Thu, 27 Nov 2025 20:36:35 +0800 From: Jinjie Ruan To: , , , , , , , , , , , , , CC: Subject: [PATCH 1/2] syscall.h: Remove unused SYSCALL_MAX_ARGS Date: Thu, 27 Nov 2025 20:36:29 +0800 Message-ID: <20251127123630.4149828-2-ruanjinjie@huawei.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20251127123630.4149828-1-ruanjinjie@huawei.com> References: <20251127123630.4149828-1-ruanjinjie@huawei.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ClientProxiedBy: kwepems100002.china.huawei.com (7.221.188.206) To dggpemf500011.china.huawei.com (7.185.36.131) Content-Type: text/plain; charset="utf-8" The "SYSCALL_MAX_ARGS" appears to have been unused since commit 32d92586629a ("syscalls: Remove start and number from syscall_set_arguments() args"), so remove it. Fixes: 32d92586629a ("syscalls: Remove start and number from syscall_set_ar= guments() args") Signed-off-by: Jinjie Ruan --- arch/arm/include/asm/syscall.h | 2 -- arch/arm64/include/asm/syscall.h | 2 -- arch/xtensa/include/asm/syscall.h | 1 - 3 files changed, 5 deletions(-) diff --git a/arch/arm/include/asm/syscall.h b/arch/arm/include/asm/syscall.h index 18b102a30741..574bbcc55382 100644 --- a/arch/arm/include/asm/syscall.h +++ b/arch/arm/include/asm/syscall.h @@ -92,8 +92,6 @@ static inline void syscall_set_nr(struct task_struct *tas= k, (nr & __NR_SYSCALL_MASK); } =20 -#define SYSCALL_MAX_ARGS 7 - static inline void syscall_get_arguments(struct task_struct *task, struct pt_regs *regs, unsigned long *args) diff --git a/arch/arm64/include/asm/syscall.h b/arch/arm64/include/asm/sysc= all.h index 712daa90e643..f3853047c28e 100644 --- a/arch/arm64/include/asm/syscall.h +++ b/arch/arm64/include/asm/syscall.h @@ -77,8 +77,6 @@ static inline void syscall_set_nr(struct task_struct *tas= k, } } =20 -#define SYSCALL_MAX_ARGS 6 - static inline void syscall_get_arguments(struct task_struct *task, struct pt_regs *regs, unsigned long *args) diff --git a/arch/xtensa/include/asm/syscall.h b/arch/xtensa/include/asm/sy= scall.h index 7db3b489c8ad..bab7cdd96cbe 100644 --- a/arch/xtensa/include/asm/syscall.h +++ b/arch/xtensa/include/asm/syscall.h @@ -61,7 +61,6 @@ static inline void syscall_set_return_value(struct task_s= truct *task, regs->areg[2] =3D (long) error ? error : val; } =20 -#define SYSCALL_MAX_ARGS 6 #define XTENSA_SYSCALL_ARGUMENT_REGS {6, 3, 4, 5, 8, 9} =20 static inline void syscall_get_arguments(struct task_struct *task, --=20 2.34.1