Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp2024455rdb; Sat, 2 Dec 2023 22:08:09 -0800 (PST) X-Google-Smtp-Source: AGHT+IEMUae2kuWnW6qOyLfk0uSl8l34cbg6XNLwSdiyuvKlrs6FwJ2OOQ15kOLoVdDdbbmqnEmc X-Received: by 2002:a05:6808:4cb:b0:3b8:b7a7:1ce4 with SMTP id a11-20020a05680804cb00b003b8b7a71ce4mr681610oie.42.1701583688938; Sat, 02 Dec 2023 22:08:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701583688; cv=none; d=google.com; s=arc-20160816; b=WXDKtaFNWOfk1wDttSUb1JcQS6hJCFR4jyEyGOb5gaLTaPA2GnHzzt+7/aqpxBwp9e mHQpB0sRZbmI7jqRi2NSOokCUvHCf4yoOLVpKyjKg3YGMGJT8A1474eaN/ZyAwlmI0Sa vaIWmyLSlWl3amaz5tiuXDUGloBvxFAKZozBEKw5EWyyYamIhg7CjfWCVcgoWpMCd9pS wZaaEMo8dcGxkz+rSxHtJOZ9fsTjOyczm8pYn3AaqFKupsXfpcfFiyAX6EAq1SCzt70f HXPxvxo+Y6m86Ka72oMPLnz8gwlMwZPHHOSBL5J/aBkb0iJaxKU2xS88RwiIXHaS/pjB RiOw== 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=zKOCVrk4w7B0IUKVaMbR++ePOz5/f0VQj68RKPkko5I=; fh=zfzyjrjzZJlkOww8z2AZobAHscGKHb6orgqVF5ZG120=; b=zT9CatOeiLi0pD1Mw7B3npfOHDGKntqGdg5teBTg3hLHBuZgwJrRVDp0034pcbrIHu n9Fyg0fuOJcx0MZZQAQXD9Wm344/ECuIKmxQlf2RyMOSXinHZ+qUK0H6UMsZiEjquabW 4OuZ5dJ7iCdsDDGH+a3DLOGnz74Gksf7A2QAFAzJ9HmJ09qiMBjx5vd6L1ZsdZrjJVe5 eRJw7rZ/MpRnfjvMNvMF9i5VdTghDzinKEsNYt4SfhvZXuC6H5d3ScrF+MR0gZC8/tz2 67EEmrOJ90eJxmbAe0e41QjVgwgalayAG0Y9u2Gg3OJ88rIogNNpgnwswweZ80GTJBA3 tvFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=LSFJQf1K; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id h10-20020a056a00218a00b006cdf584699fsi4930519pfi.336.2023.12.02.22.08.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 02 Dec 2023 22:08:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=LSFJQf1K; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (Postfix) with ESMTP id 09AE08068851; Sat, 2 Dec 2023 22:08:08 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233141AbjLCGHs (ORCPT + 99 others); Sun, 3 Dec 2023 01:07:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52130 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232973AbjLCGHm (ORCPT ); Sun, 3 Dec 2023 01:07:42 -0500 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 92C9C107 for ; Sat, 2 Dec 2023 22:07:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1701583668; x=1733119668; h=date:from:to:cc:subject:message-id:mime-version: content-transfer-encoding; bh=hAnifYstPsZ4fTMFdYWigXDFIFhd02KTYYDx3BLUEN4=; b=LSFJQf1KidoE9L2r7mtX7VJ8pDhozu6G4cyqy1hwhREXJ7VPoXVpOXNH /txiZMYf5o2UMk9zgVcQEM5TL9N6XEcQwizHnCcrXDnrudX+3bKvJ+zy1 SLN1DD42oIbIHktkJpi7YdON45CGf/eucHADNRtGTbZWVg1wKHk8IXbEt GzoLZsyo2weuMt4QY72Ib4lkvl8lkKEpzCE66qA/Zkm4K2yLODRv5VdXg Yg5iJWYeCoxi79dDsrPN31dylFaWzr/1FAfRsEcB6Zq3V79hGCLgtKJk0 KXNs7ahzdKsGIEMlmxpc1q9/Ssp3JOM9f2422TobwK2AQaQ45RTOwIN+z w==; X-IronPort-AV: E=McAfee;i="6600,9927,10912"; a="373049290" X-IronPort-AV: E=Sophos;i="6.04,246,1695711600"; d="scan'208";a="373049290" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Dec 2023 22:07:45 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10912"; a="770187876" X-IronPort-AV: E=Sophos;i="6.04,246,1695711600"; d="scan'208";a="770187876" Received: from lkp-server02.sh.intel.com (HELO b07ab15da5fe) ([10.239.97.151]) by orsmga002.jf.intel.com with ESMTP; 02 Dec 2023 22:07:43 -0800 Received: from kbuild by b07ab15da5fe with local (Exim 4.96) (envelope-from ) id 1r9fdk-0006I4-2o; Sun, 03 Dec 2023 06:07:40 +0000 Date: Sun, 3 Dec 2023 14:07:07 +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: <202312021646.cwwvptuB-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=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Sat, 02 Dec 2023 22:08:08 -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: 815fb87b753055df2d9e50f6cd80eb10235fe3e9 commit: 6b0f8f9c52efe24d6dac06ab963b7bd91c723751 Input: add eGalaxTouch serial touchscreen driver date: 8 years ago config: x86_64-randconfig-r032-20230515 (https://download.01.org/0day-ci/archive/20231202/202312021646.cwwvptuB-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/20231202/202312021646.cwwvptuB-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/202312021646.cwwvptuB-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