public inbox for linux-clk@vger.kernel.org
 help / color / mirror / Atom feed
* drivers/clk/davinci/psc.c:281:10: error: incompatible integer to pointer conversion returning 'int' from a function with result type 'struct davinci_lpsc_clk *' [-Wint-conversion]
@ 2024-11-18 13:10 Naresh Kamboju
  2024-11-18 14:28 ` David Lechner
  0 siblings, 1 reply; 3+ messages in thread
From: Naresh Kamboju @ 2024-11-18 13:10 UTC (permalink / raw)
  To: linux-clk, clang-built-linux, open list, lkft-triage,
	Linux Regressions
  Cc: hanchunchao, Stephen Boyd, david, Michael Turquette,
	Arnd Bergmann, Dan Carpenter, Anders Roxell

The davinci_all_defconfig and multi_v5_defconfig builds failed with clang-19 and
clang-nightly on the Linux next-20241115 tag for the arm architectures.
Same build pass with gcc-13.

First seen on Linux next-20241118 tag.
  Good: next-20241115
  Bad:  next-20241118

arm
* arm, build
  - clang-19-davinci_all_defconfig
  - clang-19-multi_v5_defconfig
  - clang-19-multi_v5_defconfig-65236a87
  - clang-nightly-davinci_all_defconfig
  - clang-nightly-multi_v5_defconfig
  - clang-nightly-multi_v5_defconfig-65236a87

Reported-by: Linux Kernel Functional Testing <lkft@linaro.org>

Build error:
---------
drivers/clk/davinci/psc.c:281:10: error: incompatible integer to
pointer conversion returning 'int' from a function with result type
'struct davinci_lpsc_clk *' [-Wint-conversion]
  281 |                 return -ENOMEM;
      |                        ^~~~~~~
1 error generated.
make[6]: *** [scripts/Makefile.build:200: drivers/clk/davinci/psc.o] Error 1

Build image:
-----------
- https://storage.tuxsuite.com/public/linaro/lkft/builds/2p15j4StPnjuuRXu3qgndSTbahH/
- https://qa-reports.linaro.org/lkft/linux-next-master/build/next-20241118/testrun/25881399/suite/build/test/clang-19-davinci_all_defconfig/history/
- https://qa-reports.linaro.org/lkft/linux-next-master/build/next-20241118/testrun/25881399/suite/build/test/clang-19-davinci_all_defconfig/details/
- https://qa-reports.linaro.org/lkft/linux-next-master/build/next-20241118/testrun/25881399/suite/build/test/clang-19-davinci_all_defconfig/log

Steps to reproduce:
------------
- # tuxmake --runtime podman --target-arch arm --toolchain clang-19
--kconfig davinci_all_defconfig LLVM=1 LLVM_IAS=1

metadata:
----
  git describe: next-20241118
  git repo: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
  git sha: ae58226b89ac0cffa05ba7357733776542e40216
  kernel config:
https://storage.tuxsuite.com/public/linaro/lkft/builds/2p15j4StPnjuuRXu3qgndSTbahH/config
  build url: https://storage.tuxsuite.com/public/linaro/lkft/builds/2p15j4StPnjuuRXu3qgndSTbahH/
  toolchain: clang-19
  config: davinci_all_defconfig and multi_v5_defconfig
  arch: arm

--
Linaro LKFT
https://lkft.linaro.org

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: drivers/clk/davinci/psc.c:281:10: error: incompatible integer to pointer conversion returning 'int' from a function with result type 'struct davinci_lpsc_clk *' [-Wint-conversion]
  2024-11-18 13:10 drivers/clk/davinci/psc.c:281:10: error: incompatible integer to pointer conversion returning 'int' from a function with result type 'struct davinci_lpsc_clk *' [-Wint-conversion] Naresh Kamboju
@ 2024-11-18 14:28 ` David Lechner
  2024-11-19  3:46   ` Stephen Boyd
  0 siblings, 1 reply; 3+ messages in thread
From: David Lechner @ 2024-11-18 14:28 UTC (permalink / raw)
  To: Stephen Boyd, Naresh Kamboju, linux-clk, clang-built-linux,
	open list, lkft-triage, Linux Regressions
  Cc: hanchunchao, Michael Turquette, Arnd Bergmann, Dan Carpenter,
	Anders Roxell

On 11/18/24 7:10 AM, Naresh Kamboju wrote:
> The davinci_all_defconfig and multi_v5_defconfig builds failed with clang-19 and
> clang-nightly on the Linux next-20241115 tag for the arm architectures.
> Same build pass with gcc-13.
> 
> First seen on Linux next-20241118 tag.
>   Good: next-20241115
>   Bad:  next-20241118
> 
> arm
> * arm, build
>   - clang-19-davinci_all_defconfig
>   - clang-19-multi_v5_defconfig
>   - clang-19-multi_v5_defconfig-65236a87
>   - clang-nightly-davinci_all_defconfig
>   - clang-nightly-multi_v5_defconfig
>   - clang-nightly-multi_v5_defconfig-65236a87
> 
> Reported-by: Linux Kernel Functional Testing <lkft@linaro.org>
> 
> Build error:
> ---------
> drivers/clk/davinci/psc.c:281:10: error: incompatible integer to
> pointer conversion returning 'int' from a function with result type
> 'struct davinci_lpsc_clk *' [-Wint-conversion]
>   281 |                 return -ENOMEM;
>       |                        ^~~~~~~
> 1 error generated.
> make[6]: *** [scripts/Makefile.build:200: drivers/clk/davinci/psc.o] Error 1
> 
> Build image:
> -----------
> - https://storage.tuxsuite.com/public/linaro/lkft/builds/2p15j4StPnjuuRXu3qgndSTbahH/
> - https://qa-reports.linaro.org/lkft/linux-next-master/build/next-20241118/testrun/25881399/suite/build/test/clang-19-davinci_all_defconfig/history/
> - https://qa-reports.linaro.org/lkft/linux-next-master/build/next-20241118/testrun/25881399/suite/build/test/clang-19-davinci_all_defconfig/details/
> - https://qa-reports.linaro.org/lkft/linux-next-master/build/next-20241118/testrun/25881399/suite/build/test/clang-19-davinci_all_defconfig/log
> 
> Steps to reproduce:
> ------------
> - # tuxmake --runtime podman --target-arch arm --toolchain clang-19
> --kconfig davinci_all_defconfig LLVM=1 LLVM_IAS=1
> 
> metadata:
> ----
>   git describe: next-20241118
>   git repo: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
>   git sha: ae58226b89ac0cffa05ba7357733776542e40216
>   kernel config:
> https://storage.tuxsuite.com/public/linaro/lkft/builds/2p15j4StPnjuuRXu3qgndSTbahH/config
>   build url: https://storage.tuxsuite.com/public/linaro/lkft/builds/2p15j4StPnjuuRXu3qgndSTbahH/
>   toolchain: clang-19
>   config: davinci_all_defconfig and multi_v5_defconfig
>   arch: arm
> 
> --
> Linaro LKFT
> https://lkft.linaro.org

Hi Stephen,

This is caused by [1]. I looked at it again and the patch is wrong.
Can you drop it from your tree or should we send another patch to
fix the bad patch?

[1]: https://lore.kernel.org/linux-clk/20241114091422.75412-1-hanchunchao@inspur.com/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: drivers/clk/davinci/psc.c:281:10: error: incompatible integer to pointer conversion returning 'int' from a function with result type 'struct davinci_lpsc_clk *' [-Wint-conversion]
  2024-11-18 14:28 ` David Lechner
@ 2024-11-19  3:46   ` Stephen Boyd
  0 siblings, 0 replies; 3+ messages in thread
From: Stephen Boyd @ 2024-11-19  3:46 UTC (permalink / raw)
  To: David Lechner, Linux Regressions, Naresh Kamboju,
	clang-built-linux, linux-clk, lkft-triage, open list
  Cc: hanchunchao, Michael Turquette, Arnd Bergmann, Dan Carpenter,
	Anders Roxell

Quoting David Lechner (2024-11-18 06:28:21)
> 
> This is caused by [1]. I looked at it again and the patch is wrong.
> Can you drop it from your tree or should we send another patch to
> fix the bad patch?
> 

I can drop it from the tree.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-11-19  3:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-18 13:10 drivers/clk/davinci/psc.c:281:10: error: incompatible integer to pointer conversion returning 'int' from a function with result type 'struct davinci_lpsc_clk *' [-Wint-conversion] Naresh Kamboju
2024-11-18 14:28 ` David Lechner
2024-11-19  3:46   ` Stephen Boyd

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox