All of lore.kernel.org
 help / color / mirror / Atom feed
* [martin-lau-bpf-next:cgrp.struct_ops.v8 9/12] kernel/bpf/cgroup.c:31:6: warning: conflicting types for 'bpf_cgroup_struct_ops_register' due to enum/integer mismatch; have 'void(enum cgroup_bpf_attach_type,  u32,  void *, bool)' {aka 'void(enum cgroup_bpf_attach_type,  unsigned int,  void *, _Bool)'}
@ 2026-05-16 10:36 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2026-05-16 10:36 UTC (permalink / raw)
  To: Martin KaFai Lau; +Cc: oe-kbuild-all, Martin KaFai Lau

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/martin.lau/bpf-next.git cgrp.struct_ops.v8
head:   1ae5eccb04d5d8c62c310b206b5e5dc4ff1d9c71
commit: 32e27daf9a1563276f88eb17d076f61f8cc8b502 [9/12] bpf: Add infrastructure to support attaching struct_ops to cgroups
config: x86_64-rhel-9.4 (https://download.01.org/0day-ci/archive/20260516/202605161233.DhfFJe3u-lkp@intel.com/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260516/202605161233.DhfFJe3u-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202605161233.DhfFJe3u-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> kernel/bpf/cgroup.c:31:6: warning: conflicting types for 'bpf_cgroup_struct_ops_register' due to enum/integer mismatch; have 'void(enum cgroup_bpf_attach_type,  u32,  void *, bool)' {aka 'void(enum cgroup_bpf_attach_type,  unsigned int,  void *, _Bool)'} [-Wenum-int-mismatch]
      31 | void bpf_cgroup_struct_ops_register(enum cgroup_bpf_attach_type atype, u32 type_id,
         |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from kernel/bpf/cgroup.c:16:
   include/linux/bpf-cgroup.h:115:6: note: previous declaration of 'bpf_cgroup_struct_ops_register' with type 'void(int,  u32,  void *, bool)' {aka 'void(int,  unsigned int,  void *, _Bool)'}
     115 | void bpf_cgroup_struct_ops_register(int atype, u32 type_id, void *cfi_stubs, bool tasks_trace);
         |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


vim +31 kernel/bpf/cgroup.c

    30	
  > 31	void bpf_cgroup_struct_ops_register(enum cgroup_bpf_attach_type atype, u32 type_id,
    32					    void *cfi_stubs, bool mult_rcu)
    33	{
    34		struct_ops_type_id[atype] = type_id;
    35		struct_ops_cfi_stubs[atype] = cfi_stubs;
    36		struct_ops_mult_rcu[atype] = mult_rcu;
    37	}
    38	

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

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

* [martin-lau-bpf-next:cgrp.struct_ops.v8 9/12] kernel/bpf/cgroup.c:31:6: warning: conflicting types for 'bpf_cgroup_struct_ops_register' due to enum/integer mismatch; have 'void(enum cgroup_bpf_attach_type,  u32,  void *, bool)' {aka 'void(enum cgroup_bpf_attach_type,  unsigned int,  void *, _Bool)'}
@ 2026-05-16 12:08 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2026-05-16 12:08 UTC (permalink / raw)
  To: Martin KaFai Lau; +Cc: oe-kbuild-all, Martin KaFai Lau

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/martin.lau/bpf-next.git cgrp.struct_ops.v8
head:   1ae5eccb04d5d8c62c310b206b5e5dc4ff1d9c71
commit: 32e27daf9a1563276f88eb17d076f61f8cc8b502 [9/12] bpf: Add infrastructure to support attaching struct_ops to cgroups
config: sh-allyesconfig (https://download.01.org/0day-ci/archive/20260516/202605162022.KKnVwAAL-lkp@intel.com/config)
compiler: sh4-linux-gcc (GCC) 15.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260516/202605162022.KKnVwAAL-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202605162022.KKnVwAAL-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> kernel/bpf/cgroup.c:31:6: warning: conflicting types for 'bpf_cgroup_struct_ops_register' due to enum/integer mismatch; have 'void(enum cgroup_bpf_attach_type,  u32,  void *, bool)' {aka 'void(enum cgroup_bpf_attach_type,  unsigned int,  void *, _Bool)'} [-Wenum-int-mismatch]
      31 | void bpf_cgroup_struct_ops_register(enum cgroup_bpf_attach_type atype, u32 type_id,
         |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from kernel/bpf/cgroup.c:16:
   include/linux/bpf-cgroup.h:115:6: note: previous declaration of 'bpf_cgroup_struct_ops_register' with type 'void(int,  u32,  void *, bool)' {aka 'void(int,  unsigned int,  void *, _Bool)'}
     115 | void bpf_cgroup_struct_ops_register(int atype, u32 type_id, void *cfi_stubs, bool tasks_trace);
         |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


vim +31 kernel/bpf/cgroup.c

    30	
  > 31	void bpf_cgroup_struct_ops_register(enum cgroup_bpf_attach_type atype, u32 type_id,
    32					    void *cfi_stubs, bool mult_rcu)
    33	{
    34		struct_ops_type_id[atype] = type_id;
    35		struct_ops_cfi_stubs[atype] = cfi_stubs;
    36		struct_ops_mult_rcu[atype] = mult_rcu;
    37	}
    38	

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

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

end of thread, other threads:[~2026-05-16 12:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-16 10:36 [martin-lau-bpf-next:cgrp.struct_ops.v8 9/12] kernel/bpf/cgroup.c:31:6: warning: conflicting types for 'bpf_cgroup_struct_ops_register' due to enum/integer mismatch; have 'void(enum cgroup_bpf_attach_type, u32, void *, bool)' {aka 'void(enum cgroup_bpf_attach_type, unsigned int, void *, _Bool)'} kernel test robot
  -- strict thread matches above, loose matches on Subject: below --
2026-05-16 12:08 kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.