From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 59512C433FE for ; Fri, 22 Apr 2022 02:20:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233328AbiDVCXc (ORCPT ); Thu, 21 Apr 2022 22:23:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58878 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231551AbiDVCXa (ORCPT ); Thu, 21 Apr 2022 22:23:30 -0400 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3BD9149263; Thu, 21 Apr 2022 19:20:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1650594039; x=1682130039; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=QY4+iCfT1Wy7jYCT0r02vdmfMy8p/eY4uf/pYw6auo0=; b=HKEz8YOdSu3RZK4fAnYRh7BHINw7nMzZib5wXpmfSBqnA4jBUCObmv2X g4QRYnlHolKlKxzyobwzHQmRdet4RdGDlADyJ2Z+S8pI+IzcQkbG+FmDW YiNh6G24uKLXcC20bqmIEvzVcE7Cbr+mszAVOJD36albcEPNA0zBhab3P 7vthFME8sQjpWVccDd4763SMcfoTWCl4X3UhvQ9z71D9AvaYk/U+PxqCb SP0/JSkKDbFYLgPJkG/ZreHkKPS/fNaqf5UU+1QSJAXiXzZBymvz5PLpl qJXTa2XK7ymEQk8v0th2WyrD1PDnuBEeygB3SzT4PZ6YaZlqv8/q11soy Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10324"; a="251868464" X-IronPort-AV: E=Sophos;i="5.90,280,1643702400"; d="scan'208";a="251868464" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Apr 2022 19:20:38 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,280,1643702400"; d="scan'208";a="562849639" Received: from lkp-server01.sh.intel.com (HELO 3abc53900bec) ([10.239.97.150]) by fmsmga007.fm.intel.com with ESMTP; 21 Apr 2022 19:20:35 -0700 Received: from kbuild by 3abc53900bec with local (Exim 4.95) (envelope-from ) id 1nhiuQ-00097C-Jl; Fri, 22 Apr 2022 02:20:34 +0000 Date: Fri, 22 Apr 2022 10:20:20 +0800 From: kernel test robot To: Yu Zhe , mareklindner@neomailbox.ch, sw@simonwunderlich.de, a@unstable.cc, sven@narfation.org, davem@davemloft.net, kuba@kernel.org, pabeni@redhat.com Cc: kbuild-all@lists.01.org, b.a.t.m.a.n@lists.open-mesh.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, liqiong@nfschina.com, kernel-janitors@vger.kernel.org, Yu Zhe Subject: Re: [PATCH] batman-adv: remove unnecessary type castings Message-ID: <202204221027.ETcMYyKP-lkp@intel.com> References: <20220421154829.9775-1-yuzhe@nfschina.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220421154829.9775-1-yuzhe@nfschina.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Hi Yu, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on linus/master] [also build test WARNING on v5.18-rc3 next-20220421] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/intel-lab-lkp/linux/commits/Yu-Zhe/batman-adv-remove-unnecessary-type-castings/20220421-235254 base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git b253435746d9a4a701b5f09211b9c14d3370d0da config: m68k-defconfig (https://download.01.org/0day-ci/archive/20220422/202204221027.ETcMYyKP-lkp@intel.com/config) compiler: m68k-linux-gcc (GCC) 11.2.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/intel-lab-lkp/linux/commit/2474b41c585e849d3546e0aba8f3c862735a04ff git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Yu-Zhe/batman-adv-remove-unnecessary-type-castings/20220421-235254 git checkout 2474b41c585e849d3546e0aba8f3c862735a04ff # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross W=1 O=build_dir ARCH=m68k SHELL=/bin/bash net/batman-adv/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): net/batman-adv/bridge_loop_avoidance.c: In function 'batadv_choose_claim': >> net/batman-adv/bridge_loop_avoidance.c:68:42: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 68 | struct batadv_bla_claim *claim = data; | ^~~~ vim +/const +68 net/batman-adv/bridge_loop_avoidance.c 53 54 static void batadv_bla_periodic_work(struct work_struct *work); 55 static void 56 batadv_bla_send_announce(struct batadv_priv *bat_priv, 57 struct batadv_bla_backbone_gw *backbone_gw); 58 59 /** 60 * batadv_choose_claim() - choose the right bucket for a claim. 61 * @data: data to hash 62 * @size: size of the hash table 63 * 64 * Return: the hash index of the claim 65 */ 66 static inline u32 batadv_choose_claim(const void *data, u32 size) 67 { > 68 struct batadv_bla_claim *claim = data; 69 u32 hash = 0; 70 71 hash = jhash(&claim->addr, sizeof(claim->addr), hash); 72 hash = jhash(&claim->vid, sizeof(claim->vid), hash); 73 74 return hash % size; 75 } 76 -- 0-DAY CI Kernel Test Service https://01.org/lkp