Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp2510060rbb; Wed, 28 Feb 2024 04:20:31 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWM9qGR7JonV3U8vV0PwRZ+gB+32Q8Rss7gmfUzCe68w++wnox43PvlqPjPLzeI5cf1zl/ShgheO6/NIw5Y8i8q962N+jlOdD1tCwRcgw== X-Google-Smtp-Source: AGHT+IE2hKATkj1wKQ4krb2sS70LtozVpLspCgTgm5xdLVDTmpVen3XXng8HqdTBjFa4CRtTYxmL X-Received: by 2002:a17:90a:fd8b:b0:29a:caf9:de64 with SMTP id cx11-20020a17090afd8b00b0029acaf9de64mr6943411pjb.40.1709122831721; Wed, 28 Feb 2024 04:20:31 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709122831; cv=pass; d=google.com; s=arc-20160816; b=KjOsarHEQPXeNTX1j9pqY4kciIV/Ec8q+1BvBDfx7zo+yk3y0OKYEO8LvtSLP937bj jlEsEWGz/UN8vgSdH3Y33pvZw+z2pbb90Euw5klcFkR6d6Ax/CKUkjY8JQ1XC/g4DsEf HVNHbyxuk6rPUUjhU/qUvfr5SJXv4jEpdpJ1KasR08jTMk4iv4zFyZSnSMVKGkeWNZX3 QSHxsGJtbUrN8gft9NycWdGW/2pR8IjNaEbVtVvktL7NYhE0NiounOVVzJKjXxocZa8A 9on4pgat2NttUGMkdIuiGMEqV3vwgg3CQFMDRZLS4dXwTD3tBoCLZ5wwuGiYvA5aqESn hJAw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=date:message-id:user-agent:cc:to:references:in-reply-to:from :subject:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=aHk01rC/1R/9bJoOEdlNmoQPbbt02904eKUBUSqauuE=; fh=Qq0yOw297mc8ArcEsXdMNj0uDQ4Z7gt8QSRUDvOl/k0=; b=SDdaEMzl9H4mhd30mPfF3V6R/+PFqdduSObbd0xTZE329ViHkVKQI967ay/48TAmNz LF5s5c4U+74PgiU+qcuZYBYdPaHTepLShZaC+4+C9COynjDUkkChbXuOtd/1yCQNSxzu 78LpsiKFoE1iwG8X/4fa3QrJ5jv99hySvj6VZyhI80Eq41/T6VsxUhBtnTZcQ7ReCCs/ L4EjlMCiHR8hrjUm8B+1bb93sDEDOH927641QuEoBPpoMf1PgRoGACmyffvXnAnVLU9X DZrxY59GYRCaWEP0Ew44RFzY9fsompJhojtZXIJochc9cOf1KlQjDiTkbW/D8jWyQUlo kRxw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=eDktFgRI; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-4183-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-4183-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id a2-20020a17090a688200b0029acb9d5bffsi1206012pjd.189.2024.02.28.04.20.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Feb 2024 04:20:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-4183-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=@kernel.org header.s=k20201202 header.b=eDktFgRI; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-4183-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-4183-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 30853293B41 for ; Wed, 28 Feb 2024 11:44:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2DED6159562; Wed, 28 Feb 2024 11:36:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="eDktFgRI" X-Original-To: linux-wireless@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 F171615957D for ; Wed, 28 Feb 2024 11:36:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709120162; cv=none; b=UebpRDSjHXoXHGjTW2CjcgXISL9HNyGejEJ2e2g28AuScSthWwKIcd3hE72oiU6MEpmOxT+v/FBu9/l+Ans4gPcGbvlKCe817ra+6aOvIKUHTU0y2BsnTlSpSuWbqRU2efdpyI3rHZOnco95dVbVjL8jhIyKlRS93WSPgqGi7wM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709120162; c=relaxed/simple; bh=UV+KW9v+3bRuhunRQchX3s1dWanC2UuOa+Viq1tQe3s=; h=Content-Type:MIME-Version:Subject:From:In-Reply-To:References:To: Cc:Message-ID:Date; b=loNV3laL/ofAjZO8IGMXvzI11M792u2upZDjhM23h2ZpivEnNUCCZfKe5bMte09HTEw64KhwNFV2jc9dE7mC9V0t3sG4umPaNI7j2LQvrt2QPTO6NQQqF3WVD+W3h4Gj08vkh7S+ak//AIu52CQs+zkNXWxpPvzFNtBt+Hxu5og= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=eDktFgRI; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8D259C433C7; Wed, 28 Feb 2024 11:36:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709120161; bh=UV+KW9v+3bRuhunRQchX3s1dWanC2UuOa+Viq1tQe3s=; h=Subject:From:In-Reply-To:References:To:Cc:Date:From; b=eDktFgRI3SmNswp7jxRSiy3Oob0Bs6Day5nr2BR6BF+tpvXyE42jDTt8TIrj722ju keCfKpcAC7KsaH8W4DA5oLnxOjuU0S0mKfVoZ7b6sliUGysHlIgkc0AgOm0Btx50Sp LRcltevZfAE+8fsHqBacZzgcUipKkNc2SqYp9S6e/ceOWCHY1Jd8vujkleL9t6BrZl Qqf+hxvgDzDVIaa3Ii1G7j++jyMNza4PdJE9Rv8lV+QGyi82Mf+WEAgdoTfyoSw4GO W7P+GNQ0ZsRam8u4uscaVQYTBbA5A0/1wdxB1+Ja9Vvx4IXN6mtuS73B2/IKol84A9 2oK/1f6Ld+y+A== Content-Type: text/plain; charset="utf-8" Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [PATCH v2] wifi: rsi: fix endian conversions From: Kalle Valo In-Reply-To: <20240223115214.682fb94159fa.I576bbf9fe7ca2948dbe3e00c0fa0f37594e85046@changeid> References: <20240223115214.682fb94159fa.I576bbf9fe7ca2948dbe3e00c0fa0f37594e85046@changeid> To: Johannes Berg Cc: linux-wireless@vger.kernel.org, Siva Rebbagondla , Johannes Berg User-Agent: pwcli/0.1.1-git (https://github.com/kvalo/pwcli/) Python/3.11.2 Message-ID: <170912015833.3742961.13610436136127981895.kvalo@kernel.org> Date: Wed, 28 Feb 2024 11:36:00 +0000 (UTC) Johannes Berg wrote: > From: Johannes Berg > > This really seems like a bug, endian conversions now happen > twice in this code. > > Note also that prior to the commit mentioned below, the code > was putting 16-bit values 0xBBAA as bytes "AA BB 00 00", and > the commit mentions making it work for 32-bit values and > makes no mention of fixing endian conversion; however, after > it, the bytes for 0xBBAA would now be "00 00 BB AA" on big > endian platforms. > > Remove one conversion to make sparse no longer warn. > > Not sure anyone can, has, or ever will use this on big endian > platforms though. > > Fixes: 0a60014b76f5 ("rsi: miscallaneous changes for 9116 and common") > Signed-off-by: Johannes Berg Fails to apply, I guess because I had a patch for this warning earlier. Recorded preimage for 'drivers/net/wireless/rsi/rsi_91x_usb.c' error: Failed to merge in the changes. hint: Use 'git am --show-current-patch=diff' to see the failed patch Applying: wifi: rsi: fix endian conversions Using index info to reconstruct a base tree... M drivers/net/wireless/rsi/rsi_91x_usb.c Falling back to patching base and 3-way merge... Auto-merging drivers/net/wireless/rsi/rsi_91x_usb.c CONFLICT (content): Merge conflict in drivers/net/wireless/rsi/rsi_91x_usb.c Patch failed at 0001 wifi: rsi: fix endian conversions Patch set to Changes Requested. -- https://patchwork.kernel.org/project/linux-wireless/patch/20240223115214.682fb94159fa.I576bbf9fe7ca2948dbe3e00c0fa0f37594e85046@changeid/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches