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 88B6AC7618E for ; Wed, 26 Apr 2023 20:18:08 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 02C036B0126; Wed, 26 Apr 2023 16:18:08 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id EF7986B0129; Wed, 26 Apr 2023 16:18:07 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D98906B012A; Wed, 26 Apr 2023 16:18:07 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id C23CF6B0126 for ; Wed, 26 Apr 2023 16:18:07 -0400 (EDT) Received: from smtpin12.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id 905241A0294 for ; Wed, 26 Apr 2023 20:18:07 +0000 (UTC) X-FDA: 80724653814.12.E43E7E0 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by imf22.hostedemail.com (Postfix) with ESMTP id 0249BC000A for ; Wed, 26 Apr 2023 20:18:04 +0000 (UTC) Authentication-Results: imf22.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=nYIf5Kl0; spf=pass (imf22.hostedemail.com: domain of lkp@intel.com designates 192.55.52.115 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1682540285; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding:in-reply-to: references:dkim-signature; bh=yPW5Eow9hae9vpXDIBXYYZ9rdDPiTelFuHNylClFVjo=; b=M+E/5/pgmswCc14i6W/GI0KzNZSs9eORywHsk5lipXymLOQqfUrVUgTWPMHKCAmrybPnqN HW8mRxXCAbepdl5Ef6ZJLFol9WdxC36whOqiKnvI138qgcPRPo55g3CqDfLRs/ogUmOEnu 0F2DImFkOzbxN/xmEjKMnUSkAFmnmwQ= ARC-Authentication-Results: i=1; imf22.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=nYIf5Kl0; spf=pass (imf22.hostedemail.com: domain of lkp@intel.com designates 192.55.52.115 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1682540285; a=rsa-sha256; cv=none; b=VBkanarP0cZppEGaS0YCJkCtzHQuwY3fQC3ZGFuFdeKcj44bf37Ksf7uWb/bj6OS/hYDCU M98GY9SYuXyJNeCcizB5403UJGd6NWVHMJBlZLfnBsmQ8M7xsNf3+yVEaI6Uu69sZl36Xu lUPKETzfY3bJk14GeSD0kJi6cDkckTo= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1682540285; x=1714076285; h=date:from:to:cc:subject:message-id:mime-version; bh=068Cpu/MbcMGw1LXQI1cUsssg59KVV31cQo9bhCnP/c=; b=nYIf5Kl09AyyDtSqoqq2eUUs+mBc3Fsy8CttPIRDItmgAWuD9x83mZ5f K7DEgR2cUznJN/OCT1RmCER4QtqvfSS8bN3RLAABohnxCx1ShbxZXfvpp X93BqBdls4Q9qI+4PiVna6MKgzLZ9PvnmCG7kDL6Ef8EE1MMf0CRVOit6 1E1cN5cvhWwtiFCdkcWITB7si+zO+jN46VX+b8o4j4BlbCGaos/AU4zi0 sHCNBDn3gP73IRJaUBLF2E5XDPRjTMY0jjvHAjudndq5v7FtbXG9LuFBf VKs7Oc21ICuOvZTXNrZQ3UwFkXFiK9ayU7Dm+SoZi0UdgoObW6zZ6oVYD Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10692"; a="347246780" X-IronPort-AV: E=Sophos;i="5.99,229,1677571200"; d="scan'208";a="347246780" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Apr 2023 13:17:55 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10692"; a="726703251" X-IronPort-AV: E=Sophos;i="5.99,229,1677571200"; d="scan'208";a="726703251" Received: from lkp-server01.sh.intel.com (HELO 041f065c1b1b) ([10.239.97.150]) by orsmga001.jf.intel.com with ESMTP; 26 Apr 2023 13:17:52 -0700 Received: from kbuild by 041f065c1b1b with local (Exim 4.96) (envelope-from ) id 1prlaK-0000VM-03; Wed, 26 Apr 2023 20:17:52 +0000 Date: Thu, 27 Apr 2023 04:17:20 +0800 From: kernel test robot To: Xingyu Wu Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, Linux Memory Management List , Wim Van Sebroeck , Emil Renner Berthing , Guenter Roeck Subject: [linux-next:master 13283/14037] drivers/watchdog/starfive-wdt.c:584:34: warning: unused variable 'starfive_wdt_match' Message-ID: <202304270438.mwnBZp1A-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspam-User: X-Rspamd-Server: rspam04 X-Rspamd-Queue-Id: 0249BC000A X-Stat-Signature: p9bqrmwj4f8srqirqkspd6ijxzp18zro X-HE-Tag: 1682540284-623689 X-HE-Meta: U2FsdGVkX19CRDbILuCH+jfRvcl740lAilr8W3+r27PnpiUbBse4saEYmbvyMIu/OOdJM/6EZmpr3MBY/kObZzHFwxyqIGeEdurull/FtYkXn1nwOPBeWdghAttMo4f5TWzoMPJq2W9kQtY0F3c8ece/DyNhx/IeSIj7yJLtpVF49ruPHME6E/a2X275ei41Udx2oCTVTKPxJJd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c4CSc1VBQ6lEW6JDkMjpD+XxN9365JKOaD+BeBxnhin5bUVUGkh0DcN9xJFgYBgOzxHLlz6ser2ru4GTMWJ+sIJAlErrs/lQew6zJLNXUrJ1j7FArrPlFuUKvSssX6TtjJ+8k5Qf6zOvc 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: b7455b10da762f2d447678c88e37cc1eb6cb45ee commit: db728ea9c7be137b4f4361295f11e0b56b6286ac [13283/14037] drivers: watchdog: Add StarFive Watchdog driver config: hexagon-randconfig-r035-20230426 (https://download.01.org/0day-ci/archive/20230427/202304270438.mwnBZp1A-lkp@intel.com/config) compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project 437b7602e4a998220871de78afcb020b9c14a661) 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=db728ea9c7be137b4f4361295f11e0b56b6286ac 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 db728ea9c7be137b4f4361295f11e0b56b6286ac # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=hexagon olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=hexagon SHELL=/bin/bash drivers/watchdog/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot | Link: https://lore.kernel.org/oe-kbuild-all/202304270438.mwnBZp1A-lkp@intel.com/ All warnings (new ones prefixed by >>): In file included from drivers/watchdog/starfive-wdt.c:9: In file included from include/linux/iopoll.h:14: In file included from include/linux/io.h:13: In file included from arch/hexagon/include/asm/io.h:334: include/asm-generic/io.h:547:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ include/asm-generic/io.h:560:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from drivers/watchdog/starfive-wdt.c:9: In file included from include/linux/iopoll.h:14: In file included from include/linux/io.h:13: In file included from arch/hexagon/include/asm/io.h:334: include/asm-generic/io.h:573:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from drivers/watchdog/starfive-wdt.c:9: In file included from include/linux/iopoll.h:14: In file included from include/linux/io.h:13: In file included from arch/hexagon/include/asm/io.h:334: include/asm-generic/io.h:584:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ include/asm-generic/io.h:594:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ include/asm-generic/io.h:604:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ >> drivers/watchdog/starfive-wdt.c:584:34: warning: unused variable 'starfive_wdt_match' [-Wunused-const-variable] static const struct of_device_id starfive_wdt_match[] = { ^ 7 warnings generated. vim +/starfive_wdt_match +584 drivers/watchdog/starfive-wdt.c 583 > 584 static const struct of_device_id starfive_wdt_match[] = { 585 { .compatible = "starfive,jh7100-wdt", .data = &starfive_wdt_jh7100_variant }, 586 { .compatible = "starfive,jh7110-wdt", .data = &starfive_wdt_jh7110_variant }, 587 { /* sentinel */ } 588 }; 589 MODULE_DEVICE_TABLE(of, starfive_wdt_match); 590 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests