linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: "Russell King (Oracle)" <rmk+kernel@armlinux.org.uk>
Cc: kbuild-all@lists.01.org, linux-arm-kernel@lists.infradead.org
Subject: [arm:cex7 128/187] drivers/net/dsa/mt7530.c:3060:44: error: 'struct mt7530_priv' has no member named 'pcs_ops'
Date: Sat, 8 Jan 2022 02:36:58 +0800	[thread overview]
Message-ID: <202201080235.iGcVDS38-lkp@intel.com> (raw)

tree:   git://git.armlinux.org.uk/~rmk/linux-arm.git cex7
head:   c0fd07781c7d7d3a273892450c656e1eede8d221
commit: 53b8fb9411f006389a222c44fc1c08295ddfae2b [128/187] net: dsa: mt7530: partially convert to phylink_pcs  *EXPERIMENTAL*
config: arc-allyesconfig (https://download.01.org/0day-ci/archive/20220108/202201080235.iGcVDS38-lkp@intel.com/config)
compiler: arceb-elf-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git remote add arm git://git.armlinux.org.uk/~rmk/linux-arm.git
        git fetch --no-tags arm cex7
        git checkout 53b8fb9411f006389a222c44fc1c08295ddfae2b
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=arc SHELL=/bin/bash

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   drivers/net/dsa/mt7530.c:3026:25: error: initialization of 'int (*)(struct phylink_pcs *, long unsigned int *, const struct phylink_link_state *)' from incompatible pointer type 'void (*)(struct phylink_pcs *, long unsigned int *, const struct phylink_link_state *)' [-Werror=incompatible-pointer-types]
    3026 |         .pcs_validate = mt753x_pcs_validate,
         |                         ^~~~~~~~~~~~~~~~~~~
   drivers/net/dsa/mt7530.c:3026:25: note: (near initialization for 'mt7530_pcs_ops.pcs_validate')
   drivers/net/dsa/mt7530.c:3033:25: error: initialization of 'int (*)(struct phylink_pcs *, long unsigned int *, const struct phylink_link_state *)' from incompatible pointer type 'void (*)(struct phylink_pcs *, long unsigned int *, const struct phylink_link_state *)' [-Werror=incompatible-pointer-types]
    3033 |         .pcs_validate = mt753x_pcs_validate,
         |                         ^~~~~~~~~~~~~~~~~~~
   drivers/net/dsa/mt7530.c:3033:25: note: (near initialization for 'mt7531_pcs_ops.pcs_validate')
   drivers/net/dsa/mt7530.c: In function 'mt753x_setup':
>> drivers/net/dsa/mt7530.c:3060:44: error: 'struct mt7530_priv' has no member named 'pcs_ops'
    3060 |                 priv->pcs[i].pcs.ops = priv->pcs_ops;
         |                                            ^~
   cc1: some warnings being treated as errors


vim +3060 drivers/net/dsa/mt7530.c

  3039	
  3040	static int
  3041	mt753x_setup(struct dsa_switch *ds)
  3042	{
  3043		struct mt7530_priv *priv = ds->priv;
  3044		int ret = priv->info->sw_setup(ds);
  3045		int i;
  3046	
  3047		if (ret)
  3048			return ret;
  3049	
  3050		ret = mt7530_setup_irq(priv);
  3051		if (ret)
  3052			return ret;
  3053	
  3054		ret = mt7530_setup_mdio(priv);
  3055		if (ret && priv->irq)
  3056			mt7530_free_irq_common(priv);
  3057	
  3058		/* Initialise the PCS devices */
  3059		for (i = 0; i < priv->ds->num_ports; i++) {
> 3060			priv->pcs[i].pcs.ops = priv->pcs_ops;
  3061			priv->pcs[i].priv = priv;
  3062			priv->pcs[i].port = i;
  3063		}
  3064	
  3065		return ret;
  3066	}
  3067	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

                 reply	other threads:[~2022-01-07 18:42 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202201080235.iGcVDS38-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=rmk+kernel@armlinux.org.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).