From: Randy Dunlap <rdunlap@infradead.org>
To: Dong Chuanjian <chuanjian@nfschina.com>,
Masahiro Yamada <masahiroy@kernel.org>,
Nathan Chancellor <nathan@kernel.org>,
Changbin Du <changbin.du@intel.com>,
Nick Desaulniers <ndesaulniers@google.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] scripts:force conversion argument type
Date: Wed, 11 May 2022 20:02:23 -0700 [thread overview]
Message-ID: <6a1a59cb-7184-5cad-e69c-fd3aa46c19f5@infradead.org> (raw)
In-Reply-To: <20220512023853.GA4018@localhost.localdomain>
On 5/11/22 19:38, Dong Chuanjian wrote:
> scripts:force conversion argument type
>
> Signed-off-by: Dong Chuanjian <chuanjian@nfschina.com>
> ---
> scripts/kallsyms.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/scripts/kallsyms.c b/scripts/kallsyms.c
> index 8caabddf817c..544ab1e1b5ca 100644
> --- a/scripts/kallsyms.c
> +++ b/scripts/kallsyms.c
> @@ -498,7 +498,7 @@ static void write_src(void)
>
> output_label("kallsyms_token_index");
> for (i = 0; i < 256; i++)
> - printf("\t.short\t%d\n", best_idx[i]);
> + printf("\t.short\t%d\n", (int)best_idx[i]);
Or (better) you could use %u instead of %d to print the unsigned int value.
> printf("\n");
> }
>
--
~Randy
prev parent reply other threads:[~2022-05-12 3:02 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-12 2:38 [PATCH] scripts:force conversion argument type Dong Chuanjian
2022-05-12 3:02 ` Randy Dunlap [this message]
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=6a1a59cb-7184-5cad-e69c-fd3aa46c19f5@infradead.org \
--to=rdunlap@infradead.org \
--cc=changbin.du@intel.com \
--cc=chuanjian@nfschina.com \
--cc=linux-kernel@vger.kernel.org \
--cc=masahiroy@kernel.org \
--cc=nathan@kernel.org \
--cc=ndesaulniers@google.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.