Re: [thomas-weissschuh:b4/b4-sysfs-const-attr-device_attr] BUILD REGRESSION f45ad0a3230a0f2acba54b0bd76d897a9b68f4da

Oliver Sang <[email protected]> Tue, 7 Apr 2026 15:26:48 +0800
Newsgroups dev.linux.lists.oe-lkp
Message-ID <adSxuKfrTABhE7PT@xsang-OptiPlex-9020>
hi, Thomas,

On Mon, Apr 06, 2026 at 11:10:54AM +0200, Thomas Weißschuh wrote:
> Hi Oliver and the LKP team,
> 
> On 2026-04-06 15:27:22+0800, kernel test robot wrote:
> > tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/thomas.weissschuh/linux.git b4/b4-sysfs-const-attr-device_attr
> > branch HEAD: f45ad0a3230a0f2acba54b0bd76d897a9b68f4da  uncore
> > 
> > Error/Warning (recently discovered and may have been fixed):
> > 
> >     https://lore.kernel.org/oe-kbuild-all/[email protected]
> >     https://lore.kernel.org/oe-kbuild-all/[email protected]
> 
> These links don't seem to work. I am specifically interested in the
> reproducer for "initialized field overwritten".

sorry that our related services have some problems recently. now fixed.

above links and links within them related with config and reproducer
(https://download.01.org/0day-ci/archive/****) are all valid now.

if you still found problems, please kindly let us know. thanks!

> 
> And thanks again for your service!

you are welcome!

> 
> 
> Thomas
> 
> >     arch/powerpc/perf/hv-24x7.c:464:18: error: assignment to 'ssize_t (*)(struct device *, struct device_attribute *, char *)' {aka 'long int (*)(struct device *, struct device_attribute *, char *)'} from incompatible pointer type 'ssize_t (*)(struct device *, const struct device_attribute *, char *)' {aka 'long int (*)(struct device *, const struct device_attribute *, char *)'} [-Werror=incompatible-pointer-types]
> >     arch/powerpc/perf/hv-24x7.c:464:25: error: assignment to 'ssize_t (*)(struct device *, struct device_attribute *, char *)' {aka 'long int (*)(struct device *, struct device_attribute *, char *)'} from incompatible pointer type 'ssize_t (*)(struct device *, const struct device_attribute *, char *)' {aka 'long int (*)(struct device *, const struct device_attribute *, char *)'} [-Wincompatible-pointer-types]
> >     include/linux/device.h:157:27: error: initialized field overwritten [-Werror=override-init]
> >     include/linux/device.h:161:27: error: initialized field overwritten [-Werror=override-init]
> > 
> > Error/Warning ids grouped by kconfigs:
> > 
> > recent_errors
> > |-- i386-randconfig-002-20260405
> > |   `-- include-linux-device.h:error:initialized-field-overwritten
> > |-- i386-randconfig-051-20260406
> > |   `-- include-linux-device.h:error:initialized-field-overwritten
> > |-- powerpc-allmodconfig
> > |   `-- arch-powerpc-perf-hv-24x7.c:error:assignment-to-ssize_t-(-)(struct-device-struct-device_attribute-char-)-aka-long-int-(-)(struct-device-struct-device_attribute-char-)-from-incompatible-pointer-type-ss
> > |-- powerpc64-randconfig-r053-20260405
> > |   `-- arch-powerpc-perf-hv-24x7.c:error:assignment-to-ssize_t-(-)(struct-device-struct-device_attribute-char-)-aka-long-int-(-)(struct-device-struct-device_attribute-char-)-from-incompatible-pointer-type-ss
> > `-- x86_64-randconfig-103-20260405
> >     `-- include-linux-device.h:error:initialized-field-overwritten
> 
> (...)