Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp7074235rwi; Mon, 24 Oct 2022 09:29:59 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6sMBu7/in75r/ML7CJqVMg7P1mD0ArX8o9Nq749Gmxno4LFzmvtXlpCLYdjTkQASznL9cb X-Received: by 2002:a17:907:3da2:b0:78d:45df:b4f with SMTP id he34-20020a1709073da200b0078d45df0b4fmr27777827ejc.651.1666628999673; Mon, 24 Oct 2022 09:29:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666628999; cv=none; d=google.com; s=arc-20160816; b=hdQfINPxk8GvSTVPIMcCEhwZ8sJ9NRz+qS0tCUQTwTnZpYFCVaUpb/BEFsIdQL2U9H xmRkLAj5aWYLxS+3RpnVFGZr+/Mn9EXkrA0mkTddOFmSo0i8iqa0fY/CyiDBM2kbAMP1 N/mgJcxDqF4GYfJiIqob6DXjDti3QuVjqib9585fOecksKHY6ZQ7MTSO0k9vbZueFIDU dWQU5293wg0bQVS6D+N/Fv+FNVgewZPx2XqkHYyYUOJduKCHiaiKANzkkbQn3wjMgAYp DfT/17LYMSXtXxSsdtOxVBu/V/qF4FTZDTdUGEno4MdLevSnCSAWzfLFgH4/1BcGBF+g S4LQ== 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=Qzj/4Tuk3owbwSSAF28BWf1Z3L+MkoZInnSLeMyRc9M=; b=RJleAjC8tLlAGouYEVXx4C+/7uJP0H/OPqRINQLRD1NlD8u+jRjozpEoRAqYLtegBy lKq0QTjPZJvrPzH0pb2USGqUGFIzN1APfZ4yVMNM2jJFodPD8dNlDBBECFwQENAPZ4GY RBSDHPK75hJ3qsP+Su7Ew8EommZTKSBtTxJSSBHPRJHsio5BxjtO8UqyQpN8EmwyvuJJ fA/Cqe1iOkMEWDWXpNI8r3DpZ2Iok3mXmQZEjWSuM+S8HM9Nf45kqDP+zRU96i5h/hwy IciwhuVgfz0AQcSxXmUInPuNmffOZF+kFczSBkBX2VQPs+6bLbpZO80Ap6tffvDT7rdc davw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=0oy9Q+FV; 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 x8-20020a1709065ac800b0078bcc872a6esi188877ejs.360.2022.10.24.09.29.34; Mon, 24 Oct 2022 09:29:59 -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=0oy9Q+FV; 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 S230280AbiJXPAB (ORCPT + 99 others); Mon, 24 Oct 2022 11:00:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54012 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237099AbiJXO7Z (ORCPT ); Mon, 24 Oct 2022 10:59:25 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6F95EE099B; Mon, 24 Oct 2022 06:36:56 -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 7826E61280; Mon, 24 Oct 2022 12:56:02 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 86CECC433C1; Mon, 24 Oct 2022 12:56:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666616161; bh=Z/v5BZaf+TCuc+KRpEXsSUVPW9PR5BVxkjpvpGiSli4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=0oy9Q+FVOd8vHJFycwfVV5JWdjYJnEEau/bnduTqU5YOTOkMmDJzzrC0sP72xH9bY Gh+o3DZ9C2AjBx9+qkOX9yWFJ/F1zgpbS8BJ08W7itlLYkERoOylHC/1TJuCt3jrRA u01SjeOwYPjtM1oLXqrcFRG36RVB719XwN5w6bus= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Nathan Chancellor , Linus Torvalds Subject: [PATCH 5.15 523/530] drm/amd/display: Fix build breakage with CONFIG_DEBUG_FS=n Date: Mon, 24 Oct 2022 13:34:27 +0200 Message-Id: <20221024113108.668636718@linuxfoundation.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221024113044.976326639@linuxfoundation.org> References: <20221024113044.976326639@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.6 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 @@ -9679,8 +9679,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)