Received: by 2002:ab2:5c0e:0:b0:1ef:a325:1205 with SMTP id i14csp251790lqk; Thu, 14 Mar 2024 01:56:42 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXoJeblytpZkqdyzYVvTBPLar/PR2TM3XNZBaAO2i7Sc27G1V+iyt3x7LgwvXtqPvwv534Dnd8VA/zdRv3X7VPmcXIwrba5eClgUlTJWw== X-Google-Smtp-Source: AGHT+IHc7M6tAbKOytA40LpzzidwmjqTxxPcSAuy/SQz3zzjsJuwPBdY8CwoXQ+ajbsUrOS+KcHk X-Received: by 2002:a05:6402:549:b0:568:a08a:9aaa with SMTP id i9-20020a056402054900b00568a08a9aaamr521713edx.28.1710406602537; Thu, 14 Mar 2024 01:56:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710406602; cv=pass; d=google.com; s=arc-20160816; b=UHm3xUEwvwoQ1oFy38EDp7th0jX7M/faazquwJiHdamlm8IpZmjHOjoJ+qINqz1Avj P5XSE2qtJNz/reaIA/PGY5tKViiKe7nSRyiP1E5uZAraiFlFfkn6fBiPhf19lU81h2uP 3/d/DfBJdrH2H+GnTCaTCof1G6onCM0iXs6zeCuSXaMQyPPlVbd4nmm7A8tn+ikW76NJ 2BDtnxAA/xomUMi5REd1ZA3zwLZRmmAX5RRB4FJht+h91AS9a9+JejE6yI8o0jDlxaxd VoCwyzSYDX75s0AGxsDCdFX2sC06Ds1++nKLsATxIinRNMD1/GWNLJO5ddW0xXqUUNoJ ZKgg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=date:message-id:user-agent:cc:to:references:in-reply-to:from :subject:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=nntjFDlDKHh3cv2d3VZx8EqTHzHeLUykEshsi5CKugg=; fh=HTMlfuJeuakFnVK79hhgNA0TPEMMcoZ2o2S0vR0sD8M=; b=YFM0biQKI3Dv9iYpkVg5wS7Mqgtzr5yFsqw6h5GhRO2pyqokExihhLT9WrMU4gB86W v1I3l7i2RequjR8HLIiJCwaW0hmdXf9R9qZCqW9ZUKX1LDwEp9PKMiz02tLAHpN5u9Qt T6g1qm6dZ2NZeLO6Z+h3Yo5bPWHPzQUt8r4M8CsrsgJhNa3YrG48y9jr2uDPfEGAb3Nk Wk4cdSj0rFj9CleumiVyvrO9+JWHjJSq+BFCwev5kGifsDoiBAk4XvJ22k529cp/P1Qk ob4JwXXB/Tw8jADu9DWZAjEfqOBNzSJGHmmXW+gKYcyB+dtW1q/fSs1Xe3UNfBChrcQb O/rQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=a8oFIJAz; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-4732-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-wireless+bounces-4732-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id dz20-20020a0564021d5400b005688b364448si539112edb.680.2024.03.14.01.56.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Mar 2024 01:56:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-4732-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=a8oFIJAz; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-4732-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-wireless+bounces-4732-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 43A461F22319 for ; Thu, 14 Mar 2024 08:56:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D21346BB50; Thu, 14 Mar 2024 08:56:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="a8oFIJAz" X-Original-To: linux-wireless@vger.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 9988A6BB45; Thu, 14 Mar 2024 08:56:40 +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=1710406600; cv=none; b=lYz/l5lXGcHkIWv7HUBmbOaSr1V/oUEdvknUMStak6sBNrkSVF6dkxNR4KC/IhSWvurlIzmUYSdr/UByTcJr4ayGijvpLksjPIKu65pZtSPjaMnblmLw8u9WcnyhHJv6W39iVUIBv0bQcG45xnWZaP2f0W2X+Hk9Kt9cuL9NfPE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710406600; c=relaxed/simple; bh=Py12VRbMdvVtfACD906rKN/O+uZfySHQwj9jlidK6BQ=; h=Content-Type:MIME-Version:Subject:From:In-Reply-To:References:To: Cc:Message-ID:Date; b=G3HNFa4nOcFWyAEhtbMLch+7aHlYyhXRHfllRWdETgPyIx2JcOdCjFypgleSh6kETEIPnPgEUlBOtb938wTo+meZILMrIgCEkHVchV+qF9Q9w2qr4jcLWYhJBAY/rqKLDWImKNd7QhuVAaPIWxiGbTPAO9xlGNK5bj9bSw4VULs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=a8oFIJAz; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6C60BC433C7; Thu, 14 Mar 2024 08:56:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1710406600; bh=Py12VRbMdvVtfACD906rKN/O+uZfySHQwj9jlidK6BQ=; h=Subject:From:In-Reply-To:References:To:Cc:Date:From; b=a8oFIJAzxiH4GpOSFGQVCtrCcnaXB9VB9CT7nBejXkRsL0OSFYgHJ6/ldVCRAmo6H oKsPB9hYigEfgXXqk/PT5F/4XoDVYeD9veC4VDmHK649jguTFhhHtjr9KSutwuzzyI W2Xjtwr7TZnY3WIRH1gYLgavB4CtBpT79rnDaUIn97F5QOTJAB/3g76ZMMYeQGvtNf wiUs1mzJTIegjmkbfNqqWkZZDRpohUzIOa+JqPZHC4HZul62T0u/iUCId/AxkD4+hd MG5nIkcxzd7lTLl/Jk8LWhjrVCxuwcUs4A2UQW2lhDG4EfmXpUQhOYbvNK1j0O5TbO uXahCjWNrIkyg== Content-Type: text/plain; charset="utf-8" Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH] ssb: use "break" on default case to prevent warning From: Kalle Valo In-Reply-To: <20240313001305.18820-1-rdunlap@infradead.org> References: <20240313001305.18820-1-rdunlap@infradead.org> To: Randy Dunlap Cc: linux-kernel@vger.kernel.org, Randy Dunlap , kernel test robot , =?utf-8?q?Michael_B=C3=BCsch?= , linux-wireless@vger.kernel.org, Johannes Berg , llvm@lists.linux.dev User-Agent: pwcli/0.1.1-git (https://github.com/kvalo/pwcli/) Python/3.11.2 Message-ID: <171040659685.2399140.4522460188387409537.kvalo@kernel.org> Date: Thu, 14 Mar 2024 08:56:38 +0000 (UTC) Randy Dunlap wrote: > Having an empty default: case in a switch statement causes a warning > (when using Clang; I don't see the warning when using gcc), > so add a "break;" to the default case to prevent the warning: > > drivers/ssb/main.c:1149:2: warning: label at end of compound statement is a C2x extension [-Wc2x-extensions] > > Fixes: e27b02e23a70 ("ssb: drop use of non-existing CONFIG_SSB_DEBUG symbol") > Signed-off-by: Randy Dunlap > Reported-by: kernel test robot > Closes: https://lore.kernel.org/oe-kbuild-all/202403130717.TWm17FiD-lkp@intel.com/ > Cc: Michael Büsch > Cc: linux-wireless@vger.kernel.org > Cc: Kalle Valo > Cc: Johannes Berg > Cc: llvm@lists.linux.dev > Acked-by: Michael Büsch > Reviewed-by: Nathan Chancellor Patch applied to wireless-next.git, thanks. 6c700b35a534 ssb: use "break" on default case to prevent warning -- https://patchwork.kernel.org/project/linux-wireless/patch/20240313001305.18820-1-rdunlap@infradead.org/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches