mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Paul Cercueil <paul@crapouillou.net>
To: Thomas Gleixner <tglx@linutronix.de>,
	Jason Cooper <jason@lakedaemon.net>,
	Marc Zyngier <marc.zyngier@arm.com>
Cc: od@zcrc.me, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] irqchip: ingenic: Drop dependency on MACH_INGENIC, use COMPILE_TEST
Date: Sat, 11 May 2019 20:43:09 +0200	[thread overview]
Message-ID: <1557600189.1898.0@crapouillou.net> (raw)
In-Reply-To: <20190511170916.12990-1-paul@crapouillou.net>

My bad, I'm stupid. I tested CONFIG_COMPILE_TEST on MIPS...

The driver does depend on arch-specific includes so COMPILE_TEST
cannot be used; I'll send a V2.

-Paul


Le sam. 11 mai 2019 à 19:09, Paul Cercueil <paul@crapouillou.net> a 
écrit :
> Depending on MACH_INGENIC prevent us from creating a generic kernel 
> that
> works on more than one MIPS board. Instead, we just depend on MIPS 
> being
> set.
> 
> On other architectures, this driver can still be built, thanks to
> COMPILE_TEST. This is used by automated tools to find bugs, for
> instance.
> 
> Signed-off-by: Paul Cercueil <paul@crapouillou.net>
> ---
>  drivers/irqchip/Kconfig | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/drivers/irqchip/Kconfig b/drivers/irqchip/Kconfig
> index 5438abb1baba..864dc38782e8 100644
> --- a/drivers/irqchip/Kconfig
> +++ b/drivers/irqchip/Kconfig
> @@ -286,9 +286,9 @@ config MIPS_GIC
>  	select MIPS_CM
> 
>  config INGENIC_IRQ
> -	bool
> -	depends on MACH_INGENIC
> -	default y
> +	bool "Ingenic JZ47xx IRQ controller driver"
> +	depends on MIPS || COMPILE_TEST
> +	default MACH_INGENIC
> 
>  config RENESAS_H8300H_INTC
>          bool
> --
> 2.21.0.593.g511ec345e18
> 



      reply	other threads:[~2019-05-11 18:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-11 17:09 Paul Cercueil
2019-05-11 18:43 ` Paul Cercueil [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=1557600189.1898.0@crapouillou.net \
    --to=paul@crapouillou.net \
    --cc=jason@lakedaemon.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=marc.zyngier@arm.com \
    --cc=od@zcrc.me \
    --cc=tglx@linutronix.de \
    /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®