Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp942457ybf; Fri, 28 Feb 2020 10:36:03 -0800 (PST) X-Google-Smtp-Source: APXvYqyjgkTd5vy+G4TGEoObA8qMTkYPqcJGWGTaf5dmdvM9EaTvD3xfQV8LK+4TXsu0xhsWWBLg X-Received: by 2002:a9d:1284:: with SMTP id g4mr4139895otg.47.1582914963367; Fri, 28 Feb 2020 10:36:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582914963; cv=none; d=google.com; s=arc-20160816; b=haZTtm5ds8q9zd8LgKLY8Apn2wwr8qYWPjB8Z7USSqZI/HHfxvHgdga5kpmtLIgn7G 49Z6rzv5UthEvo9L35UJruIUrpD/uS82p2XnKOwOIdHG0gjzgp/xDOCJmps2BvWuxc4j UY3BlAPc2fdVAGEHmJ5PDgue6q3Xza5KGPZu3wODDFAwv5s5Pi8ubuqJGRX5qBKGksJp 3tdNeNOarwqEj4df5DUHJ/OUinS21btf93QpxAH0vRmoHhwk2o446Yr5RSsGNhOsQZap kEYC6GEfAob/jyh60F7NAXo5iJrCjpRpIvLXcVfO7ybPIirEl5tzP60Lsflc5euF66E+ HNOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=o6fAn50+LJtbnVqSg00LaMXfgjg6mATTq8Iu/Pffgm4=; b=fbAMp4i11rgrJVfwaiOUq/fPJftIzYVJkVI7OnSp0affKjKxWKmj6hLDGDKizO31Cp QOKIWgFeTq3isYmWiH7HVqXNsirPly7eS0ZLUzlHzJjzUxGxJb0PZv+864VZ6l4LEysV qZc5RFOaifNNWwV7y+EgUoHbnm/qQC5lRoKtiOQcDHTSyOeR4f9U8polVtuAavl1fJt2 Cxn2aVajBdhUSk+d9sH6qrUsr5DhZGV9IurD563Vpj2ketHNs3zi7TbLcANrmnCGrdDi 0S97MTbJErzQDoCOMFWdKXfP5oNeKX1Qy0d2YdCMMCd6SR552B9065AMXfw5tQKHAAQM rwPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=yXkHIoJ6; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c76si2084944oig.149.2020.02.28.10.35.51; Fri, 28 Feb 2020 10:36:03 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=yXkHIoJ6; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725906AbgB1Sfm (ORCPT + 99 others); Fri, 28 Feb 2020 13:35:42 -0500 Received: from mail.kernel.org ([198.145.29.99]:38546 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725805AbgB1Sfm (ORCPT ); Fri, 28 Feb 2020 13:35:42 -0500 Received: from mail-wm1-f46.google.com (mail-wm1-f46.google.com [209.85.128.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 5FBCE246B0 for ; Fri, 28 Feb 2020 18:35:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1582914941; bh=GBCP5rJCRf158WDaaiSNEzMTdjhXomHfFag57VLC4Sk=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=yXkHIoJ6l+tcPmEyJD1vdet4yKY4enrnMEj8W7knk1+lERKDxAqLfkzK4sQSdRSsr NPjFrQ3lV5sCm3JpydrjVHsVHH1tzyzMtZgR4rC7CR9l6SxMWFBZZo2lQmhjAL6cVZ FqKLGYmhhcu1QQoSDmWRNB80ftzLlg4EZKKgFPs4= Received: by mail-wm1-f46.google.com with SMTP id a141so4314827wme.2 for ; Fri, 28 Feb 2020 10:35:41 -0800 (PST) X-Gm-Message-State: APjAAAVqxTXzHnzzhj1YyFdy8a42/bewdQKtQQEgEcp4vBJXeDRWCKWQ fimXhYELXDpS86a5moKWB1GN95SedTgrOXQThIQq8Q== X-Received: by 2002:a1c:b0c3:: with SMTP id z186mr5805385wme.36.1582914939828; Fri, 28 Feb 2020 10:35:39 -0800 (PST) MIME-Version: 1.0 References: <20200227132826.195669-1-brgerst@gmail.com> <20200227132826.195669-3-brgerst@gmail.com> In-Reply-To: <20200227132826.195669-3-brgerst@gmail.com> From: Andy Lutomirski Date: Fri, 28 Feb 2020 10:35:28 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v3 2/8] x86, syscalls: Refactor SYSCALL_DEFINE0 macros To: Brian Gerst Cc: LKML , X86 ML , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H . Peter Anvin" , Andy Lutomirski , Dominik Brodowski Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 27, 2020 at 5:28 AM Brian Gerst wrote: > > Pull the common code out from the SYSCALL_DEFINE0 macros into a new > __SYS_STUB0 macro. Also conditionalize the X64 version in preparation for > enabling syscall wrappers on 32-bit native kernels. Reviewed-by: Andy Lutomirski It would be really nice if there was a clean way to get rid of the 0-arg special case, but I don't immediately see one. --Andy