From patchwork Mon Mar 6 20:27:13 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Sean Paul X-Patchwork-Id: 9607533 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 55011602B4 for ; Mon, 6 Mar 2017 20:28:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 42389283E0 for ; Mon, 6 Mar 2017 20:28:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 373C428418; Mon, 6 Mar 2017 20:28:05 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id B1C60283E0 for ; Mon, 6 Mar 2017 20:28:04 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 3A0A489836; Mon, 6 Mar 2017 20:28:04 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-qk0-x22e.google.com (mail-qk0-x22e.google.com [IPv6:2607:f8b0:400d:c09::22e]) by gabe.freedesktop.org (Postfix) with ESMTPS id 1C8B76E19C for ; Mon, 6 Mar 2017 20:28:03 +0000 (UTC) Received: by mail-qk0-x22e.google.com with SMTP id v125so111562407qkh.2 for ; Mon, 06 Mar 2017 12:28:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=MkoKtwCsHppgFXsW/460rD9qrGDalQ7ZjUTxEJQ3a8s=; b=VTwiKUvGuSYSpCNzqlGUTQn9CGVInvRkmUiWHsKD7NOEBqeycp66iCg6MTFUYJqajK AZIepajhfM9RMKwmNUSPE7eupvYQOJcVDYcOh/2PXcy9q6rgiWQW1umZGvBQVZzGRr8H +3UjVxYP0zhi3rhyzKXMTvzaMPDw7uNvz4Hl0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=MkoKtwCsHppgFXsW/460rD9qrGDalQ7ZjUTxEJQ3a8s=; b=TAomyAdgqG0zWuI+v0SPD7OmxD1Zo2BPxhMDVeNBfDbtachdiHNhvw4FMWDPrakEum s/9X8nMyGmR/81KDfBEbGfX+/YMtpG8GSuuIijB0KwQbRXW2YlnCO5EXNAZh7AS0wFib svSaVCc5BSqNvv9KjqX7YUmmCtap5diX7+jWqW8eKGGFYfyVsUQAx0kqYcoNtgI+/Z72 3KzcR9bzaxpSdgk+arMbYk9BdPBBxqmsL3yqvAhl5xl0MlHF5pTF7YbFJnk9sVEuN9+M nz9eBoFkOCEr+vV2NeCP6729WWAO2CFfcHOY1aAOD9RvBgELR0lPGBwX3TBA9lj/A61t arTg== X-Gm-Message-State: AMke39kYIlVBhQB4iCPtR4lJM16wx6/bhB+wii1NAYU4N70KIt/UynrFIEn7Dh9d2duaIJfp X-Received: by 10.200.35.250 with SMTP id r55mr3294929qtr.280.1488832082222; Mon, 06 Mar 2017 12:28:02 -0800 (PST) Received: from boxwood.roam.corp.google.com (cpe-75-189-128-87.nc.res.rr.com. [75.189.128.87]) by smtp.gmail.com with ESMTPSA id t30sm14084837qtt.56.2017.03.06.12.28.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 06 Mar 2017 12:28:01 -0800 (PST) From: Sean Paul To: dri-devel@lists.freedesktop.org Subject: [PATCH 1/3] drm: Fix compilation error when CONFIG_DEBUG_FS is undefined Date: Mon, 6 Mar 2017 15:27:13 -0500 Message-Id: <20170306202722.9301-2-seanpaul@chromium.org> X-Mailer: git-send-email 2.12.0.rc1.440.g5b76565f74-goog In-Reply-To: <20170306202722.9301-1-seanpaul@chromium.org> References: <20170306202722.9301-1-seanpaul@chromium.org> MIME-Version: 1.0 Cc: Daniel Vetter , Tomeu Vizoso X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP This patch fixes the following compilation error when CONFIG_DEBUG_FS is not defined. ../drivers/gpu/drm/drm_dp_helper.c: In function ‘drm_dp_aux_crc_work’: ../drivers/gpu/drm/drm_dp_helper.c:1029:13: error: ‘struct drm_crtc’ has no member named ‘crc’ ../drivers/gpu/drm/drm_dp_helper.c:1031:12: error: ‘struct drm_crtc’ has no member named ‘crc’ make[4]: *** [drivers/gpu/drm/drm_dp_helper.o] Error 1 make[4]: *** Waiting for unfinished jobs.... Fixes: 79c1da7c3bf7 ("drm/dp: add helpers for capture of frame CRCs") Cc: Tomeu Vizoso Cc: Sean Paul Cc: Daniel Vetter Cc: Jani Nikula Cc: David Airlie Cc: dri-devel@lists.freedesktop.org Signed-off-by: Sean Paul --- include/drm/drm_crtc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/drm/drm_crtc.h b/include/drm/drm_crtc.h index bda9347554a1..cba29ffedafd 100644 --- a/include/drm/drm_crtc.h +++ b/include/drm/drm_crtc.h @@ -776,6 +776,7 @@ struct drm_crtc { * Debugfs directory for this CRTC. */ struct dentry *debugfs_entry; +#endif /** * @crc: @@ -783,7 +784,6 @@ struct drm_crtc { * Configuration settings of CRC capture. */ struct drm_crtc_crc crc; -#endif /** * @fence_context: