From patchwork Wed Dec 18 08:58:57 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 13913178 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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 146F4E77188 for ; Wed, 18 Dec 2024 08:59:14 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 8436410EB08; Wed, 18 Dec 2024 08:59:13 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.b="sH4AT0fa"; dkim-atps=neutral Received: from nyc.source.kernel.org (nyc.source.kernel.org [147.75.193.91]) by gabe.freedesktop.org (Postfix) with ESMTPS id 1DBAF10EB08 for ; Wed, 18 Dec 2024 08:59:12 +0000 (UTC) Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by nyc.source.kernel.org (Postfix) with ESMTP id EF8E9A40B5F; Wed, 18 Dec 2024 08:57:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7C503C4CECE; Wed, 18 Dec 2024 08:59:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1734512350; bh=YDrmVNS9CVj8aY1vhRPDzir+A2W9ahTbTFvoJ2lxY0I=; h=From:To:Cc:Subject:Date:From; b=sH4AT0fa5h01DYhNudJmJCiOuVMVCtUmlKQ9tQ/U724q3HTlzynO/DqBSDHUpNvER OvlIB3Z6LGSps1gRatiNnSoZ9QOrdWbzr7AsfpUOyljB2truLras2qoqsR3mqpSBga KQGFcAkBWGCdyfkyF1lOyZVo2Rh00/qmcspyy20C6mEpWCFNWn+3WhGeWxmNVqhf4L jAZOavB7rCcJsKPs5Zc+ACFyTnd1+bzXC89EE1EjER3QU8qdxFv83kGIXokQ6Cwm1X MfvZjZIZktoYe+j/efnpTZ9qZwVGWJJCwBtNHEFekkdXsCyQK4lKu6vg2Ie3MhI0G0 nGC15dZqm3TXg== From: Arnd Bergmann To: Min Ma , Lizhi Hou , Oded Gabbay , Jeffrey Hugo Cc: Arnd Bergmann , Mario Limonciello , Narendra Gutta , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH] [v2] accel/amdxdna: include linux/slab.h Date: Wed, 18 Dec 2024 09:58:57 +0100 Message-Id: <20241218085902.2684002-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.5 MIME-Version: 1.0 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: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" From: Arnd Bergmann This driver fails to build in random configurations: drivers/accel/amdxdna/aie2_solver.c: In function 'remove_partition_node': drivers/accel/amdxdna/aie2_solver.c:121:9: error: implicit declaration of function 'kfree' [-Wimplicit-function-declaration] 121 | kfree(pt_node); | ^~~~~ drivers/accel/amdxdna/aie2_solver.c: In function 'get_free_partition': drivers/accel/amdxdna/aie2_solver.c:153:19: error: implicit declaration of function 'kzalloc' [-Wimplicit-function-declaration] 153 | pt_node = kzalloc(sizeof(*pt_node), GFP_KERNEL); Add the missing include. Fixes: c88d3325ae69 ("accel/amdxdna: Add hardware resource solver") Signed-off-by: Arnd Bergmann Reviewed-by: Mario Limonciello --- This one is still needed, I had previously combined two missing includes in one patch --- drivers/accel/amdxdna/aie2_solver.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/accel/amdxdna/aie2_solver.c b/drivers/accel/amdxdna/aie2_solver.c index 1939625d6027..2013d1f13aae 100644 --- a/drivers/accel/amdxdna/aie2_solver.c +++ b/drivers/accel/amdxdna/aie2_solver.c @@ -8,6 +8,7 @@ #include #include #include +#include #include "aie2_solver.h"