* [PATCH 00/20] Solve the remaining issues with clang and W=1 on media
@ 2021-11-24 19:13 Mauro Carvalho Chehab
2021-11-24 19:13 ` [PATCH 17/20] media: qcom: camss: mark read reg function as __maybe_unused Mauro Carvalho Chehab
2021-11-24 19:23 ` [PATCH 00/20] Solve the remaining issues with clang and W=1 on media Arnd Bergmann
0 siblings, 2 replies; 4+ messages in thread
From: Mauro Carvalho Chehab @ 2021-11-24 19:13 UTC (permalink / raw)
Cc: linuxarm, mauro.chehab, Mauro Carvalho Chehab, Lad, Prabhakar,
Andy Gross, Antti Palosaari, Bjorn Andersson, Hans Verkuil,
Malcolm Priestley, Manivannan Sadhasivam, Matthias Brugger,
Mauro Carvalho Chehab, Robert Foss, Todor Tomov, linux-arm-kernel,
linux-arm-msm, linux-kernel, linux-media, linux-mediatek, llvm
Currently, using clang with W=1 and CONFIG_WERROR causes media to break.
This is reported by builder.linuxtv.org.
This series solve the remaining issues.
Mauro Carvalho Chehab (20):
media: adv7842: get rid of two unused functions
media: saa7134-go7007: get rid of to_state() function
media: davinci: get rid of an unused function
media: drxd: drop offset var from DownloadMicrocode()
media: drxk: drop operation_mode from set_dvbt()
media: m88ds3103: drop reg11 calculus from m88ds3103b_select_mclk()
media: si21xx: report eventual errors at set_frontend
media: solo6x10: add _maybe_unused to currently unused functions
media: si470x: fix printk warnings with clang
media: radio-si476x: drop a container_of() abstraction macro
media: lmedm04: don't ignore errors when setting a filter
media: au0828-i2c: drop a duplicated function
media: adv7604 add _maybe_unused to currently unused functions
media: adv7511: drop unused functions
media: imx290: mark read reg function as __maybe_unused
media: davinci: vpbe_osd: mark read reg function as __maybe_unused
media: qcom: camss: mark read reg function as __maybe_unused
media: mtk-mdp: address a clang warning
media: cobalt: drop an unused variable
media: mxl5005s: drop some dead code
drivers/media/dvb-frontends/drxd_hard.c | 8 -------
drivers/media/dvb-frontends/drxk_hard.c | 6 -----
drivers/media/dvb-frontends/m88ds3103.c | 6 +----
drivers/media/dvb-frontends/si21xx.c | 7 +++---
drivers/media/i2c/adv7511-v4l2.c | 22 -------------------
drivers/media/i2c/adv7604.c | 18 +++++++--------
drivers/media/i2c/adv7842.c | 10 ---------
drivers/media/i2c/imx290.c | 2 +-
drivers/media/pci/cobalt/cobalt-cpld.c | 5 +----
drivers/media/pci/saa7134/saa7134-go7007.c | 7 +-----
.../media/pci/solo6x10/solo6x10-v4l2-enc.c | 12 +++++-----
drivers/media/platform/davinci/vpbe_osd.c | 2 +-
drivers/media/platform/davinci/vpif_capture.c | 11 ----------
drivers/media/platform/mtk-mdp/mtk_mdp_core.c | 2 +-
.../media/platform/qcom/camss/camss-vfe-170.c | 2 +-
drivers/media/radio/radio-si476x.c | 6 -----
drivers/media/radio/si470x/radio-si470x-i2c.c | 4 ++--
drivers/media/radio/si470x/radio-si470x-usb.c | 8 +++----
drivers/media/tuners/mxl5005s.c | 14 +-----------
drivers/media/usb/au0828/au0828-i2c.c | 7 ------
drivers/media/usb/dvb-usb-v2/lmedm04.c | 3 +++
21 files changed, 36 insertions(+), 126 deletions(-)
--
2.33.1
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 17/20] media: qcom: camss: mark read reg function as __maybe_unused
2021-11-24 19:13 [PATCH 00/20] Solve the remaining issues with clang and W=1 on media Mauro Carvalho Chehab
@ 2021-11-24 19:13 ` Mauro Carvalho Chehab
2021-11-25 10:58 ` Robert Foss
2021-11-24 19:23 ` [PATCH 00/20] Solve the remaining issues with clang and W=1 on media Arnd Bergmann
1 sibling, 1 reply; 4+ messages in thread
From: Mauro Carvalho Chehab @ 2021-11-24 19:13 UTC (permalink / raw)
Cc: linuxarm, mauro.chehab, Mauro Carvalho Chehab, Andy Gross,
Bjorn Andersson, Mauro Carvalho Chehab, Nathan Chancellor,
Nick Desaulniers, Robert Foss, Todor Tomov, linux-arm-msm,
linux-kernel, linux-media, llvm
Such function is currently unused, but could be needed in the
future. So, keep it, marking it as __maybe_unused, in order to
avoid a clang W=1 error.
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
---
To avoid mailbombing on a large number of people, only mailing lists were C/C on the cover.
See [PATCH 00/20] at: https://lore.kernel.org/all/cover.1637781097.git.mchehab+huawei@kernel.org/
drivers/media/platform/qcom/camss/camss-vfe-170.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/media/platform/qcom/camss/camss-vfe-170.c b/drivers/media/platform/qcom/camss/camss-vfe-170.c
index 5c083d70d495..455ae1a819e6 100644
--- a/drivers/media/platform/qcom/camss/camss-vfe-170.c
+++ b/drivers/media/platform/qcom/camss/camss-vfe-170.c
@@ -191,7 +191,7 @@ static u32 vfe_hw_version(struct vfe_device *vfe)
return hw_version;
}
-static inline void vfe_reg_clr(struct vfe_device *vfe, u32 reg, u32 clr_bits)
+static inline void __maybe_unused vfe_reg_clr(struct vfe_device *vfe, u32 reg, u32 clr_bits)
{
u32 bits = readl_relaxed(vfe->base + reg);
--
2.33.1
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: [PATCH 17/20] media: qcom: camss: mark read reg function as __maybe_unused
2021-11-24 19:13 ` [PATCH 17/20] media: qcom: camss: mark read reg function as __maybe_unused Mauro Carvalho Chehab
@ 2021-11-25 10:58 ` Robert Foss
0 siblings, 0 replies; 4+ messages in thread
From: Robert Foss @ 2021-11-25 10:58 UTC (permalink / raw)
To: Mauro Carvalho Chehab
Cc: linuxarm, mauro.chehab, Andy Gross, Bjorn Andersson,
Mauro Carvalho Chehab, Nathan Chancellor, Nick Desaulniers,
Todor Tomov, linux-arm-msm, linux-kernel, linux-media, llvm
Thanks for submitting this Mauro.
On Wed, 24 Nov 2021 at 20:13, Mauro Carvalho Chehab
<mchehab+huawei@kernel.org> wrote:
>
> Such function is currently unused, but could be needed in the
> future. So, keep it, marking it as __maybe_unused, in order to
> avoid a clang W=1 error.
>
> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
> ---
>
> To avoid mailbombing on a large number of people, only mailing lists were C/C on the cover.
> See [PATCH 00/20] at: https://lore.kernel.org/all/cover.1637781097.git.mchehab+huawei@kernel.org/
>
> drivers/media/platform/qcom/camss/camss-vfe-170.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/media/platform/qcom/camss/camss-vfe-170.c b/drivers/media/platform/qcom/camss/camss-vfe-170.c
> index 5c083d70d495..455ae1a819e6 100644
> --- a/drivers/media/platform/qcom/camss/camss-vfe-170.c
> +++ b/drivers/media/platform/qcom/camss/camss-vfe-170.c
> @@ -191,7 +191,7 @@ static u32 vfe_hw_version(struct vfe_device *vfe)
> return hw_version;
> }
>
> -static inline void vfe_reg_clr(struct vfe_device *vfe, u32 reg, u32 clr_bits)
> +static inline void __maybe_unused vfe_reg_clr(struct vfe_device *vfe, u32 reg, u32 clr_bits)
> {
> u32 bits = readl_relaxed(vfe->base + reg);
>
> --
> 2.33.1
>
I've submitted a patch[1] for removing this function, with that patch
applied, this patch is no longer needed.
[1] https://lore.kernel.org/all/20211011121301.421410-1-robert.foss@linaro.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 00/20] Solve the remaining issues with clang and W=1 on media
2021-11-24 19:13 [PATCH 00/20] Solve the remaining issues with clang and W=1 on media Mauro Carvalho Chehab
2021-11-24 19:13 ` [PATCH 17/20] media: qcom: camss: mark read reg function as __maybe_unused Mauro Carvalho Chehab
@ 2021-11-24 19:23 ` Arnd Bergmann
1 sibling, 0 replies; 4+ messages in thread
From: Arnd Bergmann @ 2021-11-24 19:23 UTC (permalink / raw)
To: Mauro Carvalho Chehab
Cc: Linuxarm, Mauro Carvalho Chehab, Lad, Prabhakar, Andy Gross,
Antti Palosaari, Bjorn Andersson, Hans Verkuil, Malcolm Priestley,
Manivannan Sadhasivam, Matthias Brugger, Mauro Carvalho Chehab,
Robert Foss, Todor Tomov, Linux ARM, linux-arm-msm,
Linux Kernel Mailing List, Linux Media Mailing List,
moderated list:ARM/Mediatek SoC..., llvm
On Wed, Nov 24, 2021 at 8:13 PM Mauro Carvalho Chehab
<mchehab+huawei@kernel.org> wrote:
>
> Currently, using clang with W=1 and CONFIG_WERROR causes media to break.
> This is reported by builder.linuxtv.org.
>
> This series solve the remaining issues.
I looked through my randconfig tree and found one more that I had
initially not sent
as I wasn't sure whether we want to fix
-Wtautological-constant-out-of-range-compare
warnings. I'll send it now, as all warnings of that type in other
drivers have been addressed.
Arnd
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2021-11-25 11:01 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-11-24 19:13 [PATCH 00/20] Solve the remaining issues with clang and W=1 on media Mauro Carvalho Chehab
2021-11-24 19:13 ` [PATCH 17/20] media: qcom: camss: mark read reg function as __maybe_unused Mauro Carvalho Chehab
2021-11-25 10:58 ` Robert Foss
2021-11-24 19:23 ` [PATCH 00/20] Solve the remaining issues with clang and W=1 on media Arnd Bergmann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox