From patchwork Thu Oct 13 17:52:11 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 2114 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp403826wrs; Thu, 13 Oct 2022 10:53:42 -0700 (PDT) X-Google-Smtp-Source: AMsMyM72bUso7Ky5B7wLgO2tULYsCsB6MRVeW69eDs1rcMih666wYKEJPr8iBzIN5L1UpVv8fE40 X-Received: by 2002:a05:6a00:1992:b0:563:5f10:62a with SMTP id d18-20020a056a00199200b005635f10062amr935005pfl.81.1665683622168; Thu, 13 Oct 2022 10:53:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665683622; cv=none; d=google.com; s=arc-20160816; b=i81LRTMhXChqsn7OU/2PnTwxUEURj8FPehNp1U9r5cTvNdBI/q5p5QNJ2M5zsLxH13 4NFpBc1UW6l0F9ZoYOy6p74hc8+gfzssuAyfRTVprZt4ezUFII7hKeWaTT+8ECP0Gn3m m2J1aRwLhJlsQ8dNETcJbVD0E7Wn6P30/LOHaxM740kSC3niWvFBv0Zsjvqjjzogm8q8 9Eq5FmbWqRCx23G4Hxv55IxSXp//RvQ1mJdvIzumj2Bqc4A5RRdgGtCguV/Cc5I5QqKZ loqUfuRt0yT+rAIxEbCXCLW5Zp17VNH/pa3zveNftWpXRO/lhO8lpj2YuoKyouUZoGlq FydA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=dJDs24JJyfkZtcB06WpgN5odIe0hQNCVeW1Sj9XLBNg=; b=z7g3TgdF8D2E/1v8n1H/TbmN0iCgNu9GGD3ypQff+x/4A6s/kwAckYBgrYMQBPLr94 cVx/uQFlIjStZdghXlppyuxv9vLJUqLCASGP6RiJHzHL/OaFeTGEj790cxxEuTKYT4GL hzLyA7q6AGHZIYQKd35uX52VrX+Ax3hpKRwQZnST48PhPdD759lZ4ITMtKpPvE75gU1u ncmSXh/81fs7vZOLMFu/xaAvJ+xZGFrfMcFa0RzMrnSjDfVIhb5tQ23IkJN7Xn7ipxzo 2NsAgFYHDvJtiWm4rOUu3DLVOzv74a4vAG+91mWDeTA2VsBx3JQOZK3dhoSwam026Ee5 eqdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=exr4gMM5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f8-20020a056a0022c800b005657b95c7d9si8642449pfj.348.2022.10.13.10.53.28; Thu, 13 Oct 2022 10:53:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=exr4gMM5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229554AbiJMRwr (ORCPT + 99 others); Thu, 13 Oct 2022 13:52:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53454 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229586AbiJMRwo (ORCPT ); Thu, 13 Oct 2022 13:52:44 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 00AA414D1CF; Thu, 13 Oct 2022 10:52:43 -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 ams.source.kernel.org (Postfix) with ESMTPS id 91D1DB8201C; Thu, 13 Oct 2022 17:52:42 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 05F19C433D6; Thu, 13 Oct 2022 17:52:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1665683561; bh=Oo5dzfgUvi7RFuvhID2RTEtBjZh0y9xtz/tZcCFnyi8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=exr4gMM5hmcE0SgFOcXvz2+F9SDRrPGJXPHy3WxH0LVYLcEYNIEyP545PjGCfIdU2 Y4O9od5kwd8XbU+XjuVMRHXieDJMQfdgUhRmXlA0gHyepHJwkMHkesNwCr8/T+E5Ud XOW/8MHa8ls6kYivy6KI0Cq63wWqV2HwVDndgMkw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Lukas Straub , Richard Weinberger , Sasha Levin , Randy Dunlap Subject: [PATCH 5.4 10/38] um: Cleanup syscall_handler_t cast in syscalls_32.h Date: Thu, 13 Oct 2022 19:52:11 +0200 Message-Id: <20221013175144.611796545@linuxfoundation.org> X-Mailer: git-send-email 2.38.0 In-Reply-To: <20221013175144.245431424@linuxfoundation.org> References: <20221013175144.245431424@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1746595869825528235?= X-GMAIL-MSGID: =?utf-8?q?1746595869825528235?= 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))