[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAPhsuW7C49dB1VQrPojO6+CwU1D+LRZWYj-NwkCu_Q0TOwYRgQ@mail.gmail.com>
Date: Wed, 26 Feb 2020 10:44:06 -0800
From: Song Liu <song@...nel.org>
To: Jiri Olsa <jolsa@...nel.org>
Cc: Alexei Starovoitov <ast@...nel.org>,
Daniel Borkmann <daniel@...earbox.net>,
kbuild test robot <lkp@...el.com>,
Networking <netdev@...r.kernel.org>, bpf <bpf@...r.kernel.org>,
Andrii Nakryiko <andriin@...com>, Yonghong Song <yhs@...com>,
Song Liu <songliubraving@...com>,
Martin KaFai Lau <kafai@...com>,
Jakub Kicinski <kuba@...nel.org>,
David Miller <davem@...hat.com>,
Björn Töpel <bjorn.topel@...el.com>,
John Fastabend <john.fastabend@...il.com>,
Jesper Dangaard Brouer <hawk@...nel.org>,
Arnaldo Carvalho de Melo <acme@...hat.com>
Subject: Re: [PATCH 01/18] x86/mm: Rename is_kernel_text to __is_kernel_text
On Wed, Feb 26, 2020 at 5:04 AM Jiri Olsa <jolsa@...nel.org> wrote:
>
> The kbuild test robot reported compile issue on x86 in one of
> the following patches that adds <linux/kallsyms.h> include into
> <linux/bpf.h>, which is picked up by init_32.c object.
>
> The problem is that <linux/kallsyms.h> defines global function
> is_kernel_text which colides with the static function of the
> same name defined in init_32.c:
>
> $ make ARCH=i386
> ...
> >> arch/x86/mm/init_32.c:241:19: error: redefinition of 'is_kernel_text'
> static inline int is_kernel_text(unsigned long addr)
> ^~~~~~~~~~~~~~
> In file included from include/linux/bpf.h:21:0,
> from include/linux/bpf-cgroup.h:5,
> from include/linux/cgroup-defs.h:22,
> from include/linux/cgroup.h:28,
> from include/linux/hugetlb.h:9,
> from arch/x86/mm/init_32.c:18:
> include/linux/kallsyms.h:31:19: note: previous definition of 'is_kernel_text' was here
> static inline int is_kernel_text(unsigned long addr)
>
> Renaming the init_32.c is_kernel_text function to __is_kernel_text.
>
> Reported-by: kbuild test robot <lkp@...el.com>
> Signed-off-by: Jiri Olsa <jolsa@...nel.org>
Acked-by: Song Liu <songliubraving@...com>
Powered by blists - more mailing lists