Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3754881yba; Mon, 29 Apr 2019 08:01:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqwf8r+vefTGiBLg39pzCz5Gu+DGuqGrqGhbStuXpK8nzfMQ8rUNXEu/8jy9xIH6BtYqSLHu X-Received: by 2002:a63:dd10:: with SMTP id t16mr59629520pgg.446.1556550118424; Mon, 29 Apr 2019 08:01:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556550118; cv=none; d=google.com; s=arc-20160816; b=zxCjZmesNteATVQrUyfVofWJjPRvpMQO5mQlc9VrIyH6NmGg0hqLPcpees3gorEr6/ 3846TV7BgEVniGmotgQ0mcRaXCW5lx0xyr1zMB0EePVabKAmxQhho5JiN1XktrQi/iUS KcXJeyekakBVZs9aBB/PNOFjdYcHnGvLvJudDPMBFf0kUBg3FLA2TXOIk6cafnya1774 LJhZNsASVcsl0jgLYziC2/7mP6TW1YSyWqewtewoGTgK7Lb8P8yNWN2fgObQv+ZjiVQR YFe+QwSxAJFAmxCYmNqqLkhawuf/3AjflYusmAiCaC3yjet3HaBdV0RrAWwuOqR+2w80 mPTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:message-id:user-agent:cc:to :references:in-reply-to:from:subject:content-transfer-encoding :mime-version:dmarc-filter:dkim-signature:dkim-signature; bh=ZDFZxcG1O8shn3WFiFZp1n+C9kDlJ+FKoo/uNzllbJY=; b=wcVtGBg/4uoiPtQb2/DpPHTK/ZQRBXKi4x1arE7i0odbe9IGLQpD7DX3Lesic6yzAF T08PeH/5vnLcQ9EIcRoPviV1wjdNhclGdA1hE5Hm3FJNqxFbUjiIIpOSbn5fgMq1CEyC dFW6mvezBMdw1PjJOt7470but4NUhCk5BePmWyPV58nNbp37yUXgab0XBikMwc3s59F/ loLImcRCmlrSNZsGMxBSFP7atnK/YSi7SSBOC+317QXzAJc9aXAsvSLQ4lsJF4JSFmsO p5OWc5l49em656y+IpJbMCPn9CfcjAiyASrO9BGuEw8w8KPETI+UjpQb5MWOl5LOyTkt HeLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=jIG5dcAv; dkim=pass header.i=@codeaurora.org header.s=default header.b=eho73adp; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-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 v4si31895376pga.366.2019.04.29.08.01.41; Mon, 29 Apr 2019 08:01:58 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=jIG5dcAv; dkim=pass header.i=@codeaurora.org header.s=default header.b=eho73adp; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728506AbfD2PBZ (ORCPT + 99 others); Mon, 29 Apr 2019 11:01:25 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:51830 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727554AbfD2PBZ (ORCPT ); Mon, 29 Apr 2019 11:01:25 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 1BB9460CEC; Mon, 29 Apr 2019 15:01:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1556550085; bh=hPzUai/4q86KkLTLbU6B01pvrdI1M63fG/ZZE74WXcs=; h=Subject:From:In-Reply-To:References:To:Cc:Date:From; b=jIG5dcAvnCNNVv5zfUJXzHNe+xigOB2MVnGakh2ANQlqb3fYnjJZ9MI8eIxVcgXdg grg/A66/v1jsZO+X58xdvfgjPS30g1xDYIRHJZLEzTivJUBaCRz5Ee+YXgotLn/wza UQkw9h+MoTxmUJ3gD74I+aei66midGbxXA8SSHRg= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_INVALID,DKIM_SIGNED,MISSING_DATE,MISSING_MID autolearn=no autolearn_force=no version=3.4.0 Received: from potku.adurom.net (88-114-240-156.elisa-laajakaista.fi [88.114.240.156]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: kvalo@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 6A252602F3; Mon, 29 Apr 2019 15:01:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1556550084; bh=hPzUai/4q86KkLTLbU6B01pvrdI1M63fG/ZZE74WXcs=; h=Subject:From:In-Reply-To:References:To:Cc:From; b=eho73adpVes0NTGU9X+Zasbur9XOdRw0OiEU27+FFmc4L972qgcpdZoRc92RhGRUE i+flnE15M0rewzG7a5xQD7gUmXaRn1jGRXxrSBnkckJGXniaeU9727IdvBY16raR7E NDfdmR7AbheEi2liTu+D6hfmmgsbJx6bUAN+SRZ4= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 6A252602F3 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=kvalo@codeaurora.org Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [PATCH] wireless: carl9170: fix clang build warning From: Kalle Valo In-Reply-To: <20190325124354.1413529-1-arnd@arndb.de> References: <20190325124354.1413529-1-arnd@arndb.de> To: Arnd Bergmann Cc: Christian Lamparter , "David S. Miller" , clang-built-linux@googlegroups.com, Nick Desaulniers , Nathan Chancellor , Arnd Bergmann , Dan Carpenter , "Gustavo A. R. Silva" , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org User-Agent: pwcli/0.0.0-git (https://github.com/kvalo/pwcli/) Python/2.7.12 Message-Id: <20190429150125.1BB9460CEC@smtp.codeaurora.org> Date: Mon, 29 Apr 2019 15:01:24 +0000 (UTC) Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Arnd Bergmann wrote: > clang fails to eliminate some dead code with always-taken branches > when CONFIG_PROFILE_ANNOTATED_BRANCHES is set, leading to a false-positive > warning: > > drivers/net/wireless/ath/carl9170/mac.c:522:3: error: variable 'power' is used uninitialized whenever 'if' condition is > false [-Werror,-Wsometimes-uninitialized] > BUG_ON(1); > ^~~~~~~~~ > > Change both instances of BUG_ON(1) in carl9170 to the simpler BUG() > to avoid the warning. > > Signed-off-by: Arnd Bergmann > Acked-by: Christian Lamparter > Signed-off-by: Kalle Valo Patch applied to ath-next branch of ath.git, thanks. 62acdcfa8b7a wireless: carl9170: fix clang build warning -- https://patchwork.kernel.org/patch/10869053/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches