Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp248958ybt; Thu, 9 Jul 2020 21:42:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzznkUyn8zN29jhj45pbDnpcOKgsFHzLrqQw/Z1eE3I6wbtUS0PpC8eXaH3AJTDJAlSK8xP X-Received: by 2002:a17:906:915:: with SMTP id i21mr61453232ejd.313.1594356133334; Thu, 09 Jul 2020 21:42:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594356133; cv=none; d=google.com; s=arc-20160816; b=Xkh9GpqHnJflzJYRVGaDhPejAc8ABkREQBHLFtJZ560PofTB1Goz8V2dxYZINMBS2g Ni+GqyaKlYID9TkiLSQKkvz9Vazx6RdogbeJX+MzIzc1BkN/g37p2irGydL2+VtFz5n5 TyKSnb4ABo4HUjX6yJEbBWE5l97AVgUWhdWrmq0Jg5jfoODEp7vY4SC/OuEdq9IXLXn0 aT95SgDfAig9ItxVVF8j19YRJyO6ISjwy4nO0wW7VdwjrcTCQZVtsfIxaefXIv/Qtdk4 s0Il1LiyJvLwZ4rDPitNggMtH5qfjEN6MeDTSaD1/X+NLEYWLOaRvaCLKtnWRlwVIBHY SiJA== 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=GPuF3Odhd0M6Xzie5Qwbk0S7FxZlhTnogIYmSKAEvRI=; b=pCcrWnGEWWAHjpjU663KfyRx7AwCfhJpGhLYfHOH+R9L6fcu9ufC+MQhgaSp/jeiRG MO/E5Xx6Ky7+Y1JgeC8/3QEbb/hJ5T30NvBHxxO5qDN3TOgXamSiAsAErMcxr33nGtU4 VrpsuoKrIcDVJ9m7GaTcCgiPN9gRzs2/ntA6MJdnbOk9xyoLJ0VU32KOmrn4xUh2uwtL enDrGUkpbxBcxTKyMWWTYWSRUWdQOrUz+YWyYI5vCKVNkRTxsKfFfNlumBZaQr/ePahp wtoB8L0SlvNhcUf3hy77WgHxtPnzJaTpT7H1PxNp/6XP6jwgTAhlzw1arCj27zfsgH1X pZbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=NyTfejrd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l17si3383802ejc.174.2020.07.09.21.41.48; Thu, 09 Jul 2020 21:42:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=NyTfejrd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726461AbgGJEig (ORCPT + 99 others); Fri, 10 Jul 2020 00:38:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37326 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725777AbgGJEif (ORCPT ); Fri, 10 Jul 2020 00:38:35 -0400 Received: from mail-io1-xd41.google.com (mail-io1-xd41.google.com [IPv6:2607:f8b0:4864:20::d41]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 801E2C08C5CE for ; Thu, 9 Jul 2020 21:38:35 -0700 (PDT) Received: by mail-io1-xd41.google.com with SMTP id o5so4679335iow.8 for ; Thu, 09 Jul 2020 21:38:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=GPuF3Odhd0M6Xzie5Qwbk0S7FxZlhTnogIYmSKAEvRI=; b=NyTfejrdEh520jNNkmxYw9np2vQVLwefZ3NzJbKcatI0R6q0p9O2vU+xnLAswuO5aT 8LrEuhdQYmZGUaEUAruLcUqAm8TDuhqXOG3FyHu7cSeMUwI+PKTUSVo4XuACsFxnlzfi duotsQ3AtZBO1Q6Vo+x8XAWbExJhfE67QF/feTv/1KY7OEx7HO+2zAUPer3uknBeoGXz RAjavVDa/uPEy/9sA284GmiF59arah2IK3JQWIc4Vfqv/L3EeTIR70dp5T4jZGJtaJSH LYbbQx6uDrK3xKqbEEL6aFx/8zyDcqV00bf7Db97Ve+etXOVGV2iahdAfzL9kS/9eHJO Pv3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=GPuF3Odhd0M6Xzie5Qwbk0S7FxZlhTnogIYmSKAEvRI=; b=EnvDhkfS9dZt3Oor8HJqjhsfQvp8IKgTckJGEmoOd4w9nbnpbrpx2qWHWryxLoP0Qe OaI3oUaosDCYRstAI9thcFy52zCuUvsrOxWYS8A9hLMia9ldQlfAyuKBk/9L8TxVzhLB J8U75mA5iYTw8JGNmDUmLClLxqCS1bUdJSuYrpyRtNzgiT/F8rjmXeiCEecMrXicvA6o HFnnFEgROlMAOcyYghWDT2qXlaton+FXxpRxVJXg7uD6hH1oBOmgq2GGMy0qZoc9CM1W AZiwBU4I+xtHPSfl6bHrZmhrdZ6k+n8INbwqhHvTA8ciXez0Qy2wB7T19MqSQX0bZ2uJ FHRQ== X-Gm-Message-State: AOAM531txNey2/QEVjN2QqgVOZp9LmZi3DPCydFm7dhB1s0RwfO3o9qs yYLqg6fpTNGJd6YzsCypK1eBqedOqCzVRaYxFQ== X-Received: by 2002:a02:840e:: with SMTP id k14mr12602675jah.133.1594355914964; Thu, 09 Jul 2020 21:38:34 -0700 (PDT) MIME-Version: 1.0 References: <20200530221127.459704-1-brgerst@gmail.com> <20200530221127.459704-3-brgerst@gmail.com> <20200709103024.GO597537@hirez.programming.kicks-ass.net> In-Reply-To: <20200709103024.GO597537@hirez.programming.kicks-ass.net> From: Brian Gerst Date: Fri, 10 Jul 2020 00:38:23 -0400 Message-ID: Subject: Re: [PATCH v2 02/10] x86/percpu: Clean up percpu_to_op() To: Peter Zijlstra Cc: Linux Kernel Mailing List , "the arch/x86 maintainers" , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H . Peter Anvin" , Andy Lutomirski , Nick Desaulniers 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, Jul 9, 2020 at 6:30 AM Peter Zijlstra wrote: > > On Sat, May 30, 2020 at 06:11:19PM -0400, Brian Gerst wrote: > > + if (0) { \ > > + typeof(_var) pto_tmp__; \ > > + pto_tmp__ = (_val); \ > > + (void)pto_tmp__; \ > > + } \ > > This is repeated at least once more; and it looks very similar to > __typecheck() and typecheck() but is yet another variant afaict. The problem with typecheck() is that it will complain about a mismatch between unsigned long and u64 (defined as unsigned long long) even though both are 64-bits wide on x86-64. Cleaning that mess up is beyond the scope of this series, so I kept the existing checks. -- Brian Gerst