mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Josh Poimboeuf <jpoimboe@redhat.com>
To: Progyan Bhattacharya <bprogyan@gmail.com>
Cc: linux-kernel@vger.kernel.org,
	Peter Zijlstra <peterz@infradead.org>,
	Ingo Molnar <mingo@kernel.org>,
	Nick Desaulniers <nick.desaulniers@gmail.com>,
	Lukas Bulwahn <lukas.bulwahn@gmail.com>,
	Nicholas Mc Guire <der.herr@hofr.at>
Subject: Re: [PATCH] objtool/x86: Replace Non-standard Range Expression in Case
Date: Fri, 16 Feb 2018 09:03:56 -0600	[thread overview]
Message-ID: <20180216150356.qnxkr3jopfmt3o5q@treble> (raw)
In-Reply-To: <20180216143924.9918-1-progyanb@acm.org>

On Fri, Feb 16, 2018 at 08:09:24PM +0530, Progyan Bhattacharya wrote:
> Replace range expressions with seperate individual cases, i.e. convert case 1...3: to case 1: case 2: case 3
> Range expression within case statements are non-standard C code and can create issues over compiler and platform variety.
> 
> While compiling with gcc 4.8 (RHEL) I encountered this error on range expression in case statements:
> error: range expressions in switch statements are non-standard [-Werror=pedantic]
> 
> Signed-off-by: Progyan Bhattacharya <progyanb@acm.org>

Progyan,

Please try to be respectful of reviewers' time by

  a) running scripts/checkpatch.pl and closely reviewing your patch
     before sending;

  b) not sending multiple revisions in a single day;

  c) when sending a new revision, add the version number in the subject
     line and clarify what has changed.


I'd also recommend reviewing the following resources:

  - https://www.youtube.com/watch?v=-3HNeoFuSH0

  - Documentation/process/submitting-patches.rst

-- 
Josh

      reply	other threads:[~2018-02-16 15:03 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-16 14:19 Progyan Bhattacharya
2018-02-16 14:25 ` Progyan Bhattacharya
2018-02-16 14:35   ` Josh Poimboeuf
2018-02-16 16:47     ` Peter Zijlstra
2018-02-18  3:36       ` Progyan Bhattacharya
2018-02-16 14:39   ` Progyan Bhattacharya
2018-02-16 15:03     ` Josh Poimboeuf [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=20180216150356.qnxkr3jopfmt3o5q@treble \
    --to=jpoimboe@redhat.com \
    --cc=bprogyan@gmail.com \
    --cc=der.herr@hofr.at \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lukas.bulwahn@gmail.com \
    --cc=mingo@kernel.org \
    --cc=nick.desaulniers@gmail.com \
    --cc=peterz@infradead.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

all inboxes | Powered by JetHome®