netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Florian Fainelli <florian.fainelli@broadcom.com>, netdev@vger.kernel.org
Cc: linux-doc@vger.kernel.org
Subject: Re: [PATCH net-next 1/2] net: dsa: Use conduit and user terms
Date: Wed, 11 Oct 2023 16:53:38 +0800	[thread overview]
Message-ID: <202310111600.FwR1laqR-lkp@intel.com> (raw)
In-Reply-To: <20231010213942.3633407-2-florian.fainelli@broadcom.com>

Hi Florian,

kernel test robot noticed the following build warnings:

[auto build test WARNING on net-next/main]

url:    https://github.com/intel-lab-lkp/linux/commits/Florian-Fainelli/net-dsa-Use-conduit-and-user-terms/20231011-054044
base:   net-next/main
patch link:    https://lore.kernel.org/r/20231010213942.3633407-2-florian.fainelli%40broadcom.com
patch subject: [PATCH net-next 1/2] net: dsa: Use conduit and user terms
config: sparc-allyesconfig (https://download.01.org/0day-ci/archive/20231011/202310111600.FwR1laqR-lkp@intel.com/config)
compiler: sparc64-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231011/202310111600.FwR1laqR-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/202310111600.FwR1laqR-lkp@intel.com/

All warnings (new ones prefixed by >>):

   drivers/net/ethernet/mediatek/mtk_ppe_offload.c: In function 'mtk_flow_get_dsa_port':
   drivers/net/ethernet/mediatek/mtk_ppe_offload.c:178:16: error: implicit declaration of function 'dsa_port_to_master'; did you mean 'dsa_port_is_user'? [-Werror=implicit-function-declaration]
     178 |         *dev = dsa_port_to_master(dp);
         |                ^~~~~~~~~~~~~~~~~~
         |                dsa_port_is_user
>> drivers/net/ethernet/mediatek/mtk_ppe_offload.c:178:14: warning: assignment to 'struct net_device *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
     178 |         *dev = dsa_port_to_master(dp);
         |              ^
   cc1: some warnings being treated as errors


vim +178 drivers/net/ethernet/mediatek/mtk_ppe_offload.c

502e84e2382d92 Felix Fietkau   2021-03-24  164  
502e84e2382d92 Felix Fietkau   2021-03-24  165  static int
502e84e2382d92 Felix Fietkau   2021-03-24  166  mtk_flow_get_dsa_port(struct net_device **dev)
502e84e2382d92 Felix Fietkau   2021-03-24  167  {
502e84e2382d92 Felix Fietkau   2021-03-24  168  #if IS_ENABLED(CONFIG_NET_DSA)
502e84e2382d92 Felix Fietkau   2021-03-24  169  	struct dsa_port *dp;
502e84e2382d92 Felix Fietkau   2021-03-24  170  
502e84e2382d92 Felix Fietkau   2021-03-24  171  	dp = dsa_port_from_netdev(*dev);
502e84e2382d92 Felix Fietkau   2021-03-24  172  	if (IS_ERR(dp))
502e84e2382d92 Felix Fietkau   2021-03-24  173  		return -ENODEV;
502e84e2382d92 Felix Fietkau   2021-03-24  174  
502e84e2382d92 Felix Fietkau   2021-03-24  175  	if (dp->cpu_dp->tag_ops->proto != DSA_TAG_PROTO_MTK)
502e84e2382d92 Felix Fietkau   2021-03-24  176  		return -ENODEV;
502e84e2382d92 Felix Fietkau   2021-03-24  177  
8f6a19c0316deb Vladimir Oltean 2022-09-11 @178  	*dev = dsa_port_to_master(dp);
502e84e2382d92 Felix Fietkau   2021-03-24  179  
502e84e2382d92 Felix Fietkau   2021-03-24  180  	return dp->index;
502e84e2382d92 Felix Fietkau   2021-03-24  181  #else
502e84e2382d92 Felix Fietkau   2021-03-24  182  	return -ENODEV;
502e84e2382d92 Felix Fietkau   2021-03-24  183  #endif
502e84e2382d92 Felix Fietkau   2021-03-24  184  }
502e84e2382d92 Felix Fietkau   2021-03-24  185  

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

  parent reply	other threads:[~2023-10-11  8:54 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-10 21:39 [PATCH net-next 0/2] Switch DSA to inclusive terminology Florian Fainelli
2023-10-10 21:39 ` [PATCH net-next 1/2] net: dsa: Use conduit and user terms Florian Fainelli
2023-10-10 22:58   ` kernel test robot
2023-10-11  1:09   ` Andrew Lunn
2023-10-11  8:53   ` kernel test robot [this message]
2023-10-12 20:34   ` Rob Herring
2023-10-10 21:39 ` [PATCH net-next 2/2] net: dsa: Rename IFLA_DSA_MASTER to IFLA_DSA_CONDUIT Florian Fainelli
2023-10-11  1:25   ` Andrew Lunn

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=202310111600.FwR1laqR-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=florian.fainelli@broadcom.com \
    --cc=linux-doc@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    /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).