Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp7350805rwi; Mon, 24 Oct 2022 13:23:04 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6DodsG9dhwJeHYv8OGeBVCeOe7FlxZ6608goceVnZxnCIRc8OfUnub0zHIScYCKTC2D/w6 X-Received: by 2002:a17:906:3019:b0:7a7:6425:7d1e with SMTP id 25-20020a170906301900b007a764257d1emr6295847ejz.663.1666642984105; Mon, 24 Oct 2022 13:23:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666642984; cv=none; d=google.com; s=arc-20160816; b=EN1k4yy2peDqlaZNZEmvgelr5+v+gPQSHglCpj/+qu8dCn1uj4X+sez8hz2lVxtXJ9 D6/7V5cXQgIECw+3TiSmMryRJNNx7b3uNN1hewCoD65hnMZaiMNV8+xqo5rXLJqANmv6 gV33kZFT3Tb4eDEgqJ2eWRjC9osnVweDXBLsAMmAbn/NVmrrQvCu//lsLBzHvlW7mlgH 4Ru+3itZohmXYpy6cTiJj/YEBbhEPFYR4fmTrkjQWvBbuWmJQjhZ/RFBKOiMKPI2Wrsw 4hoUy/7+vSumI5UEacpS2FJFN4uUzitYnSUf/+yuVwqdzJBo38HQM4axq1UhgblC6NlH vpDA== 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=k4bofC3Vtizkasd+9Rt7rdkPSkCyCdArZe3i3Z4uPEeVj1nkwaiSX1zt/WrCb4RVhU 6n1FkdIzvW3sQTs8MAseoplYNqejvf2adngj7TAWOJ0HKwBkMh2uDMramKvNjSUFL3WM 9zFpDMe1xz1TPou+CgNVx6JAfOW4cHgE9sLtSc+trGuL/WgABUoegWBrgYkwul11JvTF WgQmnv/NirQDoXKbiaxG66w/73bfZGYu5gyTpENjYZioEiZKWcw4oiZ0OJJL2OzNsrIZ GUNuB3DVQIqS3WbkNGjN+RRLtrpH0TNiTTYBe1yw4oSAMMJ1rBvH0xm3RXC5rDXpRb37 qcLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="Qo/aFpVo"; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g9-20020a1709065d0900b007416e100f3dsi629036ejt.986.2022.10.24.13.22.39; Mon, 24 Oct 2022 13:23:04 -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="Qo/aFpVo"; 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 S232623AbiJXTnO (ORCPT + 99 others); Mon, 24 Oct 2022 15:43:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56330 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233519AbiJXTlg (ORCPT ); Mon, 24 Oct 2022 15:41:36 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4B18020991; Mon, 24 Oct 2022 11:11:28 -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 903D9B811CE; Mon, 24 Oct 2022 11:55:00 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DC364C433B5; Mon, 24 Oct 2022 11:54:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666612499; bh=Oo5dzfgUvi7RFuvhID2RTEtBjZh0y9xtz/tZcCFnyi8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Qo/aFpVorSzGJCC/yMtCya7QWiF1qIG2+tva80cUYp6J4PrUq1KHYnI14XY3+wlQm JvNBeSnd+5yyaI0dCUiGSHNjDahxHZsV/cWPioM7Ue8qTBKjtM7bTHO724eMiAwHv7 FbQwsojzLhjVQMqIGroBs8ZPiGWWNHKSTWIf03OQ= 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.19 011/229] um: Cleanup syscall_handler_t cast in syscalls_32.h Date: Mon, 24 Oct 2022 13:28:50 +0200 Message-Id: <20221024112959.505038051@linuxfoundation.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221024112959.085534368@linuxfoundation.org> References: <20221024112959.085534368@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 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