Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1115991rwi; Wed, 19 Oct 2022 06:58:01 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5TPWVFYIhDqRyEy/Tk6TXZteYVR5essc8WXGzBKG/t5FludDEILY7Lc/QuMcb9fgKwAecY X-Received: by 2002:a17:902:e806:b0:181:ebae:3ec3 with SMTP id u6-20020a170902e80600b00181ebae3ec3mr8451251plg.26.1666187881257; Wed, 19 Oct 2022 06:58:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666187881; cv=none; d=google.com; s=arc-20160816; b=PSj6VJgm/WzRH0o5+ctLL0mMu8bhF4wyEJhnvJ1zcDanfi+eu5sVSj/641L+Cdf4gm zcDv8lANWGoEVxa3W37s6zHGKZptxpyIKfGgaHrGSHtMwniLVu6ENwM+Ts7l8Fp+ZvMp rHP1vK/t5ERodAzIE/rxdG8VzC76XFK9XwSOHsMTq9CIo6CkW04eRD/8zFYHjaJsix5e Hv0Y0oTqM2q+G0riUpCH/BFKrZPoDF8oNXj23pDQ5vJAewDR8zF1t2iXuKryotZ5S35u ZVBVb1+GV5oZEHKpMwE+AMPRSCaCGJSKoV0Mspn56I8BsuyC4a7+lLtVKbGstx9HVCuj zlhQ== 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=Un9Z4ZV/6F/BD+BlZ9zE8ZhZL676DIBDF1Tv97vTw5w=; b=I4wq7FgWV6CN7Tu+p63B2hXthVtzrM+rwbUdDMqkmjz1PADCqvHpaHTvxkrCX1ueCn C9xcddicoXLGn7DGLnS9FBD+vRDCOIKMB07/JsXfR5AMd7xzi4065VS6CqEZC25vHYO9 TvvOozXE6ci1Moq6mtSufIBrY0qT+YpQOypIB25SGGpHTKL62i5gxTTjFjftBeA7S6Py YZwk5d6YptneaadZLib1/agZwUTBztiitc0Ak4wEJOQ7MfxOOoalLShNxgdpAlw1YHmi ZAlilVkxkEhd2CkTkqzDyR9xhURHnZmkC1M3x9LQkHgi63wc9f6T/j/hNuVbz4Ge+cNI h96w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=PxBRxWlY; 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 m3-20020a056a00080300b00535d7265923si20852532pfk.377.2022.10.19.06.57.49; Wed, 19 Oct 2022 06:58:01 -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=PxBRxWlY; 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 S231905AbiJSNid (ORCPT + 99 others); Wed, 19 Oct 2022 09:38:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49044 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231683AbiJSNiG (ORCPT ); Wed, 19 Oct 2022 09:38:06 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5F85D1D20ED; Wed, 19 Oct 2022 06:25:38 -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 ams.source.kernel.org (Postfix) with ESMTPS id 6C486B824EE; Wed, 19 Oct 2022 09:16:44 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E2833C433D7; Wed, 19 Oct 2022 09:16:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666171003; bh=r2P7eIBGlzqeqgUonifqgm+qJb8JeaOUi/fYo6Y7x/I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PxBRxWlYvyJGkViUjv4Ch3qldE/coAGYYQMmsp+yi46wzUgREJ8R2ITQIpBRmYR5j /GKQ3WZ7qmyiBR2d+aFLyJKpoXufchfL/7NflcHWZtKd7G8NVjytmkpz/HxEzA46mW hAcLJpwEuYh75y8jffltT7B4UhGDLzmQ+b2dYXYs= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Nathan Chancellor , Linus Torvalds Subject: [PATCH 6.0 857/862] drm/amd/display: Fix build breakage with CONFIG_DEBUG_FS=n Date: Wed, 19 Oct 2022 10:35:44 +0200 Message-Id: <20221019083327.749356475@linuxfoundation.org> X-Mailer: git-send-email 2.38.0 In-Reply-To: <20221019083249.951566199@linuxfoundation.org> References: <20221019083249.951566199@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.4 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 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: Nathan Chancellor commit 2130b87b2273389cafe6765bf09ef564cda01407 upstream. After commit 8799c0be89eb ("drm/amd/display: Fix vblank refcount in vrr transition"), a build with CONFIG_DEBUG_FS=n is broken due to a misplaced brace, along the lines of: In file included from drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_trace.h:39, from drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:41: drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c: At top level: ./include/drm/drm_atomic.h:864:9: error: expected identifier or ‘(’ before ‘for’ 864 | for ((__i) = 0; \ | ^~~ drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:8317:9: note: in expansion of macro ‘for_each_new_crtc_in_state’ 8317 | for_each_new_crtc_in_state(state, crtc, new_crtc_state, j) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ Move the brace within the #ifdef so that the file can be built with or without CONFIG_DEBUG_FS. Fixes: 8799c0be89eb ("drm/amd/display: Fix vblank refcount in vrr transition") Signed-off-by: Nathan Chancellor Signed-off-by: Linus Torvalds Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c @@ -8329,8 +8329,8 @@ static void amdgpu_dm_atomic_commit_tail crtc, dm_new_crtc_state, cur_crc_src)) DRM_DEBUG_DRIVER("Failed to configure crc source"); } -#endif } +#endif } for_each_new_crtc_in_state(state, crtc, new_crtc_state, j)