Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp10265rdh; Fri, 22 Sep 2023 22:43:18 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF7d2EgJ9Nq96eqB7r1Q1NVBXWfJ0ypMM4aojn0p02Vefo0x1Z4l1S0dsCixgQe+l9UIVGr X-Received: by 2002:a05:6870:220e:b0:1be:f8d9:7bdd with SMTP id i14-20020a056870220e00b001bef8d97bddmr1820827oaf.6.1695447798010; Fri, 22 Sep 2023 22:43:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695447797; cv=none; d=google.com; s=arc-20160816; b=X/uruatCb6LzB3/YM/gftiIUqtwYUUX0atKJiJKkJx96jly2/hsbq20C+NGCPkrMgW sq8j252x7q4PRzwBKJWsWLYorgLroEfJgccnwwNZGwcOD5TYLTAzeNa1bMlU6RZKAsAw FPSnAoeaDdd9QS3FPkwxH9kkWtgVY5t/L43w9dW7hFrqj/BghsiffQz8gpBh3VIqOIoc xey2huwquQY66/it83Sqkzod7SgbuhFEpnzK9frpnJ22pDLwxmj1RYBQOT6SjAIj8i0d w0haJTxwIEaqPpQNHtlZ8SegvMho7R9FSJIVxqvUl2mx5dRB0LIQrsoujvl7yEzKg9ig DA0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=VNpi5MU32lqhvlFPPVlhf1T34olOc5AdM8aLJlax2ik=; fh=c7e1xBP9cUYvzFJVYAWiEdIbr2p6HPzPWdU/2k7+RnA=; b=re6nKGbH70eJwoq9mSzLN97HTOwlymDKV6paAYAyJRkosN3aDBkxkpN6l2jDeGev1O 7Ynq1JKGwSjQ5jyZyemrpBaCd8rehkim6K1DaRlaQslrg342ABM24jY0zoCatyroyFBh UuvivL676OiFsuwJ/mrEvZQDFBXLIqtiCYeBmuEnil4UdX7K+vxOaB2wJHTBE3zHCUHQ 7HWL5lwd6GknUpCjJkQKxGdmiftip1CY5kHF5HAgBinjKKgYGUBBoMjgfWMccHJYvM25 FGB4QTsM8Bwkrv+9MIs5BhgqYTWBuUvptvqisd/FRggEoVSFP76k6ybwhBTUPiMBwjpH EuXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="W1X10i/X"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id l9-20020a654c49000000b005652bd27e80si5376027pgr.588.2023.09.22.22.43.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Sep 2023 22:43:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="W1X10i/X"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 7DA30839F066; Fri, 22 Sep 2023 20:28:49 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229884AbjIWD2u (ORCPT + 99 others); Fri, 22 Sep 2023 23:28:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52794 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229592AbjIWD2t (ORCPT ); Fri, 22 Sep 2023 23:28:49 -0400 Received: from mail-oo1-xc36.google.com (mail-oo1-xc36.google.com [IPv6:2607:f8b0:4864:20::c36]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DB996A9; Fri, 22 Sep 2023 20:28:42 -0700 (PDT) Received: by mail-oo1-xc36.google.com with SMTP id 006d021491bc7-57ba2cd3507so57735eaf.2; Fri, 22 Sep 2023 20:28:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695439722; x=1696044522; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=VNpi5MU32lqhvlFPPVlhf1T34olOc5AdM8aLJlax2ik=; b=W1X10i/Xwh9/FNjyWm5QlEtCciUR3pzHumQxDk3647OkVgV3jzYuh6cHRglVmVdtbE S5/CNhFO9Tl8fgkbQgCpvFkB3Lvoi4QjpxrmcnJLfRdkMvC+k76al+pYGHUoUcEDj21A CbAjxb5fuyMMHjCQK+wf8mPOLSMeUNeqaYvMOsYVQoLspP/mDnsMDiSf9R/h8OFiRkpN ApTIPDGXlB4WY8QlZtMH+4xZPZWrfNuatBA4/dGUa72gPKCXDsZBTmbHPFpEvLK65CAn TRpNj1HsTuPhf4xdRBmJbXvYQrJhfNB60VigkMLPZm+q5ZMtEUPqWwV1Vpv6zdvFi1C2 ZYpw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695439722; x=1696044522; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=VNpi5MU32lqhvlFPPVlhf1T34olOc5AdM8aLJlax2ik=; b=Pth4RYbCvTlS6wb5kz+m6Kh2T7FQUCwuT7r0T80qbosnVEepmT4GOT6Rt1qZV9fKXu Yd5OUXrNiMowBdPiLEpOoA834sLP3Ezpqq855AQiT03kWzKTzv8iQm0Cg5LIikdBkduA N4oDprcP6AavwOjyxW0HCr1ZLFVj34eemUYMhQQvnl/6Z8yCAfhXaKvudlNS6BFRXXmU PH7lEHydAs3TLvLKt/g0EsmmeCIsg8UTut1IcV7MB0H01zyzi/eCQ2r+kePKHZvL4fGo 8rW7aKMga3S6EmBluzpZsp17vJexcs8KvsIH2q1TeP2Awuhqm1EnQj6igbGST+TUOEXx CvfQ== X-Gm-Message-State: AOJu0Yzmp7BpBW9BJy8TlDxbr8zF20AqorWgD2Zl77lOOk0fK7E5x8hF 3/QWQrUspLgWUHak6h+1LLo= X-Received: by 2002:a05:6358:52cb:b0:143:8084:e625 with SMTP id z11-20020a05635852cb00b001438084e625mr1563237rwz.11.1695439721791; Fri, 22 Sep 2023 20:28:41 -0700 (PDT) Received: from instance-2.asia-northeast3-a.c.dynamic-net-399300.internal (214.81.64.34.bc.googleusercontent.com. [34.64.81.214]) by smtp.gmail.com with ESMTPSA id bu20-20020a632954000000b0057c29fec795sm3585767pgb.37.2023.09.22.20.28.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Sep 2023 20:28:41 -0700 (PDT) From: roynatech@gmail.com To: johannes@sipsolutions.net Cc: davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] mac80211: fix station hash table max_size config dependency Date: Sat, 23 Sep 2023 03:28:34 +0000 Message-Id: <20230923032834.9694-1-roynatech@gmail.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=3.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_SBL_CSS, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Fri, 22 Sep 2023 20:28:49 -0700 (PDT) X-Spam-Level: ** From: roynatech2544 Commit ebd82b3 ("mac80211: make station hash table max_size configurable") introduced config MAC80211_STA_HASH_MAX_SIZE, which is defined unconditionally even if MAC80211 is not set. It doesn't look like it is dependent of MAC80211_DEBUG_MENU either, as its only user is sta_info.c which is compiled unconditionally when MAC80211 != n. And without this config set somewhere, compile would error out. Make it depend on MAC80211 to correctly hide the config when MAC80211=n Fixes: ebd82b3 ("mac80211: make station hash table max_size configurable") Signed-off-by: roynatech2544 diff --git a/net/mac80211/Kconfig b/net/mac80211/Kconfig index 51ec8256b..b9dc520b6 100644 --- a/net/mac80211/Kconfig +++ b/net/mac80211/Kconfig @@ -296,7 +296,8 @@ config MAC80211_DEBUG_COUNTERS If unsure, say N. config MAC80211_STA_HASH_MAX_SIZE - int "Station hash table maximum size" if MAC80211_DEBUG_MENU + int "Station hash table maximum size" + depends on MAC80211 default 0 help Setting this option to a low value (e.g. 4) allows testing the -- 2.34.1