Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp176988pxj; Fri, 7 May 2021 06:26:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz46Jx5lY2eD0kluBjXSeGMFOinrKxt4/54w8DNJeTI8DEl7k4qcdSDdgmVn3ak52Sct4fQ X-Received: by 2002:a17:90a:6c43:: with SMTP id x61mr6989806pjj.124.1620394008038; Fri, 07 May 2021 06:26:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620394008; cv=none; d=google.com; s=arc-20160816; b=z9bx5OZkBu8SRm8FOJ95C9adP2NL8xj+d4wkVeKJ0AnSqAitby5xgn5dx2euwtjo1y pGDXJM/f2/kr/gYqQ8EP0AdrLjdeefpDnsfClD2CkysDrDZ7Jed12hWPhDPOxfJsk/bx CgAbumwymV8LEfJkNZv5ijKPFB0RsjpsrE9nBRkeZ1sPU6AK3YonO8Oo2x7Of8qBpx4Q y64Gbv02WQyK1KZmiN6S5b0S38RRBouTv189AnmfPCD4NTGpzRcUKg/wwQuOevYe7zSY RY0ZKaT4nxCWKKTjWYJYc03NZ56wg0RvvSL/lixIFtvuWWMpr5/OpOXPU4MTZXtfpqd+ w2SA== 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-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:ironport-sdr:ironport-sdr; bh=a2k4ypEGHXoqtdh9QxOcGFnr75bgaFTh+VANu30TjMk=; b=ODfS/r7apzWBbj7P1OpaJfLn56asVkYP0xOS128MOlFjoYRKVsTmjdSLS4ymp4r1Lq 00GFijYePT9nnULY0X0OglX27Y6Y59F49iG/BsVh0nAcpZeSON7VKGojYbSz636U25Ji pifiLNzxn8gZ5E1nvLwIRUiJbDAv3+2CrAsdzS88TYILopVDBdkvVCApaRBSHUakC0O0 sKt3sGQTkrcoGQQH4QD65pLlAdvLaqud3rMdhGpsnxYi5lhUKFk8Z4aWcMpCSK7+quOJ XiS/FxYGY/RMmlpGUyHnc+LHewOGAuK8DkjH+0qhEvmp0tIq9io//FV1Owp+/j3iB+Ob goAA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b9si6007539pft.249.2021.05.07.06.26.35; Fri, 07 May 2021 06:26:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235036AbhEGKCD (ORCPT + 99 others); Fri, 7 May 2021 06:02:03 -0400 Received: from mga05.intel.com ([192.55.52.43]:50644 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235011AbhEGKB6 (ORCPT ); Fri, 7 May 2021 06:01:58 -0400 IronPort-SDR: itHZCvST8MRFl0ZVGLUqXUZ+RsEVGL1Vs8AzCyfq5bUOoDGcmb/DBEEATlkEyYSnEWCf/sdbUK dBoctC3RggRA== X-IronPort-AV: E=McAfee;i="6200,9189,9976"; a="284149542" X-IronPort-AV: E=Sophos;i="5.82,280,1613462400"; d="scan'208";a="284149542" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 May 2021 03:00:35 -0700 IronPort-SDR: 9kBkUl057/ytEEtNK/DAOum5ocXAtvMl75Bdv6DEOzUX57tQJ6cTWyVEfNyz0xxTD6UtKA0wvW i/BfZ+W1A5rw== X-IronPort-AV: E=Sophos;i="5.82,280,1613462400"; d="scan'208";a="434842685" Received: from rongch2-mobl.ccr.corp.intel.com (HELO [10.249.175.201]) ([10.249.175.201]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 May 2021 03:00:33 -0700 Subject: Re: [kbuild-all] Re: drivers/hid/hid-ft260.c:794:44: warning: format specifies type 'short' but the argument has type 'int' To: Michael Zaidman , kernel test robot Cc: kbuild-all@lists.01.org, clang-built-linux@googlegroups.com, linux-kernel@vger.kernel.org, Jiri Kosina , Jiri Kosina , Dan Carpenter References: <202105060637.LeEC6ztp-lkp@intel.com> <20210506115546.GA1745@michael-VirtualBox> From: "Chen, Rong A" Message-ID: <0102b8fe-3edf-3d4f-2622-d1fefb36274f@intel.com> Date: Fri, 7 May 2021 18:00:31 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 MIME-Version: 1.0 In-Reply-To: <20210506115546.GA1745@michael-VirtualBox> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/6/2021 7:55 PM, Michael Zaidman wrote: > On Thu, May 06, 2021 at 06:47:46AM +0800, kernel test robot wrote: >> >> drivers/hid/hid-ft260.c:515:59: warning: variable 'len' is uninitialized when used here [-Wuninitialized] >> hid_err(hdev, "%s: unsupported wr len: %d\n", __func__, len); >> ^~~ >> include/linux/hid.h:1190:30: note: expanded from macro 'hid_err' >> dev_err(&(hid)->dev, fmt, ##__VA_ARGS__) >> ^~~~~~~~~~~ >> include/linux/dev_printk.h:112:32: note: expanded from macro 'dev_err' >> _dev_err(dev, dev_fmt(fmt), ##__VA_ARGS__) >> ^~~~~~~~~~~ >> drivers/hid/hid-ft260.c:507:9: note: initialize the variable 'len' to silence this warning >> int len, ret; >> ^ >> = 0 > > This warning has already been found and fixed by Dan Carpenter in > the "HID: ft260: fix an error message in ft260_i2c_write_read()" commit > on March 18, 2021. Hi Michael, This report is about the below warning prefixed by '>>', it's still in mainline: >> drivers/hid/hid-ft260.c:794:44: warning: format specifies type 'short' but the argument has type 'int' [-Wformat] return scnprintf(buf, PAGE_SIZE, "%hi\n", le16_to_cpu(*field)); ~~~ ^~~~~~~~~~~~~~~~~~~ %i Best Regards, Rong Chen