Received: by 2002:ab2:3c46:0:b0:1f5:f2ab:c469 with SMTP id x6csp64297lqf; Thu, 25 Apr 2024 22:33:14 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXWgpaYvElvX8A3JG25n4GCqOQRva9cqkalIdDkE3QWpq6d9bQRqcsztsglnCszHuFxOPups3h6joI3k6f9cTPggxYfq2sWBpJaRZXdMg== X-Google-Smtp-Source: AGHT+IGep8YkdUv7eds26TIPdZIHrB8EJNgW53IO0l5V/Abzo/QKsd2VIe2TGprOstuZQv2v5qWt X-Received: by 2002:a05:6a00:a1b:b0:6e8:f708:4b09 with SMTP id p27-20020a056a000a1b00b006e8f7084b09mr2250238pfh.15.1714109593962; Thu, 25 Apr 2024 22:33:13 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714109593; cv=pass; d=google.com; s=arc-20160816; b=RmWGJ8QLT2zcDXlH2E1EiToCKBck+1ADnhk1z+yqInk2RBu+UI6LMtRO5SluN90oI4 LZfrSx40BbHlswleS5zpnsU/d+UujpwDEIMcFxXWVk/fTkCCWtsNkJAbZqXPukqvbYFm mAHFadZ9RCC/mBudQDC1MKiufH1RjkHpZeiu+1irLIgG1Yah7/RmI8fXjod91UXaYGC4 ulxdivfKyrmrLe9JEoaIZRkDcyt1iKwDXGTrFJr7FIdACGqxaBRDJyO5n8KlNmXJxL7H GXridCRxz/Tk/JqtZjrZrqY4lDCQhiTV3FhjWnCkg9lbGk8gIekha5KMTDAuN0+SlFRf 4Q4A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:date:subject:cc:to:from:dkim-signature; bh=4LCrjhDaL8ypFniNCchNygF9gHvRZ2+FyqZFGJS8hII=; fh=xmX3nUiCDRywM7GN/jnkxEI0WXifvWaaBmhMyTMYa4c=; b=gcFShbV8pgQILibcMU2H3rt6Efg1jtR9YL30YtrD9Exeq0lps7uCJYnZJv4xxpZdpN GyrT1BlyzcLIOs1SHFH8NxOx5RGSQlW4r4g1dI62d111bRV9gRqpJWM9wPirV2DGwhQP +EF/AwmYuyqD6VFwSoJUYJ4vHRC00lJBR5JZp3j7s8QJVN3r1Ln2nNAgGtAXUCPZ/MtX b5WAGjypqxryjiNA/H8kI4GRqetQWfkBqI0X3zudWdY5AnSOF1HTDpFTck+xRDp+/+7X 7i4l5ZF/EZ5ojHFtg1enuJpL/v9HDH3vU79qaDyqNHo1GE+/AIqE2r+JbphQBLJphasg IRDw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=N+OcpvxN; arc=pass (i=1 spf=pass spfdomain=mediatek.com dkim=pass dkdomain=mediatek.com dmarc=pass fromdomain=mediatek.com); spf=pass (google.com: domain of linux-wireless+bounces-6915-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-6915-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id u71-20020a63854a000000b005fc4990405dsi10509774pgd.51.2024.04.25.22.33.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Apr 2024 22:33:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-6915-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=N+OcpvxN; arc=pass (i=1 spf=pass spfdomain=mediatek.com dkim=pass dkdomain=mediatek.com dmarc=pass fromdomain=mediatek.com); spf=pass (google.com: domain of linux-wireless+bounces-6915-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-6915-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 221C2B21F05 for ; Fri, 26 Apr 2024 05:33:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6515F13A261; Fri, 26 Apr 2024 05:33:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=mediatek.com header.i=@mediatek.com header.b="N+OcpvxN" X-Original-To: linux-wireless@vger.kernel.org Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) (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 0AED61849 for ; Fri, 26 Apr 2024 05:33:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=210.61.82.184 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714109587; cv=none; b=rM/t0I5202ISpLEK3m9pIVGsQrzPUN4zWeegjt7ZcNaUnIrRjgd8TlhZdE7FSWLKK1/B2iujwUzCi21SpifT82oQYkr6FjMssjQMlfIqFix2lj81lCEPTAGcC6zajP4reozWBpvALiA9sNuzTdfuFp+YHd4u75liwXVeeQkGEOI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714109587; c=relaxed/simple; bh=brClYu0FB9m2gvpJZRRvhoAWgOAcxGt2XhXXp5BDmy4=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=epzr4cifTYX+WR70Y0nLgZ4hMhIhFY4S6yJWKdFFWdRzgt4CBYzTc+ZqpfYUcCLPT008nINumHqMBqoQiOtfhzkYvQS68pbrdGTpNeJew83b1WOsOIARAI0zNkcqoIsRMEFoZknkMHB0Boorw/R3RxM6al0GITcWNnVzX+huArE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=mediatek.com; spf=pass smtp.mailfrom=mediatek.com; dkim=pass (1024-bit key) header.d=mediatek.com header.i=@mediatek.com header.b=N+OcpvxN; arc=none smtp.client-ip=210.61.82.184 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=mediatek.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mediatek.com X-UUID: 6e700fee038e11ef8065b7b53f7091ad-20240426 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Type:MIME-Version:Message-ID:Date:Subject:CC:To:From; bh=4LCrjhDaL8ypFniNCchNygF9gHvRZ2+FyqZFGJS8hII=; b=N+OcpvxNTgr4xPnEBv2WNf/k+PR2HgQjBSOWovv/pKpmQIPsO9ly6HM0cidZoEsQwLKP/CG53AqO6b3zETm2Em1CeMjcPgrgTMcyQZBJAiuoogeektSgX0SAdiW9hSJYf/5t5eLq80aolrDd6vz9FxrqdoCSgOVKKT4X1kGnktg=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.38,REQID:a062eca0-66b9-41d9-b488-c27c48efbbcd,IP:0,U RL:0,TC:0,Content:0,EDM:0,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACTION: release,TS:0 X-CID-META: VersionHash:82c5f88,CLOUDID:a4e82283-4f93-4875-95e7-8c66ea833d57,B ulkID:nil,BulkQuantity:0,Recheck:0,SF:102,TC:nil,Content:0,EDM:-3,IP:nil,U RL:1,File:nil,RT:nil,Bulk:nil,QS:nil,BEC:nil,COL:0,OSI:0,OSA:0,AV:0,LES:1, SPR:NO,DKR:0,DKP:0,BRR:0,BRE:0 X-CID-BVR: 0 X-CID-BAS: 0,_,0,_ X-CID-FACTOR: TF_CID_SPAM_SNR,TF_CID_SPAM_ULS X-UUID: 6e700fee038e11ef8065b7b53f7091ad-20240426 Received: from mtkmbs11n1.mediatek.inc [(172.21.101.185)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 959930615; Fri, 26 Apr 2024 13:32:54 +0800 Received: from mtkmbs13n2.mediatek.inc (172.21.101.108) by MTKMBS09N2.mediatek.inc (172.21.101.94) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.26; Thu, 25 Apr 2024 22:32:53 -0700 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkmbs13n2.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.1118.26 via Frontend Transport; Fri, 26 Apr 2024 13:32:53 +0800 From: Mingyen Hsieh To: , CC: , , , , , , , , , , , , , , Ming Yen Hsieh Subject: [PATCH] wifi: mt76: mt7921: fix sparse warning for incorrect data type definition Date: Fri, 26 Apr 2024 13:32:49 +0800 Message-ID: <20240426053249.7034-1-mingyen.hsieh@mediatek.com> X-Mailer: git-send-email 2.18.0 Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain From: Ming Yen Hsieh Sparse warn: drivers/net/wireless/mediatek/mt76/mt7921/mcu.c:263:20: warning: cast to restricted __le32 For the member of 'struct mt76_connac_rssi_notify_event', replace data type of rssi from 's32' to '__le32' Fixes: f01224e61c74 ("wifi: mt76: mt7921: cqm rssi low/high event notify") Signed-off-by: Ming Yen Hsieh Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202404251728.k3Q4OQ2V-lkp@intel.com/ --- drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.h b/drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.h index 340942fd6785..6873ce14d299 100644 --- a/drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.h +++ b/drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.h @@ -1460,7 +1460,7 @@ struct mt76_connac_beacon_loss_event { } __packed; struct mt76_connac_rssi_notify_event { - s32 rssi[4]; + __le32 rssi[4]; } __packed; struct mt76_connac_mcu_bss_event { -- 2.18.0