All of lore.kernel.org
 help / color / mirror / Atom feed
* drivers/net/ethernet/engleder/tsnep_main.c:1254:34: warning: 'tsnep_of_match' defined but not used
@ 2022-08-01 13:53 kernel test robot
  0 siblings, 0 replies; 3+ messages in thread
From: kernel test robot @ 2022-08-01 13:53 UTC (permalink / raw)
  To: Gerhard Engleder; +Cc: kbuild-all, linux-kernel

Hi Gerhard,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   3d7cb6b04c3f3115719235cc6866b10326de34cd
commit: 403f69bbdbadb2e601f725be2d00b4ccc7b61c9d tsnep: Add TSN endpoint Ethernet MAC driver
date:   8 months ago
config: x86_64-randconfig-r012-20220801 (https://download.01.org/0day-ci/archive/20220801/202208012104.Xlxe8EYV-lkp@intel.com/config)
compiler: gcc-11 (Debian 11.3.0-3) 11.3.0
reproduce (this is a W=1 build):
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=403f69bbdbadb2e601f725be2d00b4ccc7b61c9d
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 403f69bbdbadb2e601f725be2d00b4ccc7b61c9d
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/net/ethernet/engleder/

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

All warnings (new ones prefixed by >>):

   drivers/net/ethernet/engleder/tsnep_main.c: In function 'tsnep_netdev_set_mac_address':
   drivers/net/ethernet/engleder/tsnep_main.c:1007:31: warning: passing argument 1 of 'ether_addr_copy' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
    1007 |         ether_addr_copy(netdev->dev_addr, sock_addr->sa_data);
         |                         ~~~~~~^~~~~~~~~~
   In file included from drivers/net/ethernet/engleder/tsnep.h:11,
                    from drivers/net/ethernet/engleder/tsnep_main.c:18:
   include/linux/etherdevice.h:295:40: note: expected 'u8 *' {aka 'unsigned char *'} but argument is of type 'const unsigned char *'
     295 | static inline void ether_addr_copy(u8 *dst, const u8 *src)
         |                                    ~~~~^~~
   drivers/net/ethernet/engleder/tsnep_main.c: In function 'tsnep_mac_init':
   drivers/net/ethernet/engleder/tsnep_main.c:1054:40: warning: passing argument 1 of 'ether_addr_copy' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
    1054 |         ether_addr_copy(adapter->netdev->dev_addr, adapter->mac_address);
         |                         ~~~~~~~~~~~~~~~^~~~~~~~~~
   In file included from drivers/net/ethernet/engleder/tsnep.h:11,
                    from drivers/net/ethernet/engleder/tsnep_main.c:18:
   include/linux/etherdevice.h:295:40: note: expected 'u8 *' {aka 'unsigned char *'} but argument is of type 'const unsigned char *'
     295 | static inline void ether_addr_copy(u8 *dst, const u8 *src)
         |                                    ~~~~^~~
   At top level:
>> drivers/net/ethernet/engleder/tsnep_main.c:1254:34: warning: 'tsnep_of_match' defined but not used [-Wunused-const-variable=]
    1254 | static const struct of_device_id tsnep_of_match[] = {
         |                                  ^~~~~~~~~~~~~~


vim +/tsnep_of_match +1254 drivers/net/ethernet/engleder/tsnep_main.c

  1253	
> 1254	static const struct of_device_id tsnep_of_match[] = {
  1255		{ .compatible = "engleder,tsnep", },
  1256	{ },
  1257	};
  1258	MODULE_DEVICE_TABLE(of, tsnep_of_match);
  1259	

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* drivers/net/ethernet/engleder/tsnep_main.c:1254:34: warning: 'tsnep_of_match' defined but not used
@ 2022-07-18 19:53 kernel test robot
  0 siblings, 0 replies; 3+ messages in thread
From: kernel test robot @ 2022-07-18 19:53 UTC (permalink / raw)
  To: Gerhard Engleder; +Cc: kbuild-all, linux-kernel

Hi Gerhard,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   ff6992735ade75aae3e35d16b17da1008d753d28
commit: 403f69bbdbadb2e601f725be2d00b4ccc7b61c9d tsnep: Add TSN endpoint Ethernet MAC driver
date:   8 months ago
config: x86_64-randconfig-m031-20220718 (https://download.01.org/0day-ci/archive/20220719/202207190328.lfGnA2y3-lkp@intel.com/config)
compiler: gcc-11 (Debian 11.3.0-3) 11.3.0
reproduce (this is a W=1 build):
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=403f69bbdbadb2e601f725be2d00b4ccc7b61c9d
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 403f69bbdbadb2e601f725be2d00b4ccc7b61c9d
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/net/ethernet/engleder/

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

All warnings (new ones prefixed by >>):

   drivers/net/ethernet/engleder/tsnep_main.c: In function 'tsnep_netdev_set_mac_address':
   drivers/net/ethernet/engleder/tsnep_main.c:1007:31: warning: passing argument 1 of 'ether_addr_copy' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
    1007 |         ether_addr_copy(netdev->dev_addr, sock_addr->sa_data);
         |                         ~~~~~~^~~~~~~~~~
   In file included from drivers/net/ethernet/engleder/tsnep.h:11,
                    from drivers/net/ethernet/engleder/tsnep_main.c:18:
   include/linux/etherdevice.h:295:40: note: expected 'u8 *' {aka 'unsigned char *'} but argument is of type 'const unsigned char *'
     295 | static inline void ether_addr_copy(u8 *dst, const u8 *src)
         |                                    ~~~~^~~
   drivers/net/ethernet/engleder/tsnep_main.c: In function 'tsnep_mac_init':
   drivers/net/ethernet/engleder/tsnep_main.c:1054:40: warning: passing argument 1 of 'ether_addr_copy' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
    1054 |         ether_addr_copy(adapter->netdev->dev_addr, adapter->mac_address);
         |                         ~~~~~~~~~~~~~~~^~~~~~~~~~
   In file included from drivers/net/ethernet/engleder/tsnep.h:11,
                    from drivers/net/ethernet/engleder/tsnep_main.c:18:
   include/linux/etherdevice.h:295:40: note: expected 'u8 *' {aka 'unsigned char *'} but argument is of type 'const unsigned char *'
     295 | static inline void ether_addr_copy(u8 *dst, const u8 *src)
         |                                    ~~~~^~~
   At top level:
>> drivers/net/ethernet/engleder/tsnep_main.c:1254:34: warning: 'tsnep_of_match' defined but not used [-Wunused-const-variable=]
    1254 | static const struct of_device_id tsnep_of_match[] = {
         |                                  ^~~~~~~~~~~~~~


vim +/tsnep_of_match +1254 drivers/net/ethernet/engleder/tsnep_main.c

  1253	
> 1254	static const struct of_device_id tsnep_of_match[] = {
  1255		{ .compatible = "engleder,tsnep", },
  1256	{ },
  1257	};
  1258	MODULE_DEVICE_TABLE(of, tsnep_of_match);
  1259	

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* drivers/net/ethernet/engleder/tsnep_main.c:1254:34: warning: 'tsnep_of_match' defined but not used
@ 2022-05-30 23:00 kernel test robot
  0 siblings, 0 replies; 3+ messages in thread
From: kernel test robot @ 2022-05-30 23:00 UTC (permalink / raw)
  To: Gerhard Engleder; +Cc: kbuild-all, linux-kernel

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   8ab2afa23bd197df47819a87f0265c0ac95c5b6a
commit: 403f69bbdbadb2e601f725be2d00b4ccc7b61c9d tsnep: Add TSN endpoint Ethernet MAC driver
date:   6 months ago
config: i386-buildonly-randconfig-r001-20220530 (https://download.01.org/0day-ci/archive/20220531/202205310654.bV25IHSy-lkp@intel.com/config)
compiler: gcc-11 (Debian 11.3.0-1) 11.3.0
reproduce (this is a W=1 build):
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=403f69bbdbadb2e601f725be2d00b4ccc7b61c9d
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 403f69bbdbadb2e601f725be2d00b4ccc7b61c9d
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash drivers/net/ethernet/engleder/

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

All warnings (new ones prefixed by >>):

   drivers/net/ethernet/engleder/tsnep_main.c: In function 'tsnep_netdev_set_mac_address':
   drivers/net/ethernet/engleder/tsnep_main.c:1007:31: warning: passing argument 1 of 'ether_addr_copy' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
    1007 |         ether_addr_copy(netdev->dev_addr, sock_addr->sa_data);
         |                         ~~~~~~^~~~~~~~~~
   In file included from drivers/net/ethernet/engleder/tsnep.h:11,
                    from drivers/net/ethernet/engleder/tsnep_main.c:18:
   include/linux/etherdevice.h:295:40: note: expected 'u8 *' {aka 'unsigned char *'} but argument is of type 'const unsigned char *'
     295 | static inline void ether_addr_copy(u8 *dst, const u8 *src)
         |                                    ~~~~^~~
   drivers/net/ethernet/engleder/tsnep_main.c: In function 'tsnep_mac_init':
   drivers/net/ethernet/engleder/tsnep_main.c:1054:40: warning: passing argument 1 of 'ether_addr_copy' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
    1054 |         ether_addr_copy(adapter->netdev->dev_addr, adapter->mac_address);
         |                         ~~~~~~~~~~~~~~~^~~~~~~~~~
   In file included from drivers/net/ethernet/engleder/tsnep.h:11,
                    from drivers/net/ethernet/engleder/tsnep_main.c:18:
   include/linux/etherdevice.h:295:40: note: expected 'u8 *' {aka 'unsigned char *'} but argument is of type 'const unsigned char *'
     295 | static inline void ether_addr_copy(u8 *dst, const u8 *src)
         |                                    ~~~~^~~
   At top level:
>> drivers/net/ethernet/engleder/tsnep_main.c:1254:34: warning: 'tsnep_of_match' defined but not used [-Wunused-const-variable=]
    1254 | static const struct of_device_id tsnep_of_match[] = {
         |                                  ^~~~~~~~~~~~~~


vim +/tsnep_of_match +1254 drivers/net/ethernet/engleder/tsnep_main.c

  1253	
> 1254	static const struct of_device_id tsnep_of_match[] = {
  1255		{ .compatible = "engleder,tsnep", },
  1256	{ },
  1257	};
  1258	MODULE_DEVICE_TABLE(of, tsnep_of_match);
  1259	

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-08-01 13:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-01 13:53 drivers/net/ethernet/engleder/tsnep_main.c:1254:34: warning: 'tsnep_of_match' defined but not used kernel test robot
  -- strict thread matches above, loose matches on Subject: below --
2022-07-18 19:53 kernel test robot
2022-05-30 23:00 kernel test robot

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.