From nobody Thu Dec 18 09:44:06 2025 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C21227F48C for ; Wed, 18 Dec 2024 08:59:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734512350; cv=none; b=rSkrfRxxILU6afzOTeNJWEtDdNBVpVwSf0lqHjXZXT23OQxQNtujcS7xZ6V/9xsTN5bp0zsH+fbKnZzCZHk9yK69G2B3FqNem5wTj1KtCTrChj3CzQdWqb5D54j7JPNQdY7EfufB4wnWaTztdhM0nyiVoXTDLqA6wJdbVpEnmM8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734512350; c=relaxed/simple; bh=YDrmVNS9CVj8aY1vhRPDzir+A2W9ahTbTFvoJ2lxY0I=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=EPNJe5my/TVzoDoL9xQoyRwNir4s5etv+i5CJVT8Ijx5DTTWIsEpEHu8LJtcRTrs4KnLwaFjRpqHxauJpPVKiy09VKFD4iiUI6jpBKx4uhA0wJZKvXXvWiU1ZzRCIWs/tz0MPGfGdxIgUJ0QyHNcS7msDKuUaIpSvuUmHus/QQE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=sH4AT0fa; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="sH4AT0fa" 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 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" 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 f= unction '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 =3D 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/ai= e2_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 =20 #include "aie2_solver.h" =20 --=20 2.39.5