All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp at intel.com>
To: mptcp at lists.01.org
Subject: [MPTCP] [mptcp:export 980/1097] drivers/net/ethernet/mellanox/mlx5/core/esw/indir_table.h:34:1: warning: no previous prototype for function 'mlx5_esw_indir_table_init'
Date: Tue, 09 Feb 2021 19:51:11 +0800	[thread overview]
Message-ID: <202102091908.2JD00H8M-lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 3933 bytes --]

tree:   https://github.com/multipath-tcp/mptcp_net-next.git export
head:   6c723e9819cfcbf50da3779b526928008ad1b6d8
commit: 34ca65352ddf2aaa094f4016369103c4c7b98958 [980/1097] net/mlx5: E-Switch, Indirect table infrastructure
config: x86_64-randconfig-a015-20210209 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project c9439ca36342fb6013187d0a69aef92736951476)
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
        # install x86_64 cross compiling tool for clang build
        # apt-get install binutils-x86-64-linux-gnu
        # https://github.com/multipath-tcp/mptcp_net-next/commit/34ca65352ddf2aaa094f4016369103c4c7b98958
        git remote add mptcp https://github.com/multipath-tcp/mptcp_net-next.git
        git fetch --no-tags mptcp export
        git checkout 34ca65352ddf2aaa094f4016369103c4c7b98958
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 

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

All warnings (new ones prefixed by >>):

   In file included from drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c:41:
>> drivers/net/ethernet/mellanox/mlx5/core/esw/indir_table.h:34:1: warning: no previous prototype for function 'mlx5_esw_indir_table_init' [-Wmissing-prototypes]
   mlx5_esw_indir_table_init(void)
   ^
   drivers/net/ethernet/mellanox/mlx5/core/esw/indir_table.h:33:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   struct mlx5_esw_indir_table *
   ^
   static 
>> drivers/net/ethernet/mellanox/mlx5/core/esw/indir_table.h:40:1: warning: no previous prototype for function 'mlx5_esw_indir_table_destroy' [-Wmissing-prototypes]
   mlx5_esw_indir_table_destroy(struct mlx5_esw_indir_table *indir)
   ^
   drivers/net/ethernet/mellanox/mlx5/core/esw/indir_table.h:39:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void
   ^
   static 
>> drivers/net/ethernet/mellanox/mlx5/core/esw/indir_table.h:61:1: warning: no previous prototype for function 'mlx5_esw_indir_table_needed' [-Wmissing-prototypes]
   mlx5_esw_indir_table_needed(struct mlx5_eswitch *esw,
   ^
   drivers/net/ethernet/mellanox/mlx5/core/esw/indir_table.h:60:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   bool
   ^
   static 
   3 warnings generated.


vim +/mlx5_esw_indir_table_init +34 drivers/net/ethernet/mellanox/mlx5/core/esw/indir_table.h

    30	
    31	#else
    32	/* indir API stubs */
    33	struct mlx5_esw_indir_table *
  > 34	mlx5_esw_indir_table_init(void)
    35	{
    36		return NULL;
    37	}
    38	
    39	void
  > 40	mlx5_esw_indir_table_destroy(struct mlx5_esw_indir_table *indir)
    41	{
    42	}
    43	
    44	static inline struct mlx5_flow_table *
    45	mlx5_esw_indir_table_get(struct mlx5_eswitch *esw,
    46				 struct mlx5_flow_attr *attr,
    47				 struct mlx5_flow_spec *spec,
    48				 u16 vport, bool decap)
    49	{
    50		return ERR_PTR(-EOPNOTSUPP);
    51	}
    52	
    53	static inline void
    54	mlx5_esw_indir_table_put(struct mlx5_eswitch *esw,
    55				 struct mlx5_flow_attr *attr,
    56				 u16 vport, bool decap)
    57	{
    58	}
    59	
    60	bool
  > 61	mlx5_esw_indir_table_needed(struct mlx5_eswitch *esw,
    62				    struct mlx5_flow_attr *attr,
    63				    u16 vport_num,
    64				    struct mlx5_core_dev *dest_mdev)
    65	{
    66		return false;
    67	}
    68	

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

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 41137 bytes --]

WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [mptcp:export 980/1097] drivers/net/ethernet/mellanox/mlx5/core/esw/indir_table.h:34:1: warning: no previous prototype for function 'mlx5_esw_indir_table_init'
Date: Tue, 09 Feb 2021 19:51:11 +0800	[thread overview]
Message-ID: <202102091908.2JD00H8M-lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 3931 bytes --]

