From: Randy Dunlap <rdunlap@infradead.org>
To: "Seija K." <doremylover123@gmail.com>,
Stefano Stabellini <sstabellini@kernel.org>,
Thomas Bogendoerfer <tsbogend@alpha.franken.de>,
Chris Zankel <chris@zankel.net>,
Max Filippov <jcmvbkbc@gmail.com>
Cc: linux-kernel@vger.kernel.org, xen-devel@lists.xenproject.org,
linux-arm-kernel@lists.infradead.org, linux-mips@vger.kernel.org
Subject: Re: [PATCH] arch: change variable types to match those of what is assigned to them
Date: Tue, 13 Dec 2022 09:40:44 -0800 [thread overview]
Message-ID: <33fd0ddb-c2dc-c403-a742-bac32d24825c@infradead.org> (raw)
In-Reply-To: <CAA42iKx2f2LsAQ9C5rxnCTPhOB6n+L35Winc5WK1K2EySAjvXA@mail.gmail.com>
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 <doremylover123@gmail.com>
> ---
> 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
next prev parent reply other threads:[~2022-12-13 17:41 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-13 17:35 [PATCH] arch: change variable types to match those of what is assigned to them Seija K.
2022-12-13 17:40 ` Randy Dunlap [this message]
2022-12-13 17:45 ` Russell King (Oracle)
-- strict thread matches above, loose matches on Subject: below --
2022-12-14 0:51 Seija Kijin
2022-12-14 1:48 ` Max Filippov
2022-12-13 17:03 Seija K.
2022-12-13 17:28 ` Russell King (Oracle)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=33fd0ddb-c2dc-c403-a742-bac32d24825c@infradead.org \
--to=rdunlap@infradead.org \
--cc=chris@zankel.net \
--cc=doremylover123@gmail.com \
--cc=jcmvbkbc@gmail.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mips@vger.kernel.org \
--cc=sstabellini@kernel.org \
--cc=tsbogend@alpha.franken.de \
--cc=xen-devel@lists.xenproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).