Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp412592pxb; Thu, 14 Jan 2021 08:52:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJwmgaGLIpLBU5U0euFWawY/dHmvQm6zzqoFYqYnsGZEInae35Eg8Kzv+5EOtm2WovakuzEN X-Received: by 2002:a17:906:4705:: with SMTP id y5mr5813793ejq.112.1610643120904; Thu, 14 Jan 2021 08:52:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610643120; cv=none; d=google.com; s=arc-20160816; b=UYjIqRudCHT8aimzyRuQxfi/Rp6cofJbZ0GzQYHmeXJiJaB01dr7EbfrqDcCMCxGnu NyTgYpOabbaxl6LSB1TBP/zB+Mucv2P6XHRg3mnp2dX0UumLHJryjauodOoeYu7uDl+e 0rJr5yp+KqFM+HF43a6pPxGAmF6Uv7fV7FH3w/XuT0/I6pH9Vnyte6nUmE8KN3Us/8c0 GIEZq+IOhjlt65Z4PQKhQxZ23k36FD3pA4maY6UJ7fAPWhjLfzWZnEjrH0aOiWX6J5+b BT38rdQB0L9z3aB8tId0KvcdDIWbNk63SElxstEm95ds/AElkJCFF3QaTHzKwKL4Egc/ VPnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:date:message-id:user-agent:cc:to:references :in-reply-to:from:subject:content-transfer-encoding:mime-version :dmarc-filter:sender:dkim-signature; bh=pTOhOFjKTSVZKN1D0SJ1Pg5lWOEdKXufF+sYmOfnZOw=; b=RCjVqiN+HV+AaxcLoiKbUg8kCvNPQMM6cUY2A3UHIDV0GfF6xc3esUEI4XzTszhet7 vWCiy7TFdX7F94S8lrXwRV1ABf0AsdxzGayPgW2mmftKEr1P+kraQFa36PQVI/iYoih7 cpSKyuguGK19z0wk5/VFu5HuAco/Rx2w2GViFPTHg1M98v0DBMbUB+OErFL2t+t6ctey XAvWa7t9gEJZ2tjsRIlLmRXMcsKh8FJYWaRCtCvArm6h1fppqUDkLOFcPBAfW6lIOqxt g/t0BASjP0BKMXofr8ruxDLiIPWJMYrad4PcaEaUW/cF7Dwmdk+/J47E/wYeaRi9xwdI bCag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=uK7m3LlT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 j23si2716380eje.581.2021.01.14.08.51.36; Thu, 14 Jan 2021 08:52:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=uK7m3LlT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727168AbhANQtw (ORCPT + 99 others); Thu, 14 Jan 2021 11:49:52 -0500 Received: from so254-31.mailgun.net ([198.61.254.31]:37552 "EHLO so254-31.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727054AbhANQtw (ORCPT ); Thu, 14 Jan 2021 11:49:52 -0500 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1610642968; h=Date: Message-Id: Cc: To: References: In-Reply-To: From: Subject: Content-Transfer-Encoding: MIME-Version: Content-Type: Sender; bh=pTOhOFjKTSVZKN1D0SJ1Pg5lWOEdKXufF+sYmOfnZOw=; b=uK7m3LlTMNeYZcTmuS+5lJm56cD5bsc6Pbkwn6rrSg6veFCosQGXkBP/4ZVHiNs0xxbE+YRC MZTVw86QYph8A/pOGHXalFOOPKx1RZ0GCf/+9JPLyEV+JuUPtHhsVJMhaDqmH9rTDGQaO7xw lUNBV9bsGDuHcBeZcx2UH4TTOgo= X-Mailgun-Sending-Ip: 198.61.254.31 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd 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 600075ebc88af06107ced53b (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Thu, 14 Jan 2021 16:48:43 GMT Sender: kvalo=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id BE983C43461; Thu, 14 Jan 2021 16:48:42 +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,BAYES_00, MISSING_DATE,MISSING_MID,SPF_FAIL 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) by smtp.codeaurora.org (Postfix) with ESMTPSA id D370BC433C6; Thu, 14 Jan 2021 16:48:39 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org D370BC433C6 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=fail smtp.mailfrom=kvalo@codeaurora.org Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [PATCH] mt76: Fix queue ID variable types after mcu queue split From: Kalle Valo In-Reply-To: <20201229211548.1348077-1-natechancellor@gmail.com> References: <20201229211548.1348077-1-natechancellor@gmail.com> To: Nathan Chancellor Cc: Felix Fietkau , Lorenzo Bianconi , Ryder Lee , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, clang-built-linux@googlegroups.com, Nathan Chancellor User-Agent: pwcli/0.1.0-git (https://github.com/kvalo/pwcli/) Python/3.5.2 Message-Id: <20210114164842.BE983C43461@smtp.codeaurora.org> Date: Thu, 14 Jan 2021 16:48:42 +0000 (UTC) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Nathan Chancellor wrote: > Clang warns in both mt7615 and mt7915: > > drivers/net/wireless/mediatek/mt76/mt7915/mcu.c:271:9: warning: implicit > conversion from enumeration type 'enum mt76_mcuq_id' to different > enumeration type 'enum mt76_txq_id' [-Wenum-conversion] > txq = MT_MCUQ_FWDL; > ~ ^~~~~~~~~~~~ > drivers/net/wireless/mediatek/mt76/mt7915/mcu.c:278:9: warning: implicit > conversion from enumeration type 'enum mt76_mcuq_id' to different > enumeration type 'enum mt76_txq_id' [-Wenum-conversion] > txq = MT_MCUQ_WA; > ~ ^~~~~~~~~~ > drivers/net/wireless/mediatek/mt76/mt7915/mcu.c:282:9: warning: implicit > conversion from enumeration type 'enum mt76_mcuq_id' to different > enumeration type 'enum mt76_txq_id' [-Wenum-conversion] > txq = MT_MCUQ_WM; > ~ ^~~~~~~~~~ > 3 warnings generated. > > drivers/net/wireless/mediatek/mt76/mt7615/mcu.c:238:9: warning: implicit > conversion from enumeration type 'enum mt76_mcuq_id' to different > enumeration type 'enum mt76_txq_id' [-Wenum-conversion] > qid = MT_MCUQ_WM; > ~ ^~~~~~~~~~ > drivers/net/wireless/mediatek/mt76/mt7615/mcu.c:240:9: warning: implicit > conversion from enumeration type 'enum mt76_mcuq_id' to different > enumeration type 'enum mt76_txq_id' [-Wenum-conversion] > qid = MT_MCUQ_FWDL; > ~ ^~~~~~~~~~~~ > 2 warnings generated. > > Use the proper type for the queue ID variables to fix these warnings. > Additionally, rename the txq variable in mt7915_mcu_send_message to be > more neutral like mt7615_mcu_send_message. > > Fixes: e637763b606b ("mt76: move mcu queues to mt76_dev q_mcu array") > Link: https://github.com/ClangBuiltLinux/linux/issues/1229 > Signed-off-by: Nathan Chancellor > Acked-by: Lorenzo Bianconi Patch applied to wireless-drivers.git, thanks. b7c568752ef3 mt76: Fix queue ID variable types after mcu queue split -- https://patchwork.kernel.org/project/linux-wireless/patch/20201229211548.1348077-1-natechancellor@gmail.com/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches