Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1439033rdb; Mon, 19 Feb 2024 16:22:22 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUnTXxPWiEEUhVKT6FdvlO6b9uMA91+3OXXg/evGrLxek3X5TJDA3kIksyL9MhmgiqphhzV6VeaY2PzITLJrCYZ93FJF8cFi3uul9y9bg== X-Google-Smtp-Source: AGHT+IEE+pjmX32PgJ1RYZvWmnpBJ/tiPY+dutnIktpgAWQb/LaaL5EvDhdvmtuQ63tgO0Ad3U58 X-Received: by 2002:a17:90a:2d8b:b0:299:147f:e915 with SMTP id p11-20020a17090a2d8b00b00299147fe915mr10919388pjd.9.1708388542619; Mon, 19 Feb 2024 16:22:22 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708388542; cv=pass; d=google.com; s=arc-20160816; b=NfN/XG4hQ0sQti9r2MMfEq9zIdD8qaDYr+PKDVBOJgVIyQ+v5wedtl9rp8iXNHBeFD o7dp+eu9noKdbptO1UBtLXdX8eWU/uJCgVayI8A1hLLp65Ko623FFXpp1uLNVHy3SA6H RTz6dQl6wePEemmcublWvMarioMHwPLvalbx18anyYfDCwWD/ynVKKKNgn/GAqfULEWV DN9qDQiHSwcAoL3CFcqyLwjPe9I2VI4inhaZVIKWNjEGiJUY+7RSQqkeUKWAHY7CqvJ+ rOg5MefAg4UMZkFXNiaNNA56gf4wlw0oX+2wB/cKoH1+CMfV4rjxSn3Yh8OuN8fx47xq OzCA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=Q8jsB2mZF7NK0dr35/tnUqHeDtXESnSSBjHuC32RXF8=; fh=eCXSGLzhJc+zFGEur/TvWayFtRXUoOtDL628IpXghnw=; b=QoZO6n7b3kMFoot15/KBc7Hl8DGjk7cAzDuMUOQDWK++uFzlW/gnGOk423KdOmI+3P XF7J3gNkIcxLItq6/+/G5R1Taj7yJsHNPvh68u10nXUU1Sp2Jcyhs6wmbeVHexYsMJS7 WkhV//Rw3vCGAIZ0FZ6T3HxEVkMm5Psr4V1RgC/KGvwIBnhSXaBXdBzbkhbl/ZtybTLj BYvbgUHBMXJK/V2l1syUbUmhHM/jz930k+f2CxRMBA5TrimxTJLg2I2+AzqiqA6zpSkx SKUBzFieJ71WAQHr5Bz8+3UYpP6kPQARXB/sx/0k2pSwDwXhF62N1ZvctqOWf25nKuaP VckQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=iDngcxln; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-72147-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-72147-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id lp12-20020a17090b4a8c00b002996498af88si4356649pjb.17.2024.02.19.16.22.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Feb 2024 16:22:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-72147-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=iDngcxln; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-72147-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-72147-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 673D4B22167 for ; Tue, 20 Feb 2024 00:22:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B961C17D5; Tue, 20 Feb 2024 00:21:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="iDngcxln" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C93D54A26; Tue, 20 Feb 2024 00:21:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.10 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708388512; cv=none; b=ZypuM9SdtKI3yqTrvsLsHRpjvMiXr/m4OGy8GZuUaLEXWPsTbBmBXIP9WkaRySycjv4Dg9GXA2j6dtgwQxM6nU1jLP5J06twbelesa1RPdQZH626gBagoDLc01gqORZsx04oYh5A7alpK8Dlvq2NZdYe/3oMKnSA71haJhVq0DE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708388512; c=relaxed/simple; bh=yWL9+crD7ozhyXtdUplwtrHE2vBN684Ax3/F37eopcU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=uTCBKScG0mG6snBwyuDXP5xz8lHQGVDqRZLsY02jCNBvAnCuL0qMhnMZHAVMYrVm8AUyPXP9StaQDSoGmVJnSf11w7Eah+FPOqzpwLA7LTuh4ma14OCGvcT0x/xBn5sRLzBwji8jeZCcsOowCuNHCMWyDK/cT7Ypk8rDbjRsei4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=iDngcxln; arc=none smtp.client-ip=192.198.163.10 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1708388511; x=1739924511; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=yWL9+crD7ozhyXtdUplwtrHE2vBN684Ax3/F37eopcU=; b=iDngcxlnvSgFvUUI4rzM3/XsvscI/XLG3L7O/PEdALdcRfezqVGlL2gM qdYr/i9v8ElsajKat9u3VDi3pjsPIQjbx6fm6itwM+CeoeiXuCVZ6n8Dg Tnm4LDdY5l5iA0PJwjenCjd/aPRLm7DNEmASU/deGCWLAYeLgvbAq+ZF2 J+MXOwkNIUmStgj5fkTuaKHI1yTBlSqFXYJvLgUMQ6USaLy6gPjl4y2At 4DQkjsfU8NhkZHVJ7LWIrclQyIumUkUZCrpZghflcY4Q3X2aYDS7tSIEb cDzqr3Yq3z9/DM8WT+Va3c6GVVFV879n4D52uDJZDl+Luqiul/rYRPxk4 A==; X-IronPort-AV: E=McAfee;i="6600,9927,10989"; a="13875035" X-IronPort-AV: E=Sophos;i="6.06,171,1705392000"; d="scan'208";a="13875035" Received: from orviesa008.jf.intel.com ([10.64.159.148]) by fmvoesa104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Feb 2024 16:21:50 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.06,171,1705392000"; d="scan'208";a="4996627" Received: from lkp-server02.sh.intel.com (HELO 3c78fa4d504c) ([10.239.97.151]) by orviesa008.jf.intel.com with ESMTP; 19 Feb 2024 16:21:45 -0800 Received: from kbuild by 3c78fa4d504c with local (Exim 4.96) (envelope-from ) id 1rcDtG-00049W-0k; Tue, 20 Feb 2024 00:21:42 +0000 Date: Tue, 20 Feb 2024 08:20:39 +0800 From: kernel test robot To: Kamel Bouhara , Dmitry Torokhov , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Henrik Rydberg , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Marco Felsch , Jeff LaBundy Cc: oe-kbuild-all@lists.linux.dev, catalin.popescu@leica-geosystems.com, mark.satterthwaite@touchnetix.com, Thomas Petazzoni , Gregory Clement , bsp-development.geo@leica-geosystems.com, Kamel Bouhara Subject: Re: [PATCH v8 3/3] Input: Add TouchNetix axiom i2c touchscreen driver Message-ID: <202402200849.ABf6sZnr-lkp@intel.com> References: <20240219101221.129750-4-kamel.bouhara@bootlin.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240219101221.129750-4-kamel.bouhara@bootlin.com> Hi Kamel, kernel test robot noticed the following build errors: [auto build test ERROR on dtor-input/next] [also build test ERROR on dtor-input/for-linus robh/for-next krzk-dt/for-next linus/master v6.8-rc5 next-20240219] [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/Kamel-Bouhara/dt-bindings-vendor-prefixes-Add-TouchNetix-AS/20240219-181550 base: https://git.kernel.org/pub/scm/linux/kernel/git/dtor/input.git next patch link: https://lore.kernel.org/r/20240219101221.129750-4-kamel.bouhara%40bootlin.com patch subject: [PATCH v8 3/3] Input: Add TouchNetix axiom i2c touchscreen driver config: i386-buildonly-randconfig-002-20240220 (https://download.01.org/0day-ci/archive/20240220/202402200849.ABf6sZnr-lkp@intel.com/config) compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240220/202402200849.ABf6sZnr-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202402200849.ABf6sZnr-lkp@intel.com/ All errors (new ones prefixed by >>): In file included from include/linux/device.h:15:0, from drivers/input/touchscreen/touchnetix_axiom.c:17: drivers/input/touchscreen/touchnetix_axiom.c: In function 'axiom_process_u41_report_target': >> drivers/input/touchscreen/touchnetix_axiom.c:332:18: error: 'slot' undeclared (first use in this function); did you mean 'sget'? target->index, slot, target->present, ^ include/linux/dev_printk.h:129:34: note: in definition of macro 'dev_printk' _dev_printk(level, dev, fmt, ##__VA_ARGS__); \ ^~~~~~~~~~~ drivers/input/touchscreen/touchnetix_axiom.c:331:2: note: in expansion of macro 'dev_dbg' dev_dbg(ts->dev, "U41 Target T%u, slot:%u present:%u, x:%u, y:%u, z:%d\n", ^~~~~~~ drivers/input/touchscreen/touchnetix_axiom.c:332:18: note: each undeclared identifier is reported only once for each function it appears in target->index, slot, target->present, ^ include/linux/dev_printk.h:129:34: note: in definition of macro 'dev_printk' _dev_printk(level, dev, fmt, ##__VA_ARGS__); \ ^~~~~~~~~~~ drivers/input/touchscreen/touchnetix_axiom.c:331:2: note: in expansion of macro 'dev_dbg' dev_dbg(ts->dev, "U41 Target T%u, slot:%u present:%u, x:%u, y:%u, z:%d\n", ^~~~~~~ vim +332 drivers/input/touchscreen/touchnetix_axiom.c 289 290 /* 291 * Support function to axiom_process_u41_report. 292 * Generates input-subsystem events for every target. 293 * After calling this function the caller shall issue 294 * a Sync to the input sub-system. 295 */ 296 static bool axiom_process_u41_report_target(struct axiom_data *ts, 297 struct axiom_target_report *target) 298 { 299 struct input_dev *input_dev = ts->input_dev; 300 struct axiom_u41_target *target_prev_state; 301 enum axiom_target_state current_state; 302 int id; 303 304 /* Verify the target index */ 305 if (target->index >= AXIOM_U41_MAX_TARGETS) { 306 dev_err(ts->dev, "Invalid target index! %u\n", target->index); 307 return false; 308 } 309 310 target_prev_state = &ts->targets[target->index]; 311 312 current_state = AXIOM_TARGET_STATE_NOT_PRESENT; 313 314 if (target->present) { 315 if (target->z >= 0) 316 current_state = AXIOM_TARGET_STATE_TOUCHING; 317 else if (target->z > AXIOM_PROX_LEVEL && target->z < 0) 318 current_state = AXIOM_TARGET_STATE_HOVER; 319 else if (target->z == AXIOM_PROX_LEVEL) 320 current_state = AXIOM_TARGET_STATE_PROX; 321 } 322 323 if (target_prev_state->state == current_state && 324 target_prev_state->x == target->x && 325 target_prev_state->y == target->y && 326 target_prev_state->z == target->z) 327 return false; 328 329 id = target->index; 330 331 dev_dbg(ts->dev, "U41 Target T%u, slot:%u present:%u, x:%u, y:%u, z:%d\n", > 332 target->index, slot, target->present, 333 target->x, target->y, target->z); 334 335 switch (current_state) { 336 case AXIOM_TARGET_STATE_NOT_PRESENT: 337 case AXIOM_TARGET_STATE_PROX: 338 if (!target_prev_state->insert) 339 break; 340 target_prev_state->insert = false; 341 342 if (!id) 343 input_report_key(input_dev, BTN_TOUCH, 0); 344 345 input_mt_report_slot_inactive(input_dev); 346 /* 347 * make sure the previous coordinates are 348 * all off screen when the finger comes back 349 */ 350 target->x = 65535; 351 target->y = 65535; 352 target->z = AXIOM_PROX_LEVEL; 353 break; 354 case AXIOM_TARGET_STATE_HOVER: 355 case AXIOM_TARGET_STATE_TOUCHING: 356 target_prev_state->insert = true; 357 input_report_abs(input_dev, ABS_MT_TRACKING_ID, id); 358 input_report_abs(input_dev, ABS_MT_POSITION_X, target->x); 359 input_report_abs(input_dev, ABS_MT_POSITION_Y, target->y); 360 361 if (current_state == AXIOM_TARGET_STATE_TOUCHING) { 362 input_report_abs(input_dev, ABS_MT_DISTANCE, 0); 363 input_report_abs(input_dev, ABS_DISTANCE, 0); 364 input_report_abs(input_dev, ABS_MT_PRESSURE, target->z); 365 input_report_abs(input_dev, ABS_PRESSURE, target->z); 366 } else { 367 input_report_abs(input_dev, ABS_MT_DISTANCE, -target->z); 368 input_report_abs(input_dev, ABS_DISTANCE, -target->z); 369 input_report_abs(input_dev, ABS_MT_PRESSURE, 0); 370 input_report_abs(input_dev, ABS_PRESSURE, 0); 371 } 372 373 if (!id) 374 input_report_key(input_dev, BTN_TOUCH, (current_state == 375 AXIOM_TARGET_STATE_TOUCHING)); 376 break; 377 default: 378 break; 379 } 380 381 target_prev_state->state = current_state; 382 target_prev_state->x = target->x; 383 target_prev_state->y = target->y; 384 target_prev_state->z = target->z; 385 386 return true; 387 } 388 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki