Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp692233ybt; Fri, 10 Jul 2020 09:57:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxDarc3XoSjZ7paOg84wyIy2jsp/xIrjLwAhjfM9jiWYqK2yW7m0kGvbuvmcm8qccLBbtKd X-Received: by 2002:a17:906:6d4d:: with SMTP id a13mr37251829ejt.146.1594400221075; Fri, 10 Jul 2020 09:57:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594400221; cv=none; d=google.com; s=arc-20160816; b=FlKtq5jYlP1Mmf+NjaGFK8zgyuOq/i2eZrXyyqh8unRBMbGmQvTRv79HDcMpHOPASy qTHuYmqQh7HqJc1cFxqlwPOmPm/KJPPuryvH6o7K/BPDRKw7dOzvMFv+yNPI/8XGeQzE /AhBI4X+TL2lTUVLsnXIshnsFqItx4WLHYbQ1o/KmZrClcnbtaLY205OkmQmv9f71cQk Ev9FDy6rgqUl3uEI8vykKp0L6//KpRMb3hGX+18q8d8YIZjAei9Epg5QSI5rFKVD2lw5 MGzb9G7wxbxxIibQ++gGa2OuawbnND3EsvMQDG/QTGggkqRdWjZ6GbP8yB6FgcWAPCWe X74Q== 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=B2X5QFPcvgrAboSg6Ax5Zdcay4B6bTN36cXi/Syr5yY=; b=Mcxy2JIfHgQjMON9lXriaNN0CxqbALfygcgJEyOngigzZ1cY3DxqJ2NMUkQ6BPDDgC ePTyT/555T0Hjb5QBq4t9KZ8+0g2MptSgNMqxO2JslJeOu6AljMBCxykQhXjBNnRHvph GljvXiOhN4As+LXEFbUObLKUlPHCyNKwb93Vt2fTMCrKvbeEC2OlmGIQh0Z6jpXXmKDl TXhOphIuWZi56l/JPq4ndL625SphJaUfLCySd9rjUkUekMaJFuNln1d9a8EhaQF/wiIJ 5MvSdluIR/xns7M6oyRUMTmKwT5CawfXdOYcFVmJwUt3zuBPQmeSKxqt+dOIMqTIsqut 1j5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=orobF3YI; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dr16si5678609ejc.320.2020.07.10.09.56.38; Fri, 10 Jul 2020 09:57:01 -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=@google.com header.s=20161025 header.b=orobF3YI; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728319AbgGJQ4b (ORCPT + 99 others); Fri, 10 Jul 2020 12:56:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38512 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727097AbgGJQ4b (ORCPT ); Fri, 10 Jul 2020 12:56:31 -0400 Received: from mail-pf1-x444.google.com (mail-pf1-x444.google.com [IPv6:2607:f8b0:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 84B19C08C5DC for ; Fri, 10 Jul 2020 09:56:30 -0700 (PDT) Received: by mail-pf1-x444.google.com with SMTP id u5so2784768pfn.7 for ; Fri, 10 Jul 2020 09:56:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=B2X5QFPcvgrAboSg6Ax5Zdcay4B6bTN36cXi/Syr5yY=; b=orobF3YIzCp0gPmGredIbnPemO/2BXqQA8D51eMgBqgC4wU1bZoLntj/vqLw706pGR A5EKYR5icv15YbAs6VYST8prgmXsSchbLc4Ibm2kOV9Nydh+LtrB7lamIjRV4Dv3wODJ 7dGiCGy6dNFL+tRalZmSFSTYNiKVFwmPE9yGCLe8vVyT28/HFz0miIVnvpNg1Nkw6vXw egIudBZMyQHk7bFULT7t73v2QzK4gTbrHB7OM6M4bZuhlULhcnGQzLBWCUDN+tMextEw Y8ekfp+DfGZV3YWey9k1NBAYm1bgBrk1PbaWV/bSQ0K5iKffznm+AbdELiZajAD3q7li l4rQ== 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=B2X5QFPcvgrAboSg6Ax5Zdcay4B6bTN36cXi/Syr5yY=; b=JhQnbDDKAm+H2cQjbCJptaTSeFjlXcBgkhY2mUMQY05AuBzhruRaDHc7VZvoHU3sr5 gHM6kpQ4B5pasz8R+VUHcITbD1ze+mF9sgYwKD+/aV5T35c7WWXa5GUSggV9bhcuUsRg as3qZbYJ/IekUXl5U5RETZURyOVt3pQu4VgjDrep+/PbwgtaHyXj4ER0K+N1+Sejk4L6 tbIhbZHuMSEluXNat5S35mdR0VOtqjwuY8FZBHqRb0Jjkx8CavMIhjmHsWZfrlpXk5q6 JhYSzhU8c8Wh7HxXl1OpgSq7m6lPRLIvYQqhiCk8Ylx/7sAX0wwBBgoH6IV9lZh+S9nQ uBWQ== X-Gm-Message-State: AOAM532cQ++7uB54MZ/owiWxLzmYf5Xwz9fWCYL2hWWL0xpF5LTGWLi7 coE5nSpSAnEOiJnmy37OJjQH5eHjeGv2uk2d+GrYUFR1tnA= X-Received: by 2002:a63:7e55:: with SMTP id o21mr60676922pgn.263.1594400189668; Fri, 10 Jul 2020 09:56:29 -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> <20200710085327.GW4800@hirez.programming.kicks-ass.net> In-Reply-To: <20200710085327.GW4800@hirez.programming.kicks-ass.net> From: Nick Desaulniers Date: Fri, 10 Jul 2020 09:56:16 -0700 Message-ID: Subject: Re: [PATCH v2 02/10] x86/percpu: Clean up percpu_to_op() To: Peter Zijlstra Cc: Brian Gerst , Linux Kernel Mailing List , "the arch/x86 maintainers" , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H . Peter Anvin" , Andy Lutomirski 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 Fri, Jul 10, 2020 at 1:53 AM Peter Zijlstra wrote: > > 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. I brought up the same point in v1, for more context: https://lore.kernel.org/lkml/CAKwvOdnCcpS_9A2y9tMqeiAg2NfcVx=gNeA2V=+zHknit7wGkg@mail.gmail.com/ -- Thanks, ~Nick Desaulniers