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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5F127C433EF for ; Tue, 30 Nov 2021 16:02:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243317AbhK3QFv (ORCPT ); Tue, 30 Nov 2021 11:05:51 -0500 Received: from ams.source.kernel.org ([145.40.68.75]:39418 "EHLO ams.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243324AbhK3QFu (ORCPT ); Tue, 30 Nov 2021 11:05:50 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 22B00B81A53 for ; Tue, 30 Nov 2021 16:02:30 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BA593C53FCD; Tue, 30 Nov 2021 16:02:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1638288148; bh=64RAz2CqUQ1QEHCt+L9O5W/tNpPu0BSBDbOZVhu3//Y=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=eo6OHzOon1ZkbYjVdWvSMF4atPZg51dk2jL8vjgZwUJOap3OIWAd22H/bivVQ1H+h Sg+oNtPzIK9rBszlMfmb6COcL/NaDZ67jeeJW4g2eETHT6TvG4TK0odxIFmQM3s2kk UYtpuKZt1VfpaS6qwDQ8KaoMgzt92lMpuCLk6slO4xwnrJbZUWSC4hvUFslMAePDNZ BmAcnU2ephBRJYyCPilLDMbGFW1NNyFO+0xz7gZTeCWgCaKU+2W017QDG1VHuju61j aMm3+KRcgweDnCWNt0MAUB0VdZPQ+s7gHgb4owan8ZmYwRcrxBH4LggRjzkflqKwmv EFLDeM9Sfs6XQ== Date: Tue, 30 Nov 2021 09:02:24 -0700 From: Nathan Chancellor To: Finn Behrens Cc: johannes@sipsolutions.net, linux-wireless@vger.kernel.org, llvm@lists.linux.dev Subject: Re: [PATCH v5] nl80211: reset regdom when reloading regdb Message-ID: References: <20210526112418.cdwkn7ed4twctimc@imap.mailbox.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Hi Finn, On Sat, Nov 27, 2021 at 11:28:53AM +0100, Finn Behrens wrote: > this reloads the regdom when the regulatory db is reloaded. > Without this patch the user had to change the regulatoy domain to a > different, and then reset it to the one the user is in, to have the new > regulatory db take effect > > Signed-off-by: Finn Behrens This patch as commit 1eda919126b4 ("nl80211: reset regdom when reloading regdb") in -next causes the following clang warning/error: net/wireless/reg.c:1137:23: error: implicit conversion from enumeration type 'enum nl80211_user_reg_hint_type' to different enumeration type 'enum nl80211_reg_initiator' [-Werror,-Wenum-conversion] request->initiator = NL80211_USER_REG_HINT_USER; ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~ 1 error generated. Should that be NL80211_REGDOM_SET_BY_CORE (same value, 0) or something different? Cheers, Nathan