Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1320893pxb; Thu, 16 Sep 2021 05:09:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJypzW4f4fjfKet2IPpXUiESlUlEbKcL3Zo2Jatnt3CtiXIOXSedvQyouqrgiMFKuEfrEVDQ X-Received: by 2002:a6b:fd1a:: with SMTP id c26mr3960072ioi.57.1631794139701; Thu, 16 Sep 2021 05:08:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631794139; cv=none; d=google.com; s=arc-20160816; b=UHkFqRCwgw0svuwvPyadxgfoTvmIgyyhjmMFrfLrWny+9VOsz5d02PltbHABKu4cwD RkI7ILRULjfutXJCzi+Fw/wnch5Lvg+k40CHVGf+DZB/kh1TcLZpc7+kkeCV0OZR7JSk yiZbEg7bQP5y7zeopA0GOggHOBW1dbP8a4f8ne86355YJGD7TOrXUi2CQuPOElOwQogI zuoacXab8c+QxPn+Hu0ZPnWrX5m1/YP6dgHxRWF/1VGVDJyaXqEiLiiMkdRKRRm60Jng ZU2LOoqzIuukeaR5woDLeI7rOkgo3GWK4w+iBerkckGAZb17Rf4w/pZY98IrW01Onxrm UbUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=gx8WrC9z8YFXZyGyok96l3Xw1N/IRmVwR+qMVh5xouk=; b=AJRFgYK/UYphOb09pw+yZK47c+3QQrsZxXSi/XwuvRuDtHgBdf8l/UkFXUuUAZyjdr EjLKY9tYZ9ndZhqykWWHeVOl5oHpK5gZuNpQc8Kicpg7E2YZBNqmAHcLtljq0YaFOXl1 7XTZ6qTxFqpPA2k9CDYc+dJITPFdc6xQH/iZlOl56OflSVpS222PufpWslrxz4KQT1sq rBnDIJT+XWa87bmIpMz0E1gZIAW6Qdv4NDL7Zfg0n5I5rN6/AWoWB2psI5ah2XgS642A hWvrG1qGWiT7+6cvpE3a1SvUL12vFheD2XjP/1B/vHBaEwimzY9R/yBx/4TCNHUQLI+Z OgoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=FQDWahQI; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c18si2612233ioz.59.2021.09.16.05.08.47; Thu, 16 Sep 2021 05:08:59 -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; dkim=pass header.i=@gmail.com header.s=20210112 header.b=FQDWahQI; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239145AbhIPMJ0 (ORCPT + 99 others); Thu, 16 Sep 2021 08:09:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43204 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239086AbhIPMJZ (ORCPT ); Thu, 16 Sep 2021 08:09:25 -0400 Received: from mail-lf1-x12e.google.com (mail-lf1-x12e.google.com [IPv6:2a00:1450:4864:20::12e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E1744C061574; Thu, 16 Sep 2021 05:08:04 -0700 (PDT) Received: by mail-lf1-x12e.google.com with SMTP id b18so16356032lfb.1; Thu, 16 Sep 2021 05:08:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=gx8WrC9z8YFXZyGyok96l3Xw1N/IRmVwR+qMVh5xouk=; b=FQDWahQIHHuYSdvwp4TKH+JtAF1A/8UKyPcxRirlEcUChUwKA0XTiaGKPp+KrnplQP Las8ouxa/5+QsVVc3a+DNhQOUVqdsItyldRl5cuWMHkCPBs50WSXXIeMAm7i9jxZNb1o nD28qS7H+RGBmKPL64kNioSzm8Z7FtF6YGeZx8ybyIDe7qC6hFgMWAoRXxNJp8By1W3G shReY+JVw3jWJYDEemyWtGG4vUi+cT4PpSp81KXzA+P5JultXmwJ5HKfnl3kfvbpmK1z CVGeTPNpkuuAxdrzz2iezm0h4dmtCwFL8s+kSEAqEzTJOdJR2CbAFASTm8NIXrtp/VkO R0Wg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=gx8WrC9z8YFXZyGyok96l3Xw1N/IRmVwR+qMVh5xouk=; b=jeEL8umu04lNhw3wgwQQzUGKvIvdkReB17vFNc+lHKgPGIWyUjKlRrzlbnGunVVog2 L+1Z9ClVv49inUs8qAkl+9fjeGWwcqSMRQA2Ty3M2zshGmSVx2nVDAOn8tXaf6J+Nrhu WaFFAcinV3inT4SB2kFdHb2VXNdYOkqkup2BU26sbhU3n5ZdFFQLp0wtlb5WNj6DoW8J JqZsXWGqy9EBMg02RJd1tgYveimbWMZf4gNbBHrDnT0ibYUwF8IrGSn/r9YEHO78smnO ndFbOv/ljyRaBailoU4wD9M53yEcdwkhimgxTml2ZCk8B0Ce/m1nK8PZMuGzeNYBCbH5 lb9A== X-Gm-Message-State: AOAM531AZM25Vi3iIjTMZSQbf86icYL0+60tyIhzS9nns0H9hFidflMu KvHtCgsqpi+dSzPNG4A4FH6K90jdJywjFSUW5dkPmLznRDS5iA== X-Received: by 2002:a19:500e:: with SMTP id e14mr3785791lfb.673.1631794078566; Thu, 16 Sep 2021 05:07:58 -0700 (PDT) MIME-Version: 1.0 References: <20210916115212.24246-1-wangxiang@cdjrlc.com> In-Reply-To: <20210916115212.24246-1-wangxiang@cdjrlc.com> From: Bongsu Jeon Date: Thu, 16 Sep 2021 21:07:47 +0900 Message-ID: Subject: Re: [PATCH v2] selftests: nci: replace unsigned int with int To: Xiang wangx Cc: Bongsu Jeon , shuah@kernel.org, netdev@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org I asked you two things. Please check them below. On Thu, Sep 16, 2021 at 8:54 PM Xiang wangx wrote: > > Should not use comparison of unsigned expressions < 0 Please put '.' at the end of the log and add the changelog. For example => Should not use comparison of unsigned expressions < 0. > > Signed-off-by: Xiang wangx > --- Please add the change log here. For example => Changes since v1 * Change commit log > tools/testing/selftests/nci/nci_dev.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/tools/testing/selftests/nci/nci_dev.c b/tools/testing/selftests/nci/nci_dev.c > index e1bf55dabdf6..162c41e9bcae 100644 > --- a/tools/testing/selftests/nci/nci_dev.c > +++ b/tools/testing/selftests/nci/nci_dev.c > @@ -746,7 +746,7 @@ int read_write_nci_cmd(int nfc_sock, int virtual_fd, const __u8 *cmd, __u32 cmd_ > const __u8 *rsp, __u32 rsp_len) > { > char buf[256]; > - unsigned int len; > + int len; > > send(nfc_sock, &cmd[3], cmd_len - 3, 0); > len = read(virtual_fd, buf, cmd_len); > -- > 2.20.1 >