All of lore.kernel.org
 help / color / mirror / Atom feed
From: Michal Hocko <mhocko@kernel.org>
To: jglisse@redhat.com
Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] mm/hmm: fix build when HMM is disabled
Date: Mon, 28 Aug 2017 16:33:07 +0200	[thread overview]
Message-ID: <20170828143307.GC17080@dhcp22.suse.cz> (raw)
In-Reply-To: <20170826002149.20919-1-jglisse@redhat.com>

I have only now noticed this patch and it fixes allnoconfig failure
I saw earlier this day and tried to address by
http://lkml.kernel.org/r/20170828075931.GC17097@dhcp22.suse.cz

On Fri 25-08-17 20:21:49, jglisse@redhat.com wrote:
> From: Jérôme Glisse <jglisse@redhat.com>
> 
> Combinatorial Kconfig is painfull. Withi this patch all below combination
> build.
> 
> 1)
> 
> 2)
> CONFIG_HMM_MIRROR=y
> 
> 3)
> CONFIG_DEVICE_PRIVATE=y
> 
> 4)
> CONFIG_DEVICE_PUBLIC=y
> 
> 5)
> CONFIG_HMM_MIRROR=y
> CONFIG_DEVICE_PUBLIC=y
> 
> 6)
> CONFIG_HMM_MIRROR=y
> CONFIG_DEVICE_PRIVATE=y
> 
> 7)
> CONFIG_DEVICE_PRIVATE=y
> CONFIG_DEVICE_PUBLIC=y
> 
> 8)
> CONFIG_HMM_MIRROR=y
> CONFIG_DEVICE_PRIVATE=y
> CONFIG_DEVICE_PUBLIC=y
> 
> Signed-off-by: Jérôme Glisse <jglisse@redhat.com>
> Reported-by: Randy Dunlap <rdunlap@infradead.org>
> ---
>  include/linux/hmm.h | 4 +---
>  1 file changed, 1 insertion(+), 3 deletions(-)
> 
> diff --git a/include/linux/hmm.h b/include/linux/hmm.h
> index 9583d9a15f9c..96d6b1232c07 100644
> --- a/include/linux/hmm.h
> +++ b/include/linux/hmm.h
> @@ -498,7 +498,7 @@ struct hmm_device {
>  struct hmm_device *hmm_device_new(void *drvdata);
>  void hmm_device_put(struct hmm_device *hmm_device);
>  #endif /* CONFIG_DEVICE_PRIVATE || CONFIG_DEVICE_PUBLIC */
> -
> +#endif /* IS_ENABLED(CONFIG_HMM) */
>  
>  /* Below are for HMM internal use only! Not to be used by device driver! */
>  #if IS_ENABLED(CONFIG_HMM_MIRROR)
> @@ -513,6 +513,4 @@ static inline void hmm_mm_destroy(struct mm_struct *mm) {}
>  static inline void hmm_mm_init(struct mm_struct *mm) {}
>  #endif /* IS_ENABLED(CONFIG_HMM_MIRROR) */
>  
> -
> -#endif /* IS_ENABLED(CONFIG_HMM) */
>  #endif /* LINUX_HMM_H */
> -- 
> 2.13.4
> 
> --
> To unsubscribe, send a message with 'unsubscribe linux-mm' in
> the body to majordomo@kvack.org.  For more info on Linux MM,
> see: http://www.linux-mm.org/ .
> Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

-- 
Michal Hocko
SUSE Labs

WARNING: multiple messages have this Message-ID (diff)
From: Michal Hocko <mhocko@kernel.org>
To: jglisse@redhat.com
Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] mm/hmm: fix build when HMM is disabled
Date: Mon, 28 Aug 2017 16:33:07 +0200	[thread overview]
Message-ID: <20170828143307.GC17080@dhcp22.suse.cz> (raw)
In-Reply-To: <20170826002149.20919-1-jglisse@redhat.com>

I have only now noticed this patch and it fixes allnoconfig failure
I saw earlier this day and tried to address by
http://lkml.kernel.org/r/20170828075931.GC17097@dhcp22.suse.cz

