Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp115307iof; Sun, 5 Jun 2022 22:49:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyYLMoh6zxJsoFNuyhBrWIvNQgQhMG4VV86HXR/mfe7sJEMJv8pvYK+a0RUFXrUQZXOtKlx X-Received: by 2002:a17:90b:2c0b:b0:1e3:25d3:e76f with SMTP id rv11-20020a17090b2c0b00b001e325d3e76fmr24349016pjb.150.1654494597925; Sun, 05 Jun 2022 22:49:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654494597; cv=none; d=google.com; s=arc-20160816; b=n+gzKKiXBpJNeNbvqBUiMJUMhC2ZvkjJ6I9wClVcQ+X0tQ5vfv1fjwyJEsL+1kkWSo rMQfPsoXZzOnzcrI74m1ykMAKgKeaQ7vq4VIVvrXsQD6NXIivWHiJBiFEPHNsYFD3/rP V61sYEz8Rpjh1kV/kGSaEx2XwmkiNZjxjFZbncsu0FeoUc+8YvlnTcRSRTMVazT0X0cf 2Ops6j+pzSu29DTG9EmsSef1HVw3l1ArWPnC/v3b9BVeLaLASU/6kM+PumYDAm0VVGSc PVvArCGogkPighPeYH9BgLOdBguIqL0QSLXfNiVru/EReSHQGrujVRV5WShKDuTvOoSo HlTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date:dkim-signature; bh=5uwyOHb2WX0ZUqiOfIUjvAeA/wx3K4Ox4Ha0rT39Tkw=; b=GJyL/Wxt0lNp1v58hxfr5Ya7uea3nua08Yp1GceSTkrMaPU5iycyivZtMmrZ0oKgu4 +X5Sm0XfyDjZ5LLGH4R+U7Kp84tPFeRBCExesYTU2t/FbKfIUAe47EvYiLRd5DWBN1G2 Zy/bZHjI58B7S5zpouhNIo63nsdJBCQBaScOyZmvkqKnizHHtLWdBOU93MoLuZMEuIah nliITBw9cQNKVD7qmdnScu+ZFcH8mCFfOVpcdxgRRac+hct6CqA8PAf6rHB+jafVP72B uf0TijjoSOowER5f5qXhaonkXmf7HbUhQ2o+LrGjQHuv5HsF1kG1HdEW+PyN5W21pdd1 efbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=URV0A9IZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id h22-20020a635316000000b003fa247b3520si19208372pgb.444.2022.06.05.22.49.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Jun 2022 22:49:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=URV0A9IZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 6F67127ED96; Sun, 5 Jun 2022 21:39:41 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241644AbiFDU7A (ORCPT + 99 others); Sat, 4 Jun 2022 16:59:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52742 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241584AbiFDU65 (ORCPT ); Sat, 4 Jun 2022 16:58:57 -0400 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AD9FC140FD for ; Sat, 4 Jun 2022 13:58:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1654376335; x=1685912335; h=date:from:to:cc:subject:message-id:mime-version; bh=alcl3p9MajAzhzqPbCbm+pdKG7LQBoXPfMN6XrVSj4Y=; b=URV0A9IZSTW6XwxLGINF+SwiiesGk9NRYIPkn/p/cUxf4JR5VYnEQyWO tW8HaTmeDxDDdjwFzXcAzoFYaA5eYaGeSXHNefrj8aGT9ko2ojJ+kxfte FnYtV4K/tdgroMXO7nYNktoVTC9bcPMv6Bnd/bIlN7r4CWphYNFK5XTam BmA3uFZzEuqdjryp54BWyrATQZwZr2vRdQ4Wtqlo3P/EeIBn1dRlP7Pmx NgzAGHe27aPzyD5OEWECYPFBU2u0gG7brHgzbzDXlNR4O+uGZvUJIaR/Z Xt+bw/VJ1D3qxEVzs3pwqy56YCbuLxSIXjwDuKvCNkwDwl4/ljqzOn8uL Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10368"; a="264155828" X-IronPort-AV: E=Sophos;i="5.91,278,1647327600"; d="scan'208";a="264155828" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jun 2022 13:58:55 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,278,1647327600"; d="scan'208";a="708506088" Received: from lkp-server01.sh.intel.com (HELO 60dabacc1df6) ([10.239.97.150]) by orsmga004.jf.intel.com with ESMTP; 04 Jun 2022 13:58:53 -0700 Received: from kbuild by 60dabacc1df6 with local (Exim 4.95) (envelope-from ) id 1nxarE-000BCv-Ak; Sat, 04 Jun 2022 20:58:52 +0000 Date: Sun, 5 Jun 2022 04:58:05 +0800 From: kernel test robot To: Masahiro Yamada Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, linux-kernel@vger.kernel.org, Andrew Morton , Linux Memory Management List Subject: drivers/input/touchscreen/sun4i-ts.c:392:34: warning: unused variable 'sun4i_ts_of_match' Message-ID: <202206050416.ksMtkpmV-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 032dcf09e2bf7c822be25b4abef7a6c913870d98 commit: ea29b20a828511de3348334e529a3d046a180416 init/Kconfig: make COMPILE_TEST depend on HAS_IOMEM date: 1 year, 3 months ago config: s390-randconfig-c005-20220605 (https://download.01.org/0day-ci/archive/20220605/202206050416.ksMtkpmV-lkp@intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 0a90b72c432d70aae035727ece4ba80ce820f381) 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 # install s390 cross compiling tool for clang build # apt-get install binutils-s390x-linux-gnu # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=ea29b20a828511de3348334e529a3d046a180416 git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git git fetch --no-tags linus master git checkout ea29b20a828511de3348334e529a3d046a180416 # 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=s390 SHELL=/bin/bash drivers/gpu/drm/ drivers/input/touchscreen/ If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot All warnings (new ones prefixed by >>): In file included from arch/s390/include/asm/io.h:80: include/asm-generic/io.h:490: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/big_endian.h:34:59: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) __swab32((__force __u32)(__le32)(x)) ^ include/uapi/linux/swab.h:119:21: note: expanded from macro '__swab32' ___constant_swab32(x) : \ ^ include/uapi/linux/swab.h:19:12: note: expanded from macro '___constant_swab32' (((__u32)(x) & (__u32)0x000000ffUL) << 24) | \ ^ In file included from drivers/input/touchscreen/sun4i-ts.c:36: In file included from include/linux/io.h:13: In file included from arch/s390/include/asm/io.h:80: include/asm-generic/io.h:490: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/big_endian.h:34:59: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) __swab32((__force __u32)(__le32)(x)) ^ include/uapi/linux/swab.h:119:21: note: expanded from macro '__swab32' ___constant_swab32(x) : \ ^ include/uapi/linux/swab.h:20:12: note: expanded from macro '___constant_swab32' (((__u32)(x) & (__u32)0x0000ff00UL) << 8) | \ ^ In file included from drivers/input/touchscreen/sun4i-ts.c:36: In file included from include/linux/io.h:13: In file included from arch/s390/include/asm/io.h:80: include/asm-generic/io.h:490: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/big_endian.h:34:59: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) __swab32((__force __u32)(__le32)(x)) ^ include/uapi/linux/swab.h:119:21: note: expanded from macro '__swab32' ___constant_swab32(x) : \ ^ include/uapi/linux/swab.h:21:12: note: expanded from macro '___constant_swab32' (((__u32)(x) & (__u32)0x00ff0000UL) >> 8) | \ ^ In file included from drivers/input/touchscreen/sun4i-ts.c:36: In file included from include/linux/io.h:13: In file included from arch/s390/include/asm/io.h:80: include/asm-generic/io.h:490: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/big_endian.h:34:59: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) __swab32((__force __u32)(__le32)(x)) ^ include/uapi/linux/swab.h:119:21: note: expanded from macro '__swab32' ___constant_swab32(x) : \ ^ include/uapi/linux/swab.h:22:12: note: expanded from macro '___constant_swab32' (((__u32)(x) & (__u32)0xff000000UL) >> 24))) ^ In file included from drivers/input/touchscreen/sun4i-ts.c:36: In file included from include/linux/io.h:13: In file included from arch/s390/include/asm/io.h:80: include/asm-generic/io.h:490: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/big_endian.h:34:59: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) __swab32((__force __u32)(__le32)(x)) ^ include/uapi/linux/swab.h:120:12: note: expanded from macro '__swab32' __fswab32(x)) ^ In file included from drivers/input/touchscreen/sun4i-ts.c:36: In file included from include/linux/io.h:13: In file included from arch/s390/include/asm/io.h:80: include/asm-generic/io.h:501: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:511: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:521: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); ~~~~~~~~~~ ^ include/asm-generic/io.h:609:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] readsb(PCI_IOBASE + addr, buffer, count); ~~~~~~~~~~ ^ include/asm-generic/io.h:617:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] readsw(PCI_IOBASE + addr, buffer, count); ~~~~~~~~~~ ^ include/asm-generic/io.h:625:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] readsl(PCI_IOBASE + addr, buffer, count); ~~~~~~~~~~ ^ include/asm-generic/io.h:634:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] writesb(PCI_IOBASE + addr, buffer, count); ~~~~~~~~~~ ^ include/asm-generic/io.h:643:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] writesw(PCI_IOBASE + addr, buffer, count); ~~~~~~~~~~ ^ include/asm-generic/io.h:652:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] writesl(PCI_IOBASE + addr, buffer, count); ~~~~~~~~~~ ^ >> drivers/input/touchscreen/sun4i-ts.c:392:34: warning: unused variable 'sun4i_ts_of_match' [-Wunused-const-variable] static const struct of_device_id sun4i_ts_of_match[] = { ^ 21 warnings generated. vim +/sun4i_ts_of_match +392 drivers/input/touchscreen/sun4i-ts.c f09f98d3240b7e Hans de Goede 2014-05-14 391 6decea7c5438e2 Hans de Goede 2014-05-14 @392 static const struct of_device_id sun4i_ts_of_match[] = { 6decea7c5438e2 Hans de Goede 2014-05-14 393 { .compatible = "allwinner,sun4i-a10-ts", }, 91c68a7c1d92b4 Hans de Goede 2015-03-08 394 { .compatible = "allwinner,sun5i-a13-ts", }, 43c0e2234021d7 Chen-Yu Tsai 2015-01-26 395 { .compatible = "allwinner,sun6i-a31-ts", }, 6decea7c5438e2 Hans de Goede 2014-05-14 396 { /* sentinel */ } 6decea7c5438e2 Hans de Goede 2014-05-14 397 }; 6decea7c5438e2 Hans de Goede 2014-05-14 398 MODULE_DEVICE_TABLE(of, sun4i_ts_of_match); 6decea7c5438e2 Hans de Goede 2014-05-14 399 :::::: The code at line 392 was first introduced by commit :::::: 6decea7c5438e2955f64e2513ec9a2fac7602a7d Input: add driver for Allwinner sunxi SoC's rtp controller :::::: TO: Hans de Goede :::::: CC: Dmitry Torokhov -- 0-DAY CI Kernel Test Service https://01.org/lkp