All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Vasileios Bimpikas <vasileios.bimpikas@xilinx.com>
Cc: oe-kbuild-all@lists.linux.dev,
	linux-arm-kernel@lists.infradead.org,
	Michal Simek <monstr@monstr.eu>
Subject: [xilinx-xlnx:xlnx_rebase_v6.1_LTS 85/1065] drivers/staging/xroeframer/sysfs_xroe.c:106: warning: expecting prototype for version_store(). Prototype was for enable_store() instead
Date: Thu, 13 Apr 2023 00:33:16 +0800	[thread overview]
Message-ID: <202304130053.uaUXEmMa-lkp@intel.com> (raw)

tree:   https://github.com/Xilinx/linux-xlnx xlnx_rebase_v6.1_LTS
head:   e5753363b5e03fc0a3055d5476c6cca93e9ea28b
commit: 3c408a647a4607b8940ff6432e8af0bf18429b1d [85/1065] staging: Add xroeframer driver
config: sh-allmodconfig (https://download.01.org/0day-ci/archive/20230413/202304130053.uaUXEmMa-lkp@intel.com/config)
compiler: sh4-linux-gcc (GCC) 12.1.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
        # https://github.com/Xilinx/linux-xlnx/commit/3c408a647a4607b8940ff6432e8af0bf18429b1d
        git remote add xilinx-xlnx https://github.com/Xilinx/linux-xlnx
        git fetch --no-tags xilinx-xlnx xlnx_rebase_v6.1_LTS
        git checkout 3c408a647a4607b8940ff6432e8af0bf18429b1d
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=sh olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=sh SHELL=/bin/bash drivers/irqchip/ drivers/media/i2c/ drivers/media/mc/ drivers/net/ethernet/xilinx/ drivers/of/ drivers/ptp/ drivers/spi/ drivers/staging/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202304130053.uaUXEmMa-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> drivers/staging/xroeframer/sysfs_xroe.c:106: warning: expecting prototype for version_store(). Prototype was for enable_store() instead
>> drivers/staging/xroeframer/sysfs_xroe.c:552: warning: expecting prototype for utils_sysfs_store_wrapper(). Prototype was for utils_sysfs_show_wrapper() instead
--
>> drivers/staging/xroeframer/sysfs_xroe_framer_ipv6.c:504: warning: expecting prototype for xroe_sysfs_ipv4_exit(). Prototype was for xroe_sysfs_ipv6_exit() instead
--
>> drivers/staging/xroeframer/sysfs_xroe_framer_udp.c:176: warning: expecting prototype for xroe_sysfs_ipv6_exit(). Prototype was for xroe_sysfs_udp_exit() instead


vim +106 drivers/staging/xroeframer/sysfs_xroe.c

    91	
    92	/**
    93	 * version_store - Writes to the framer's enable status register
    94	 * @kobj:	The kernel object of the entry
    95	 * @attr:	The attributes of the kernel object
    96	 * @buff:	The buffer containing the enable status
    97	 * @count:	The number of characters typed by the user
    98	 *
    99	 * Reads the user input and accordingly writes the framer's enable status
   100	 * to the sysfs entry
   101	 *
   102	 * Return: XROE_SIZE_MAX or the value of "count", if that's lesser, on success
   103	 */
   104	static ssize_t enable_store(struct kobject *kobj, struct kobj_attribute *attr,
   105				    const char *buff, size_t count)
 > 106	{
   107		u32 enable = 0;
   108	
   109		xroe_size = min_t(size_t, count, (size_t)XROE_SIZE_MAX);
   110		strncpy(xroe_tmp, buff, xroe_size);
   111		if (strncmp(xroe_tmp, "true", xroe_size) == 0)
   112			enable = 1;
   113		else if (strncmp(xroe_tmp, "false", xroe_size) == 0)
   114			enable = 0;
   115		utils_sysfs_store_wrapper(CFG_MASTER_INT_ENABLE_ADDR,
   116					  CFG_MASTER_INT_ENABLE_OFFSET,
   117					  CFG_MASTER_INT_ENABLE_MASK, enable, kobj);
   118		return xroe_size;
   119	}
   120	

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

WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: Vasileios Bimpikas <vasileios.bimpikas@xilinx.com>
Cc: oe-kbuild-all@lists.linux.dev,
	linux-arm-kernel@lists.infradead.org,
	Michal Simek <monstr@monstr.eu>
Subject: [xilinx-xlnx:xlnx_rebase_v6.1_LTS 85/1065] drivers/staging/xroeframer/sysfs_xroe.c:106: warning: expecting prototype for version_store(). Prototype was for enable_store() instead
Date: Thu, 13 Apr 2023 00:33:16 +0800	[thread overview]
Message-ID: <202304130053.uaUXEmMa-lkp@intel.com> (raw)

tree:   https://github.com/Xilinx/linux-xlnx xlnx_rebase_v6.1_LTS
head:   e5753363b5e03fc0a3055d5476c6cca93e9ea28b
commit: 3c408a647a4607b8940ff6432e8af0bf18429b1d [85/1065] staging: Add xroeframer driver
config: sh-allmodconfig (https://download.01.org/0day-ci/archive/20230413/202304130053.uaUXEmMa-lkp@intel.com/config)
compiler: sh4-linux-gcc (GCC) 12.1.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
        # https://github.com/Xilinx/linux-xlnx/commit/3c408a647a4607b8940ff6432e8af0bf18429b1d
        git remote add xilinx-xlnx https://github.com/Xilinx/linux-xlnx
        git fetch --no-tags xilinx-xlnx xlnx_rebase_v6.1_LTS
        git checkout 3c408a647a4607b8940ff6432e8af0bf18429b1d
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=sh olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=sh SHELL=/bin/bash drivers/irqchip/ drivers/media/i2c/ drivers/media/mc/ drivers/net/ethernet/xilinx/ drivers/of/ drivers/ptp/ drivers/spi/ drivers/staging/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202304130053.uaUXEmMa-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> drivers/staging/xroeframer/sysfs_xroe.c:106: warning: expecting prototype for version_store(). Prototype was for enable_store() instead
>> drivers/staging/xroeframer/sysfs_xroe.c:552: warning: expecting prototype for utils_sysfs_store_wrapper(). Prototype was for utils_sysfs_show_wrapper() instead
--
>> drivers/staging/xroeframer/sysfs_xroe_framer_ipv6.c:504: warning: expecting prototype for xroe_sysfs_ipv4_exit(). Prototype was for xroe_sysfs_ipv6_exit() instead
--
>> drivers/staging/xroeframer/sysfs_xroe_framer_udp.c:176: warning: expecting prototype for xroe_sysfs_ipv6_exit(). Prototype was for xroe_sysfs_udp_exit() instead


vim +106 drivers/staging/xroeframer/sysfs_xroe.c

    91	
    92	/**
    93	 * version_store - Writes to the framer's enable status register
    94	 * @kobj:	The kernel object of the entry
    95	 * @attr:	The attributes of the kernel object
    96	 * @buff:	The buffer containing the enable status
    97	 * @count:	The number of characters typed by the user
    98	 *
    99	 * Reads the user input and accordingly writes the framer's enable status
   100	 * to the sysfs entry
   101	 *
   102	 * Return: XROE_SIZE_MAX or the value of "count", if that's lesser, on success
   103	 */
   104	static ssize_t enable_store(struct kobject *kobj, struct kobj_attribute *attr,
   105				    const char *buff, size_t count)
 > 106	{
   107		u32 enable = 0;
   108	
   109		xroe_size = min_t(size_t, count, (size_t)XROE_SIZE_MAX);
   110		strncpy(xroe_tmp, buff, xroe_size);
   111		if (strncmp(xroe_tmp, "true", xroe_size) == 0)
   112			enable = 1;
   113		else if (strncmp(xroe_tmp, "false", xroe_size) == 0)
   114			enable = 0;
   115		utils_sysfs_store_wrapper(CFG_MASTER_INT_ENABLE_ADDR,
   116					  CFG_MASTER_INT_ENABLE_OFFSET,
   117					  CFG_MASTER_INT_ENABLE_MASK, enable, kobj);
   118		return xroe_size;
   119	}
   120	

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

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

             reply	other threads:[~2023-04-12 16:33 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-12 16:33 kernel test robot [this message]
2023-04-12 16:33 ` [xilinx-xlnx:xlnx_rebase_v6.1_LTS 85/1065] drivers/staging/xroeframer/sysfs_xroe.c:106: warning: expecting prototype for version_store(). Prototype was for enable_store() instead 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=202304130053.uaUXEmMa-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=monstr@monstr.eu \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=vasileios.bimpikas@xilinx.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.