From patchwork Mon Oct 24 11:29:05 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 8522 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp405735wru; Mon, 24 Oct 2022 04:57:35 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7oQfrsPUxFxvNgcw/4q2CFfqwfd/wZSgLd4CQgw6m+CKPjsBnp7aQPsiaXVksIeGPy00oK X-Received: by 2002:a63:220a:0:b0:463:7c92:ef9d with SMTP id i10-20020a63220a000000b004637c92ef9dmr27682250pgi.42.1666612654796; Mon, 24 Oct 2022 04:57:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666612654; cv=none; d=google.com; s=arc-20160816; b=ADkJ5bvQT6hnqlI2YL/qCABPFjkQ25ygMQH5WmAQjjHibZQnR8olJVoVSL3yTBOKAk c/E4P8wskwg1A+LSVHrzeqe25BycEiFV1uLk/GxUxcgeIsqRVBxd6DEOKPoJcqDH/smh Eoh/SINMmJC/DOrDD6KrDRmwc7tT4FIW8DMJib6OapJmhyCAAZytArBSIHdquRfHi2qV R4Yor+pZaBZgJo+x69amf0az6NCuJalhF4iWA8OGKnfv/tZzX+Yf2x7JR+FDW+hfIBhj ohX/RgX+qpoG4uoX6QnjwGJe/uciTKq+4BRjfMRfMDs2so1yTau3zTVQSYIEl/KrrKfT cqtQ== 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=GMmFFCHuvYplv2HZQ4XRJ/AyLD/0jib7KslyBt8Yxxc4sN7JzbKIwackmYh2cAPHPP O4aUIJ2grbL9bGt2aiEQZU1n3KxOPimQ8NOTz7IAO2LH75OZiSYZuvfAWR22WrAsycIk 6b2iqrRa7wnLntrlbvXx+VrBH56vMj7JdLslK57Cgqmg0urkQLDjlgkzRwoWu8WPcBvg q10+NeqBeN5+yWVe/XarEJR5YN6klAIMf9G/b6PbJZt1udH2hKqW/wWQvyu/6Rctf259 kmoV2BmUHIxUYP44BRoiBV33x5Qr/u6SUwexXyeM4Rh9q7NwN7uIhXpkcb90Vsyp999g D9ig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=FnxPxRZQ; 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 o15-20020a17090a3d4f00b0020addb2c6e7si8828939pjf.85.2022.10.24.04.57.21; Mon, 24 Oct 2022 04:57:34 -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=FnxPxRZQ; 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 S232209AbiJXL5D (ORCPT + 99 others); Mon, 24 Oct 2022 07:57:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53832 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232065AbiJXLz0 (ORCPT ); Mon, 24 Oct 2022 07:55:26 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B3D607AC36; Mon, 24 Oct 2022 04:46:42 -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 23C06B8119E; Mon, 24 Oct 2022 11:46:32 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 80BB3C433D7; Mon, 24 Oct 2022 11:46:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666611990; bh=Oo5dzfgUvi7RFuvhID2RTEtBjZh0y9xtz/tZcCFnyi8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FnxPxRZQ/doYAU4WVl8X8OylTTxJzXpQdcXt970sbOaBiO4qCZLJAo2sawo2Vh4cl B7Y+4TQ0kew2WQ5GdWH+iTbGw65WakXLaLpd9cP1vKUM1iPA2LoX2M7voqlmJzZ6GJ lJCaqg4578vnFVbFYIBTjsGb91QGBWNJEhiG4oSI= 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.14 028/210] um: Cleanup syscall_handler_t cast in syscalls_32.h Date: Mon, 24 Oct 2022 13:29:05 +0200 Message-Id: <20221024112957.875836331@linuxfoundation.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221024112956.797777597@linuxfoundation.org> References: <20221024112956.797777597@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?1747570030987784465?= X-GMAIL-MSGID: =?utf-8?q?1747570030987784465?= 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))