# Re: \[PATCH 02/12\] perf auxtrace: Include missing asm/bitsperlong.h to get BITS\_PER\_LONG

- From: Alexander Sverdlin \<hidden\>
- Date: 2018-10-09 08:45:09 
- List: linux-perf-users
- Page: https://ratatoskr.run/linux-perf-users/2018/10/5403149
- Thread: https://ratatoskr.run/linux-perf-users/2018/10/5402901/t.md

```text
Hi!

On 09/10/2018 02:54, Arnaldo Carvalho de Melo wrote:
> From: Arnaldo Carvalho de Melo <redacted>
> 
> The auxtrace.h header references BITS_PER_LONG without including the
> header where it is defined, getting it by luck from some other header,
> fix it.
> 
> Cc: Adrian Hunter <adrian.hunter@intel.com>
> Cc: Alexander Sverdlin <redacted>
> Cc: David Ahern <redacted>
> Cc: Jiri Olsa <jolsa@kernel.org>
> Cc: Namhyung Kim <namhyung@kernel.org>
> Cc: Wang Nan <redacted>
> Link: https://lkml.kernel.org/n/tip-v04ydmbh7tvpcctf3zld9j9s@git.kernel.org

Reviewed-by: Alexander Sverdlin <redacted>

> Signed-off-by: Arnaldo Carvalho de Melo <redacted>
> ---
>  tools/perf/util/auxtrace.h | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/tools/perf/util/auxtrace.h b/tools/perf/util/auxtrace.h
> index 0a6ce9c4fc11..d88f6e9eb461 100644
> --- a/tools/perf/util/auxtrace.h
> +++ b/tools/perf/util/auxtrace.h
> @@ -23,6 +23,7 @@
>  #include <linux/list.h>
>  #include <linux/perf_event.h>
>  #include <linux/types.h>
> +#include <asm/bitsperlong.h>
>  
>  #include "../perf.h"
>  #include "event.h"
> 

-- 
Best regards,
Alexander Sverdlin.
```
