Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp986410lqt; Tue, 19 Mar 2024 09:25:46 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUhZf9jT2NoDPc0nt4XVglzfTpL9z9J0pKakHdxKZ1X7n/8zR4Aw1yo/e5z5ac3NLTeNaMmvVHvRo4SQoibN4bIcLzWxbM5XiCdJc2UDg== X-Google-Smtp-Source: AGHT+IEi1HxGMW6M1UM8XPTbmTZZoto//Wfnkf3tkpXCzFFinzum1n3EYUspznoVQjBExIyCuRtt X-Received: by 2002:aa7:c54e:0:b0:566:ecce:9d3c with SMTP id s14-20020aa7c54e000000b00566ecce9d3cmr7175318edr.26.1710865546507; Tue, 19 Mar 2024 09:25:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710865546; cv=pass; d=google.com; s=arc-20160816; b=vNlOEZBwiuKpDSkkYjM0FVNe9EfQne2HdGr4plPkO/0wF1mnQRhIB9h30EHgKhXmor p5uNdLozIBoXbOz8/j/Bd49X4jQbVgbFAMNy6P031eMbaysV0OhJta0xPTJDgp6bJMXQ o6dCzZ627NaXPl+m8NyuXm7ix3oYKJzXDG7xWxdevOSXJKsZUsEikS44HROyRKjOCrt3 2aLlTNoBP9CowtqDXq+/fyZhXxJyORFSsnbVNKltGSLmAo/8ftBbX3VuNokvcMvU1D9a zTyqHFjOCMK6Fm3HYgBXFl+MD3dAVNvFugudV5IpoXwbuTcer3YP0gBgLAGKpwCquiua ABQw== 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 :user-agent:content-transfer-encoding:references:in-reply-to:date:cc :to:from:subject:message-id:dkim-signature; bh=q348DOBFXBdG81gOjLwZ5UmQPVvXe3/tV78L0KKvSjA=; fh=B2PxRGkG2rzbZDq3k/Z9ov3xeSNtmADQum4I2FrqMN8=; b=J8uR/OfbE1kHfSeZCrgjR66qXIRfodxJAFnmoeUWMMZ4nbUG5D6lWfUshcontLK0+8 cOHQ9Vz2LGQ1pYzFMjuXXHoXKyX4iPdCXqs2ISp/qDrjg9PdcwmsMtNMzE72ik34MkLZ kH2beTUtGiSZCmt3E6+wbjiJG97dn1jzobhodW1FrSIs6PyUlzZtw5IuG8VXrXMu6Q+X +wAgaGULiCF9PRY+ZOWLPCUsPt9JxyQrblFErN5dv0N5aUHSYZIScsVEBtmnvD/szXlx G2iZwCFLCiAxgjp1WDba7e+IN1utADWVL5luStYMAoev5wkqKhBoJI1PNgrNy7U663AC 5isQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b="xyDzx/KT"; 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-4914-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-wireless+bounces-4914-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id h21-20020a0564020e9500b005683bc72b0csi5551112eda.241.2024.03.19.09.25.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Mar 2024 09:25:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-4914-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b="xyDzx/KT"; 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-4914-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-wireless+bounces-4914-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 3E29B1F247DB for ; Tue, 19 Mar 2024 16:25:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2788B83A05; Tue, 19 Mar 2024 16:17:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sipsolutions.net header.i=@sipsolutions.net header.b="xyDzx/KT" 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 BE0F183A07 for ; Tue, 19 Mar 2024 16:17:21 +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=1710865044; cv=none; b=aeZeBEnLiWDjfRmpmLkFCrrAMpqkj5qJVUJeQ6EsN6Tm8lqvW+VZoRNrUKNDph4DjqljRM5qzPWqyVLr+WabUFd/630kSlcxawyZgHscDxM9Sl+BXARvgkSmI8Jo4Lp6wkykJ9lX7JAC/RI0OSI7SLzyBgLYGBDVLyLJbEzNO1M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710865044; c=relaxed/simple; bh=lqSO0zTAxsze7+nbBOX4ukwhpzjX5RPtH+52iGF4Umc=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=rDoEBIQ/lXvWkdyGl8rAOv7sjSILS8mvSRyq2IaYjWtzxU2GZVLVy5GaJFvucyOni5bJtQh1f6daKADXELddjH4UwYKD4N3hQoACNH7Q5FiASNCwLnBQX993940bANA9yGwR64dhSq/ih7CMHZJvoRiEeZ0/eV9nb4t+r0S/Pm8= 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=xyDzx/KT; 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=MIME-Version:Content-Transfer-Encoding: Content-Type:References:In-Reply-To:Date:Cc:To:From:Subject:Message-ID:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-To: Resent-Cc:Resent-Message-ID; bh=q348DOBFXBdG81gOjLwZ5UmQPVvXe3/tV78L0KKvSjA=; t=1710865041; x=1712074641; b=xyDzx/KTrN6rdxsNCSn2/iyGIAAcugPxu8MRXyEUysQqD+q yn8/Vwvb5XygcEXYW1jpsJIpVltYS69zLRXxg8Qq4JsNcGyf7gVy+7pbsL9i5cbr+EHN3Yd7SH8tQ SV/CfJWXicBDE44wksilBw7EUee3a2UuKtOlfY0pHHMgpHu1FAImLgl7QfbN0nPp8KizVU+LJvj/i FW5j559xFCA2PPaA/u86HXw8mWNDe4VFIVgWdgHW/CxeiOWCjXeGzr0kjXGr3LIsrrgHD1+o3K7VB geMgRZyMzrYuJFV2yCR48umfIpKoCEvBZq+5Avx5RfUCpS+Pb6dlJZQAF7rnvWzA==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.97) (envelope-from ) id 1rmc9O-00000005mhT-0gs2; Tue, 19 Mar 2024 17:17:18 +0100 Message-ID: <6af0d6e3a2c5a67f261f559f8cc28eae0224f34f.camel@sipsolutions.net> Subject: Re: [PATCH] wifi: mt76: mt7915: workaround too long expansion sparse warnings From: Johannes Berg To: Lorenzo Bianconi , nbd@nbd.name Cc: linux-wireless@vger.kernel.org, lorenzo.bianconi@redhat.com, shayne.chen@mediatek.com, ryder.lee@mediatek.com Date: Tue, 19 Mar 2024 17:17:17 +0100 In-Reply-To: <5457b92e41909dd75ab3db7a0e9ec372b917a386.1710858172.git.lorenzo@kernel.org> References: <5457b92e41909dd75ab3db7a0e9ec372b917a386.1710858172.git.lorenzo@kernel.org> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.50.4 (3.50.4-1.fc39) Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-malware-bazaar: not-scanned On Tue, 2024-03-19 at 16:12 +0100, Lorenzo Bianconi wrote: >=20 > + pwr =3D max3(pwr80, pwr40, pwr20); > + mphy->txpower_cur =3D max3(mphy->txpower_cur, pwr160, pwr); >=20 Oh nice, I didn't know about max3, I had a different patch at some point to just chain the max() with extra variables :) johannes