Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp872573pxb; Wed, 29 Sep 2021 11:25:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwZ8s4nhWDHuN3bhHSo2bZQGRUGRqwadVSY/CSTOwjNpLTRTdzedB+E+j5FuahQQ5PYbfzf X-Received: by 2002:a17:906:1757:: with SMTP id d23mr1518170eje.102.1632939958625; Wed, 29 Sep 2021 11:25:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632939958; cv=none; d=google.com; s=arc-20160816; b=TBGy0dV6gPnBhGOqMXoprIzNjhKt0KhQ22P6WdukNB0LSRxjwsF0zBhm+kVAEdjMeP nDumQxV79wzXKEdpWYrb2TxDs/mZEFGPLIXDjo1Z3/uZJx/A8TNGpR8I1SqzBDvrRhL/ 83OCUyTELfEdmW1VzbdUgXCNnLSzP217DM5I5r/oCXU8lUP084GiqFnJGvX/FZID3CXt lSgQbBzBATiS/XN54qJCZtvBtT2gtAMaMgh+oCK4uDy/Bn+KLB5n1BusZChrtEI/zMQJ 6xiJslXFspRnaErDaBp5f7krx6Xg9wUnvrWaZGG4dz/KgAjsYpa+gDLKyJRPVdg3Lnr9 tf7w== 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=5JzMYGGrV+L4kS/uEzRszSrbirbOPlcG64+RX6L+Dmo=; b=xVA4HckuTd7Ia44sNGGKwckNkkXklA8Z/tMnAgTPOejeNhB7UGmWxCeVOOrH+xkaVc LmqDQoblUPlNb57puaYfxd45SqYRcoxqUGm7ONY42sflRsZF4+ZBvOynZ3tfM0FpoZcC NWD40CpDVbv5T4yeo9MV53IL9LzxRUmX2Zh+fmhANLix0HwqAd2yawE3smH/PRfxCAr2 upvW5GyKwXBaNYk5SmJMMc1dIKL6SOp5if1oy5/vVqLVVOpFDSg/tPivfD76/6W5HJKQ LrugUJP8ojAh+tyHqzbz/V/UKFZsUqv2csy4aZ6RLUjNXkD3tlyRV8JQ2WQQMX/13gj/ IlEg== 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 h17si783847edb.543.2021.09.29.11.25.34; Wed, 29 Sep 2021 11:25:58 -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 S1345961AbhI2SXb (ORCPT + 99 others); Wed, 29 Sep 2021 14:23:31 -0400 Received: from mga02.intel.com ([134.134.136.20]:60388 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343727AbhI2SXa (ORCPT ); Wed, 29 Sep 2021 14:23:30 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10122"; a="212265500" X-IronPort-AV: E=Sophos;i="5.85,332,1624345200"; d="scan'208";a="212265500" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Sep 2021 11:21:48 -0700 X-IronPort-AV: E=Sophos;i="5.85,332,1624345200"; d="scan'208";a="457137080" Received: from lucas-s2600cw.jf.intel.com ([10.165.21.202]) by orsmga002-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Sep 2021 11:21:48 -0700 From: Lucas De Marchi To: gfx-internal-devel@eclists.intel.com Cc: Daniel Vetter , dri-devel@lists.freedesktop.org, Masahiro Yamada , linux-kernel@vger.kernel.org Subject: [PATCH 0/3] Rename IS_ACTIVE() and move to kconfig.h Date: Wed, 29 Sep 2021 11:16:29 -0700 Message-Id: <20210929181632.1489847-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. 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