Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp305931rwb; Tue, 13 Dec 2022 18:02:25 -0800 (PST) X-Google-Smtp-Source: AA0mqf6gEMREas33sn7SXqOG19rgLsIZb2SkLjO6wCqy6eUnjA+H+RIJmn2FjnpnwZOWf7mgBVQC X-Received: by 2002:a17:907:7d88:b0:78d:f456:1eb1 with SMTP id oz8-20020a1709077d8800b0078df4561eb1mr23330487ejc.2.1670983345381; Tue, 13 Dec 2022 18:02:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670983345; cv=none; d=google.com; s=arc-20160816; b=U5lCIAcWJxwXQ1vAeUIFZrBXcRYAsTR4LiUxw4g42wx7gFVr5AuD+n68x4SU6agr1d Yr8HJm70hdWxIXr3ZJLgG/3SR6hw+2pGNaJk2NepFN2QYHuItys6BfZgpsuo8G3VvRps 5SdmlkcDU0Y70Hcnupg2N89pxxfl5nd2RsdNk6q5SZo2t9qiW37+x/3vs9J+xBPil431 FMbl7Rh1+/pGCMq3UxDX8pwYoUGMIWNPlFpJGiThaAkwDYjLTUnrXFMJ8aok4DuaTNuN bUV7AUGUaVjXkshE/DYft1fj6MTIwMR1Q3KCybP3QxZEs44aa+uGHmYq3JPq5xUeU8e4 j9/A== 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=xExdyQDhYTgV1IdxIuGP7o71ehB3CFKVoLy9PDmyibI=; b=D1ZUXyqlKum/IZBzvIx3Bv94YzTa0g5TScRlPDZJUhcxPUXRR0ybJfbfm798twYObb nmziUfROz2nOFSSBoSwhjN1Us9F41W75bYAULY363PVYGcWn0F5SsgIz7BnLzmBqRH1/ 8T+LJCZluGaLJalnDVIzkBL1r+V8v91qCrNWPBiNvcesnaV9+WxhIw0KMe9tSyaD2P0z Y3XOSOXmeEml04ro9ia1hXKKxUGuydg/586601ASL1IBeLIh9EBT3akHcJweEMaTI+Yd jv5sEk01svRn2Y/AwEYloqFsFDMil0zrtNsxCP+OkkB9rdrZwygVeurUeoQB/1Cs2p6T hCuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=CpQZevHL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dr14-20020a170907720e00b007c09bc6a8bfsi9664780ejc.250.2022.12.13.18.02.08; Tue, 13 Dec 2022 18:02:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=CpQZevHL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S236967AbiLNBtN (ORCPT + 73 others); Tue, 13 Dec 2022 20:49:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55160 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236960AbiLNBtL (ORCPT ); Tue, 13 Dec 2022 20:49:11 -0500 Received: from mail-yb1-xb2b.google.com (mail-yb1-xb2b.google.com [IPv6:2607:f8b0:4864:20::b2b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 02A1E2250D; Tue, 13 Dec 2022 17:49:11 -0800 (PST) Received: by mail-yb1-xb2b.google.com with SMTP id j206so19875950ybj.1; Tue, 13 Dec 2022 17:49:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=xExdyQDhYTgV1IdxIuGP7o71ehB3CFKVoLy9PDmyibI=; b=CpQZevHLxrKv/1hgs+V2M6cSkSoV06F4lrYnaOXQP0TPCfiOv3a3XN/FUVsGLczONc Xoat0JVF6aWTnCtcoy0u8DaFnXLbOjr0GHowLyZMrkgrzMTSZuQb7jBkg29up3JFdnwb z1xpRhcvLh6rCbteub8Jcjve+YrOKZGEMD7u0Lze3jmBJXrFTkMX5NNiAeXpg7USuUsU H40QWeWHAWUskJKHXI/uEl0ZGO7h/DpvUk2CvRbW29DwT9GxFM07swURLZpZdI4fbjpV Hlq89BIEjgQzeMI9bDbAYiB6D/gX0qGIS3aqm628+LMHVQ3l5rrxI4O+dCFluPi5Hu0T Q+Rg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=xExdyQDhYTgV1IdxIuGP7o71ehB3CFKVoLy9PDmyibI=; b=cwuv0Nf/p/uJONpAcA45/3uH2+4a4TdlD8rz9leCiXuDfghCFEsIGb5nyS4JbHdYQi 4PVR5mQOk139lRT32JBbalVg1+HLd39qRkhD41Vv555po3LmmHO4SqqF0VcNucD+rKcD 3A+bbCHJiUoyMhmPUVhNuVtOKLYX5YeV2Qi6JzF2kUxyTx6MD3Dz5GawvhHCCBVUs68p tRUkTrLbKtF1lLH9o2CJHCSvQCOGuVmHqafVNKarOV1khHlcUqAIT47rxYNvXFTaxjNr 3UIX2//xwkoCgszNhRX8ULeGsRJckejfIa4SKOgACY0d5scfTqQ7+Ki9bL2mV4fOpCbZ qiGw== X-Gm-Message-State: ANoB5pm/sC5m0EP5Vq/1/90W1qRzAMXFphxWitQh68p4etb8kb5C0Ic7 nAOcBt1O3u0q3SQy6DMeMBtAUM3n49CkM78R/LrYtuBh X-Received: by 2002:a25:6b4e:0:b0:6f9:91bd:c5de with SMTP id o14-20020a256b4e000000b006f991bdc5demr41309865ybm.497.1670982550268; Tue, 13 Dec 2022 17:49:10 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Max Filippov Date: Tue, 13 Dec 2022 17:48:59 -0800 Message-ID: Subject: Re: [PATCH] arch: change variable types to match those of what is assigned to them To: Seija Kijin Cc: sstabellini@kernel.org, tsbogend@alpha.franken.de, chris@zankel.net, linux-kernel@vger.kernel.org, xen-devel@lists.xenproject.org, linux-arm-kernel@lists.infradead.org, linux-mips@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=0.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, FROM_LOCAL_NOVOWEL,HK_RANDOM_ENVFROM,HK_RANDOM_FROM,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=no 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 Hi Seija, On Tue, Dec 13, 2022 at 4:51 PM Seija Kijin wrote: > > There are many places where "int len = strlen(foo);" is written, just for len to be passed as a parameter of size_t. [...] > diff --git a/arch/xtensa/platforms/iss/console.c b/arch/xtensa/platforms/iss/console.c > index 10b79d3c74e0..3159917ffd2f 100644 > --- a/arch/xtensa/platforms/iss/console.c > +++ b/arch/xtensa/platforms/iss/console.c > @@ -64,7 +64,7 @@ static int rs_write(struct tty_struct * tty, > static void rs_poll(struct timer_list *unused) > { > struct tty_port *port = &serial_port; > - int i = 0; > + size_t i = 0; This is not what happens here at all. -- Thanks. -- Max