From patchwork Tue Dec 10 19:59:24 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 11283153 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 4B0031593 for ; Tue, 10 Dec 2019 19:59:51 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 33D0E207FF for ; Tue, 10 Dec 2019 19:59:51 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 33D0E207FF Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=arndb.de Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 4C22F6E920; Tue, 10 Dec 2019 19:59:50 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.187]) by gabe.freedesktop.org (Postfix) with ESMTPS id A5DD46E920 for ; Tue, 10 Dec 2019 19:59:48 +0000 (UTC) Received: from threadripper.lan ([149.172.19.189]) by mrelayeu.kundenserver.de (mreue011 [212.227.15.129]) with ESMTPA (Nemesis) id 1MjSPq-1htqK43Row-00l1Jv; Tue, 10 Dec 2019 20:59:42 +0100 From: Arnd Bergmann To: Harry Wentland , Leo Li , Alex Deucher , =?utf-8?q?Christian_K=C3=B6nig?= , "David (ChunMing) Zhou" , David Airlie , Daniel Vetter Subject: [PATCH] drm/amd/display: include linux/slab.h where needed Date: Tue, 10 Dec 2019 20:59:24 +0100 Message-Id: <20191210195941.931745-1-arnd@arndb.de> X-Mailer: git-send-email 2.20.0 MIME-Version: 1.0 X-Provags-ID: V03:K1:OrcnEQHu5wIVElyPLtj9cM/U8i3tJsEHQqMgWD9iAttxajBL+4Y PRozQipVEPM78uWvddh6kjFJP0m9W7Xl2iyfwMr6le8zEOqtUcR3YqBbcY0m8NmbwLj4gij nH91rockYuPliucDJPwxBaK0+/s8ZLF4ilxO0+TiyEzKKY8itGLkPD8DVvHiCm1DACaRXts wksFhEsGXgNsaguRsbwew== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:BEiflWA01l4=:gpxzEPPROCuBYSCdglCxHL 0FQH6OkxWAbdkjhBtOL2AOW8TAzyUHTAwzR5AHHK34sofuin6RguUUZM4C2xfxlzS6CZOZCKz Vo+yFJMGQ1BhPWdJG9soTTJrBPbwWOmI/bekCgki/MyU1It2Zx5Gne0YZaduSKHuAb0c+6YuY UpL90RraaJFqofxod1WlkAjNmht7gW1xPfTQwcufejGVJFhtrWOnrLcB5PyA76aPi9FHFVzvA kPjqEaWQGpM3xe9qkwf6ZjNXogUw5NkQhhqsndAXeH8kpKKt4hcLquS3mPWNqCQ6aZVcLcqbZ tfJHLO/WK7A4/jNQ1gNjssnSHMqomjQE73RqgmN+a9WwtA2tbrdfl5KOjDkoU8YrmhJACYK+W q36JztMtUCneNEZ6LNdXgahuwkkodb9RTyIIacI8L5lwUPUZRC3k33OCFOn24mdnsx5UL86tC PPbls88S0p6zUPMMN1zOFF3uP0TMZaNPetFeEdCwKosDt57VVWEHpFE9t/JCIFFofQjpB/BpA 7JAubHz0yx4UUIeL6yol4IjXh1+EOCsjo+kZYaCUsVJL8zceWjEt4ZAUZjNLEW+7andvWqIyh w7oh5ezTHSn1BoCiCPguMWISCoPlAxEvaMCRimn3oR127JBQHa+H9DlG5f1LtOvIO9hXE2Zos 5eSy9+iqpnSZhzGhTLuPx1nhkoO+rpRsUtZijJ8uPTvjoXouQJkXKrN9o9H5Bvx1lyPKI0mU+ /EFS1hkKQ0TdUH7AOlhi1Ni9JD6z30oze1Ep4dCICmtrQsf4ZKsCI7vMCb9p7gawwP5k19GoT B8adXghoLkZL9WVo+ogipbYaq0Q5KN1jqMyHeq5myaaI/2CQF6K3IJzktAZ4hi80CVBLrDliv p91ZckwO07jrR8qPb+Fw== X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Eric Yang , Arnd Bergmann , Roman Li , amd-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org, Michael Strauss , dri-devel@lists.freedesktop.org, Bhawanpreet Lakha Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Calling kzalloc() and related functions requires the linux/slab.h header to be included: drivers/gpu/drm/amd/amdgpu/../display/dc/dcn21/dcn21_resource.c: In function 'dcn21_ipp_create': drivers/gpu/drm/amd/amdgpu/../display/dc/dcn21/dcn21_resource.c:679:3: error: implicit declaration of function 'kzalloc'; did you mean 'd_alloc'? [-Werror=implicit-function-declaration] kzalloc(sizeof(struct dcn10_ipp), GFP_KERNEL); A lot of other headers also miss a direct include in this file, but this is the only one that causes a problem for now. Signed-off-by: Arnd Bergmann --- drivers/gpu/drm/amd/display/dc/dcn21/dcn21_resource.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/amd/display/dc/dcn21/dcn21_resource.c b/drivers/gpu/drm/amd/display/dc/dcn21/dcn21_resource.c index 906c84e6b49b..af57885bbff2 100644 --- a/drivers/gpu/drm/amd/display/dc/dcn21/dcn21_resource.c +++ b/drivers/gpu/drm/amd/display/dc/dcn21/dcn21_resource.c @@ -23,6 +23,8 @@ * */ +#include + #include "dm_services.h" #include "dc.h"