lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20160725080245.GC9401@dhcp22.suse.cz>
Date:	Mon, 25 Jul 2016 10:02:45 +0200
From:	Michal Hocko <mhocko@...nel.org>
To:	Guenter Roeck <linux@...ck-us.net>
Cc:	Andrew Morton <akpm@...ux-foundation.org>,
	linux-kernel@...r.kernel.org, Johannes Weiner <hannes@...xchg.org>
Subject: Re: [PATCH -next] mm: Drop unnecessary include file

On Sat 23-07-16 22:50:08, Guenter Roeck wrote:
> Commmit e9be930fa6b5 ("mm: fix vm-scalability regression in cgroup-aware
> workingset code") adds '#include <linux/mm.h>' to

This sha is linux-next specific. This means it is unstable and shouldn't
be referred to in a commit message. The patch you are fixing is sitting
in the Andrew's tree as
mm-fix-vm-scalability-regression-in-cgroup-aware-workingset-code.patch

I guess it can be just folded into the above patch.

> include/linux/memcontrol.h. This results in the following build error
> when building hexagon images.
> 
> In file included from ./include/linux/memcontrol.h:32:0,
>                  from ./include/linux/swap.h:8,
> 		 from ./arch/hexagon/include/asm/pgtable.h:27,
> 		 from mm/init-mm.c:9:
> ./include/linux/mm.h:322:2: error: unknown type name 'pmd_t'
> ./include/linux/mm.h:353:7: error: unknown type name 'pmd_t'
> ./include/linux/mm.h:414:30: error: unknown type name 'pmd_t'
> 
> The include file does not appear to be necessary, so just drop it.

Yes that seems to be really the case. I have just run it through my
compile testing scripts and it works fine. Unfortunatelly my all arch
cross build test doesn't include hexagon.

> Fixes: e9be930fa6b5 ("mm: fix vm-scalability regression in cgroup-aware workingset code")
> Cc: Johannes Weiner <hannes@...xchg.org>
> Signed-off-by: Guenter Roeck <linux@...ck-us.net>

Acked-by: Michal Hocko <mhocko@...e.com>

Thanks!

> ---
> Build tested with all architectures. No related build failures observed.
> 
>  include/linux/memcontrol.h | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/include/linux/memcontrol.h b/include/linux/memcontrol.h
> index 2cf30455b25f..5d8ca6e02e39 100644
> --- a/include/linux/memcontrol.h
> +++ b/include/linux/memcontrol.h
> @@ -29,7 +29,6 @@
>  #include <linux/mmzone.h>
>  #include <linux/writeback.h>
>  #include <linux/page-flags.h>
> -#include <linux/mm.h>
>  
>  struct mem_cgroup;
>  struct page;
> -- 
> 2.5.0

-- 
Michal Hocko
SUSE Labs

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