Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp922865pxb; Wed, 29 Sep 2021 12:35:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJznfPEoiq7786GiJe3Npa55hHGfSrRefkZS7j0MMvLT3Fqs+0gq9Crp5SLAtuuP126ie6i/ X-Received: by 2002:a17:906:6d0:: with SMTP id v16mr1901712ejb.258.1632944150915; Wed, 29 Sep 2021 12:35:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632944150; cv=none; d=google.com; s=arc-20160816; b=d1eI0JgOc2QEEJ7w+P2sU2K00m7WHEOTX0Su9PTJEV35dtXpD2+StnzyTCrpSlOwSA kPmIK3Ehq4p/fUVEyfIdquooeZFBasRuWl+DZrzLIrAPnoAW131I9rPmLcfNr/tSStRJ +jEpeUAYzjMqQ+a9+EqhPAQ/0xOrOuvXDu5D18XOgZ468jtR2YridMSobxJEyuHuAenO plZpHQqn379LfVge4GBYxaRJo2XEOpJd8hCki9H1g9FifcYkNKWanNTJTrbu0yhRHqPV nvm8UaiNfAcFcNwJ4N6kZNuITGQY1rsMMndS5cz5ss5MdMh/1lFDIb/1gZGYutL7owBg es8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=7a4WtkRXwrq6zYIEXRYacwObOQcwjJYjrsrN00MYyNo=; b=M5ZjQvhYsRzIjoevCVNbhV1B5xjlQqpiAwWBCm6RF9LQtWVID56//x+MX4PNinlu00 tVXTqappG9y6IcTRMt9YwkazR7wk05TLV16SZP7bZ49ofNsM73Z3xsqFJ7T8/m8mXJpp 7uez/mw6eyu+c4GYoRh4dkep7dO9C5yEadH8eOTbpwHz7Vn6EBcWmEMi83l3OvjT+PdV fJ+Jl/G1EWEnII05ko8vIX2eSlIFFQqcMFYVzo8kcJlnmnPp/unBtfln1a6SXGeGXzp3 EP2nWT+Plj1V52C16rPUectQNIWZCy7+kqfOFehqlQvoZp3qzkmT5ktZ86Bpf4rgNsaT 8DIQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 6si833860ejk.777.2021.09.29.12.35.15; Wed, 29 Sep 2021 12:35:50 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346200AbhI2Sf7 (ORCPT + 99 others); Wed, 29 Sep 2021 14:35:59 -0400 Received: from mga18.intel.com ([134.134.136.126]:24845 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345800AbhI2Sf6 (ORCPT ); Wed, 29 Sep 2021 14:35:58 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10122"; a="212095100" X-IronPort-AV: E=Sophos;i="5.85,332,1624345200"; d="scan'208";a="212095100" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Sep 2021 11:34:16 -0700 X-IronPort-AV: E=Sophos;i="5.85,332,1624345200"; d="scan'208";a="520927746" Received: from lucas-s2600cw.jf.intel.com ([10.165.21.202]) by orsmga001-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Sep 2021 11:34:16 -0700 From: Lucas De Marchi To: intel-gfx@lists.freedesktop.org Cc: Daniel Vetter , dri-devel@lists.freedesktop.org, Masahiro Yamada , linux-kernel@vger.kernel.org Subject: [PATCH v2 0/3] Rename IS_ACTIVE() and move to kconfig.h Date: Wed, 29 Sep 2021 11:33:54 -0700 Message-Id: <20210929183357.1490204-1-lucas.demarchi@intel.com> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org As we try to reduce our i915-only helpers, let's try to improve IS_ACTIVE() logic and move to kconfig.h. I'm not 100% happy with the name, but it's the best I could come up with, hopefully a little better than trying to add IS_ACTIVE() to be used broadly. v2: now with Cc/To list fixed up - no changes to the patches. Lucas De Marchi (3): drm/i915: rename IS_ACTIVE drm/i915/utils: do not depend on config being defined Move IS_CONFIG_NONZERO() to kconfig.h drivers/gpu/drm/i915/gem/i915_gem_context.c | 2 +- drivers/gpu/drm/i915/gem/i915_gem_mman.c | 2 +- drivers/gpu/drm/i915/gt/intel_engine.h | 4 ++-- drivers/gpu/drm/i915/gt/intel_engine_heartbeat.c | 2 +- drivers/gpu/drm/i915/gt/intel_engine_types.h | 2 +- .../gpu/drm/i915/gt/intel_execlists_submission.c | 2 +- .../gpu/drm/i915/gt/selftest_engine_heartbeat.c | 4 ++-- drivers/gpu/drm/i915/gt/selftest_execlists.c | 14 +++++++------- drivers/gpu/drm/i915/i915_config.c | 2 +- drivers/gpu/drm/i915/i915_request.c | 2 +- drivers/gpu/drm/i915/i915_utils.h | 13 ------------- include/linux/kconfig.h | 16 ++++++++++++++-- 12 files changed, 32 insertions(+), 33 deletions(-) -- 2.33.0