Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp8753246rwb; Tue, 13 Dec 2022 10:00:48 -0800 (PST) X-Google-Smtp-Source: AA0mqf5+I1xnpZdHoAK65FvbSbYy8MJpIxcNkSww26uGiB1ej1uHdKWA8MIWa0dMMWmcoS3W6qXW X-Received: by 2002:aa7:cb81:0:b0:467:86c7:c4a8 with SMTP id r1-20020aa7cb81000000b0046786c7c4a8mr16194505edt.41.1670954448152; Tue, 13 Dec 2022 10:00:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670954448; cv=none; d=google.com; s=arc-20160816; b=pXhCYk47GehOvwtXU2xOcY7m7/SWiIN66lNevrGNsmuHRfYyB7ieMZa6MrHACkY9iO OC4c5NaW9FE4ixJ9ozBuc9emHCEnI5jjc8+jdZluAChfxXXHQdrRUxGOE61O5DJo/WJQ OvMLpbvzoVge33F+RniOkJ7qfyaGTEiRI5ktTKIjHKly/9FQbqa4KdIXagmXTbzDK5YU IdnfTrkWp9g1MFqEYD0yEht4gUm5cU7YjQoPJiL+27bDyxji8kw1NPYUvzqegcUB6L7Q PtDCJcEvtvnEa5JgK01s1DFD8mYY1A/1ovOroTg+kkfPG5i0cYQuVOSuT7gVCNCEzPca GPIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=j0UALbMgWQAz5SBhNk+ZMMQCCxLWBTsG/ugs2SigX6o=; b=jd2OTq1x5iB0N9d/LXhR6x8rH8K02zcFf2DzcGUTsoRFWSzQ6Sa2eWuiQlGwLgzHBw 9MJVDIJbQvm86BUgi9rA7stJiv0/jELv0xcI79uvlxGTKuizdkYGY+1+tzdh5xAMcTRf e23T45Y/jLqg1X/3vcYwpDLEdST8TGoiNq0p2c5vHJ7ABBh6RspJsybDdP7kxwe0Qp3X 21Fjqc2qmgSB/Eu5cESeJu5Q/Ro/qF8p+Hrsq9uaIx5ijI0zHHZrE9FlAFp555aOfyFt HgTw9Wi+SnyKAoO2FdUqi/SBojQE5+saXqQfygMqB4kW7Eg33Jn3DC462yfRF9UsU5cZ lYsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=vCmNDThn; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i5-20020a508705000000b0046dbb06d8b3si9104847edb.65.2022.12.13.10.00.30; Tue, 13 Dec 2022 10:00:48 -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=@infradead.org header.s=bombadil.20210309 header.b=vCmNDThn; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236094AbiLMRlB (ORCPT + 72 others); Tue, 13 Dec 2022 12:41:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55076 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236031AbiLMRkx (ORCPT ); Tue, 13 Dec 2022 12:40:53 -0500 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4CA1923178; Tue, 13 Dec 2022 09:40:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date: Message-ID:Sender:Reply-To:Content-ID:Content-Description; bh=j0UALbMgWQAz5SBhNk+ZMMQCCxLWBTsG/ugs2SigX6o=; b=vCmNDThnkvzF3Biq7JJkRv7Xcg aTFh6YkGjF35i1JLHTPvsrfPImXzCU7eOVVkI/ZQoHnryV9KObeBeF/Eco9A0EFzhx2sVqgfHikFN GFL8t6pu9lATlmlSrs1lodMlJxNjllhEH1o0R8Rky9dSL3CmoJTck11v2E+9/bZ8UmsissbqOmLhz IBbnVgBSTY6DLUII/lQ0zgx9PzhtML+pHEAH44iirFg7apYqSOtWv/rjVdw6/HhOHvJ3XTm0Eg1Yy 6woAwfosCYydMeZ+y+A3knS3QIhyABCHUz1pXK/XMm0fVUtjihuxzZ5VANIsdS+ws3rdyMZ9hJoqR 1jbBmqIA==; Received: from [2601:1c2:d80:3110::a2e7] by bombadil.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1p59Gm-003nu3-Vf; Tue, 13 Dec 2022 17:40:45 +0000 Message-ID: <33fd0ddb-c2dc-c403-a742-bac32d24825c@infradead.org> Date: Tue, 13 Dec 2022 09:40:44 -0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.1 Subject: Re: [PATCH] arch: change variable types to match those of what is assigned to them Content-Language: en-US To: "Seija K." , Stefano Stabellini , Thomas Bogendoerfer , Chris Zankel , Max Filippov Cc: linux-kernel@vger.kernel.org, xen-devel@lists.xenproject.org, linux-arm-kernel@lists.infradead.org, linux-mips@vger.kernel.org References: From: Randy Dunlap In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE 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 Hi, Please look at https://lore.kernel.org/lkml/CAA42iKx2f2LsAQ9C5rxnCTPhOB6n+L35Winc5WK1K2EySAjvXA@mail.gmail.com/T/#u and see if that matches what you thought you sent as a patch. The gmail web interface is notorious for dropping tabs in emails. On 12/13/22 09:35, Seija K. wrote: > There are many places where "int len = strlen(foo);" is written, just > for len to be passed as a parameter of size_t. This causes truncation > and then expansion back from int to size_t. Not to mention this is > poor logic and needless truncations can add extra unneeded > instructions. > > This patch aims to fix the worst offenders. > > Signed-off-by: Seija Kijin > --- > arch/arm/mm/mmu.c | 30 +++++++++++++------------- > arch/arm/probes/kprobes/test-core.c | 8 +++---- > arch/arm/vfp/vfpmodule.c | 4 ++-- > arch/arm/xen/p2m.c | 4 ++-- > arch/mips/alchemy/common/irq.c | 2 +- > arch/mips/alchemy/common/prom.c | 2 +- > arch/mips/alchemy/devboards/bcsr.c | 2 +- > arch/mips/alchemy/devboards/platform.c | 8 +++---- > arch/mips/ar7/prom.c | 4 ++-- > arch/mips/boot/compressed/dbg.c | 14 +++++------- > arch/mips/fw/arc/cmdline.c | 4 ++-- > arch/xtensa/platforms/iss/console.c | 4 ++-- > 12 files changed, 41 insertions(+), 45 deletions(-) > -- ~Randy