On Fri 25-08-17 20:21:49, jglisse@redhat.com wrote:
> From: Jerome Glisse <jglisse@redhat.com>
> 
> Combinatorial Kconfig is painfull. Withi this patch all below combination
> build.
> 
> 1)
> 
> 2)
> CONFIG_HMM_MIRROR=y
> 
> 3)
> CONFIG_DEVICE_PRIVATE=y
> 
> 4)
> CONFIG_DEVICE_PUBLIC=y
> 
> 5)
> CONFIG_HMM_MIRROR=y
> CONFIG_DEVICE_PUBLIC=y
> 
> 6)
> CONFIG_HMM_MIRROR=y
> CONFIG_DEVICE_PRIVATE=y
> 
> 7)
> CONFIG_DEVICE_PRIVATE=y
> CONFIG_DEVICE_PUBLIC=y
> 
> 8)
> CONFIG_HMM_MIRROR=y
> CONFIG_DEVICE_PRIVATE=y
> CONFIG_DEVICE_PUBLIC=y
> 
> Signed-off-by: Jerome Glisse <jglisse@redhat.com>
> Reported-by: Randy Dunlap <rdunlap@infradead.org>
> ---
>  include/linux/hmm.h | 4 +---
>  1 file changed, 1 insertion(+), 3 deletions(-)
> 
> diff --git a/include/linux/hmm.h b/include/linux/hmm.h
> index 9583d9a15f9c..96d6b1232c07 100644
> --- a/include/linux/hmm.h
> +++ b/include/linux/hmm.h
> @@ -498,7 +498,7 @@ struct hmm_device {
>  struct hmm_device *hmm_device_new(void *drvdata);
>  void hmm_device_put(struct hmm_device *hmm_device);
>  #endif /* CONFIG_DEVICE_PRIVATE || CONFIG_DEVICE_PUBLIC */
> -
> +#endif /* IS_ENABLED(CONFIG_HMM) */
>  
>  /* Below are for HMM internal use only! Not to be used by device driver! */
>  #if IS_ENABLED(CONFIG_HMM_MIRROR)
> @@ -513,6 +513,4 @@ static inline void hmm_mm_destroy(struct mm_struct *mm) {}
>  static inline void hmm_mm_init(struct mm_struct *mm) {}
>  #endif /* IS_ENABLED(CONFIG_HMM_MIRROR) */
>  
> -
> -#endif /* IS_ENABLED(CONFIG_HMM) */
>  #endif /* LINUX_HMM_H */
> -- 
> 2.13.4
> 
> --
> To unsubscribe, send a message with 'unsubscribe linux-mm' in
> the body to majordomo@kvack.org.  For more info on Linux MM,
> see: http://www.linux-mm.org/ .
> Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

-- 
Michal Hocko
SUSE Labs

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

  reply	other threads:[~2017-08-28 14:33 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-25 22:50 mmotm 2017-08-25-15-50 uploaded akpm
2017-08-25 22:50 ` akpm
2017-08-25 23:50 ` Randy Dunlap
2017-08-25 23:50   ` Randy Dunlap
2017-08-25 23:50   ` Randy Dunlap
2017-08-26  0:21   ` [PATCH] mm/hmm: fix build when HMM is disabled jglisse
2017-08-26  0:21     ` jglisse
2017-08-28 14:33     ` Michal Hocko [this message]
2017-08-28 14:33       ` Michal Hocko
2017-08-28  7:59   ` mmotm 2017-08-25-15-50 uploaded Michal Hocko
2017-08-28  7:59     ` Michal Hocko
2017-08-28  7:59     ` Michal Hocko
2017-08-28  7:59     ` Michal Hocko
2017-08-28  8:27     ` Stephen Rothwell
2017-08-28  8:27       ` Stephen Rothwell
2017-08-28  8:31       ` Michal Hocko
2017-08-28  8:31         ` Michal Hocko
2017-08-28 15:46         ` Jerome Glisse
2017-08-28 15:46           ` Jerome Glisse

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=20170828143307.GC17080@dhcp22.suse.cz \
    --to=mhocko@kernel.org \
    --cc=jglisse@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.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 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.