All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Eli Cohen <elic@nvidia.com>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
	Linux Memory Management List <linux-mm@kvack.org>,
	Saeed Mahameed <saeedm@nvidia.com>,
	Mark Bloch <mbloch@nvidia.com>
Subject: [linux-next:master 12347/12886] drivers/net/ethernet/mellanox/mlx5/core/lag/mpesw.h:22:6: warning: no previous prototype for function 'mlx5_lag_mpesw_init'
Date: Fri, 20 May 2022 00:53:02 +0800	[thread overview]
Message-ID: <202205200012.68rPHREP-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   21498d01d045c5b95b93e0a0625ae965b4330ebe
commit: 94db3317781922ba52722c58061e0e8517d4d80d [12347/12886] net/mlx5: Support multiport eswitch mode
config: i386-randconfig-a015 (https://download.01.org/0day-ci/archive/20220520/202205200012.68rPHREP-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project e00cbbec06c08dc616a0d52a20f678b8fbd4e304)
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
        # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=94db3317781922ba52722c58061e0e8517d4d80d
        git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
        git fetch --no-tags linux-next master
        git checkout 94db3317781922ba52722c58061e0e8517d4d80d
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash drivers/net/ethernet/mellanox/mlx5/core/

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/lag/debugfs.c:4:
   In file included from drivers/net/ethernet/mellanox/mlx5/core/lag/lag.h:13:
>> drivers/net/ethernet/mellanox/mlx5/core/lag/mpesw.h:22:6: warning: no previous prototype for function 'mlx5_lag_mpesw_init' [-Wmissing-prototypes]
   void mlx5_lag_mpesw_init(struct mlx5_lag *ldev) {}
        ^
   drivers/net/ethernet/mellanox/mlx5/core/lag/mpesw.h:22:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void mlx5_lag_mpesw_init(struct mlx5_lag *ldev) {}
   ^
   static 
>> drivers/net/ethernet/mellanox/mlx5/core/lag/mpesw.h:23:6: warning: no previous prototype for function 'mlx5_lag_mpesw_cleanup' [-Wmissing-prototypes]
   void mlx5_lag_mpesw_cleanup(struct mlx5_lag *ldev) {}
        ^
   drivers/net/ethernet/mellanox/mlx5/core/lag/mpesw.h:23:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void mlx5_lag_mpesw_cleanup(struct mlx5_lag *ldev) {}
   ^
   static 
   2 warnings generated.


vim +/mlx5_lag_mpesw_init +22 drivers/net/ethernet/mellanox/mlx5/core/lag/mpesw.h

    14	
    15	void mlx5_mpesw_work(struct work_struct *work);
    16	int mlx5_lag_do_mirred(struct mlx5_core_dev *mdev, struct net_device *out_dev);
    17	bool mlx5_lag_mpesw_is_activated(struct mlx5_core_dev *dev);
    18	#if IS_ENABLED(CONFIG_MLX5_ESWITCH)
    19	void mlx5_lag_mpesw_init(struct mlx5_lag *ldev);
    20	void mlx5_lag_mpesw_cleanup(struct mlx5_lag *ldev);
    21	#else
  > 22	void mlx5_lag_mpesw_init(struct mlx5_lag *ldev) {}
  > 23	void mlx5_lag_mpesw_cleanup(struct mlx5_lag *ldev) {}
    24	#endif
    25	

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

                 reply	other threads:[~2022-05-19 16:53 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=202205200012.68rPHREP-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=elic@nvidia.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-mm@kvack.org \
    --cc=llvm@lists.linux.dev \
    --cc=mbloch@nvidia.com \
    --cc=saeedm@nvidia.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.