From: Matthias Brugger <matthias.bgg@gmail.com>
To: "AngeloGioacchino Del Regno"
<angelogioacchino.delregno@collabora.com>,
"Nícolas F. R. A. Prado" <nfraprado@collabora.com>
Cc: kernel@collabora.com, linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org
Subject: Re: [PATCH] soc: mediatek: mtk-svs: Explicitly include bitfield header
Date: Tue, 30 Aug 2022 10:56:05 +0200 [thread overview]
Message-ID: <80280240-8769-ea25-6348-b5f60d34ef5f@gmail.com> (raw)
In-Reply-To: <ea7b7b08-cb9a-b6a3-bc7a-050616696e89@collabora.com>
On 30/08/2022 10:06, AngeloGioacchino Del Regno wrote:
> Il 30/08/22 09:37, Matthias Brugger ha scritto:
>>
>>
>> On 29/08/2022 22:44, Nícolas F. R. A. Prado wrote:
>>> Commit a92438c5a30a ("soc: mediatek: mtk-svs: Use bitfield access macros
>>> where possible") introduced the use of FIELD_GET and FIELD_PREP macros,
>>> which are defined in the bitfield header. Add an explicit include for it
>>> so we're sure to have the symbols defined independently of the config.
>>>
>>> Fixes: a92438c5a30a ("soc: mediatek: mtk-svs: Use bitfield access macros
>>> where possible")
>>> Reported-by: kernel test robot <lkp@intel.com>
>>> Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>
>>>
>>> ---
>>>
>>> drivers/soc/mediatek/mtk-svs.c | 1 +
>>> 1 file changed, 1 insertion(+)
>>>
>>> diff --git a/drivers/soc/mediatek/mtk-svs.c b/drivers/soc/mediatek/mtk-svs.c
>>> index 64dba9f830f3..f67f3e971653 100644
>>> --- a/drivers/soc/mediatek/mtk-svs.c
>>> +++ b/drivers/soc/mediatek/mtk-svs.c
>>> @@ -3,6 +3,7 @@
>>> * Copyright (C) 2022 MediaTek Inc.
>>> */
>>> +#include <linux/bitfield.h>
>>> #include <linux/bits.h>
>>
>> What do we need the bits.h for?
>>
>
> bits.h has the definition for GENMASK(h, l), used in this file :-)
>
Right, seems that some other include includes bits.h as well, as compilation
does not break. But we probably don't want to rely on that for the future.
Applied thanks.
> Cheers,
> Angelo
>
>> Regards,
>> Matthias
>>
>>> #include <linux/clk.h>
>>> #include <linux/completion.h>
>
>
prev parent reply other threads:[~2022-08-30 8:56 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-29 20:44 [PATCH] soc: mediatek: mtk-svs: Explicitly include bitfield header Nícolas F. R. A. Prado
2022-08-30 7:20 ` AngeloGioacchino Del Regno
2022-08-30 7:37 ` Matthias Brugger
2022-08-30 8:06 ` AngeloGioacchino Del Regno
2022-08-30 8:56 ` Matthias Brugger [this message]
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=80280240-8769-ea25-6348-b5f60d34ef5f@gmail.com \
--to=matthias.bgg@gmail.com \
--cc=angelogioacchino.delregno@collabora.com \
--cc=kernel@collabora.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=nfraprado@collabora.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