2022-11-16 21:38:07

by kernel test robot

[permalink] [raw]
Subject: [tip:perf/core] BUILD SUCCESS WITH WARNING e8d7a90c08ce963c592fb49845f2ccc606a2ac21

tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git perf/core
branch HEAD: e8d7a90c08ce963c592fb49845f2ccc606a2ac21 perf: Fix possible memleak in pmu_dev_alloc()

Warning: (recently discovered and may have been fixed)

kernel/events/core.c:11274:4: warning: cast from 'int (*)(struct perf_cpu_pmu_context *)' to 'remote_function_f' (aka 'int (*)(void *)') converts to incompatible function type [-Wcast-function-type-strict]

Warning ids grouped by kconfigs:

clang_recent_errors
|-- hexagon-randconfig-r001-20221116
| `-- kernel-events-core.c:warning:cast-from-int-(-)(struct-perf_cpu_pmu_context-)-to-remote_function_f-(aka-int-(-)(void-)-)-converts-to-incompatible-function-type
|-- hexagon-randconfig-r005-20221116
| `-- kernel-events-core.c:warning:cast-from-int-(-)(struct-perf_cpu_pmu_context-)-to-remote_function_f-(aka-int-(-)(void-)-)-converts-to-incompatible-function-type
`-- s390-randconfig-r012-20221116
`-- kernel-events-core.c:warning:cast-from-int-(-)(struct-perf_cpu_pmu_context-)-to-remote_function_f-(aka-int-(-)(void-)-)-converts-to-incompatible-function-type

elapsed time: 722m

configs tested: 53
configs skipped: 2

gcc tested configs:
arc defconfig
alpha defconfig
s390 defconfig
s390 allmodconfig
arm defconfig
m68k allyesconfig
m68k allmodconfig
x86_64 rhel-8.3-kselftests
arc allyesconfig
x86_64 rhel-8.3-func
ia64 allmodconfig
alpha allyesconfig
i386 defconfig
arm64 allyesconfig
powerpc allnoconfig
i386 randconfig-a012
arm allyesconfig
x86_64 defconfig
x86_64 rhel-8.3-syz
powerpc allmodconfig
i386 randconfig-a014
x86_64 rhel-8.3-kunit
mips allyesconfig
x86_64 randconfig-a013
x86_64 randconfig-a002
x86_64 randconfig-a011
x86_64 rhel-8.3-kvm
i386 allyesconfig
i386 randconfig-a016
sh allmodconfig
x86_64 rhel-8.3
x86_64 randconfig-a015
x86_64 randconfig-a004
x86_64 allyesconfig
x86_64 randconfig-a006
i386 randconfig-a001
i386 randconfig-a003
i386 randconfig-a005
um i386_defconfig
um x86_64_defconfig
s390 allyesconfig

clang tested configs:
i386 randconfig-a013
i386 randconfig-a011
x86_64 randconfig-a001
i386 randconfig-a015
x86_64 randconfig-a012
x86_64 randconfig-a003
x86_64 randconfig-a016
x86_64 randconfig-a005
x86_64 randconfig-a014
i386 randconfig-a002
i386 randconfig-a004
i386 randconfig-a006

--
0-DAY CI Kernel Test Service
https://01.org/lkp


2022-11-16 22:02:33

by Peter Zijlstra

[permalink] [raw]
Subject: Re: [tip:perf/core] BUILD SUCCESS WITH WARNING e8d7a90c08ce963c592fb49845f2ccc606a2ac21

On Thu, Nov 17, 2022 at 05:18:45AM +0800, kernel test robot wrote:
> tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git perf/core
> branch HEAD: e8d7a90c08ce963c592fb49845f2ccc606a2ac21 perf: Fix possible memleak in pmu_dev_alloc()
>
> Warning: (recently discovered and may have been fixed)
>
> kernel/events/core.c:11274:4: warning: cast from 'int (*)(struct perf_cpu_pmu_context *)' to 'remote_function_f' (aka 'int (*)(void *)') converts to incompatible function type [-Wcast-function-type-strict]
>
> Warning ids grouped by kconfigs:
>
> clang_recent_errors
> |-- hexagon-randconfig-r001-20221116
> | `-- kernel-events-core.c:warning:cast-from-int-(-)(struct-perf_cpu_pmu_context-)-to-remote_function_f-(aka-int-(-)(void-)-)-converts-to-incompatible-function-type
> |-- hexagon-randconfig-r005-20221116
> | `-- kernel-events-core.c:warning:cast-from-int-(-)(struct-perf_cpu_pmu_context-)-to-remote_function_f-(aka-int-(-)(void-)-)-converts-to-incompatible-function-type
> `-- s390-randconfig-r012-20221116
> `-- kernel-events-core.c:warning:cast-from-int-(-)(struct-perf_cpu_pmu_context-)-to-remote_function_f-(aka-int-(-)(void-)-)-converts-to-incompatible-function-type

Robot guys; why don't I have a report of this warning?

Also, this very much isn't caused by this patch, this is a pre-existing
issue.

2022-11-17 04:13:38

by Ravi Bangoria

[permalink] [raw]
Subject: Re: [tip:perf/core] BUILD SUCCESS WITH WARNING e8d7a90c08ce963c592fb49845f2ccc606a2ac21

Hi Peter,

