Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1226544
| From | Andrew Morton <akpm@linux-foundation.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 08/11] mm,thp: reduce ifdef'ery for THP in generic code |
| Date | 2015-09-17 00:30 +0200 |
| Message-ID | <q9tnc-Xu-5@gated-at.bofh.it> (permalink) |
| References | <q27rr-8j-13@gated-at.bofh.it> <q9tnc-Xu-7@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Thu, 27 Aug 2015 14:33:11 +0530 Vineet Gupta <Vineet.Gupta1@synopsys.com> wrote:
> This is purely cosmetic, just makes code more readable
>
> ...
>
> --- a/include/asm-generic/pgtable.h
> +++ b/include/asm-generic/pgtable.h
> @@ -30,9 +30,20 @@ extern int ptep_set_access_flags(struct vm_area_struct *vma,
> #endif
>
> #ifndef __HAVE_ARCH_PMDP_SET_ACCESS_FLAGS
> +#ifdef CONFIG_TRANSPARENT_HUGEPAGE
> extern int pmdp_set_access_flags(struct vm_area_struct *vma,
> unsigned long address, pmd_t *pmdp,
> pmd_t entry, int dirty);
> +#else /* CONFIG_TRANSPARENT_HUGEPAGE */
> +static inline int pmdp_set_access_flags(struct vm_area_struct *vma,
> + unsigned long address, pmd_t *pmdp,
> + pmd_t entry, int dirty)
> +{
> + BUG();
> + return 0;
> +}
Is it possible to simply leave this undefined? So the kernel fails at
link time?
> --- a/mm/pgtable-generic.c
> +++ b/mm/pgtable-generic.c
Good heavens that file is a mess. Your patch does improve it.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
Re: [PATCH 08/11] mm,thp: reduce ifdef'ery for THP in generic code Andrew Morton <akpm@linux-foundation.org> - 2015-09-17 00:30 +0200
csiph-web