Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3106431rwb; Mon, 15 Aug 2022 18:14:38 -0700 (PDT) X-Google-Smtp-Source: AA6agR6mMYc3GCOA4k+pL+KROntn4uFWX1yhK5Bl/HfY/rmMepgNYcX4+CydMO6yO4iBndYKIFa2 X-Received: by 2002:a17:907:9605:b0:6f5:c66:7c13 with SMTP id gb5-20020a170907960500b006f50c667c13mr12423083ejc.66.1660612478198; Mon, 15 Aug 2022 18:14:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660612478; cv=none; d=google.com; s=arc-20160816; b=U74petKUng37Gmj3XhRi/Dey0S9bcqP9Xaa0KKJ0UTan0eowedwjQbFpziN6LYhyur QDyjhPSLahKIayd5/4Tjq1SiSfm6XB2LEOTZkItyPU4E6fx884J4tkwByKwf6OlnlT/E k6U5dH8YpVFSrFCUDuntYm+BOw/++ZGXWG86y8NtqbVOLgSi0JEydTjkm1pYS+W+f9A0 IBi9JdWXvvNsRwhvBFB3pWM+gUn/UnVrFnBedArtPPqCUuKBDYzlQXYlA3p3PdQHeBQ6 ENB9CkUQe3MNWi0CuVNBUx6PDcG7Ivb+VMkeZ2WnsnKme9VP6NCeF8Ygsy60qd1hTV1t Scog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=El4Bun21bTJm54xtuV3WfpMRO5fDwOYCMjsdgN9b9rk=; b=hBEdNaAwdd/DclSw6cI/5/7SnNIAK3b8vKBFny0TPLYx9ZI71NNC0EYiW/DjE51sx/ IaIvqovgSmVXZYZhTx/lNiPTncXl31ZokYRcGOTtomINLcDG8rgff/OMRDDQiaoSKqaY dozjRCqJlERtn+JnB4ej5VauOdrOHF/MeQk91jEPriu+/LKnig4kXYxdigE+BSxIrFKU Z0PFeunKJS4/fylU14q/pPVKpMA2PMuem8sDp3F/CYkYqNtpEYSj5Gh5PBMqNTJxL6NF hB7PggPxCovHSbV8znVTC2SW52iozzuik28qKsL07p6mJfNlrcaYTefY9/IXJEBQp40J 01AA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=oN46WV+J; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id du20-20020a17090772d400b0072ee40a2056si9229349ejc.862.2022.08.15.18.14.10; Mon, 15 Aug 2022 18:14:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=oN46WV+J; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1355035AbiHOXvU (ORCPT + 99 others); Mon, 15 Aug 2022 19:51:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48982 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1354974AbiHOXqz (ORCPT ); Mon, 15 Aug 2022 19:46:55 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F211633359; Mon, 15 Aug 2022 13:15:05 -0700 (PDT) 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 dfw.source.kernel.org (Postfix) with ESMTPS id BC68760B6E; Mon, 15 Aug 2022 20:15:04 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C887FC433C1; Mon, 15 Aug 2022 20:15:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660594504; bh=YYAdXWhzBkm3cA5wJVhZB1fpWiSlTa5n7rfsMHhFYgM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=oN46WV+Jr1ndpSQgRDN0KjHQ1d66gQgGRsbK/FE4kMAb0tvfFjp0Dpf6JQDylQkFP zEc4+TF1Ugmzt1LjB6+3841ALQs1PSDy8QO997TtvBn991fA35Z5oZpWLVhvy36xJq R8e18m+4fr+js87zIEY02MbiVAwkymqIuxhifoME= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Lorenzo Bianconi , Felix Fietkau , Sasha Levin Subject: [PATCH 5.19 0468/1157] mt76: mt7915: fix endianness in mt7915_rf_regval_get Date: Mon, 15 Aug 2022 19:57:04 +0200 Message-Id: <20220815180458.317372376@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180439.416659447@linuxfoundation.org> References: <20220815180439.416659447@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Lorenzo Bianconi [ Upstream commit 63907290faa916ffab1c8455141c79ca8e3a79bb ] Fix the following sparse warning in mt7915_rf_regval_get routine: drivers/net/wireless/mediatek/mt76/mt7915/debugfs.c:979:16: warning: cast to restricted __le32 Fixes: 0a17329ae9c1f ("mt76: mt7915: add debugfs knob for RF registers read/write") Signed-off-by: Lorenzo Bianconi Signed-off-by: Felix Fietkau Signed-off-by: Sasha Levin --- drivers/net/wireless/mediatek/mt76/mt7915/debugfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/mediatek/mt76/mt7915/debugfs.c b/drivers/net/wireless/mediatek/mt76/mt7915/debugfs.c index cab6e02e1f8c..d0c719ecacd0 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7915/debugfs.c +++ b/drivers/net/wireless/mediatek/mt76/mt7915/debugfs.c @@ -976,7 +976,7 @@ mt7915_rf_regval_get(void *data, u64 *val) if (ret) return ret; - *val = le32_to_cpu(regval); + *val = regval; return 0; } -- 2.35.1