tree:   https://github.com/multipath-tcp/mptcp_net-next.git export
head:   6c723e9819cfcbf50da3779b526928008ad1b6d8
commit: 34ca65352ddf2aaa094f4016369103c4c7b98958 [980/1097] net/mlx5: E-Switch, Indirect table infrastructure
config: x86_64-randconfig-a015-20210209 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project c9439ca36342fb6013187d0a69aef92736951476)
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
        # install x86_64 cross compiling tool for clang build
        # apt-get install binutils-x86-64-linux-gnu
        # https://github.com/multipath-tcp/mptcp_net-next/commit/34ca65352ddf2aaa094f4016369103c4c7b98958
        git remote add mptcp https://github.com/multipath-tcp/mptcp_net-next.git
        git fetch --no-tags mptcp export
        git checkout 34ca65352ddf2aaa094f4016369103c4c7b98958
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 

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

All warnings (new ones prefixed by >>):

   In file included from drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c:41:
>> drivers/net/ethernet/mellanox/mlx5/core/esw/indir_table.h:34:1: warning: no previous prototype for function 'mlx5_esw_indir_table_init' [-Wmissing-prototypes]
   mlx5_esw_indir_table_init(void)
   ^
   drivers/net/ethernet/mellanox/mlx5/core/esw/indir_table.h:33:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   struct mlx5_esw_indir_table *
   ^
   static 
>> drivers/net/ethernet/mellanox/mlx5/core/esw/indir_table.h:40:1: warning: no previous prototype for function 'mlx5_esw_indir_table_destroy' [-Wmissing-prototypes]
   mlx5_esw_indir_table_destroy(struct mlx5_esw_indir_table *indir)
   ^
   drivers/net/ethernet/mellanox/mlx5/core/esw/indir_table.h:39:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void
   ^
   static 
>> drivers/net/ethernet/mellanox/mlx5/core/esw/indir_table.h:61:1: warning: no previous prototype for function 'mlx5_esw_indir_table_needed' [-Wmissing-prototypes]
   mlx5_esw_indir_table_needed(struct mlx5_eswitch *esw,
   ^
   drivers/net/ethernet/mellanox/mlx5/core/esw/indir_table.h:60:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   bool
   ^
   static 
   3 warnings generated.


vim +/mlx5_esw_indir_table_init +34 drivers/net/ethernet/mellanox/mlx5/core/esw/indir_table.h

    30	
    31	#else
    32	/* indir API stubs */
    33	struct mlx5_esw_indir_table *
  > 34	mlx5_esw_indir_table_init(void)
    35	{
    36		return NULL;
    37	}
    38	
    39	void
  > 40	mlx5_esw_indir_table_destroy(struct mlx5_esw_indir_table *indir)
    41	{
    42	}
    43	
    44	static inline struct mlx5_flow_table *
    45	mlx5_esw_indir_table_get(struct mlx5_eswitch *esw,
    46				 struct mlx5_flow_attr *attr,
    47				 struct mlx5_flow_spec *spec,
    48				 u16 vport, bool decap)
    49	{
    50		return ERR_PTR(-EOPNOTSUPP);
    51	}
    52	
    53	static inline void
    54	mlx5_esw_indir_table_put(struct mlx5_eswitch *esw,
    55				 struct mlx5_flow_attr *attr,
    56				 u16 vport, bool decap)
    57	{
    58	}
    59	
    60	bool
  > 61	mlx5_esw_indir_table_needed(struct mlx5_eswitch *esw,
    62				    struct mlx5_flow_attr *attr,
    63				    u16 vport_num,
    64				    struct mlx5_core_dev *dest_mdev)
    65	{
    66		return false;
    67	}
    68	

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

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 41137 bytes --]

             reply	other threads:[~2021-02-09 11:51 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-09 11:51 kernel test robot [this message]
2021-02-09 11:51 ` [mptcp:export 980/1097] drivers/net/ethernet/mellanox/mlx5/core/esw/indir_table.h:34:1: warning: no previous prototype for function 'mlx5_esw_indir_table_init' kernel test robot

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=202102091908.2JD00H8M-lkp@intel.com \
    --to=unknown@example.com \
    /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 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.