Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp523805pxa; Fri, 14 Aug 2020 10:17:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyaO9YQThB9WPiHzWbm4T/mwRHCUgFoPQ2SqHkylBYVvaxBT060V1KsgNmo8s2xSWZXfGVA X-Received: by 2002:a50:9d4e:: with SMTP id j14mr3337688edk.92.1597425461695; Fri, 14 Aug 2020 10:17:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597425461; cv=none; d=google.com; s=arc-20160816; b=M0XPpz+9fsY52E3Sb35bTcdyry28dh4hdX8drL2NgGw//qTUvjtlP9POxHVsWSC4+B BGX7PdiD1fZMyGgGNI9VxdjA86adGCvWEAmLUfFr09F5bvsZKRCkKogHZdBmKYreA8AO Nl/yrPp77Zjp0pikhn4tc3GENP74HcP3C+ktsC9AKXUsWNCCU2GPj1avlVRl/S555zXG i3bhxh3mcQlb+N4hj00F247Cb1Whx1RfkjWKomOsbddccN1YHh8ia5hDRQA3uHGh3MJf yvwIg1esiN3nvXpfM2u+QuCF5EqNDi3x20Xpq1MV0OyrNX8J7zVp8pHJVVCjC78iVZd/ i5VA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:dmarc-filter :dkim-signature; bh=mPlMnRBo7ujhcOrq01sZdy7AHWBN3hp9Xm7yx0IG3Sg=; b=Jmazxy0alVnracl4JixoGz8YWTlWRObo1wuuQTrLRJu+SG7Geko3UL63AUm/TP0/mr 6w/m9yswxWp3/wqbgpY6+dYzyr1xSbMtXPI82g+6ExeQr/Yrhi3M2QMz6S8tMM6qg5J/ 5ede1QYkJpic0wm3aFWkhT21MnD8I3cwzr1s6wdDzOaoWEUw1A5J4HSDyYxnQ0x/dUd5 5rGlHCoBd6mbAko3yqtIjQ1HrV2Q6+sv4gN8i1XnTzhV0UCTihihNxOCTlq4ZF3Kkt7b lmk+ixGsDC91wKc244XbgAjuNULQnYJMh6F8xvyzUQZxteoukvMMnzdL58IFG2xtAN6+ RwzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=L3gQLmEk; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 17si5624734ejw.686.2020.08.14.10.17.06; Fri, 14 Aug 2020 10:17:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=L3gQLmEk; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728380AbgHNRQA (ORCPT + 99 others); Fri, 14 Aug 2020 13:16:00 -0400 Received: from mail29.static.mailgun.info ([104.130.122.29]:18734 "EHLO mail29.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727894AbgHNRP7 (ORCPT ); Fri, 14 Aug 2020 13:15:59 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1597425359; h=Content-Type: MIME-Version: Message-ID: In-Reply-To: Date: References: Subject: Cc: To: From: Sender; bh=mPlMnRBo7ujhcOrq01sZdy7AHWBN3hp9Xm7yx0IG3Sg=; b=L3gQLmEkg/ZeKCVJ6bkN+H0iAJznLRH+YYK98prmyapBoNzln1PkbM+i39ko6L+W48tg9uD+ xYxcj3LHd3ULcyJUeEI8UtjgIyBluuTvG7ivdJ56/ZbMSSiOgMmBfJIWehnDyHm3ofRPPtVg wLUF//6WwZggnQB6ULzJ9y8bbd4= X-Mailgun-Sending-Ip: 104.130.122.29 X-Mailgun-Sid: WyI3YTAwOSIsICJsaW51eC13aXJlbGVzc0B2Z2VyLmtlcm5lbC5vcmciLCAiYmU5ZTRhIl0= Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n06.prod.us-east-1.postgun.com with SMTP id 5f36c6cdcbcd42bdee8620a4 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Fri, 14 Aug 2020 17:15:57 GMT Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 1A280C43395; Fri, 14 Aug 2020 17:15:57 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=2.0 tests=ALL_TRUSTED,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.0 Received: from tynnyri.adurom.net (tynnyri.adurom.net [51.15.11.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: kvalo) by smtp.codeaurora.org (Postfix) with ESMTPSA id 3819AC433C9; Fri, 14 Aug 2020 17:15:55 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 3819AC433C9 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=none smtp.mailfrom=kvalo@codeaurora.org From: Kalle Valo To: Thomas Pedersen Cc: Johannes Berg , linux-wireless , ath10k , sfr@canb.auug.org.au Subject: Re: [PATCH mac80211-next] ath10k: fix unhandled switch value warning References: <20200731055636.795173-1-thomas@adapt-ip.com> Date: Fri, 14 Aug 2020 20:15:53 +0300 In-Reply-To: <20200731055636.795173-1-thomas@adapt-ip.com> (Thomas Pedersen's message of "Thu, 30 Jul 2020 22:56:36 -0700") Message-ID: <87lfih87xy.fsf@tynnyri.adurom.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Thomas Pedersen writes: > Cited commit introduced the following warnings: > > drivers/net/wireless/ath/ath10k/mac.c: In function 'chan_to_phymode': > drivers/net/wireless/ath/ath10k/mac.c:558:3: warning: enumeration > value 'NL80211_CHAN_WIDTH_1' not handled in switch [-Wswitch] > 558 | switch (chandef->width) { > | ^~~~~~ > drivers/net/wireless/ath/ath10k/mac.c:558:3: warning: enumeration > value 'NL80211_CHAN_WIDTH_2' not handled in switch [-Wswitch] > drivers/net/wireless/ath/ath10k/mac.c:558:3: warning: enumeration > value 'NL80211_CHAN_WIDTH_4' not handled in switch [-Wswitch] > drivers/net/wireless/ath/ath10k/mac.c:558:3: warning: enumeration > value 'NL80211_CHAN_WIDTH_8' not handled in switch [-Wswitch] > drivers/net/wireless/ath/ath10k/mac.c:558:3: warning: enumeration > value 'NL80211_CHAN_WIDTH_16' not handled in switch [-Wswitch] > drivers/net/wireless/ath/ath10k/mac.c:581:3: warning: enumeration > value 'NL80211_CHAN_WIDTH_1' not handled in switch [-Wswitch] > 581 | switch (chandef->width) { > | ^~~~~~ > drivers/net/wireless/ath/ath10k/mac.c:581:3: warning: enumeration value 'NL80211_CHAN_WIDTH_2' not handled in switch [-Wswitch] > drivers/net/wireless/ath/ath10k/mac.c:581:3: warning: enumeration value 'NL80211_CHAN_WIDTH_4' not handled in switch [-Wswitch] > drivers/net/wireless/ath/ath10k/mac.c:581:3: warning: enumeration value 'NL80211_CHAN_WIDTH_8' not handled in switch [-Wswitch] > drivers/net/wireless/ath/ath10k/mac.c:581:3: warning: enumeration value 'NL80211_CHAN_WIDTH_16' not handled in switch [-Wswitch] > > Fix them by making the existing invalid channel width > cases the default, as the introduced channel widths > currently don't make sense in 2 or 5GHz either. > > Fixes: e5cb3d34a66d ("nl80211: S1G band and channel definitions") > Signed-off-by: Thomas Pedersen I assume Johannes takes this so: Acked-by: Kalle Valo -- https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches