Received: by 10.213.65.68 with SMTP id h4csp350132imn; Tue, 13 Mar 2018 06:28:13 -0700 (PDT) X-Google-Smtp-Source: AG47ELs4obQ8XNNdSlRrNW+R/6C7uAw8WitIwn7dfzQGy7L/kKBEbrU7IQe2Qe3ki4oJAZB5FrG7 X-Received: by 2002:a17:902:d81:: with SMTP id 1-v6mr586413plv.324.1520947692920; Tue, 13 Mar 2018 06:28:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520947692; cv=none; d=google.com; s=arc-20160816; b=O3yZBOTTvRc0B+MWA/QneRoJ5LDyWpYD44SLNpuP7jc9C4yuhNTBWn3TIDnx4pncpZ 9IY2qHW/2Z3lsX8J0Grh9kGfO9I0MzSU15WM8MMSoYSxPJh7h2OSeaD1wJQGoZjIIjqi jYE6UfN3537/hsN1eJT/W0QiJ1X0C2v1OukM9Qi7QkQ7XQN9wfEmhXcXz26tLHbz+rVX KgW97ZASnwN4uR0aTWJp3dBA9UTTVq/+xOgfhAE/s1a57f54lAntWTXcjK5u290skboj G4s9Zc0+sI2N0Sj51pLKPynf3Dz8pbVb9Apldnvwl/Z/lN3DuVuvQqzH6I+GKxt1yeCo sGyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=D7QQH4/81PvxyUcinTLWEgPArKyrlsg2Smenx1TvoRs=; b=NOmwA/9xaKLF1xe4yCpHfKIW3PeJ1sG2tra59hjH7PJ5jyEwzePZK+KEIoBdiAwr+6 eAaXRgf96jzClqu3lfUO6glb9bYWfsCKt70B2VPq6rPx018lQon6tE37x2dHMumilou+ 2QwWTFLC0Sll1ZU5xWkkY8uAYxnGbVYfRxkpm7y++bakL4vYopmfS0ao9kx21caZKrWv /Yr0jD65th7YA1tCE6Dc/tOsyJt26AvzNpJRh/TuGP6VXzTM2GHobUutg2bNQ7yjMgxH 0EDWOrd/sdmJl3NEqBshTt7Co7W4Umb7tuXomJoZFxu6YPEPCm2+F34d7bnT8wE566jf 14Iw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=Ty/FcSQb; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l18-v6si114807pli.630.2018.03.13.06.27.57; Tue, 13 Mar 2018 06:28:12 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=Ty/FcSQb; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752761AbeCMN0v (ORCPT + 99 others); Tue, 13 Mar 2018 09:26:51 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:34964 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751723AbeCMN0n (ORCPT ); Tue, 13 Mar 2018 09:26:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=References:In-Reply-To:Message-Id: Date:Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=D7QQH4/81PvxyUcinTLWEgPArKyrlsg2Smenx1TvoRs=; b=Ty/FcSQb6eMUNmNa2M9FHXtBR h3/JaGxF+A6PURShQlk/bBB4bVvdVArOtUUC7XGymsZLIOi5Y33xfQkxQ/K+0GgCRklKEaEBiO7IH 185z16CDmGsiGEtq0vOSqlxFED5d0nKIP/EcBnZy8MImXEl3cZyrh3nW5YWXgZMBfPduJQltE/AQg /x4YaGKkP8NBZPdYOWQIvCDJmLOyN+uyz8EBsOC1QnN2vWNHe418hTYdINNjKdd7cmwT+3j2xrljT gfxEgpk6e4rgY2v/HLWl68yJqDSvALp4zvSDcI8Mi7GpFWbiYu1AxwegJ8smbjo2oyArbYozT7EYU mPJDZLKVg==; Received: from willy by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1evjwv-0004Yq-6r; Tue, 13 Mar 2018 13:26:41 +0000 From: Matthew Wilcox To: Andrew Morton Cc: Matthew Wilcox , linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, Ryusuke Konishi , linux-nilfs@vger.kernel.org Subject: [PATCH v9 01/61] mac80211_hwsim: Use DEFINE_IDA Date: Tue, 13 Mar 2018 06:25:39 -0700 Message-Id: <20180313132639.17387-2-willy@infradead.org> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180313132639.17387-1-willy@infradead.org> References: <20180313132639.17387-1-willy@infradead.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Matthew Wilcox This is preferred to opencoding an IDA_INIT. Signed-off-by: Matthew Wilcox --- drivers/net/wireless/mac80211_hwsim.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/mac80211_hwsim.c b/drivers/net/wireless/mac80211_hwsim.c index 7b6c3640a94f..8bffd6ebc03e 100644 --- a/drivers/net/wireless/mac80211_hwsim.c +++ b/drivers/net/wireless/mac80211_hwsim.c @@ -253,7 +253,7 @@ static inline void hwsim_clear_chanctx_magic(struct ieee80211_chanctx_conf *c) static unsigned int hwsim_net_id; -static struct ida hwsim_netgroup_ida = IDA_INIT; +static DEFINE_IDA(hwsim_netgroup_ida); struct hwsim_net { int netgroup; -- 2.16.1