From: Nathan Chancellor <nathan@kernel.org>
To: Mark Brown <broonie@kernel.org>
Cc: "Alexandre Mergnat" <amergnat@baylibre.com>,
"Liam Girdwood" <lgirdwood@gmail.com>,
"Rob Herring" <robh+dt@kernel.org>,
"Krzysztof Kozlowski" <krzysztof.kozlowski+dt@linaro.org>,
"Conor Dooley" <conor+dt@kernel.org>,
"Matthias Brugger" <matthias.bgg@gmail.com>,
"AngeloGioacchino Del Regno"
<angelogioacchino.delregno@collabora.com>,
"Lee Jones" <lee@kernel.org>, "Flora Fu" <flora.fu@mediatek.com>,
"Jaroslav Kysela" <perex@perex.cz>,
"Takashi Iwai" <tiwai@suse.com>,
"Sumit Semwal" <sumit.semwal@linaro.org>,
"Christian König" <christian.koenig@amd.com>,
"Catalin Marinas" <catalin.marinas@arm.com>,
"Will Deacon" <will@kernel.org>, "Rob Herring" <robh@kernel.org>,
"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
linux-sound@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-mediatek@lists.infradead.org, linux-media@vger.kernel.org,
dri-devel@lists.freedesktop.org, linaro-mm-sig@lists.linaro.org,
"Krzysztof Kozlowski" <krzysztof.kozlowski@linaro.org>,
"Nicolas Belin" <nbelin@baylibre.com>
Subject: Re: (subset) [PATCH v7 00/16] Add audio support for the MediaTek Genio 350-evk board
Date: Fri, 6 Sep 2024 12:23:23 -0700 [thread overview]
Message-ID: <20240906192323.GA3160860@thelio-3990X> (raw)
In-Reply-To: <ZttJdexQFOq2Q9iQ@finisterre.sirena.org.uk>
On Fri, Sep 06, 2024 at 07:27:01PM +0100, Mark Brown wrote:
> Are these just warnings introduced by recent versions of the toolchains?
> These commits passed an x86 allmodconfig with GCC 12 at each step (I did
> catch one warning there with another patch in the series that didn't get
> applied) and 0day didn't say anything at any point.
Not sure, I did not look too hard. At cursory glance, I am not sure x86
allmodconfig would catch these, as this code depends on ARCH_MEDIATEK
(not COMPILE_TEST), which only exists for arm and arm64.
> > Clang 19:
>
> That's relatively modern, though some of the warnings don't look
> particularly new and exciting.
Fair although I still see some of them on old versions too:
https://github.com/ClangBuiltLinux/continuous-integration2/actions/runs/10738441894
> > sound/soc/mediatek/mt8365/mt8365-dai-adda.c:93:8: error: implicit conversion from 'unsigned long' to 'unsigned int' changes value from 18446744073709551614 to 4294967294 [-Werror,-Wconstant-conversion]
> > 91 | regmap_update_bits(afe->regmap, AFE_ADDA_UL_DL_CON0,
> > | ~~~~~~~~~~~~~~~~~~
> > 92 | AFE_ADDA_UL_DL_ADDA_AFE_ON,
> > 93 | ~AFE_ADDA_UL_DL_ADDA_AFE_ON);
> > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
> > 1 error generated.
>
> That's a bit surprising, regmap_update_bits() takes an unsigned long? I
> suspect the constants need to be defined as unsigned.
Does it? I see it taking 'unsigned int' for all of its parameters.
$ sed -n '1242,1250p' include/linux/regmap.h
int regmap_update_bits_base(struct regmap *map, unsigned int reg,
unsigned int mask, unsigned int val,
bool *change, bool async, bool force);
static inline int regmap_update_bits(struct regmap *map, unsigned int reg,
unsigned int mask, unsigned int val)
{
return regmap_update_bits_base(map, reg, mask, val, NULL, false, false);
}
Cheers,
Nathan
next prev parent reply other threads:[~2024-09-06 19:23 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-22 6:53 [PATCH v7 00/16] Add audio support for the MediaTek Genio 350-evk board Alexandre Mergnat
2024-07-22 6:53 ` [PATCH v7 01/16] ASoC: dt-bindings: mediatek,mt8365-afe: Add audio afe document Alexandre Mergnat
2024-07-22 6:53 ` [PATCH v7 02/16] ASoC: dt-bindings: mediatek,mt8365-mt6357: Add audio sound card document Alexandre Mergnat
2024-07-22 6:53 ` [PATCH v7 03/16] dt-bindings: mfd: mediatek: Add codec property for MT6357 PMIC Alexandre Mergnat
2024-07-24 8:06 ` Krzysztof Kozlowski
2024-07-25 16:29 ` (subset) " Lee Jones
2024-07-22 6:53 ` [PATCH v7 04/16] ASoC: mediatek: mt8365: Add common header Alexandre Mergnat
2024-07-22 6:53 ` [PATCH v7 05/16] ASoC: mediatek: mt8365: Add audio clock control support Alexandre Mergnat
2024-07-22 6:53 ` [PATCH v7 06/16] ASoC: mediatek: mt8365: Add I2S DAI support Alexandre Mergnat
2024-07-22 6:53 ` [PATCH v7 07/16] ASoC: mediatek: mt8365: Add ADDA " Alexandre Mergnat
2024-07-22 6:53 ` [PATCH v7 08/16] ASoC: mediatek: mt8365: Add DMIC " Alexandre Mergnat
2024-07-22 6:53 ` [PATCH v7 09/16] ASoC: mediatek: mt8365: Add PCM " Alexandre Mergnat
2024-07-22 6:53 ` [PATCH v7 10/16] ASoc: mediatek: mt8365: Add a specific soundcard for EVK amergnat
2024-07-22 6:53 ` [PATCH v7 11/16] ASoC: mediatek: mt8365: Add the AFE driver support Alexandre Mergnat
2024-07-22 6:53 ` [PATCH v7 12/16] ASoC: codecs: add MT6357 support amergnat
2024-09-03 17:14 ` Mark Brown
2024-09-05 9:05 ` Alexandre Mergnat
2024-07-22 6:53 ` [PATCH v7 13/16] ASoC: mediatek: Add MT8365 support Alexandre Mergnat
2024-07-22 6:53 ` [PATCH v7 14/16] arm64: defconfig: enable mt8365 sound Alexandre Mergnat
2024-07-22 6:53 ` [PATCH v7 15/16] arm64: dts: mediatek: add afe support for mt8365 SoC Alexandre Mergnat
2024-07-22 6:53 ` [PATCH v7 16/16] arm64: dts: mediatek: add audio support for mt8365-evk Alexandre Mergnat
2024-08-14 8:23 ` [PATCH v7 00/16] Add audio support for the MediaTek Genio 350-evk board Alexandre Mergnat
2024-08-14 14:05 ` Mark Brown
2024-09-04 11:16 ` (subset) " Mark Brown
2024-09-06 18:03 ` Nathan Chancellor
2024-09-06 18:27 ` Mark Brown
2024-09-06 18:34 ` Mark Brown
2024-09-06 19:23 ` Nathan Chancellor [this message]
2024-09-06 21:04 ` Mark Brown
2024-09-12 14:51 ` Lee Jones
2024-09-12 15:17 ` Mark Brown
2024-09-12 16:54 ` Lee Jones
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=20240906192323.GA3160860@thelio-3990X \
--to=nathan@kernel.org \
--cc=amergnat@baylibre.com \
--cc=angelogioacchino.delregno@collabora.com \
--cc=broonie@kernel.org \
--cc=catalin.marinas@arm.com \
--cc=christian.koenig@amd.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=flora.fu@mediatek.com \
--cc=krzk+dt@kernel.org \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=krzysztof.kozlowski@linaro.org \
--cc=lee@kernel.org \
--cc=lgirdwood@gmail.com \
--cc=linaro-mm-sig@lists.linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=linux-sound@vger.kernel.org \
--cc=matthias.bgg@gmail.com \
--cc=nbelin@baylibre.com \
--cc=perex@perex.cz \
--cc=robh+dt@kernel.org \
--cc=robh@kernel.org \
--cc=sumit.semwal@linaro.org \
--cc=tiwai@suse.com \
--cc=will@kernel.org \
/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