>> kernel/events/core.c:11274:4: warning: cast from 'int (*)(struct perf_cpu_pmu_context *)' to 'remote_function_f' (aka 'int (*)(void *)') converts to incompatible function type [-Wcast-function-type-strict]
>>
>> Warning ids grouped by kconfigs:
>>
>> clang_recent_errors
>> |-- hexagon-randconfig-r001-20221116
>> | `-- kernel-events-core.c:warning:cast-from-int-(-)(struct-perf_cpu_pmu_context-)-to-remote_function_f-(aka-int-(-)(void-)-)-converts-to-incompatible-function-type
>> |-- hexagon-randconfig-r005-20221116
>> | `-- kernel-events-core.c:warning:cast-from-int-(-)(struct-perf_cpu_pmu_context-)-to-remote_function_f-(aka-int-(-)(void-)-)-converts-to-incompatible-function-type
>> `-- s390-randconfig-r012-20221116
>> `-- kernel-events-core.c:warning:cast-from-int-(-)(struct-perf_cpu_pmu_context-)-to-remote_function_f-(aka-int-(-)(void-)-)-converts-to-incompatible-function-type
>
> Robot guys; why don't I have a report of this warning?

https://lore.kernel.org/all/[email protected]

I'll prepare and post a fix.

Thanks,
Ravi

2022-11-17 08:45:02

by Peter Zijlstra

[permalink] [raw]
Subject: Re: [tip:perf/core] BUILD SUCCESS WITH WARNING e8d7a90c08ce963c592fb49845f2ccc606a2ac21

On Thu, Nov 17, 2022 at 09:26:49AM +0530, Ravi Bangoria wrote:
> Hi Peter,
>
> >> kernel/events/core.c:11274:4: warning: cast from 'int (*)(struct perf_cpu_pmu_context *)' to 'remote_function_f' (aka 'int (*)(void *)') converts to incompatible function type [-Wcast-function-type-strict]
> >>
> >> Warning ids grouped by kconfigs:
> >>
> >> clang_recent_errors
> >> |-- hexagon-randconfig-r001-20221116
> >> | `-- kernel-events-core.c:warning:cast-from-int-(-)(struct-perf_cpu_pmu_context-)-to-remote_function_f-(aka-int-(-)(void-)-)-converts-to-incompatible-function-type
> >> |-- hexagon-randconfig-r005-20221116
> >> | `-- kernel-events-core.c:warning:cast-from-int-(-)(struct-perf_cpu_pmu_context-)-to-remote_function_f-(aka-int-(-)(void-)-)-converts-to-incompatible-function-type
> >> `-- s390-randconfig-r012-20221116
> >> `-- kernel-events-core.c:warning:cast-from-int-(-)(struct-perf_cpu_pmu_context-)-to-remote_function_f-(aka-int-(-)(void-)-)-converts-to-incompatible-function-type
> >
> > Robot guys; why don't I have a report of this warning?
>
> https://lore.kernel.org/all/[email protected]

Hurgh, clearly I can't even search :/

> I'll prepare and post a fix.

Already did that last night:

https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git/commit/?h=perf/core&id=3aed27110419792e8e26ba3aed1dd9462975cc6e

2022-11-17 10:41:40

by Chen, Rong A

[permalink] [raw]
Subject: Re: [tip:perf/core] BUILD SUCCESS WITH WARNING e8d7a90c08ce963c592fb49845f2ccc606a2ac21



On 11/17/2022 5:38 AM, Peter Zijlstra wrote:
> On Thu, Nov 17, 2022 at 05:18:45AM +0800, kernel test robot wrote:
>> tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git perf/core
>> branch HEAD: e8d7a90c08ce963c592fb49845f2ccc606a2ac21 perf: Fix possible memleak in pmu_dev_alloc()
>>
>> Warning: (recently discovered and may have been fixed)
>>
>> kernel/events/core.c:11274:4: warning: cast from 'int (*)(struct perf_cpu_pmu_context *)' to 'remote_function_f' (aka 'int (*)(void *)') converts to incompatible function type [-Wcast-function-type-strict]
>>
>> Warning ids grouped by kconfigs:
>>
>> clang_recent_errors
>> |-- hexagon-randconfig-r001-20221116
>> | `-- kernel-events-core.c:warning:cast-from-int-(-)(struct-perf_cpu_pmu_context-)-to-remote_function_f-(aka-int-(-)(void-)-)-converts-to-incompatible-function-type
>> |-- hexagon-randconfig-r005-20221116
>> | `-- kernel-events-core.c:warning:cast-from-int-(-)(struct-perf_cpu_pmu_context-)-to-remote_function_f-(aka-int-(-)(void-)-)-converts-to-incompatible-function-type
>> `-- s390-randconfig-r012-20221116
>> `-- kernel-events-core.c:warning:cast-from-int-(-)(struct-perf_cpu_pmu_context-)-to-remote_function_f-(aka-int-(-)(void-)-)-converts-to-incompatible-function-type
>
> Robot guys; why don't I have a report of this warning?
>
> Also, this very much isn't caused by this patch, this is a pre-existing
> issue.
>

Hi Peter,

Sorry for the misunderstanding,it's a summary report to show recent
issues, we didn't find it in your repo before merging into tip tree,
we'll take a look to improve the system.

Best Regards,
Rong Chen