netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Ratheesh Kannoth <rkannoth@marvell.com>,
	netdev@vger.kernel.org, linux-kernel@vger.kernel.org
Cc: oe-kbuild-all@lists.linux.dev, vladimir.oltean@nxp.com,
	claudiu.manoil@nxp.com, alexandre.belloni@bootlin.com,
	andrew@lunn.ch, f.fainelli@gmail.com, davem@davemloft.net,
	edumazet@google.com, kuba@kernel.org, pabeni@redhat.com,
	olteanv@gmail.com, michael.chan@broadcom.com, rajur@chelsio.com,
	yisen.zhuang@huawei.com, salil.mehta@huawei.com,
	jesse.brandeburg@intel.com, anthony.l.nguyen@intel.com,
	sgoutham@marvell.com, gakula@marvell.com, sbhatta@marvell.com,
	hkelam@marvell.com, taras.chornyi@plvision.eu, saeedm@nvidia.com,
	leon@kernel.org, idosch@nvidia.com, petrm@nvidia.com,
	horatiu.vultur@microchip.com, lars.povlsen@microchip.com,
	Steen.Hegelund@microchip.com
Subject: Re: [PATCH net-next] dissector: Use 64bits for used_keys
Date: Thu, 27 Jul 2023 07:47:34 +0800	[thread overview]
Message-ID: <202307270742.fr5uXCME-lkp@intel.com> (raw)
In-Reply-To: <20230726131223.1230526-1-rkannoth@marvell.com>

