Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp692748imm; Thu, 4 Oct 2018 01:34:14 -0700 (PDT) X-Google-Smtp-Source: ACcGV63qwSU5qvnxEseMh+CJCfiFJEa+Ig2RT2MfuFOnCp3Hk9bCmDgWaQXHSZ69s18oeQFRNdFb X-Received: by 2002:a17:902:28a4:: with SMTP id f33-v6mr5537618plb.297.1538642054307; Thu, 04 Oct 2018 01:34:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538642054; cv=none; d=google.com; s=arc-20160816; b=NuK6mVmxpBCfFOxUsmYseXnrNCvt7csEA6lwIy/20bN8dgbvbILQfv5EWFllmZ7Vr6 xMNcY/oZSX8BQrVRJM1a0qHte+X7Bqo8WtlhXNPPlDdFRWhKf0ku4qsYHph4ArktQCnr XX1/41sJfTuBsNTm6N80MwkhbNW+HIwzrQVwCwwuzNCCjOWig//SIP4xcuMJRj4pYVqj SmcvQeO1jW4f0oOv2tTP57iX9im+GgsQz0267NuWBCg/vxRKleO0Fc9mCxQb1J8fJtSv ThL0qlndCMlAWS5FgK8rNKcZGaMd8oipYOF5di3lEB/I55nShBeDWbvw+98e183MwQ30 mjbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=nmDtcvCkwb975nAcqWHoB0JIXhy725B2m4ynNAJgE70=; b=YB9Bcq1pjGqu4qyA7OeyIUPU1MPFnb9V13qP/eM2R1ynnGwqdNhcS8Fu4jQ61gDq9k 41Urg1aytQxEa95OMbx5A+tKkA6lLtMkmy40qO/TXT4Co95GaopmnjrrMsGoccO8gghr TBPzgFXmhsyfmVZfCtD5uHkh83w7h1+GEyiQiBvdlD/XrGruKAWs2T4aZQKG+6QcQ4vi pwYM5FPt+0Ojec1cf+NnmqK2lOZSXfpuzenNZcIplP6AodXDwTk5Ojy4FC+WZZwlC0ou qGfl6hFMVQoCGqqW6t+LryW/HVJHzftLb9+JbY3QutvDrPH4kDLkYxDYHCAUDYKW25Fj PVpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=cikmoFM2; 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=fail (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 c1-v6si835511pld.107.2018.10.04.01.33.58; Thu, 04 Oct 2018 01:34:14 -0700 (PDT) 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=fail header.i=@gmail.com header.s=20161025 header.b=cikmoFM2; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727635AbeJDPZq (ORCPT + 99 others); Thu, 4 Oct 2018 11:25:46 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:44911 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727325AbeJDPZp (ORCPT ); Thu, 4 Oct 2018 11:25:45 -0400 Received: by mail-wr1-f65.google.com with SMTP id 63-v6so8893749wra.11 for ; Thu, 04 Oct 2018 01:33:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=nmDtcvCkwb975nAcqWHoB0JIXhy725B2m4ynNAJgE70=; b=cikmoFM2nlvTf8k0Jjseugkh221+L3qXfvUskmi/ucfGemg98UH1jpUd18xfiWNYE+ jbtFRFXYZJf4ImX+EKF/K8ZwPLdyVemvxA6ZiwbTdtjOeIV6NK1aGs/ZOQJ+FrgRHh8r f5MS2+5LFn3jWggsd0YtZ8LBeW+tdeE/uQbgw5aqYc9Zx1XRX1dfkSM4wWrAkd44i1/z Oz06PKgIJg6wh6bQs5RD1h+AZzw8Gf+7BJWEFB221e7Kt7FsePjLd8/QgR8RGDQHAAfD 4z3NOkCCvesaK807wWc+/yAbe0MoDO/qtUaI6kA9e0MFzQJ4d1iJ1VM2xDTQiZEjxIQt dsCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=nmDtcvCkwb975nAcqWHoB0JIXhy725B2m4ynNAJgE70=; b=r1oERQdAYwBdOStk/ndU0iYoNQCVc/Kg+iIriKfqs00z5cYkaXEueu7P1/J0vG3gUH BvAqIYlp5e3NcXSJmaWiy3iZaxFebPWNOJeJTt2nQVZLjOI99DAnaPxg8q40esu5Q1Gf D/DP0IWaaPF3s4rgMoXLgPurPyxvHTNesRxrUDxBQsFarlTO4oHn9U8popmW3L6Waggw z3RKDY87g56SaYGvF3k8hq5Zk8KfqfaODb+RjR0r1jI9E4wIPxO3bwYuyywy3GyeAi4E tI01+Fwgj3BkN7rfqSq2BYflR/DXYOvSevqogLayeGdiCE4kNl1BLO8tcatQPa/8utT/ +JvQ== X-Gm-Message-State: ABuFfogewqBurwMXApzTdrFIL/A+V4mLvGtGKDrA5iSMGApqL8jSx9N2 54DW9Dg8xByGcvBMW4FmLVo= X-Received: by 2002:a5d:6ac5:: with SMTP id u5-v6mr3907132wrw.288.1538642016274; Thu, 04 Oct 2018 01:33:36 -0700 (PDT) Received: from gmail.com (2E8B0CD5.catv.pool.telekom.hu. [46.139.12.213]) by smtp.gmail.com with ESMTPSA id u10-v6sm2767465wrt.59.2018.10.04.01.33.34 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 04 Oct 2018 01:33:35 -0700 (PDT) Date: Thu, 4 Oct 2018 10:33:33 +0200 From: Ingo Molnar To: Nadav Amit Cc: Ingo Molnar , linux-kernel@vger.kernel.org, x86@kernel.org, Thomas Gleixner , "H. Peter Anvin" , Jan Beulich , Josh Poimboeuf , Linus Torvalds , Peter Zijlstra , Andy Lutomirski Subject: Re: [PATCH v9 04/10] x86: refcount: prevent gcc distortions Message-ID: <20181004083333.GA9802@gmail.com> References: <20181003213100.189959-1-namit@vmware.com> <20181003213100.189959-5-namit@vmware.com> <20181004075755.GA3353@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181004075755.GA3353@gmail.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Ingo Molnar wrote: > I'm also somewhat annoyed at the fact that this series carries a boatload > of reviewed-by's and acked-by's, yet none of those reviewers found it > important to point out the large chasm that is gaping between description > and reality. Another problem I just realized is that we now include arch/x86/kernel/macros.S in every translation pass when building the kernel, right? But arch/x86/kernel/macros.S expands to a pretty large hiearchy of header files: $ make arch/x86/kernel/macros.s $ cat $(grep include arch/x86/kernel/macros.s | cut -d\" -f2 | sort | uniq) | wc -l 4128 That's 4,100 extra lines of code to be preprocessed for every translation unit, of which there are tens of thousands. More if other pieces of code get macrofied in this fasion in the future. If we assume that a typical distribution kernel build has ~20,000 translation units then this change adds 82,560,000 more lines to be preprocessed, just to work around a stupid GCC bug? I'm totally unhappy about that. Can we do this without adding macros.S? It's also a pretty stupidly central file anyway that moves source code away from where it's used. Thanks, Ingo