Received: by 2002:a05:7412:798b:b0:fc:a2b0:25d7 with SMTP id fb11csp870951rdb; Fri, 23 Feb 2024 02:44:31 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCW4lASVD3UBPPWAsRR9oSITXNfdeKCvpu50osFzKDU52kgoPNvekLghISLqIZQzwZE/ADGzCNV5N7zNKcCpZG4ayvdLTsDb+W0o71A+RQ== X-Google-Smtp-Source: AGHT+IHACbpx/0lrThLFRYa+JWlZP9x8dir7MWmOOdQWv2OSvtASG8g2sGWvBAyUjfUPGjM1cbCM X-Received: by 2002:a17:902:ec89:b0:1db:5ee2:a772 with SMTP id x9-20020a170902ec8900b001db5ee2a772mr1914875plg.11.1708685071165; Fri, 23 Feb 2024 02:44:31 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708685071; cv=pass; d=google.com; s=arc-20160816; b=H4B4fAnQawb0pN8Iu0+Q1pQxy5UgeA8qAHaw2tlGeSdX6v5KB46HQ1BsCgfU8CMp/y x6wYhx8kWTxhxtlcCPxHPJ1gIOYZu4M2VUXptmllF5f2rzgKrUuv91k015LtD5r2DkeT hA3zXqJxmK2vVk3ftNV3W/lWOeDbyzy66ySYdmpr6Kkluk1dfY/4lMxLXpYx+jhNsdce G1DX30LwPvYhGxq89BoNmqG+XcRJGdpnq0/s9waROsJpyg3Fcle59ZQJobiBpytadC1o mTH4ml/WkoUcam1++DSfobVe0wbAvDgX8UcB8S3Fa++9bui62wNck7YXW3jKPXF7qzsB fgWw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=umHP/K0gXpuQ/ZwiQAapxzWawC0PBFAVBcinEnJX5PA=; fh=QCRMbNmxBrwEohLjUHQ8w4lzVnBUUFoRxUspyxOIxFc=; b=BhPQwa2zC6iUVxvDWUeUBp8A2wcSJKwA6e20yQrGfzjAxe+wDX8n5kHf1wWo5XXCD2 WNjKdn/Gifh/BNolFhHKI50Xlq7yIZNmisOgc3zWXZqkttV8sL4JFLgb+QDSaXWCvjZV 29VF3GU2Apgt2cCfzfqGnGgmx8/HiZfBjhFsXWbZ6brGDNDljEOulJhs7ktuYAw1topm Wk9KItdqOkezcQePTRKLPBI54jP7HXLx3pxCWIDBK6C+vAHL9CGbvAO4Cq0cyGS+5JDT wRokuLpZcrAexyAi1k0S2VsfqbBIjIIb0zpctK1oAZ+xZLUFVQYweNabVzVgoLh00a9c sD6A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=nf18CKLV; arc=pass (i=1 spf=pass spfdomain=sipsolutions.net dkim=pass dkdomain=sipsolutions.net dmarc=pass fromdomain=sipsolutions.net); spf=pass (google.com: domain of linux-wireless+bounces-3955-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-3955-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id c11-20020a170903234b00b001db47573c41si11032848plh.57.2024.02.23.02.44.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Feb 2024 02:44:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-3955-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=nf18CKLV; arc=pass (i=1 spf=pass spfdomain=sipsolutions.net dkim=pass dkdomain=sipsolutions.net dmarc=pass fromdomain=sipsolutions.net); spf=pass (google.com: domain of linux-wireless+bounces-3955-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-3955-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id CD914287899 for ; Fri, 23 Feb 2024 10:44:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8F638823C5; Fri, 23 Feb 2024 10:40:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sipsolutions.net header.i=@sipsolutions.net header.b="nf18CKLV" X-Original-To: linux-wireless@vger.kernel.org Received: from sipsolutions.net (s3.sipsolutions.net [168.119.38.16]) (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 E008B78B76 for ; Fri, 23 Feb 2024 10:40:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=168.119.38.16 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708684830; cv=none; b=IWlpFvzXbxqHp4od/YE/jeeDordQ+chtL/6PMzq3r7+rDT12fLk+XFb0qa+rq4z4uHPIjugqz5loQRtXwFx7txlYnkpsPB1ZX+mADvjE64zbfVnMm8MfllhGWk8GMxCMrxwU7tEKkcUBEnmHe6/+9xinS9EpeTmBi7DCWbcUaBE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708684830; c=relaxed/simple; bh=+Gr3Ipr443mZim7xnwxl3rD8DEyiRZx3BXMhBd8FS7E=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=FeJyhBP8YANecE6UTPGkFBhw5kP/EP21g/NoLCx1Q31RTLX5YigF/e0dqXqJFh7aeqVtlaJFyD0gaZwX9mG+fzNCxCyT6B0xSFr5xYXQd6ee8qvW198E/pjlADCfv5sWFHjw9fKNnzDLhLx6B9uorN7cQGcVCNtkvHn4vk3pg04= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sipsolutions.net; spf=pass smtp.mailfrom=sipsolutions.net; dkim=pass (2048-bit key) header.d=sipsolutions.net header.i=@sipsolutions.net header.b=nf18CKLV; arc=none smtp.client-ip=168.119.38.16 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sipsolutions.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sipsolutions.net DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sipsolutions.net; s=mail; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Content-Type:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-To: Resent-Cc:Resent-Message-ID; bh=umHP/K0gXpuQ/ZwiQAapxzWawC0PBFAVBcinEnJX5PA=; t=1708684828; x=1709894428; b=nf18CKLVIfZxhIkzhFyzFWcmVW5HNS/9jDF0NqS2+Hn7QHN jUoEh+QE6GyGaV9tILMiim+6aODWZqsdvEO/LzvdGrqz1w0rC/vTEpkcfu1aVkLsAtvBspexhyN4d lIWje/419utrJE8RtO3Si3ovfGKMsqLiMSz7F/NxyoRyMFEUeT08F1gnLp1Omx7TYLHXf9Sqsp2Pq Jm/Ce4sNKIzrDGSvHgCL4yqc3ahD6Jisg8FPxKmSsDzDIzqiIJHovwZ1NWoHPMLhuS7nLE+Ttw+Xk pJcaB2n2mvAEICGaYH0oIy812vajczuYX1t89vfr+PCAmLvylp2UrtdqF4EB0ewg==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.97) (envelope-from ) id 1rdSyg-000000051om-1m2X; Fri, 23 Feb 2024 11:40:26 +0100 From: Johannes Berg To: linux-wireless@vger.kernel.org Cc: Johannes Berg Subject: [PATCH 3/5] wifi: rt2x00: silence sparse warnings Date: Fri, 23 Feb 2024 11:40:25 +0100 Message-ID: <20240223114023.ce0c714124e9.I2b5710b761f63522574fbe7654d37151c31e0b77@changeid> X-Mailer: git-send-email 2.43.2 In-Reply-To: <20240223114023.c64e2d348453.Iccc4ace1116721a044e5f31f40ea7709e72145f3@changeid> References: <20240223114023.c64e2d348453.Iccc4ace1116721a044e5f31f40ea7709e72145f3@changeid> Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Johannes Berg Clearly writing __le32 was intended here, so just put the right casts into the code to silence sparse about it. Signed-off-by: Johannes Berg --- drivers/net/wireless/ralink/rt2x00/rt2800lib.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/wireless/ralink/rt2x00/rt2800lib.c b/drivers/net/wireless/ralink/rt2x00/rt2800lib.c index aaf31857ae1e..3bb81bcff0ac 100644 --- a/drivers/net/wireless/ralink/rt2x00/rt2800lib.c +++ b/drivers/net/wireless/ralink/rt2x00/rt2800lib.c @@ -10946,13 +10946,13 @@ static void rt2800_efuse_read(struct rt2x00_dev *rt2x00dev, unsigned int i) /* Apparently the data is read from end to start */ reg = rt2800_register_read_lock(rt2x00dev, efuse_data3_reg); /* The returned value is in CPU order, but eeprom is le */ - *(u32 *)&rt2x00dev->eeprom[i] = cpu_to_le32(reg); + *(__le32 *)&rt2x00dev->eeprom[i] = cpu_to_le32(reg); reg = rt2800_register_read_lock(rt2x00dev, efuse_data2_reg); - *(u32 *)&rt2x00dev->eeprom[i + 2] = cpu_to_le32(reg); + *(__le32 *)&rt2x00dev->eeprom[i + 2] = cpu_to_le32(reg); reg = rt2800_register_read_lock(rt2x00dev, efuse_data1_reg); - *(u32 *)&rt2x00dev->eeprom[i + 4] = cpu_to_le32(reg); + *(__le32 *)&rt2x00dev->eeprom[i + 4] = cpu_to_le32(reg); reg = rt2800_register_read_lock(rt2x00dev, efuse_data0_reg); - *(u32 *)&rt2x00dev->eeprom[i + 6] = cpu_to_le32(reg); + *(__le32 *)&rt2x00dev->eeprom[i + 6] = cpu_to_le32(reg); mutex_unlock(&rt2x00dev->csr_mutex); } -- 2.43.2