From mboxrd@z Thu Jan 1 00:00:00 1970 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 6BCDFC04A95 for ; Sun, 2 Oct 2022 23:00:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230408AbiJBW7i (ORCPT ); Sun, 2 Oct 2022 18:59:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41784 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230455AbiJBW6b (ORCPT ); Sun, 2 Oct 2022 18:58:31 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A210B40E39; Sun, 2 Oct 2022 15:55:58 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 0994260F15; Sun, 2 Oct 2022 22:52:55 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1E309C433D6; Sun, 2 Oct 2022 22:52:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1664751174; bh=Oo5dzfgUvi7RFuvhID2RTEtBjZh0y9xtz/tZcCFnyi8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WtygVog5dOPiBbFJRiACCyOVt+jPpXZRDxQJnpQSmbuldNS/zlToRd/Q3OKsmgTdJ +/RmKevpQduvVTJ9kLLopKLbRg3JwHgCOxh5Rh8zMZar+CxjG+ET7N2cZTK+I1YQFh 4EW1sfvs/hGZPP3IrcvPujgNLxEzcUL+FDb78NKNpccAVDuLMdfNwPaMCqBCxoSCq3 0P474Hh+R9cmjmRzf6kZ2Aa4K7CpWFOMa/1roj+jWi5eEnDAcpSX4OUKoLOP6dZ2Bx 94niWDnzZYv5iBidOr5GLXWG1s9UwP3LTqUZQJ+eRZyedV/h2rq7ncw3i8JyBx8E2d LEELUDbPx5auw== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Lukas Straub , Randy Dunlap , Richard Weinberger , Sasha Levin , anton.ivanov@cambridgegreys.com, johannes@sipsolutions.net, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com, x86@kernel.org, linux-um@lists.infradead.org Subject: [PATCH AUTOSEL 5.4 7/9] um: Cleanup syscall_handler_t cast in syscalls_32.h Date: Sun, 2 Oct 2022 18:52:34 -0400 Message-Id: <20221002225236.239675-7-sashal@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20221002225236.239675-1-sashal@kernel.org> References: <20221002225236.239675-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Lukas Straub [ Upstream commit 61670b4d270c71219def1fbc9441debc2ac2e6e9 ] Like in f4f03f299a56ce4d73c5431e0327b3b6cb55ebb9 "um: Cleanup syscall_handler_t definition/cast, fix warning", remove the cast to to fix the compiler warning. Signed-off-by: Lukas Straub Acked-by: Randy Dunlap # build-tested Signed-off-by: Richard Weinberger Signed-off-by: Sasha Levin --- arch/x86/um/shared/sysdep/syscalls_32.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/arch/x86/um/shared/sysdep/syscalls_32.h b/arch/x86/um/shared/sysdep/syscalls_32.h index 68fd2cf526fd..f6e9f84397e7 100644 --- a/arch/x86/um/shared/sysdep/syscalls_32.h +++ b/arch/x86/um/shared/sysdep/syscalls_32.h @@ -6,10 +6,9 @@ #include #include -typedef long syscall_handler_t(struct pt_regs); +typedef long syscall_handler_t(struct syscall_args); extern syscall_handler_t *sys_call_table[]; #define EXECUTE_SYSCALL(syscall, regs) \ - ((long (*)(struct syscall_args)) \ - (*sys_call_table[syscall]))(SYSCALL_ARGS(®s->regs)) + ((*sys_call_table[syscall]))(SYSCALL_ARGS(®s->regs)) -- 2.35.1