All of lore.kernel.org
 help / color / mirror / Atom feed
From: Josh Poimboeuf <jpoimboe@redhat.com>
To: Miroslav Benes <mbenes@suse.cz>
Cc: sjenning@redhat.com, vojtech@suse.com, jikos@kernel.org,
	pmladek@suse.cz, mpe@ellerman.id.au,
	live-patching@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] klp: remove superfluous errors in asm/livepatch.h
Date: Fri, 4 Mar 2016 15:45:00 -0600	[thread overview]
Message-ID: <20160304214500.GA8104@treble.redhat.com> (raw)
In-Reply-To: <1457085219-23653-1-git-send-email-mbenes@suse.cz>

On Fri, Mar 04, 2016 at 10:53:39AM +0100, Miroslav Benes wrote:
> There is an #error in asm/livepatch.h for both x86 and s390 in
> !CONFIG_LIVEPATCH cases. It does not make much sense as pointed out by
> Michael Ellerman. One can happily include asm/livepatch.h with
> CONFIG_LIVEPATCH. Remove it as useless.
> 
> Suggested-by: Michael Ellerman <mpe@ellerman.id.au>
> Signed-off-by: Miroslav Benes <mbenes@suse.cz>

Looks fine to me.  While we're at it, do we even need the '#ifdef
CONFIG_LIVEPATCH' in these files?  And in include/linux/livepatch.h?

> ---
>  arch/s390/include/asm/livepatch.h | 2 --
>  arch/x86/include/asm/livepatch.h  | 2 --
>  2 files changed, 4 deletions(-)
> 
> diff --git a/arch/s390/include/asm/livepatch.h b/arch/s390/include/asm/livepatch.h
> index a52b6cca873d..105074582d86 100644
> --- a/arch/s390/include/asm/livepatch.h
> +++ b/arch/s390/include/asm/livepatch.h
> @@ -36,8 +36,6 @@ static inline void klp_arch_set_pc(struct pt_regs *regs, unsigned long ip)
>  {
>  	regs->psw.addr = ip;
>  }
> -#else
> -#error Include linux/livepatch.h, not asm/livepatch.h
>  #endif
>  
>  #endif
> diff --git a/arch/x86/include/asm/livepatch.h b/arch/x86/include/asm/livepatch.h
> index e795f5274217..8acfe798625b 100644
> --- a/arch/x86/include/asm/livepatch.h
> +++ b/arch/x86/include/asm/livepatch.h
> @@ -40,8 +40,6 @@ static inline void klp_arch_set_pc(struct pt_regs *regs, unsigned long ip)
>  {
>  	regs->ip = ip;
>  }
> -#else
> -#error Include linux/livepatch.h, not asm/livepatch.h
>  #endif
>  
>  #endif /* _ASM_X86_LIVEPATCH_H */
> -- 
> 2.7.2
> 

-- 
Josh

  reply	other threads:[~2016-03-04 21:45 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-04  9:53 [PATCH] klp: remove superfluous errors in asm/livepatch.h Miroslav Benes
2016-03-04 21:45 ` Josh Poimboeuf [this message]
2016-03-06 21:13   ` Jiri Kosina
2016-03-07  4:10     ` Josh Poimboeuf
2016-03-08 21:28     ` Jessica Yu
2016-03-09 10:06       ` Petr Mladek
2016-03-09 10:39       ` Jiri Kosina
2016-03-09 16:11         ` Josh Poimboeuf
2016-03-15 11:37   ` [PATCH] " Miroslav Benes

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=20160304214500.GA8104@treble.redhat.com \
    --to=jpoimboe@redhat.com \
    --cc=jikos@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=live-patching@vger.kernel.org \
    --cc=mbenes@suse.cz \
    --cc=mpe@ellerman.id.au \
    --cc=pmladek@suse.cz \
    --cc=sjenning@redhat.com \
    --cc=vojtech@suse.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.