Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp371768ybt; Fri, 10 Jul 2020 01:56:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJznAA10GFpAddnYFHlpnPXSrvUPMqjlzrF5/M9gtRtMj33UQLlj156L7qqWwetquklKIOWG X-Received: by 2002:a05:6402:3d0:: with SMTP id t16mr74478456edw.287.1594371386998; Fri, 10 Jul 2020 01:56:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594371386; cv=none; d=google.com; s=arc-20160816; b=E9GjXaVPjN7icTTY7c38CmjkfOKA7d5NrrbF5iFNZA51v5xV3X6DqGV7P2nZCsKhMj aVm+7hLHOuSR5ALE1d5JsBjhxi8qU17kYkCKT+y486U+KwxrA8yPslO8L46/QOVg/Sie b3oV793OOOSoFjsM4BATGB+eqvl0kCCBUpRkUYAq2lhjXvYKX5oFdm/e/aLeL0/3FFrA j1QnafCwvzZzyjq+OCBc+u5x7HN6WUR7qcuf/Bokt+Bg6Ih3dS/mks3T8JPjso3dYrU4 vq/Pe+MUMFvGKv3KFb8ZtA26psb9FFh4THz5bc1kYu6VrGWZxTDGn9h+nOUxlF8GdehW v1bA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=Vpuh/UyJCwIooEffOYqRs5sxFTS9oyEwixxCjgqxAA4=; b=dkgBSb6qdkSi+3wkQg9bBbs7PUXHp7zRFmu4dYilJnvpfKSYz5M3xKPYPHPq02DqIa HCvC+jPEWQCJqtwWFRUbJsC3LK42DolNix2WbL28qvxBMDK5dzWQDVxKOzGWsSi4lopd +QfMVINPAM7pXiLVxMx2TCMSqGNvgDjRmJIqfSVkNlIodws3xnG8GYrilmDfMIBvF2p2 Dyib/HqwcaHUAJpT7+q7KTzNiz/CJUBFkWmwwSvpha8NVQUh189MQevNSDqBc/z2hReg ssHB/EaCKf0PMLaTFR22qZVzDfG3i/f8Kq0G6Xo/AIo1x0iIg71paH+tdCQqZpCo14yc 5mAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=xf9Dd9sh; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h13si3420376eji.459.2020.07.10.01.56.04; Fri, 10 Jul 2020 01:56:26 -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=fail header.i=@infradead.org header.s=merlin.20170209 header.b=xf9Dd9sh; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727886AbgGJIxm (ORCPT + 99 others); Fri, 10 Jul 2020 04:53:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48312 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726615AbgGJIxl (ORCPT ); Fri, 10 Jul 2020 04:53:41 -0400 Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1231::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 761EFC08C5CE for ; Fri, 10 Jul 2020 01:53:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=Vpuh/UyJCwIooEffOYqRs5sxFTS9oyEwixxCjgqxAA4=; b=xf9Dd9sh8eexx3l9KAeK/ORwsk n4t8Mi80UqPBVV9JSsCoXJLrNUNWqVUolu/+xGlhhJcWsHPkYM5kOyZtaiZ/LPYxlunL5QqOuY6HH hoXQ84I/JxHwA+yV1RB7ux89quepCwI9sBgpaMKvt99b9TDw8mAE6Y0Ojq0pGan0bsXqjgaI7ic1g SNbH7yMPpl+5X09zRWqMJGmmwXbtNNkUb//1EjeZ/TCR+mmzNy2ip6qHXXBDnGuzMNlDNOaGpDgaB EDKKlUzAgKt2THNOrNfK6OPnt2P3dULPaS35tFGJnAJvLlWIiPOPRXPUCFg5SE05DhSxAP6aApEJD /6VJtfJw==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1jtomh-0006xk-HE; Fri, 10 Jul 2020 08:53:31 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 31C4C304E03; Fri, 10 Jul 2020 10:53:27 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 18A0E214ECE40; Fri, 10 Jul 2020 10:53:27 +0200 (CEST) Date: Fri, 10 Jul 2020 10:53:27 +0200 From: Peter Zijlstra To: Brian Gerst Cc: Linux Kernel Mailing List , the arch/x86 maintainers , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H . Peter Anvin" , Andy Lutomirski , Nick Desaulniers Subject: Re: [PATCH v2 02/10] x86/percpu: Clean up percpu_to_op() Message-ID: <20200710085327.GW4800@hirez.programming.kicks-ass.net> References: <20200530221127.459704-1-brgerst@gmail.com> <20200530221127.459704-3-brgerst@gmail.com> <20200709103024.GO597537@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 10, 2020 at 12:38:23AM -0400, Brian Gerst wrote: > 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. Fair enough; thanks for explaining.