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 for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Z64P7OgJqPsPUMj6@thinkpad>
Date: Thu, 13 Feb 2025 10:29:48 -0500
From: Yury Norov <yury.norov@...il.com>
To: Andrea Righi <arighi@...dia.com>
Cc: Tejun Heo <tj@...nel.org>, David Vernet <void@...ifault.com>,
	Changwoo Min <changwoo@...lia.com>, Ingo Molnar <mingo@...hat.com>,
	Peter Zijlstra <peterz@...radead.org>,
	Juri Lelli <juri.lelli@...hat.com>,
	Vincent Guittot <vincent.guittot@...aro.org>,
	Dietmar Eggemann <dietmar.eggemann@....com>,
	Steven Rostedt <rostedt@...dmis.org>,
	Ben Segall <bsegall@...gle.com>, Mel Gorman <mgorman@...e.de>,
	Valentin Schneider <vschneid@...hat.com>,
	Joel Fernandes <joel@...lfernandes.org>, Ian May <ianm@...dia.com>,
	bpf@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 1/7] nodemask: numa: reorganize inclusion path

On Wed, Feb 12, 2025 at 05:48:08PM +0100, Andrea Righi wrote:
> From: Yury Norov <yury.norov@...il.com>
> 
> Nodemasks now pull linux/numa.h for MAX_NUMNODES and NUMA_NO_NODE
> macros. This series makes numa.h depending on nodemasks, so we hit
> a circular dependency.
> 
> Nodemasks library is highly employed by NUMA code, and it would be
> logical to resolve the circular dependency by making NUMA headers
> dependent nodemask.h.
> 
> Signed-off-by: Yury Norov <yury.norov@...il.com>

You must sign-off this patch yourself as well, if you pull it with
your series.

> ---
>  include/linux/nodemask.h       |  1 -
>  include/linux/nodemask_types.h | 11 ++++++++++-
>  include/linux/numa.h           | 10 +---------
>  3 files changed, 11 insertions(+), 11 deletions(-)
> 
> diff --git a/include/linux/nodemask.h b/include/linux/nodemask.h
> index 9fd7a0ce9c1a7..27644a6edc6ee 100644
> --- a/include/linux/nodemask.h
> +++ b/include/linux/nodemask.h
> @@ -94,7 +94,6 @@
>  #include <linux/bitmap.h>
>  #include <linux/minmax.h>
>  #include <linux/nodemask_types.h>
> -#include <linux/numa.h>
>  #include <linux/random.h>
>  
>  extern nodemask_t _unused_nodemask_arg_;
> diff --git a/include/linux/nodemask_types.h b/include/linux/nodemask_types.h
> index 6b28d97ea6ed0..f850a48742f1f 100644
> --- a/include/linux/nodemask_types.h
> +++ b/include/linux/nodemask_types.h
> @@ -3,7 +3,16 @@
>  #define __LINUX_NODEMASK_TYPES_H
>  
>  #include <linux/bitops.h>
> -#include <linux/numa.h>
> +
> +#ifdef CONFIG_NODES_SHIFT
> +#define NODES_SHIFT     CONFIG_NODES_SHIFT
> +#else
> +#define NODES_SHIFT     0
> +#endif
> +
> +#define MAX_NUMNODES    (1 << NODES_SHIFT)
> +
> +#define	NUMA_NO_NODE	(-1)
>  
>  typedef struct { DECLARE_BITMAP(bits, MAX_NUMNODES); } nodemask_t;
>  
> diff --git a/include/linux/numa.h b/include/linux/numa.h
> index 3567e40329ebc..31d8bf8a951a7 100644
> --- a/include/linux/numa.h
> +++ b/include/linux/numa.h
> @@ -3,16 +3,8 @@
>  #define _LINUX_NUMA_H
>  #include <linux/init.h>
>  #include <linux/types.h>
> +#include <linux/nodemask.h>
>  
> -#ifdef CONFIG_NODES_SHIFT
> -#define NODES_SHIFT     CONFIG_NODES_SHIFT
> -#else
> -#define NODES_SHIFT     0
> -#endif
> -
> -#define MAX_NUMNODES    (1 << NODES_SHIFT)
> -
> -#define	NUMA_NO_NODE	(-1)
>  #define	NUMA_NO_MEMBLK	(-1)
>  
>  static inline bool numa_valid_node(int nid)
> -- 
> 2.48.1

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