Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp396100rdb; Fri, 17 Nov 2023 01:47:40 -0800 (PST) X-Google-Smtp-Source: AGHT+IG6tqleWEKWJZzyc5R6ctHqTSIWpMILnDWAF+00UhvNiDxLtUJint61oAeIs/gYa1A7ekeS X-Received: by 2002:a05:6a00:1d10:b0:690:422f:4f17 with SMTP id a16-20020a056a001d1000b00690422f4f17mr21854018pfx.4.1700214459820; Fri, 17 Nov 2023 01:47:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700214459; cv=none; d=google.com; s=arc-20160816; b=lbPLCxUFiwZnOGo4PIFrQXUZe9e92JQwZHxDnAqI1DEfATnhXHxuwcm6aKJuVAwJyj 1/kriMDLBxrs96CzueBxsXYmQDAs510cgig1v3ViFAErVHZd/etdTpMt8qVJ4b9OAWD0 nMfSgJnatydwdnZ+bGhwfHiqcm/UTDTWaIagSgq8aClABeBfKJDfY/zG9DtJV513AZcn GBJSgP4P+VKjbLNFeZnQu6r6Oact9cQBLaLEq4O47feBjgofkB2Qq0d0a2CLBGPXioQU J4n9Yoka/8b1mL4kkXkunRT6tU+HvLVY/JflfLIppyUd9HwZne5DrhPxe/yRhpCTOIx/ qugQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-disposition :mime-version:message-id:subject:cc:to:from:date:dkim-signature; bh=H7ApWXqxkrjxYdJn+w5vYcMVn6elPo0r8wMe2bdophs=; fh=zfzyjrjzZJlkOww8z2AZobAHscGKHb6orgqVF5ZG120=; b=nwDjbD5iOLV+nXfgUG/xwEZ5lBtspD2rwop11S/b3cGx44cOgLHcuhxMFLMSTrEHpa DYCo7II+OvqD1kfZk3wCNntokW3f3pF+DrJa0HEo2hgBeOzs3eSbEUGuDkYlxNInsnH+ zWGGu7uToHE2w6N8frLvX+bo05FuQDVf0ATwSO4fxoDs9GOdaxcV1zucgys+ZuPHWPNc UqOR3TqwhYKJwkIB38sTMeCPMMrQ2Q1ROXS+DF5A3HWRyWSWHl5GYAG8KA5WGvSg17wp asunshziXBvXzJXDmUH72ANRCCFEMqfP1X477sHYcLQLK4O72RtxEACCptng4AFSDtcs cr8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=dHh1ABlI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id fh6-20020a056a00390600b006b1fb740866si1639773pfb.189.2023.11.17.01.47.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Nov 2023 01:47:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=dHh1ABlI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 5D5CF8290985; Fri, 17 Nov 2023 01:47:29 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345722AbjKQJrE (ORCPT + 99 others); Fri, 17 Nov 2023 04:47:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44244 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235768AbjKQJqk (ORCPT ); Fri, 17 Nov 2023 04:46:40 -0500 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.10]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E2F5235A4 for ; Fri, 17 Nov 2023 01:44:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1700214252; x=1731750252; h=date:from:to:cc:subject:message-id:mime-version: content-transfer-encoding; bh=3ufHONy2q+jfTAGtVGR7dO4HOaXhsEv262jrK440I9o=; b=dHh1ABlIqhOMqd8HCfNxa0N8/Wbbdi/BZmHs89p34Bz4nFq9it4PS0hC sr0VrFk0TpiB0HcIYXOk0nbj8MzglPcM/gfFDE0cCDGmvXVKvWVl9xAIk q0eSC8f4g5qc5tSp5uSDmxPbHcqNgXeOwVO8g3rExOf8JI4cV2237smUW 4N4IVj8vNjdmIT4fx2Nt4v7cIVrPv2LWgRrmpl+/e1tOPKvA5Kxv1UtwI TZUQRxP/o+SasVSHivvBnSd3Nuuc8OrXpfQ0NMOEKHW41g5Ak3dJZ3SgM OofSw4KW6S55QWv+Ta3bvJGk3/uWC9qraLPHcMnOBbtXkrvSKVOO0IDns Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10896"; a="4410165" X-IronPort-AV: E=Sophos;i="6.04,206,1695711600"; d="scan'208";a="4410165" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orvoesa102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Nov 2023 01:44:11 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10896"; a="889187883" X-IronPort-AV: E=Sophos;i="6.04,206,1695711600"; d="scan'208";a="889187883" Received: from lkp-server02.sh.intel.com (HELO b8de5498638e) ([10.239.97.151]) by orsmga004.jf.intel.com with ESMTP; 17 Nov 2023 01:44:09 -0800 Received: from kbuild by b8de5498638e with local (Exim 4.96) (envelope-from ) id 1r3vOO-0002Yg-1P; Fri, 17 Nov 2023 09:44:05 +0000 Date: Fri, 17 Nov 2023 17:43:11 +0800 From: kernel test robot To: =?iso-8859-1?B?QvZzevZybelueWkgWm9sdOFu?= Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, Dmitry Torokhov Subject: drivers/input/touchscreen/egalax_ts_serial.c:116:21: warning: '/input0' directive output may be truncated writing 7 bytes into a region of size between 1 and 32 Message-ID: <202311171716.uIQY5rT4-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Fri, 17 Nov 2023 01:47:29 -0800 (PST) Hi B?sz?rm?nyi, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 7475e51b87969e01a6812eac713a1c8310372e8a commit: 6b0f8f9c52efe24d6dac06ab963b7bd91c723751 Input: add eGalaxTouch serial touchscreen driver date: 8 years ago config: x86_64-buildonly-randconfig-001-20231012 (https://download.01.org/0day-ci/archive/20231117/202311171716.uIQY5rT4-lkp@intel.com/config) compiler: gcc-12 (Debian 12.2.0-14) 12.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231117/202311171716.uIQY5rT4-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/202311171716.uIQY5rT4-lkp@intel.com/ All warnings (new ones prefixed by >>): In file included from include/linux/kobject.h:21, from include/linux/module.h:17, from drivers/input/touchscreen/egalax_ts_serial.c:19: include/linux/sysfs.h: In function 'sysfs_get_dirent': include/linux/sysfs.h:517:44: warning: pointer targets in passing argument 2 of 'kernfs_find_and_get' differ in signedness [-Wpointer-sign] 517 | return kernfs_find_and_get(parent, name); | ^~~~ | | | const unsigned char * In file included from include/linux/sysfs.h:15: include/linux/kernfs.h:428:57: note: expected 'const char *' but argument is of type 'const unsigned char *' 428 | kernfs_find_and_get(struct kernfs_node *kn, const char *name) | ~~~~~~~~~~~~^~~~ drivers/input/touchscreen/egalax_ts_serial.c: In function 'egalax_connect': >> drivers/input/touchscreen/egalax_ts_serial.c:116:21: warning: '/input0' directive output may be truncated writing 7 bytes into a region of size between 1 and 32 [-Wformat-truncation=] 116 | "%s/input0", serio->phys); | ^~~~~~~ drivers/input/touchscreen/egalax_ts_serial.c:115:9: note: 'snprintf' output between 8 and 39 bytes into a destination of size 32 115 | snprintf(egalax->phys, sizeof(egalax->phys), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 116 | "%s/input0", serio->phys); | ~~~~~~~~~~~~~~~~~~~~~~~~~ vim +116 drivers/input/touchscreen/egalax_ts_serial.c 94 95 /* 96 * egalax_connect() is the routine that is called when someone adds a 97 * new serio device that supports egalax protocol and registers it as 98 * an input device. This is usually accomplished using inputattach. 99 */ 100 static int egalax_connect(struct serio *serio, struct serio_driver *drv) 101 { 102 struct egalax *egalax; 103 struct input_dev *input_dev; 104 int error; 105 106 egalax = kzalloc(sizeof(struct egalax), GFP_KERNEL); 107 input_dev = input_allocate_device(); 108 if (!egalax) { 109 error = -ENOMEM; 110 goto err_free_mem; 111 } 112 113 egalax->serio = serio; 114 egalax->input = input_dev; 115 snprintf(egalax->phys, sizeof(egalax->phys), > 116 "%s/input0", serio->phys); 117 118 input_dev->name = "EETI eGalaxTouch Serial TouchScreen"; 119 input_dev->phys = egalax->phys; 120 input_dev->id.bustype = BUS_RS232; 121 input_dev->id.vendor = SERIO_EGALAX; 122 input_dev->id.product = 0; 123 input_dev->id.version = 0x0001; 124 input_dev->dev.parent = &serio->dev; 125 126 input_set_capability(input_dev, EV_KEY, BTN_TOUCH); 127 input_set_abs_params(input_dev, ABS_X, 128 EGALAX_MIN_XC, EGALAX_MAX_XC, 0, 0); 129 input_set_abs_params(input_dev, ABS_Y, 130 EGALAX_MIN_YC, EGALAX_MAX_YC, 0, 0); 131 132 serio_set_drvdata(serio, egalax); 133 134 error = serio_open(serio, drv); 135 if (error) 136 goto err_reset_drvdata; 137 138 error = input_register_device(input_dev); 139 if (error) 140 goto err_close_serio; 141 142 return 0; 143 144 err_close_serio: 145 serio_close(serio); 146 err_reset_drvdata: 147 serio_set_drvdata(serio, NULL); 148 err_free_mem: 149 input_free_device(input_dev); 150 kfree(egalax); 151 return error; 152 } 153 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki