From patchwork Thu Jun 30 17:33:29 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hsin-Yi Wang X-Patchwork-Id: 586172 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 594D3C43334 for ; Thu, 30 Jun 2022 17:34:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235788AbiF3Rea (ORCPT ); Thu, 30 Jun 2022 13:34:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58762 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236466AbiF3Re3 (ORCPT ); Thu, 30 Jun 2022 13:34:29 -0400 Received: from mail-pf1-x42b.google.com (mail-pf1-x42b.google.com [IPv6:2607:f8b0:4864:20::42b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2137331367 for ; Thu, 30 Jun 2022 10:34:26 -0700 (PDT) Received: by mail-pf1-x42b.google.com with SMTP id p14so101675pfh.6 for ; Thu, 30 Jun 2022 10:34:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=1s1jurQNn/fJ4wlZGRfg1PNeoKP8xQg/ofkOwb0NO2E=; b=N0Zd0OVM4bQky4uabYzuMEV8PyZPfQ/N09BFx0mH52wgBdjlxbeg3dltvfkX2ydhgZ qGVMGj4nSzoaZK0ajiSbgouaegww7bDUoWn2zDXg/JhW89N1ZOAeMeamP4XyqoL0bX+A Z3qdd0mFEG9XDfttKG3enTn3ZS0Gyytg1pdi4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=1s1jurQNn/fJ4wlZGRfg1PNeoKP8xQg/ofkOwb0NO2E=; b=z8wXjHODRGeNGAGnHWbeF5tjvS+PMKuLpdg1mBN+8TJBee+nMS9SPic6PVMuObnWaW aG1LLtlvOkSQK8upGp9O6gylapFT29m7pMTq1enABYfsg+ODxn4i+cdh/1KMAR7YpFhA OltSyVHGVvvXS6vZuEoQ7ixmQXrPUpgXQWSG6Ai1Fb9mgRg1QvlDi5h4sbqUBnfaL6Hz bQVyB8i3U/mIGYRhcfBvL7iMtUncH+Jj4YjxhCAJpgMSmpEzUzMkaYP4CHiwKVfhwzj9 7Q/Xrhc90bmfwlzSiCqXEwe6qaYMqo9mfI5iZbbnaT9OqtEb/uaGL07MFcChFbIF+a9I DcNQ== X-Gm-Message-State: AJIora9yhn9un4ZgazOBxi2cMY+AAagKU4xNpIwX7pi838mx/+i45Y3X hCan/zOldP3ZEbWL1AmBW+UG7Q== X-Google-Smtp-Source: AGRyM1sTkUaMZfcu6ioDPGwJiwe0TTGaBaUHp6sw3z9cYqSKpyM+kx7JG47ES5+UsaveuyB1Qkoe6A== X-Received: by 2002:aa7:910b:0:b0:524:f8d9:a4c4 with SMTP id 11-20020aa7910b000000b00524f8d9a4c4mr17128695pfh.5.1656610465558; Thu, 30 Jun 2022 10:34:25 -0700 (PDT) Received: from hsinyi-z840.tpe.corp.google.com ([2401:fa00:1:10:5175:e079:2e5a:2405]) by smtp.gmail.com with ESMTPSA id m20-20020aa78a14000000b00518950bfc82sm14331125pfa.10.2022.06.30.10.34.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Jun 2022 10:34:25 -0700 (PDT) From: Hsin-Yi Wang To: Tomi Valkeinen Cc: Helge Deller , linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Stephen Boyd , Arnd Bergmann Subject: [PATCH] video: of_display_timing.h: include errno.h Date: Fri, 1 Jul 2022 01:33:29 +0800 Message-Id: <20220630173328.1369576-1-hsinyi@chromium.org> X-Mailer: git-send-email 2.37.0.rc0.161.g10f37bed90-goog MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org If CONFIG_OF is not enabled, default of_get_display_timing() returns an errno, so include the header. Fixes: 422b67e0b31a ("videomode: provide dummy inline functions for !CONFIG_OF") Suggested-by: Stephen Boyd Signed-off-by: Hsin-Yi Wang Reviewed-by: Stephen Boyd --- include/video/of_display_timing.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/video/of_display_timing.h b/include/video/of_display_timing.h index e1126a74882a5..eff166fdd81b9 100644 --- a/include/video/of_display_timing.h +++ b/include/video/of_display_timing.h @@ -8,6 +8,8 @@ #ifndef __LINUX_OF_DISPLAY_TIMING_H #define __LINUX_OF_DISPLAY_TIMING_H +#include + struct device_node; struct display_timing; struct display_timings;