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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 23645C433F5 for ; Tue, 8 Mar 2022 12:34:26 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 6F60C8D0002; Tue, 8 Mar 2022 07:34:26 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 6A4488D0001; Tue, 8 Mar 2022 07:34:26 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 56BCF8D0002; Tue, 8 Mar 2022 07:34:26 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0054.hostedemail.com [216.40.44.54]) by kanga.kvack.org (Postfix) with ESMTP id 43BAB8D0001 for ; Tue, 8 Mar 2022 07:34:26 -0500 (EST) Received: from smtpin25.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id E9900A89A3 for ; Tue, 8 Mar 2022 12:34:25 +0000 (UTC) X-FDA: 79221162090.25.247C323 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by imf28.hostedemail.com (Postfix) with ESMTP id C2F5AC0004 for ; Tue, 8 Mar 2022 12:34:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1646742864; x=1678278864; h=date:from:to:cc:subject:message-id:mime-version; bh=Cp5klWEeOzXgjuCVeKOoXEOWHUqwAtqdNBvmgIWkiiA=; b=jNTrEOUSms4uG6oXC9TDmOMX35ySGs6jf5uRwGhSfAlqr+YvISoA+UgY MBEcg3/n3DamY6oZSAln6n610SLgA74ng7tB6gndpE7r6yfvM/I4ZdepH /vV6tGqOVblepqmh8tuxFSTEiwCd5Ao1LizDLZhz9JvwGfurBzXsMUrhu UVhYUjKLIigctZp2eYhAQSO9w5M9Z/xo6t/e9hm5GuN8a+o+pSt0apf+a lst3PJor/Yg+EiT99bz4FVjpW5iAQjnrLM+Mni8fmi1VNXFLiQKZzgvMX ba5f6dlYPe5Ns3jHax50IBAdUwzVfCqu2bUpL65LI3G55O8p3oYPgsNNh A==; X-IronPort-AV: E=McAfee;i="6200,9189,10279"; a="254612410" X-IronPort-AV: E=Sophos;i="5.90,164,1643702400"; d="scan'208";a="254612410" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Mar 2022 04:34:22 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,164,1643702400"; d="scan'208";a="577980151" Received: from lkp-server02.sh.intel.com (HELO 89b41b6ae01c) ([10.239.97.151]) by orsmga001.jf.intel.com with ESMTP; 08 Mar 2022 04:34:21 -0800 Received: from kbuild by 89b41b6ae01c with local (Exim 4.92) (envelope-from ) id 1nRZ2i-0001NR-RS; Tue, 08 Mar 2022 12:34:20 +0000 Date: Tue, 8 Mar 2022 20:34:05 +0800 From: kernel test robot To: Qianggui Song Cc: kbuild-all@lists.01.org, Linux Memory Management List , Marc Zyngier Subject: [linux-next:master 10152/11353] drivers/irqchip/irq-meson-gpio.c:351:45: warning: variable 'params' set but not used Message-ID: <202203082010.Qn0EhDWH-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) X-Rspam-User: X-Rspamd-Server: rspam02 X-Rspamd-Queue-Id: C2F5AC0004 X-Stat-Signature: re4rmbp4m3mjsaqf4khzjrk6oci3de68 Authentication-Results: imf28.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=jNTrEOUS; dmarc=pass (policy=none) header.from=intel.com; spf=none (imf28.hostedemail.com: domain of lkp@intel.com has no SPF policy when checking 134.134.136.65) smtp.mailfrom=lkp@intel.com X-HE-Tag: 1646742864-733179 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: cb153b68ff91cbc434f3de70ac549e110543e1bb commit: d8a61a2ec7e75723083d33800423b151106922e0 [10152/11353] irqchip/meson-gpio: Add support for meson s4 SoCs config: h8300-buildonly-randconfig-r004-20220307 (https://download.01.org/0day-ci/archive/20220308/202203082010.Qn0EhDWH-lkp@intel.com/config) compiler: h8300-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://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=d8a61a2ec7e75723083d33800423b151106922e0 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 d8a61a2ec7e75723083d33800423b151106922e0 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=h8300 SHELL=/bin/bash drivers/irqchip/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): drivers/irqchip/irq-meson-gpio.c: In function 'meson_s4_gpio_irq_set_type': >> drivers/irqchip/irq-meson-gpio.c:351:45: warning: variable 'params' set but not used [-Wunused-but-set-variable] 351 | const struct meson_gpio_irq_params *params; | ^~~~~~ vim +/params +351 drivers/irqchip/irq-meson-gpio.c 330 331 /* 332 * gpio irq relative registers for s4 333 * -PADCTRL_GPIO_IRQ_CTRL0 334 * bit[31]: enable/disable all the irq lines 335 * bit[12-23]: single edge trigger 336 * bit[0-11]: polarity trigger 337 * 338 * -PADCTRL_GPIO_IRQ_CTRL[X] 339 * bit[0-16]: 7 bits to choose gpio source for irq line 2*[X] - 2 340 * bit[16-22]:7 bits to choose gpio source for irq line 2*[X] - 1 341 * where X = 1-6 342 * 343 * -PADCTRL_GPIO_IRQ_CTRL[7] 344 * bit[0-11]: both edge trigger 345 */ 346 static int meson_s4_gpio_irq_set_type(struct meson_gpio_irq_controller *ctl, 347 unsigned int type, u32 *channel_hwirq) 348 { 349 u32 val = 0; 350 unsigned int idx; > 351 const struct meson_gpio_irq_params *params; 352 353 params = ctl->params; 354 idx = meson_gpio_irq_get_channel_idx(ctl, channel_hwirq); 355 356 type &= IRQ_TYPE_SENSE_MASK; 357 358 meson_gpio_irq_update_bits(ctl, REG_EDGE_POL_S4, BIT(idx), 0); 359 360 if (type == IRQ_TYPE_EDGE_BOTH) { 361 val |= BIT(ctl->params->edge_both_offset + idx); 362 meson_gpio_irq_update_bits(ctl, REG_EDGE_POL_S4, 363 BIT(ctl->params->edge_both_offset + idx), val); 364 return 0; 365 } 366 367 if (type & (IRQ_TYPE_LEVEL_LOW | IRQ_TYPE_EDGE_FALLING)) 368 val |= BIT(ctl->params->pol_low_offset + idx); 369 370 if (type & (IRQ_TYPE_EDGE_RISING | IRQ_TYPE_EDGE_FALLING)) 371 val |= BIT(ctl->params->edge_single_offset + idx); 372 373 meson_gpio_irq_update_bits(ctl, REG_EDGE_POL, 374 BIT(idx) | BIT(12 + idx), val); 375 return 0; 376 }; 377 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org