Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3027588rwb; Mon, 15 Aug 2022 16:25:58 -0700 (PDT) X-Google-Smtp-Source: AA6agR7gIQvQSC01p99Oysw1eDCOSQbXAEE//cBGY9NNtoS6aAOaKdqZ2yhwDQDo4CMhOULfREs+ X-Received: by 2002:a17:90a:640c:b0:1f7:6ecf:33b6 with SMTP id g12-20020a17090a640c00b001f76ecf33b6mr30207269pjj.3.1660605958205; Mon, 15 Aug 2022 16:25:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660605958; cv=none; d=google.com; s=arc-20160816; b=eI2AiL/enI9OsYVzl/ruxu0Ysug7bQsjaDKPEE9NiSB3ea+KgM8BaE9xR3PukI83WT HH8dAsmlDyC84m0mQqOQyHyPFplgUEHD6/MuTJ2ERQ32ChSoN8mSKYbKVVQogRNK8+HZ sN+otUCAhbqLtFYe6uDEGp2qZru5u3swL/I5Wujp9R34NONWLIvKtXc1RiL0kEPS50RX 6WqVkzz7SXg8fZvfS2qdaKJu6XutM6DV83WZIVdaVJXXF0ExiQ2UC67TmZ12AHjLfXPC Mr41LXdqf+9rthGGKRTolYj23CR/dnvEfC0dKyW9x8qKhBVgR4eX9ER5bBYf0NUenyuC WOcA== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Q9Sq0USRACodNR5Hy03YnktW1aD+NTdyqDIuvnpJEvY=; b=UVhqWc4PqEyoM6+kVxQTcuI/Y6/eVR3SM2rY/HFuT1gMjmfz59JCSaXAEApQm4gBaK rYF2X9vwFysq0Sbht8XvHVWox4gesFdbev4Zs2OyuQRdOsPokBIK3Hqvriyfb3WXdz2T h2M/bRZ5BBYO0wopnFNeYW/iZldr+32LzclAQs/EJswUdMrkTOwSzCL+Nl2tEqj/iS9e XSI+QjnLs6xmvNry8qDumEX0dXLRk3djVdOOHFztSc+Cx64QM5ZbDVa1mYmznrNmGlUe 2jMgvIxbHvQe9W5jzoxIckA7mlWhTX4ZbQIZjZYI8vy4RIqVC4ARIfa8CQh9xXxQCKA/ k0ig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=dAzbwj8l; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cm9-20020a056a00338900b0052d4197336fsi8447316pfb.370.2022.08.15.16.25.47; Mon, 15 Aug 2022 16:25:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=dAzbwj8l; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229919AbiHOXRE (ORCPT + 99 others); Mon, 15 Aug 2022 19:17:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49282 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245338AbiHOXOX (ORCPT ); Mon, 15 Aug 2022 19:14:23 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9AE9C12F71D; Mon, 15 Aug 2022 13:01:19 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 3865061299; Mon, 15 Aug 2022 20:01:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1CBBCC433D7; Mon, 15 Aug 2022 20:01:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660593678; bh=wkCfAnjFsSmxAg0uM9KGph7C/w9NhuQf22vBGcpc4qo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dAzbwj8la92tG6qAHHRbiWnKA2d5KJr0eel5r/T96EanhMR8Veu/GFX7Qp9ZAybKL i1Hw6I7+yjZ+PidYt1R1jmTsbSfpxwGrYG1e7NJxVBu5wEtKkWK1ibuDohnaNtGQAg GuulmSygY7yIG2tc+QHYGfa6PGwZYgRjrqt6KGuE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Tvrtko Ursulin , Jani Nikula , Tvrtko Ursulin , Sasha Levin Subject: [PATCH 5.19 0306/1157] drm/i915: remove unused GEM_DEBUG_DECL() and GEM_DEBUG_BUG_ON() Date: Mon, 15 Aug 2022 19:54:22 +0200 Message-Id: <20220815180451.900305479@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180439.416659447@linuxfoundation.org> References: <20220815180439.416659447@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jani Nikula [ Upstream commit 1b93ff4d0679190e8812cd0d0b3aebfcba1ed883 ] There are already too many choices here, take away the unused ones. Cc: Tvrtko Ursulin Signed-off-by: Jani Nikula Reviewed-by: Tvrtko Ursulin Link: https://patchwork.freedesktop.org/patch/msgid/20220504183716.987793-1-jani.nikula@intel.com Signed-off-by: Sasha Levin --- drivers/gpu/drm/i915/i915_gem.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_gem.h b/drivers/gpu/drm/i915/i915_gem.h index d0752e5553db..b7b257f54d2e 100644 --- a/drivers/gpu/drm/i915/i915_gem.h +++ b/drivers/gpu/drm/i915/i915_gem.h @@ -54,9 +54,7 @@ struct drm_i915_private; } while(0) #define GEM_WARN_ON(expr) WARN_ON(expr) -#define GEM_DEBUG_DECL(var) var #define GEM_DEBUG_EXEC(expr) expr -#define GEM_DEBUG_BUG_ON(expr) GEM_BUG_ON(expr) #define GEM_DEBUG_WARN_ON(expr) GEM_WARN_ON(expr) #else @@ -66,9 +64,7 @@ struct drm_i915_private; #define GEM_BUG_ON(expr) BUILD_BUG_ON_INVALID(expr) #define GEM_WARN_ON(expr) ({ unlikely(!!(expr)); }) -#define GEM_DEBUG_DECL(var) #define GEM_DEBUG_EXEC(expr) do { } while (0) -#define GEM_DEBUG_BUG_ON(expr) #define GEM_DEBUG_WARN_ON(expr) ({ BUILD_BUG_ON_INVALID(expr); 0; }) #endif -- 2.35.1