Received: by 2002:a05:6358:e9c4:b0:b2:91dc:71ab with SMTP id hc4csp2417345rwb; Fri, 5 Aug 2022 21:30:40 -0700 (PDT) X-Google-Smtp-Source: AA6agR5dK7YjMqN44FBUx/kINjli8fV6YOuZvURabvABfLvIcVO/vjO/PtnEPdtcHuwrlQge1nSz X-Received: by 2002:a63:7a1a:0:b0:41d:2c8c:43bc with SMTP id v26-20020a637a1a000000b0041d2c8c43bcmr2163302pgc.97.1659760239720; Fri, 05 Aug 2022 21:30:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659760239; cv=none; d=google.com; s=arc-20160816; b=UnSRK2WK4Pzoyu3Ag4fwD6nvUqrZqUw9VQfuepBvs1CYH8L6P33MkgK4d3sYznh7ak r79yO668vnlN02LHvihsPm9sdUpYgO+tqWPSmD+l9k8Wf6+MjBU1MRd+yyyjxc3KXRsN SKI231E+F+ErhIdc/cc/naSGnciI3fGOc7teZ1u+Z6E4hXLelHMbrqmo2Lt7VBF6eD9B KNPkV9e2Aei924irr2svm2omiXS2DCqD0V5CYYcpCElKq3WXbHG5mIyBtDQL5aAsRGQA HWxmXijJakiYcVB3jpjQCNiy99ESVjuVAxBdpf+U3t6TlzIDmiIiugA6HYiGaZPP5Jij ITIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=s7aR+bJvjQtSAoO1kzHvD1D6fl/tZ4otXNzJ3RnIjvw=; b=f7bIzFhSnHMLRUQpAkGTRWQ2KoP8gEdcNPOgnH1Jz5p8qsYGrVnZfg0cbp0h2Ix40o B7+Fpsg8g9R6F5/Et6TraEBCGLQbzx64ezpRoT9h3/bUCIPH4PzGrVHbDNzpl+L2rtxo n1zxvDLnvBAXlEO8fSkr54MEXxQALVGPbHC2+aO7uHj5OI3ffatT4dZHF1OOGKMy8J8H XQZDRP+MwTWWq7H/rNJPt/mOtUGX9H8W7TOxfyudJjHme5XKdG7VNXwTTcw7qnlb+55E ZjAQhGA9ZfyP3IT9KaU7DWrfJhxp0p3uxPT/doyyeGAG3GjNR2p7tDKe0EulIAbmksM1 zHag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Xw+ycoQw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k23-20020a635617000000b0041bbfbd2ee4si4663064pgb.168.2022.08.05.21.29.52; Fri, 05 Aug 2022 21:30:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Xw+ycoQw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239692AbiHFDxt (ORCPT + 99 others); Fri, 5 Aug 2022 23:53:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55864 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231191AbiHFDxs (ORCPT ); Fri, 5 Aug 2022 23:53:48 -0400 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DBA491409F; Fri, 5 Aug 2022 20:53:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1659758026; x=1691294026; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=EOrwo1+w2rYt40oWYg7x/pWgKGfaH9b92Nt/uY+i8tA=; b=Xw+ycoQwGTg32EQO2VtRJPJJKhRtLeZq9Gw44IV0faylS1PystKP9+fY mLOpiAixN2PTU6/Pswu6F0Gq/SckK2AVoEttexSvlIb4guB5jarkp1DQm RiFvfhAgwsvnV35e0FWu79apcmv/HdUhYyeFErCpXczTzexP2HstoOHgn ChhFWElpR3nbLgncRina45IkaAkwfIshAc7mtFljiRtkjQqAET0ad2OCP mDX7RdIlwJpGsXzo1nku8MEPycjARYuWH5b6+Uq39oUMH3qSukrQK+nBi MKEX+9KeCAALwEBFovJDKFjMxl1uBfhCptGN+qxjer3whIz/F0Wn9FHRI A==; X-IronPort-AV: E=McAfee;i="6400,9594,10430"; a="270110861" X-IronPort-AV: E=Sophos;i="5.93,217,1654585200"; d="scan'208";a="270110861" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Aug 2022 20:53:46 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,217,1654585200"; d="scan'208";a="746063365" Received: from lkp-server01.sh.intel.com (HELO e0eace57cfef) ([10.239.97.150]) by fmsmga001.fm.intel.com with ESMTP; 05 Aug 2022 20:53:42 -0700 Received: from kbuild by e0eace57cfef with local (Exim 4.96) (envelope-from ) id 1oKAsg-000Jzj-0A; Sat, 06 Aug 2022 03:53:42 +0000 Date: Sat, 6 Aug 2022 11:53:08 +0800 From: kernel test robot To: Alistair Francis , linux-input@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Cc: kbuild-all@lists.01.org, shawnguo@kernel.org, alistair23@gmail.com, robh+dt@kernel.org, linus.walleij@linaro.org, s.hauer@pengutronix.de, andreas@kemnade.info, krzysztof.kozlowski+dt@linaro.org, rydberg@bitmath.org, dmitry.torokhov@gmail.com, Alistair Francis , Maxime Ripard , =?iso-8859-1?Q?Myl=E8ne?= Josserand , Peter Geis Subject: Re: [PATCH v8 1/4] Input: Add driver for Cypress Generation 5 touchscreen Message-ID: <202208061128.pfj2DRWO-lkp@intel.com> References: <20220802125827.34509-2-alistair@alistair23.me> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220802125827.34509-2-alistair@alistair23.me> X-Spam-Status: No, score=-5.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham 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 Hi Alistair, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on dtor-input/next] [also build test WARNING on shawnguo/for-next linus/master v5.19 next-20220805] [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#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Alistair-Francis/Add-support-for-the-Cypress-cyttsp5/20220802-210032 base: https://git.kernel.org/pub/scm/linux/kernel/git/dtor/input.git next config: um-allmodconfig (https://download.01.org/0day-ci/archive/20220806/202208061128.pfj2DRWO-lkp@intel.com/config) compiler: gcc-11 (Debian 11.3.0-3) 11.3.0 reproduce (this is a W=1 build): # https://github.com/intel-lab-lkp/linux/commit/9c372983ef0b8eb7ad48c025a156f80943269af7 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Alistair-Francis/Add-support-for-the-Cypress-cyttsp5/20220802-210032 git checkout 9c372983ef0b8eb7ad48c025a156f80943269af7 # save the config file mkdir build_dir && cp config build_dir/.config make W=1 O=build_dir ARCH=um SHELL=/bin/bash If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot All warnings (new ones prefixed by >>): drivers/input/touchscreen/cyttsp5.c: In function 'cyttsp5_handle_irq': >> drivers/input/touchscreen/cyttsp5.c:254:31: warning: array subscript 'int[0]' is partly outside array bounds of 'u8[1]' {aka 'unsigned char[1]'} [-Warray-bounds] 254 | for (nbyte = 0, *axis = 0; nbyte < size; nbyte++) | ~~~~~~^~~ drivers/input/touchscreen/cyttsp5.c:333:12: note: while referencing 'num_cur_tch' 333 | u8 num_cur_tch; | ^~~~~~~~~~~ drivers/input/touchscreen/cyttsp5.c:257:15: warning: array subscript 'int[0]' is partly outside array bounds of 'u8[1]' {aka 'unsigned char[1]'} [-Warray-bounds] 257 | *axis &= max - 1; | ^~ drivers/input/touchscreen/cyttsp5.c:333:12: note: while referencing 'num_cur_tch' 333 | u8 num_cur_tch; | ^~~~~~~~~~~ drivers/input/touchscreen/cyttsp5.c:257:15: warning: array subscript 'int[0]' is partly outside array bounds of 'u8[1]' {aka 'unsigned char[1]'} [-Warray-bounds] 257 | *axis &= max - 1; | ~~~~~~^~~~~~~~~~ drivers/input/touchscreen/cyttsp5.c:333:12: note: while referencing 'num_cur_tch' 333 | u8 num_cur_tch; | ^~~~~~~~~~~ drivers/input/touchscreen/cyttsp5.c:255:23: warning: array subscript 'int[0]' is partly outside array bounds of 'u8[1]' {aka 'unsigned char[1]'} [-Warray-bounds] 255 | *axis += ((xy_data[nbyte] >> bofs) << (nbyte * 8)); | ^~ drivers/input/touchscreen/cyttsp5.c:333:12: note: while referencing 'num_cur_tch' 333 | u8 num_cur_tch; | ^~~~~~~~~~~ drivers/input/touchscreen/cyttsp5.c:255:23: warning: array subscript 'int[0]' is partly outside array bounds of 'u8[1]' {aka 'unsigned char[1]'} [-Warray-bounds] 255 | *axis += ((xy_data[nbyte] >> bofs) << (nbyte * 8)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/input/touchscreen/cyttsp5.c:333:12: note: while referencing 'num_cur_tch' 333 | u8 num_cur_tch; | ^~~~~~~~~~~ vim +254 drivers/input/touchscreen/cyttsp5.c 248 249 static void cyttsp5_get_touch_axis(int *axis, int size, int max, u8 *xy_data, 250 int bofs) 251 { 252 int nbyte; 253 > 254 for (nbyte = 0, *axis = 0; nbyte < size; nbyte++) 255 *axis += ((xy_data[nbyte] >> bofs) << (nbyte * 8)); 256 257 *axis &= max - 1; 258 } 259 -- 0-DAY CI Kernel Test Service https://01.org/lkp