Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
* drivers/net/dsa/rzn1_a5psw.c:212:24: error: initializing 'struct a5psw_of_data *' with an expression of type 'const struct a5psw_of_data *' discards qualifiers
@ 2026-10-03 14:44 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-10-03 14:44 UTC (permalink / raw)
  To: Lad Prabhakar; +Cc: llvm, oe-kbuild-all, 0day robot

Hi Lad,

FYI, the error/warning was bisected to this commit, please ignore it if it's irrelevant.

tree:   https://github.com/intel-lab-lkp/linux/commits/Prabhakar/net-dsa-tag_rzn1_a5psw-Drop-redundant-ETH_P_DSA_A5PSW-definition/20261001-164314
head:   467636555a7aff5e3f2d57fbc61f81c19a28bef8
commit: e3604cddc3c79985021de1aea0e3f482ab64022a net: dsa: rzn1-a5psw: Add fixed frame length workaround for management port
config: arm-defconfig (https://download.01.org/0day-ci/archive/20261002/202610021252.YrOjM8eB-lkp@intel.com/config)
compiler: clang version 24.0.0git (https://github.com/llvm/llvm-project 5f609f950d2e80addf5566623013db68394334db)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261002/202610021252.YrOjM8eB-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/r/202610021252.YrOjM8eB-lkp@intel.com/

All errors (new ones prefixed by >>):

>> drivers/net/dsa/rzn1_a5psw.c:212:24: error: initializing 'struct a5psw_of_data *' with an expression of type 'const struct a5psw_of_data *' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers]
     212 |         struct a5psw_of_data *of_data = a5psw->of_data;
         |                               ^         ~~~~~~~~~~~~~~
   1 error generated.


vim +212 drivers/net/dsa/rzn1_a5psw.c

888cdb892b61d7 Clément Léger 2022-06-24  208  
888cdb892b61d7 Clément Léger 2022-06-24  209  static int a5psw_port_change_mtu(struct dsa_switch *ds, int port, int new_mtu)
888cdb892b61d7 Clément Léger 2022-06-24  210  {
888cdb892b61d7 Clément Léger 2022-06-24  211  	struct a5psw *a5psw = ds->priv;
e3604cddc3c799 Lad Prabhakar 2026-10-01 @212  	struct a5psw_of_data *of_data = a5psw->of_data;
e3604cddc3c799 Lad Prabhakar 2026-10-01  213  
e3604cddc3c799 Lad Prabhakar 2026-10-01  214  	if (dsa_is_cpu_port(ds, port) && of_data->management_port_fixed_frame_len)
e3604cddc3c799 Lad Prabhakar 2026-10-01  215  		return 0;
888cdb892b61d7 Clément Léger 2022-06-24  216  
888cdb892b61d7 Clément Léger 2022-06-24  217  	new_mtu += ETH_HLEN + A5PSW_EXTRA_MTU_LEN + ETH_FCS_LEN;
e3604cddc3c799 Lad Prabhakar 2026-10-01  218  
888cdb892b61d7 Clément Léger 2022-06-24  219  	a5psw_reg_writel(a5psw, A5PSW_FRM_LENGTH(port), new_mtu);
888cdb892b61d7 Clément Léger 2022-06-24  220  
888cdb892b61d7 Clément Léger 2022-06-24  221  	return 0;
888cdb892b61d7 Clément Léger 2022-06-24  222  }
888cdb892b61d7 Clément Léger 2022-06-24  223  

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-10-03 14:45 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-03 14:44 drivers/net/dsa/rzn1_a5psw.c:212:24: error: initializing 'struct a5psw_of_data *' with an expression of type 'const struct a5psw_of_data *' discards qualifiers kernel test robot

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