From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 692AEC2D0DB for ; Fri, 24 Jan 2020 11:27:33 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 36174206D4 for ; Fri, 24 Jan 2020 11:27:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1579865253; bh=UG6DVkPTkCDOyF+/gG97qzFQZgKFrvVKu/YlrXfwUQw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=b+2nzbJACVa2MZ9jWaNGSKJtBWE3b2jshL1lkQSkthrwbKBo7okQ550p33bsa17pW KWPtcwzx5/YTrup/KNyPMWKmXDox6E+SI3lplccQXtzZsKIDMrsRKp6iaNa6IGZFJZ g7GAv0arP8TWGgUza8FQaLju89g7D3oHqzYyisiA= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391642AbgAXL1b (ORCPT ); Fri, 24 Jan 2020 06:27:31 -0500 Received: from mail.kernel.org ([198.145.29.99]:42882 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391630AbgAXL1Z (ORCPT ); Fri, 24 Jan 2020 06:27:25 -0500 Received: from localhost (ip-213-127-102-57.ip.prioritytelecom.net [213.127.102.57]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id DD099206D4; Fri, 24 Jan 2020 11:27:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1579865244; bh=UG6DVkPTkCDOyF+/gG97qzFQZgKFrvVKu/YlrXfwUQw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LZL04jboQ8v9mMDCOwjMaoXf6WcJ6gwz1zxugCkABNnG2QxbexI3Tz8heijAwSSIB DGOt3anVifwf3mU3JPhKwn9Y/RJSkwFPs2WAuKdQ0QiYuKLdmocMNnYCSTR0YYvkLO +aG/jjh/LCA5siNDBbGcLfz720nCD/exkprz8ROA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jani Nikula , Thierry Reding , Sam Ravnborg , Sean Paul , Boris Brezillon , Sasha Levin Subject: [PATCH 4.19 480/639] drm/panel: make drm_panel.h self-contained Date: Fri, 24 Jan 2020 10:30:50 +0100 Message-Id: <20200124093148.439717975@linuxfoundation.org> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200124093047.008739095@linuxfoundation.org> References: <20200124093047.008739095@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jani Nikula [ Upstream commit bf3f5e98559360661a3d2af340d46522512c0b00 ] Fix build warning if drm_panel.h is built with CONFIG_OF=n or CONFIG_DRM_PANEL=n and included without the prerequisite err.h: ./include/drm/drm_panel.h: In function ‘of_drm_find_panel’: ./include/drm/drm_panel.h:203:9: error: implicit declaration of function ‘ERR_PTR’ [-Werror=implicit-function-declaration] return ERR_PTR(-ENODEV); ^~~~~~~ ./include/drm/drm_panel.h:203:9: error: returning ‘int’ from a function with return type ‘struct drm_panel *’ makes pointer from integer without a cast [-Werror=int-conversion] return ERR_PTR(-ENODEV); ^~~~~~~~~~~~~~~~ Fixes: 5fa8e4a22182 ("drm/panel: Make of_drm_find_panel() return an ERR_PTR() instead of NULL") Signed-off-by: Jani Nikula Acked-by: Thierry Reding Reviewed-by: Sam Ravnborg Reviewed-by: Sean Paul Cc: Boris Brezillon Signed-off-by: Sam Ravnborg Link: https://patchwork.freedesktop.org/patch/msgid/20190718161507.2047-2-sam@ravnborg.org Signed-off-by: Sasha Levin --- include/drm/drm_panel.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/drm/drm_panel.h b/include/drm/drm_panel.h index 777814755fa62..675aa1e876ce6 100644 --- a/include/drm/drm_panel.h +++ b/include/drm/drm_panel.h @@ -24,6 +24,7 @@ #ifndef __DRM_PANEL_H__ #define __DRM_PANEL_H__ +#include #include #include -- 2.20.1