public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Michal Marek <mmarek@suse.cz>
To: Klemen Jan Enova <klemen.jan.enova@gmail.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] scripts: sortextable: change type and initialise variable
Date: Tue, 05 Aug 2014 18:04:56 +0200	[thread overview]
Message-ID: <53E100A8.8070701@suse.cz> (raw)
In-Reply-To: <53C4F06F.2090204@gmail.com>

On 2014-07-15 11:12, Klemen Jan Enova wrote:
> Change the type of 'relocs_size' from 'int' to 'Elf32_Word' and 
> initialize it to 0, to fix the "maybe uninitialised variable" compiler 
> warning.

Please include the verbatim warning in the commit message.



> Signed-off-by: Klemen Jan Enova <klemen.jan.enova@gmail.com>
> ---
> diff --git a/scripts/sortextable.h b/scripts/sortextable.h
> index 8fac3fd..537858d 100644
> --- a/scripts/sortextable.h
> +++ b/scripts/sortextable.h
> @@ -103,7 +103,7 @@ do_func(Elf_Ehdr *ehdr, char const *const fname, 
> table_sort_

Your mailer corrupted the patch by inserting a line break here.


>          Elf_Sym *sort_needed_sym;
>          Elf_Shdr *sort_needed_sec;
>          Elf_Rel *relocs = NULL;
> -       int relocs_size;
> +       Elf32_Word relocs_size = 0;

... and changed tabs to spaces. Please send the patch to yourself first
and see if it applies with 'git am.'

Michal

      reply	other threads:[~2014-08-05 16:04 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-15  9:12 [PATCH] scripts: sortextable: change type and initialise variable Klemen Jan Enova
2014-08-05 16:04 ` Michal Marek [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=53E100A8.8070701@suse.cz \
    --to=mmarek@suse.cz \
    --cc=klemen.jan.enova@gmail.com \
    --cc=linux-kernel@vger.kernel.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