Re: [PATCH] bpf: don't rely on GCC __attribute__((optimize)) to disable GCSE

5 views
Skip to first unread message

kernel test robot

unread,
Oct 28, 2020, 1:39:27 AM10/28/20
to kbuil...@lists.01.org, clang-bu...@googlegroups.com
In-Reply-To: <2020102720572...@kernel.org>
References: <2020102720572...@kernel.org>
TO: Ard Biesheuvel <ar...@kernel.org>
TO: linux-...@vger.kernel.org
CC: net...@vger.kernel.org
CC: b...@vger.kernel.org
CC: ar...@arndb.de
CC: Ard Biesheuvel <ar...@kernel.org>
CC: Nick Desaulniers <ndesau...@google.com>
CC: Arvind Sankar <nive...@alum.mit.edu>
CC: Randy Dunlap <rdu...@infradead.org>
CC: Josh Poimboeuf <jpoi...@redhat.com>
CC: Thomas Gleixner <tg...@linutronix.de>

Hi Ard,

I love your patch! Perhaps something to improve:

[auto build test WARNING on bpf-next/master]
[also build test WARNING on bpf/master linus/master linux/master v5.10-rc1 next-20201027]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url: https://github.com/0day-ci/linux/commits/Ard-Biesheuvel/bpf-don-t-rely-on-GCC-__attribute__-optimize-to-disable-GCSE/20201028-045850
base: https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git master
config: x86_64-randconfig-a001-20201026 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project f2c25c70791de95d2466e09b5b58fc37f6ccd7a4)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# https://github.com/0day-ci/linux/commit/edebf279098c74782e939d735bd82311c0030968
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Ard-Biesheuvel/bpf-don-t-rely-on-GCC-__attribute__-optimize-to-disable-GCSE/20201028-045850
git checkout edebf279098c74782e939d735bd82311c0030968
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <l...@intel.com>

All warnings (new ones prefixed by >>):

>> clang-12: warning: optimization flag '-fno-gcse' is not supported [-Wignored-optimization-argument]
kernel/bpf/core.c:1358:12: warning: no previous prototype for function 'bpf_probe_read_kernel' [-Wmissing-prototypes]
u64 __weak bpf_probe_read_kernel(void *dst, u32 size, const void *unsafe_ptr)
^
kernel/bpf/core.c:1358:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
u64 __weak bpf_probe_read_kernel(void *dst, u32 size, const void *unsafe_ptr)
^
static
1 warning generated.

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuil...@lists.01.org
.config.gz

Nick Desaulniers

unread,
Oct 28, 2020, 2:00:09 PM10/28/20
to Ard Biesheuvel, kbuil...@lists.01.org, clang-built-linux, kernel test robot
+ Ard

(I think we knew about this in the v1, but just cc'ing you since 0day
bot did not)
> --
> You received this message because you are subscribed to the Google Groups "Clang Built Linux" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to clang-built-li...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/clang-built-linux/202010281330.KCaqOzGW-lkp%40intel.com.



--
Thanks,
~Nick Desaulniers
Reply all
Reply to author
Forward
0 new messages