From patchwork Mon Oct 24 11:29:37 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 8426 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp400701wru; Mon, 24 Oct 2022 04:47:36 -0700 (PDT) X-Google-Smtp-Source: AMsMyM77nm7F9IumSsnTjv+GR/j2fJ1uYQ9UGL9diHXldcLg92AzMBnuCgqDjdhhnQmjoZ7ec994 X-Received: by 2002:a17:906:c14f:b0:793:30e1:96be with SMTP id dp15-20020a170906c14f00b0079330e196bemr22141438ejc.447.1666612055904; Mon, 24 Oct 2022 04:47:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666612055; cv=none; d=google.com; s=arc-20160816; b=UM+6vgmXh+BKAHmnfXKpRa952hBKuhywUe39/9Mlb1+dkH3qzjr6Azp0UCWNgbjuf4 eycPHeW7+tqjHNUOSvh49rjorZ2+kOB0+SKtOo2yvKKHiaC/ZZ1EAvPsGyTaeVptjIjO qXb1DwHOMqCJ3Ba6reMD/Ypw67FLYUy+X1NJE159kLL0UV3dn1FrkW58b4T2P8jNQwmf RbdwJDEIZMS3V+kMKPWK9D2EcLu5GkgCZiVEYt44BG1RpqD5TxXbYZ8UEIBHdEw+g3jl wKPZJStqnOKsB2+j0Ht8ofD018W3apNO6+SRAWe1KY1GGWoD8crqHAfSuQZ4/O+L32od FFdw== 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=EKzrVdK0hIT1JZFfijD0uGIS6Np8sPcY9ks6esX7meSrdw2CttjTxtXvURJEzHau+d 9jMLc8jfgxX8qWiJKokwZCtlYRwW+ZSyDzqqq9FToYMaJtAcIY5tT1SBxv1UrCuOjVF+ Ko9hSIe5XJAu+S6/y3MzCTNQ2aaZgyup7w4o5quJ03IMjgevPVhlg172rXQwHJr+H38k IgGmvT1lLD8e4XdxieyLy/TzGY9+nm+NmtU7oZUsKgrn0ysHKxyJ1Qa/FWM3CAr5JPnB noS+0CiujPZTGZ8LNdXELjweirdHjccn43FvrtaQoS/OERynUHqjBdciaXoW4LPBxILo y9/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=q4qRHZdv; 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 gt9-20020a1709072d8900b00782627f37d6si33099772ejc.778.2022.10.24.04.47.12; Mon, 24 Oct 2022 04:47:35 -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=q4qRHZdv; 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 S230398AbiJXLqk (ORCPT + 99 others); Mon, 24 Oct 2022 07:46:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43444 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231829AbiJXLoe (ORCPT ); Mon, 24 Oct 2022 07:44:34 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 11E03E03; Mon, 24 Oct 2022 04:42:00 -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 0EB1561297; Mon, 24 Oct 2022 11:40:37 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1A04CC433D7; Mon, 24 Oct 2022 11:40:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666611636; bh=Oo5dzfgUvi7RFuvhID2RTEtBjZh0y9xtz/tZcCFnyi8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=q4qRHZdv/TwKoZ4qS8yy8whqqHOO+8t8OagQXmCQijTbiztt5KmIFgHxk1SPqdh/x WbF4nxDgxDMDSJBN+BTlHclI6IOH8nf0r/bx2lrViB1BEXf9XK4PakkFtA4KNaS2aU GxRn0JIuV7QAXnmbJfbhNPhN7JdJv71011pXV/yE= 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 4.9 023/159] um: Cleanup syscall_handler_t cast in syscalls_32.h Date: Mon, 24 Oct 2022 13:29:37 +0200 Message-Id: <20221024112950.248457407@linuxfoundation.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221024112949.358278806@linuxfoundation.org> References: <20221024112949.358278806@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 X-Spam-Status: No, score=-7.6 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?1747569402851172278?= X-GMAIL-MSGID: =?utf-8?q?1747569402851172278?= 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))