Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp768829rwe; Fri, 26 Aug 2022 14:13:26 -0700 (PDT) X-Google-Smtp-Source: AA6agR6OTPFzwUW+Z/rJbsa8SNemEWObtjr7AuozIFr4j0w0mXbakqFw4pbOv+AeRiMiNQTD+lUB X-Received: by 2002:a17:90b:1804:b0:1fb:141:a09d with SMTP id lw4-20020a17090b180400b001fb0141a09dmr6190421pjb.170.1661548406691; Fri, 26 Aug 2022 14:13:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661548406; cv=none; d=google.com; s=arc-20160816; b=y7btWCZ7nFgTix1/4FTt8iep/umFdAGtNvh5tGYb9viNGRjvh1Edp8KOQP7lkbBqvC 50Vlc37LFbvnlTTmPzc3btKWCsZ0Tz5y7NfRgdYVv9YdSJmkn/7oZyjxQAj9gMqsCrEE gwPIXZYxmnd2362TfQAjQhl6uxWkQyR959RD9ngKKWkobmiUs662CjnKIOBV1//eVYig dkajyIQOPmwLIl6xRrsDF9MypF6aclIb5lkPID+YXHUTWsdjOm8+iepSxZQdxx1lQb6G EDm/Baf5Wc1oHJYTPD655eFQjJeHNTQs3MVHbMeBSWM46GrhiwiyyBdgLipa1Fm1krcZ yGtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=CmpOKqV7QViVwZMhkMvsB+taaaqNwqLn4k5e1LTQL9c=; b=htW1cysfGopQzZW75wTlZV4yHB2Y8xL9ZlkFj5OX0U4X/3Z0hGi6008ylj7eTPwgpW D+DeT9NqR3wDYao9qXiHXZo3EFyT13kUGXlyt50fYdt2V48hiPmRbORPfZgZwdXYgXTP ZRCgFIMXUQIsTV2dqMXzs0Eey4KcalFrq5oNJlvKTtcA1wlVnzIU3ZQ88e/R/GRGAwL0 B/ipFi5HHxYbcBYYxrtIC4pfsV0NAj7RXm9ACE0BzmqkaoOJLWTXlyOwroWh1UbgNxc4 lAa+dUYd9qsQDUtbrR78//Nfxq+R6a7mE2b+WyCbs45BVZUXmv46O+YWLS26GZKNX0Rc jQMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=ZqPSETxi; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bg16-20020a056a02011000b0041b557cea68si2783815pgb.25.2022.08.26.14.13.13; Fri, 26 Aug 2022 14:13:26 -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=@infradead.org header.s=bombadil.20210309 header.b=ZqPSETxi; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344485AbiHZUhN (ORCPT + 99 others); Fri, 26 Aug 2022 16:37:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38290 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245076AbiHZUhJ (ORCPT ); Fri, 26 Aug 2022 16:37:09 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 53B8DC7F9C for ; Fri, 26 Aug 2022 13:37:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date: Message-ID:Sender:Reply-To:Content-ID:Content-Description; bh=CmpOKqV7QViVwZMhkMvsB+taaaqNwqLn4k5e1LTQL9c=; b=ZqPSETxiO5qnSNwgKyx0mIUpgA EZbwrnXeDW8yIPVJ9xOm/zhd3K5ST+fZunQd0ct4tgb2OmJu1E+p5X0IlF1pfidPO2i0wl1ey9Inl VQInHKAvrZzFmfM+XA8LnFSzSAeXUxubREaU4ijPBBcK4Axs7QkSNVpXIo087H6wGsC+orYWgChnR bZqcC/HkEu9O9Bm9FZWT6S43sNNVor+Rivh+h1ahd0IOyZOyyCzCFqfv8F9unbNoUeoupGhl+41LD 6BPlCajD63WtJlzVhEO03lHecIaejMl/yfekquoeTD4hMpccU0n3V0O5Hg+/gQBJbwgHQlu+330xb SH0JyLOQ==; Received: from [2601:1c0:6280:3f0::a6b3] by bombadil.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1oRg4c-00Bwf2-6c; Fri, 26 Aug 2022 20:37:02 +0000 Message-ID: Date: Fri, 26 Aug 2022 13:37:01 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.1.2 Subject: Re: [PATCH 1/2] um: Cleanup syscall_handler_t cast in syscalls_32.h Content-Language: en-US To: Lukas Straub , linux-um Cc: Richard Weinberger , Anton Ivanov , Johannes Berg , x86@kernel.org, linux-kernel@vger.kernel.org References: <20220826152927.193d262c@gecko> From: Randy Dunlap In-Reply-To: <20220826152927.193d262c@gecko> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE 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 On 8/26/22 08:29, Lukas Straub wrote: > 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 Thanks. > --- > 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)) -- ~Randy