From patchwork Thu Jan 16 21:55:19 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Saeed Mahameed X-Patchwork-Id: 13942354 X-Patchwork-Delegate: kuba@kernel.org 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 A1F2B236ED4 for ; Thu, 16 Jan 2025 21:55:51 +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=1737064551; cv=none; b=qriuIa/Yga6NDXX3iaW/sk2s23am+AjtGCtaLVCoMQDA99EeV1xSAtLUrCcjJGeGeJ3gI7WJxdwJzkpj0v9rBGnCiPIHECjZf3H5HSyeQPyNfGqKRHuwz3dA2qNJzO2HHTUb3ZUJ57Q37JmC+2KDlIt0LYknP5LQmn8w0qbZ2l4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737064551; c=relaxed/simple; bh=hReaaEVazhIHcUoBuTktGZRTmQPX7aSOAiWApkLHko8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=bnLVBjOdiPY3N1qQzwtfnUMPn+FJtzjJ+pm1SV5UmfVVsbtBDq+uK/uGTavfMAUDes4i0Ug7qY5xyslPKZtDI0afb37Y+j7NlREIh1CXOJ0nLrdiksIgPtNvqEV7CFeAGAuYDBfxQtH2qBtzI4N8Y/VKeOWIL1PIDji4H0GhTcw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=uJg9A5yk; 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="uJg9A5yk" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 28BF4C4CEDD; Thu, 16 Jan 2025 21:55:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1737064551; bh=hReaaEVazhIHcUoBuTktGZRTmQPX7aSOAiWApkLHko8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=uJg9A5ykSab2J6r9CMDOoQ86f5ud8D41Fu2cxxDc9H0dyw8g+PLcP+KTpUebk5+ym ddJZU2PD2bFQPFRZKvkVerIMPRrBGcM8cnnhIXRfNghqpp/kLHx3dLRKvAywgrVCPr I7MBfpavUSx6nto9qDXytcjUkzzTb0kzSrdvEkKR7mRylQ7AzAB5iSlN3JCt2RMToG PSTWqTZXUwOV3TSTJwtGSgiZOLb1vdjaKRFaeiMfftq1cOGUFxbIEHZWvJtAtuyDbv vVYOs+YLNiq8Ub3gxIeYCifDnap5T8e0XwLA/fLiqmNjXN3oCWYKtVIUlFWptOTWS3 z1ADsiSoylo9A== From: Saeed Mahameed To: "David S. Miller" , Jakub Kicinski , Paolo Abeni , Eric Dumazet Cc: Saeed Mahameed , netdev@vger.kernel.org, Tariq Toukan , Gal Pressman , Leon Romanovsky Subject: [net-next 01/11] net: Kconfig NET_DEVMEM selects GENERIC_ALLOCATOR Date: Thu, 16 Jan 2025 13:55:19 -0800 Message-ID: <20250116215530.158886-2-saeed@kernel.org> X-Mailer: git-send-email 2.48.0 In-Reply-To: <20250116215530.158886-1-saeed@kernel.org> References: <20250116215530.158886-1-saeed@kernel.org> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Patchwork-Delegate: kuba@kernel.org From: Saeed Mahameed GENERIC_ALLOCATOR is a non-prompt kconfig, meaning users can't enable it selectively. All kconfig users of GENERIC_ALLOCATOR select it, except of NET_DEVMEM which only depends on it, there is no easy way to turn GENERIC_ALLOCATOR on unless we select other unnecessary configs that will select it. Instead of depending on it, select it when NET_DEVMEM is enabled. Signed-off-by: Saeed Mahameed --- net/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/Kconfig b/net/Kconfig index c3fca69a7c83..4c18dd416a50 100644 --- a/net/Kconfig +++ b/net/Kconfig @@ -68,8 +68,8 @@ config SKB_EXTENSIONS config NET_DEVMEM def_bool y + select GENERIC_ALLOCATOR depends on DMA_SHARED_BUFFER - depends on GENERIC_ALLOCATOR depends on PAGE_POOL config NET_SHAPER