Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1351541rwi; Thu, 13 Oct 2022 12:25:14 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6osjbIaeiVAxuWgDh/eZhN011jqfgc3PTZOEC0qmKNvwhA4bFsBtvoeId7eXS+exJkoRvr X-Received: by 2002:a17:903:2284:b0:180:289f:7f09 with SMTP id b4-20020a170903228400b00180289f7f09mr1255502plh.120.1665689114600; Thu, 13 Oct 2022 12:25:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665689114; cv=none; d=google.com; s=arc-20160816; b=c7yWMDP5HBnIGwn/MLL2QSisAzw4okiZRTBTM2SkarAqh9ylac+Z6WTDGBV+gc7/Ew bVu24HWzDqy4rWg6n5mV9g/BvHAAkVVivkj75K5Y1PWJTUDNxjuhkG518JxeORsJbzcj JA1Tuiglywi7k/TWqiejDCG9PKfvbhS2VRA2AZduCjpNglJnAO03xcwLxyeXwbszuoGi Vv1vtyBoUeCS3//pNlBNQR+wIRUMNns3ybB9+/7XZWCnm+QXcF4LAfmKOgy+xl4oKIYt y3CP7A3lKsukNEUEtmOFDbdj6+Xb9W/9oVU7Rj4vwUrbd1p0kJ/+wmsrQSlfg/jXlNu+ lA1w== 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=Z2Mr9HkuVqitnk3wtHmSr0lfBSVpfHu1hqODUauD9FxBTuK5J+BQJR4ds99GzZg3tx QO7dkGYkO+eEm19NfM8OXWwUKVET/Z/HksvL73By+FKwKIDst5nKqOe0rWA6TzLyo4l8 aryYOAbj8r4BAuSX7sFFJUMOM3iUm2iUzYsSRsMKq7yfISEh4b5Um3kh3gFYpGZhoG72 sjxGpFE8I0miyv/RgssrhAow+GSZ5ttl2nBAv5hKcIFmdccZ+bSjX+Xa0KWf08Gj1AR9 0iFP/Ipbyuozc81S0NHSmmLPQtHZKsCAxd2597JxOsT06zLzWlcXPOZbF+u5IxtSA4Qc 7KyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=KyolWYDc; 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 z11-20020a056a001d8b00b00564f6be1218si233569pfw.71.2022.10.13.12.25.02; Thu, 13 Oct 2022 12:25:14 -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=KyolWYDc; 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 S230249AbiJMSAe (ORCPT + 99 others); Thu, 13 Oct 2022 14:00:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54050 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229958AbiJMSAb (ORCPT ); Thu, 13 Oct 2022 14:00:31 -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 826AD4A835; Thu, 13 Oct 2022 11:00:05 -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 ED6DEB82025; Thu, 13 Oct 2022 17:55:10 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 65B02C433D6; Thu, 13 Oct 2022 17:55:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1665683709; bh=Oo5dzfgUvi7RFuvhID2RTEtBjZh0y9xtz/tZcCFnyi8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KyolWYDc3tr8VJ5538O+EEsP8kcJzJJ9pAhQtJ0NAH72l3j+ziGpbdpM20nG1YL9f p9iiS3nGL2e30HsWMQQ1yt0oZclSC0HVgxy+eKLCz42tgdrMYXTeOd/WPZfBOiIah2 tQq+b0Nh2RLslpPBpDjHUgRpDnAKEltUe2O0ofJs= 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.10 23/54] um: Cleanup syscall_handler_t cast in syscalls_32.h Date: Thu, 13 Oct 2022 19:52:17 +0200 Message-Id: <20221013175147.922050734@linuxfoundation.org> X-Mailer: git-send-email 2.38.0 In-Reply-To: <20221013175147.337501757@linuxfoundation.org> References: <20221013175147.337501757@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.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 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