devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* next-20241015: drivers/of/address.c:244:31: error: passing 'const struct fwnode_handle *' to parameter of type 'struct fwnode_handle *' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers]
@ 2024-10-15 14:49 Naresh Kamboju
  2024-10-15 15:22 ` Rob Herring
  0 siblings, 1 reply; 2+ messages in thread
From: Naresh Kamboju @ 2024-10-15 14:49 UTC (permalink / raw)
  To: open list, Linux-Next Mailing List, lkft-triage,
	Linux Regressions,
	open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
	clang-built-linux
  Cc: Saravana Kannan, Rob Herring, Anders Roxell, Dan Carpenter,
	Nathan Chancellor, Nick Desaulniers

A larger set of clang-19 builds failed on arm, mips, riscv and powerpc due to
following Linux next-20241015 tag and these include tinyconfig, allnoconfig etc.

And gcc-13 and gcc-12 builds are passed.

First seen on next-20241014
  GOOD: next-20241014
  BAD: next-20241015

List of build regressions,
arm:
  build:
    * clang-19-sama5_defconfig
    * clang-nightly-mxs_defconfig
    * clang-nightly-exynos_defconfig
    * clang-19-at91_dt_defconfig
    * clang-19-pxa910_defconfig
    * clang-nightly-vexpress_defconfig
    * clang-19-vexpress_defconfig
    * clang-19-mxs_defconfig
    * clang-nightly-davinci_all_defconfig
    * clang-19-allnoconfig
...
powerpc:
  build:
    * clang-19-tqm8xx_defconfig
    * clang-19-tinyconfig
    * clang-nightly-tinyconfig
    * clang-nightly-tqm8xx_defconfig
    * clang-19-allnoconfig
    * clang-19-ppc64e_defconfig
    * clang-nightly-ppc64e_defconfig
    * clang-nightly-allnoconfig

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

Build log:
-----------
drivers/of/address.c:244:31: error: passing 'const struct
fwnode_handle *' to parameter of type 'struct fwnode_handle *'
discards qualifiers
[-Werror,-Wincompatible-pointer-types-discards-qualifiers]
  244 |                 err = pci_register_io_range(&np->fwnode,
range->cpu_addr,
      |                                             ^~~~~~~~~~~
include/linux/pci.h:2022:63: note: passing argument to parameter 'fwnode' here
 2022 | static inline int pci_register_io_range(struct fwnode_handle *fwnode,
      |                                                               ^
1 error generated


Build link,
-------
 - https://storage.tuxsuite.com/public/linaro/lkft/builds/2nShjJ9pOcjqxIXViYuRI5haZZP/
 - https://qa-reports.linaro.org/lkft/linux-next-master/build/next-20241015/testrun/25441737/suite/build/test/clang-19-tinyconfig/log

Build history:
----------
 - https://qa-reports.linaro.org/lkft/linux-next-master/build/next-20241015/testrun/25441737/suite/build/test/clang-19-tinyconfig/history/

metadata:
----
  git describe: next-20241015
  git repo: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
  git sha: b852e1e7a0389ed6168ef1d38eb0bad71a6b11e8
  kernel config:
https://storage.tuxsuite.com/public/linaro/lkft/builds/2nShjJ9pOcjqxIXViYuRI5haZZP/config
  build url: https://storage.tuxsuite.com/public/linaro/lkft/builds/2nShjJ9pOcjqxIXViYuRI5haZZP/
  toolchain: clang-19
  config: defconfig
  arch: arm, mips, riscv and powerpc

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

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

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

* Re: next-20241015: drivers/of/address.c:244:31: error: passing 'const struct fwnode_handle *' to parameter of type 'struct fwnode_handle *' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers]
  2024-10-15 14:49 next-20241015: drivers/of/address.c:244:31: error: passing 'const struct fwnode_handle *' to parameter of type 'struct fwnode_handle *' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers] Naresh Kamboju
@ 2024-10-15 15:22 ` Rob Herring
  0 siblings, 0 replies; 2+ messages in thread
From: Rob Herring @ 2024-10-15 15:22 UTC (permalink / raw)
  To: Naresh Kamboju
  Cc: open list, Linux-Next Mailing List, lkft-triage,
	Linux Regressions,
	open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
	clang-built-linux, Saravana Kannan, Anders Roxell, Dan Carpenter,
	Nathan Chancellor, Nick Desaulniers

On Tue, Oct 15, 2024 at 9:49 AM Naresh Kamboju
<naresh.kamboju@linaro.org> wrote:
>
> A larger set of clang-19 builds failed on arm, mips, riscv and powerpc due to
> following Linux next-20241015 tag and these include tinyconfig, allnoconfig etc.
>
> And gcc-13 and gcc-12 builds are passed.
>
> First seen on next-20241014
>   GOOD: next-20241014
>   BAD: next-20241015
>
> List of build regressions,
> arm:
>   build:
>     * clang-19-sama5_defconfig
>     * clang-nightly-mxs_defconfig
>     * clang-nightly-exynos_defconfig
>     * clang-19-at91_dt_defconfig
>     * clang-19-pxa910_defconfig
>     * clang-nightly-vexpress_defconfig
>     * clang-19-vexpress_defconfig
>     * clang-19-mxs_defconfig
>     * clang-nightly-davinci_all_defconfig
>     * clang-19-allnoconfig
> ...
> powerpc:
>   build:
>     * clang-19-tqm8xx_defconfig
>     * clang-19-tinyconfig
>     * clang-nightly-tinyconfig
>     * clang-nightly-tqm8xx_defconfig
>     * clang-19-allnoconfig
>     * clang-19-ppc64e_defconfig
>     * clang-nightly-ppc64e_defconfig
>     * clang-nightly-allnoconfig
>
> Reported-by: Linux Kernel Functional Testing <lkft@linaro.org>
>
> Build log:
> -----------
> drivers/of/address.c:244:31: error: passing 'const struct
> fwnode_handle *' to parameter of type 'struct fwnode_handle *'
> discards qualifiers
> [-Werror,-Wincompatible-pointer-types-discards-qualifiers]
>   244 |                 err = pci_register_io_range(&np->fwnode,
> range->cpu_addr,
>       |                                             ^~~~~~~~~~~
> include/linux/pci.h:2022:63: note: passing argument to parameter 'fwnode' here
>  2022 | static inline int pci_register_io_range(struct fwnode_handle *fwnode,
>       |                                                               ^
> 1 error generated

Already fixed this in my tree.

Rob

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

end of thread, other threads:[~2024-10-15 15:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-15 14:49 next-20241015: drivers/of/address.c:244:31: error: passing 'const struct fwnode_handle *' to parameter of type 'struct fwnode_handle *' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers] Naresh Kamboju
2024-10-15 15:22 ` Rob Herring

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).