Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp2358019ybm; Thu, 23 May 2019 15:47:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqzHlJ5USiQi54L9kl4uC1e0nLrwTJBbK4FE0o8++BGR9Tv+74kDiwfllD3asQbhE4VzUrt1 X-Received: by 2002:a63:7d09:: with SMTP id y9mr80782874pgc.350.1558651655980; Thu, 23 May 2019 15:47:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558651655; cv=none; d=google.com; s=arc-20160816; b=EUid31ck7XAaPwdVGGDQ3hqTcaHi4uZcc/VpTi5QOi0LxdKJ/TByI6I+dafTL7YcTP pMNlldBreWk6Q+btt3dKxPH75WdHJCLMBIYKy4rA+pyp8hwo/AX10EwZ3Q/L9lE07tGc ob6U3YntFdgG+4gjGWYXkk8Q3W/EHkjxZNOKHCw5IAssU1iQclgWhEn4pym1vgPIqTME epiteFdbWUSQUrejxwCrd3Lq+Z1KMbZMaT4x6wGZXdiDFC9QZV0EFE5ywTaFZqUZCS9z RVbDp2Vrh0/1UuNGkdApDNb35gvZQCefyIQsCrgA1C0wq154ZkuUrkulcK5X8eAMxdup /0Ww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:user-agent:to:cc:from:subject :references:in-reply-to:content-transfer-encoding:mime-version :message-id:dkim-signature; bh=bSUD2fNaAes828k1NfeXU6R4ey1jleoAHiCdbcHLoSw=; b=ToH8O3ScNiCkW/FxBZKang21Uug4b7xb93C+HkX/I+PNlpLzJ9FwsmZtE0trUybDK+ MFLDcyCkD7X9400YWH7flBQ4DUK95Yg+4EyjSMfW301H+BowjlUpleZtGumNt48o7HJf 4FrksQ5vlrmHT3m2k9/rVFLDfO8Kheq1kDJY1M2qVQgq3aWY60zvfzz7Jfnb+MMWffLm dORwfl78VOJ8PR/gWQ32c8Hx9GYfgpqStviWRJFBO1+uaMQilE+RmLHpZgnYwqOVLMIP DlaTcvDpsZ6wjBbAoyxRwST4jmJlt/vCBpjgpCRDoU2cCjoLQv8kiXGTJbcFyBpYJE50 Lzjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=im4ZvNR1; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b10si1307226pfo.248.2019.05.23.15.47.18; Thu, 23 May 2019 15:47:35 -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=pass header.i=@chromium.org header.s=google header.b=im4ZvNR1; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387874AbfEWWqG (ORCPT + 99 others); Thu, 23 May 2019 18:46:06 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:44795 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387546AbfEWWqG (ORCPT ); Thu, 23 May 2019 18:46:06 -0400 Received: by mail-pf1-f195.google.com with SMTP id g9so4038493pfo.11 for ; Thu, 23 May 2019 15:46:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=message-id:mime-version:content-transfer-encoding:in-reply-to :references:subject:from:cc:to:user-agent:date; bh=bSUD2fNaAes828k1NfeXU6R4ey1jleoAHiCdbcHLoSw=; b=im4ZvNR1HNMngqTyNb/7ztcQ1pTutRDgLwd8yI/cT0leUnw87OlJkIbPiZZdljtljI 8M23VJUjQ+cM3aXg/fmkRw3FaPJsnPnDEkPYPWmssXJBgxsiCOkfS3bk6Vs5GCVTyoCo cdZOBTy6QQ6MprI1A/H7gAFs0JZInLgU6JF68= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:mime-version :content-transfer-encoding:in-reply-to:references:subject:from:cc:to :user-agent:date; bh=bSUD2fNaAes828k1NfeXU6R4ey1jleoAHiCdbcHLoSw=; b=pZMYKS+oWuHRx+yDmPPK7vT1KiRqjlFm7kLkSU9iEJj22X63nWCG0+UkI7GC3k6KfQ Cg2QuUXGBAxfIZtAo9mqq1+nRpOj9JBWNRWpIGTPZCxqmlYbkq+jUdb0XQxChJUgd2q3 XyWuDkvyaBFzWcOfJq7S2UJWYQzoPjTxn0VB/eNKV0Hfse3N8546Ftd6fAns6IeJNBDG 7UqdVeyNK6zCQaVABuE+wxMFSWjlL5BJk07Ib598TPjzAYrKDYkud6mmJ+iGvxRuFiE9 PNul4X3zlm6OHoMomZFP/DbOONuvA2ckhwtWc8w3DStFsklO1ypyIr3yXTR95oZzlPTN c4wQ== X-Gm-Message-State: APjAAAXUUSuW4ryxu92X4zSBK2OEqGsO3hY1GNiKVGbH7RvgTJyOVG+a rpEib0gUVkrHLpU4VZiQQETf7g== X-Received: by 2002:a63:5c4c:: with SMTP id n12mr102196059pgm.111.1558651565421; Thu, 23 May 2019 15:46:05 -0700 (PDT) Received: from chromium.org ([2620:15c:202:1:fa53:7765:582b:82b9]) by smtp.gmail.com with ESMTPSA id i3sm335222pju.15.2019.05.23.15.46.04 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 23 May 2019 15:46:04 -0700 (PDT) Message-ID: <5ce722ac.1c69fb81.b62d2.16d0@mx.google.com> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20190523195313.24701-1-farosas@linux.ibm.com> References: <20190523195313.24701-1-farosas@linux.ibm.com> Subject: Re: [PATCH] scripts/gdb: Fix invocation when CONFIG_COMMON_CLK is not set From: Stephen Boyd Cc: Jan Kiszka , Kieran Bingham , Andrew Morton , Leonard Crestez , Jackie Liu To: Fabiano Rosas , linux-kernel@vger.kernel.org User-Agent: alot/0.8.1 Date: Thu, 23 May 2019 15:46:03 -0700 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Fabiano Rosas (2019-05-23 12:53:11) > diff --git a/scripts/gdb/linux/constants.py.in b/scripts/gdb/linux/consta= nts.py.in > index 1d73083da6cb..2efbec6b6b8d 100644 > --- a/scripts/gdb/linux/constants.py.in > +++ b/scripts/gdb/linux/constants.py.in > @@ -40,7 +40,8 @@ > import gdb > =20 > /* linux/clk-provider.h */ > -LX_GDBPARSED(CLK_GET_RATE_NOCACHE) > +if IS_BUILTIN(CONFIG_COMMON_CLK): > + LX_GDBPARSED(CLK_GET_RATE_NOCACHE) > =20 Why is this LX_GDBPARSED() instead of LX_VALUE()? From what I can tell it doesn't need to be runtime evaluated, just assigned to something that is macro expanded by CPP. We should probably change the clk-provider.h header to export more things than what it's exporting right now when COMMON_CLK is disabled. I'm not sure why the whole thing is wrapped in a big ifdef. Either way Reviewed-by: Stephen Boyd