Hi Ratheesh,

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/Ratheesh-Kannoth/dissector-Use-64bits-for-used_keys/20230726-211458
base:   net-next/main
patch link:    https://lore.kernel.org/r/20230726131223.1230526-1-rkannoth%40marvell.com
patch subject: [PATCH net-next] dissector: Use 64bits for used_keys
config: sparc-allyesconfig (https://download.01.org/0day-ci/archive/20230727/202307270742.fr5uXCME-lkp@intel.com/config)
compiler: sparc64-linux-gcc (GCC) 12.3.0
reproduce: (https://download.01.org/0day-ci/archive/20230727/202307270742.fr5uXCME-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/202307270742.fr5uXCME-lkp@intel.com/

All warnings (new ones prefixed by >>):

   In file included from include/linux/device.h:15,
                    from include/linux/acpi.h:14,
                    from drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c:4:
   drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c: In function 'hclge_parse_cls_flower':
>> drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c:7325:43: warning: format '%lx' expects argument of type 'long unsigned int', but argument 3 has type 'long long unsigned int' [-Wformat=]
    7325 |                 dev_err(&hdev->pdev->dev, "unsupported key set: %#lx\n",
         |                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/dev_printk.h:110:30: note: in definition of macro 'dev_printk_index_wrap'
     110 |                 _p_func(dev, fmt, ##__VA_ARGS__);                       \
         |                              ^~~
   include/linux/dev_printk.h:144:56: note: in expansion of macro 'dev_fmt'
     144 |         dev_printk_index_wrap(_dev_err, KERN_ERR, dev, dev_fmt(fmt), ##__VA_ARGS__)
         |                                                        ^~~~~~~
   drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c:7325:17: note: in expansion of macro 'dev_err'
    7325 |                 dev_err(&hdev->pdev->dev, "unsupported key set: %#lx\n",
         |                 ^~~~~~~
   drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c:7325:68: note: format string is defined here
    7325 |                 dev_err(&hdev->pdev->dev, "unsupported key set: %#lx\n",
         |                                                                 ~~~^
         |                                                                    |
         |                                                                    long unsigned int
         |                                                                 %#llx
--
   In file included from include/linux/printk.h:564,
                    from include/asm-generic/bug.h:22,
                    from arch/sparc/include/asm/bug.h:25,
                    from include/linux/bug.h:5,
                    from include/linux/refcount.h:96,
                    from drivers/net/ethernet/mellanox/mlx5/core/en/tc/ct_fs_smfs.c:4:
   drivers/net/ethernet/mellanox/mlx5/core/en/tc/ct_fs_smfs.c: In function 'mlx5_ct_fs_smfs_ct_validate_flow_rule':
>> drivers/net/ethernet/mellanox/mlx5/core/en/tc/ct_fs_smfs.c:15:32: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'long long unsigned int' [-Wformat=]
      15 |         netdev_dbg(fs->netdev, "ct_fs_smfs debug: " fmt "\n", ##args)
         |                                ^~~~~~~~~~~~~~~~~~~~
   include/linux/dynamic_debug.h:222:29: note: in definition of macro '__dynamic_func_call_cls'
     222 |                 func(&id, ##__VA_ARGS__);                       \
         |                             ^~~~~~~~~~~
   include/linux/dynamic_debug.h:248:9: note: in expansion of macro '_dynamic_func_call_cls'
     248 |         _dynamic_func_call_cls(_DPRINTK_CLASS_DFLT, fmt, func, ##__VA_ARGS__)
         |         ^~~~~~~~~~~~~~~~~~~~~~
   include/linux/dynamic_debug.h:275:9: note: in expansion of macro '_dynamic_func_call'
     275 |         _dynamic_func_call(fmt, __dynamic_netdev_dbg,           \
         |         ^~~~~~~~~~~~~~~~~~
   include/net/net_debug.h:57:9: note: in expansion of macro 'dynamic_netdev_dbg'
      57 |         dynamic_netdev_dbg(__dev, format, ##args);              \
         |         ^~~~~~~~~~~~~~~~~~
   drivers/net/ethernet/mellanox/mlx5/core/en/tc/ct_fs_smfs.c:15:9: note: in expansion of macro 'netdev_dbg'
      15 |         netdev_dbg(fs->netdev, "ct_fs_smfs debug: " fmt "\n", ##args)
         |         ^~~~~~~~~~
   drivers/net/ethernet/mellanox/mlx5/core/en/tc/ct_fs_smfs.c:255:17: note: in expansion of macro 'ct_dbg'
     255 |                 ct_dbg("rule uses unexpected dissectors (0x%016x)",
         |                 ^~~~~~


vim +7325 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c

  7309	
  7310	static int hclge_parse_cls_flower(struct hclge_dev *hdev,
  7311					  struct flow_cls_offload *cls_flower,
  7312					  struct hclge_fd_rule *rule)
  7313	{
  7314		struct flow_rule *flow = flow_cls_offload_flow_rule(cls_flower);
  7315		struct flow_dissector *dissector = flow->match.dissector;
  7316	
  7317		if (dissector->used_keys &
  7318		    ~(BIT_ULL(FLOW_DISSECTOR_KEY_CONTROL) |
  7319		      BIT_ULL(FLOW_DISSECTOR_KEY_BASIC) |
  7320		      BIT_ULL(FLOW_DISSECTOR_KEY_ETH_ADDRS) |
  7321		      BIT_ULL(FLOW_DISSECTOR_KEY_VLAN) |
  7322		      BIT_ULL(FLOW_DISSECTOR_KEY_IPV4_ADDRS) |
  7323		      BIT_ULL(FLOW_DISSECTOR_KEY_IPV6_ADDRS) |
  7324		      BIT_ULL(FLOW_DISSECTOR_KEY_PORTS))) {
> 7325			dev_err(&hdev->pdev->dev, "unsupported key set: %#lx\n",
  7326				dissector->used_keys);
  7327			return -EOPNOTSUPP;
  7328		}
  7329	
  7330		hclge_get_cls_key_basic(flow, rule);
  7331		hclge_get_cls_key_mac(flow, rule);
  7332		hclge_get_cls_key_vlan(flow, rule);
  7333		hclge_get_cls_key_ip(flow, rule);
  7334		hclge_get_cls_key_port(flow, rule);
  7335	
  7336		return 0;
  7337	}
  7338	

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

      reply	other threads:[~2023-07-26 23:47 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-26 13:12 [PATCH net-next] dissector: Use 64bits for used_keys Ratheesh Kannoth
2023-07-26 23:47 ` kernel test robot [this message]

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=202307270742.fr5uXCME-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=Steen.Hegelund@microchip.com \
    --cc=alexandre.belloni@bootlin.com \
    --cc=andrew@lunn.ch \
    --cc=anthony.l.nguyen@intel.com \
    --cc=claudiu.manoil@nxp.com \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=f.fainelli@gmail.com \
    --cc=gakula@marvell.com \
    --cc=hkelam@marvell.com \
    --cc=horatiu.vultur@microchip.com \
    --cc=idosch@nvidia.com \
    --cc=jesse.brandeburg@intel.com \
    --cc=kuba@kernel.org \
    --cc=lars.povlsen@microchip.com \
    --cc=leon@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=michael.chan@broadcom.com \
    --cc=netdev@vger.kernel.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=olteanv@gmail.com \
    --cc=pabeni@redhat.com \
    --cc=petrm@nvidia.com \
    --cc=rajur@chelsio.com \
    --cc=rkannoth@marvell.com \
    --cc=saeedm@nvidia.com \
    --cc=salil.mehta@huawei.com \
    --cc=sbhatta@marvell.com \
    --cc=sgoutham@marvell.com \
    --cc=taras.chornyi@plvision.eu \
    --cc=vladimir.oltean@nxp.com \
    --cc=yisen.zhuang@huawei.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 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).