From: Johannes Berg <johannes@sipsolutions.net>
To: Lorenzo Bianconi <lorenzo@kernel.org>, nbd@nbd.name
Cc: linux-wireless@vger.kernel.org, lorenzo.bianconi@redhat.com,
shayne.chen@mediatek.com, ryder.lee@mediatek.com
Subject: Re: [PATCH] wifi: mt76: mt7915: workaround too long expansion sparse warnings
Date: Tue, 19 Mar 2024 17:17:17 +0100 [thread overview]
Message-ID: <6af0d6e3a2c5a67f261f559f8cc28eae0224f34f.camel@sipsolutions.net> (raw)
In-Reply-To: <5457b92e41909dd75ab3db7a0e9ec372b917a386.1710858172.git.lorenzo@kernel.org>
On Tue, 2024-03-19 at 16:12 +0100, Lorenzo Bianconi wrote:
>
> + pwr = max3(pwr80, pwr40, pwr20);
> + mphy->txpower_cur = max3(mphy->txpower_cur, pwr160, pwr);
>
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
next prev parent reply other threads:[~2024-03-19 16:17 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-19 15:12 [PATCH] wifi: mt76: mt7915: workaround too long expansion sparse warnings Lorenzo Bianconi
2024-03-19 16:17 ` Johannes Berg [this message]
2024-03-20 9:10 ` Kalle Valo
2024-03-20 9:13 ` Lorenzo Bianconi
2024-03-20 9:18 ` Felix Fietkau
2024-03-20 9:49 ` Kalle Valo
2024-03-21 15:09 ` Kalle Valo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6af0d6e3a2c5a67f261f559f8cc28eae0224f34f.camel@sipsolutions.net \
--to=johannes@sipsolutions.net \
--cc=linux-wireless@vger.kernel.org \
--cc=lorenzo.bianconi@redhat.com \
--cc=lorenzo@kernel.org \
--cc=nbd@nbd.name \
--cc=ryder.lee@mediatek.com \
--cc=shayne.chen@mediatek.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).