From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DE619C48BD1 for ; Fri, 11 Jun 2021 23:10:38 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 633B5613F1 for ; Fri, 11 Jun 2021 23:10:38 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 633B5613F1 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id A8AA06B006C; Fri, 11 Jun 2021 19:10:37 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id A13526B006E; Fri, 11 Jun 2021 19:10:37 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 88CA36B0070; Fri, 11 Jun 2021 19:10:37 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0084.hostedemail.com [216.40.44.84]) by kanga.kvack.org (Postfix) with ESMTP id 521B96B006C for ; Fri, 11 Jun 2021 19:10:37 -0400 (EDT) Received: from smtpin25.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id E86F18249980 for ; Fri, 11 Jun 2021 23:10:36 +0000 (UTC) X-FDA: 78242989272.25.E65DC36 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by imf25.hostedemail.com (Postfix) with ESMTP id A98CF6000147 for ; Fri, 11 Jun 2021 23:10:30 +0000 (UTC) Received: by mail.kernel.org (Postfix) with ESMTPSA id 4661B613DF; Fri, 11 Jun 2021 23:10:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1623453035; bh=RKlr4e84I599HUGoY/FU/lkLr4f9Xmyg4cG1vXGQ4To=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=fLM8j5D5LOMu2u5eF5SvX06pP5pPzJ1OigMRArbNBSPmR7sYO5aXp1aLDGiaeiI7H KcTXJhUewH07pdVL6YQkZWvClZwK3XGu/cuYhALCGkHz6y6loDnZx7Q2FtQwrEiOIt h8vbSvmmaacsRe1sevmCDTcDOXW3n0yENgPhQvFw= Date: Fri, 11 Jun 2021 16:10:34 -0700 From: Andrew Morton To: kernel test robot Cc: Hyeonggon Yoo <42.hyeyoo@gmail.com>, kbuild-all@lists.01.org, Linux Memory Management List , Vlastimil Babka Subject: Re: [linux-next:master 7435/9209] include/linux/compiler_types.h:328:38: error: call to '__compiletime_assert_236' declared with attribute error: unexpected size in kmalloc_index() Message-Id: <20210611161034.fde4e1bcffb92eaec061014b@linux-foundation.org> In-Reply-To: <202106120037.H1rz3bjq-lkp@intel.com> References: <202106120037.H1rz3bjq-lkp@intel.com> X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.31; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Authentication-Results: imf25.hostedemail.com; dkim=pass header.d=linux-foundation.org header.s=korg header.b=fLM8j5D5; spf=pass (imf25.hostedemail.com: domain of akpm@linux-foundation.org designates 198.145.29.99 as permitted sender) smtp.mailfrom=akpm@linux-foundation.org; dmarc=none X-Stat-Signature: 1ewdb41fkr8ppuk1zognig7gkqkaaw9q X-Rspamd-Queue-Id: A98CF6000147 X-Rspamd-Server: rspam06 X-HE-Tag: 1623453030-222245 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Sat, 12 Jun 2021 00:08:43 +0800 kernel test robot wrote: > tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master > head: 25fe90f43fa312213b653dc1f12fd2d80f855883 > commit: df2de13a32afec989c0e735beb3bc391b3de1dbd [7435/9209] mm, slub: change run-time assertion in kmalloc_index() to compile-time > config: sparc-randconfig-r005-20210611 (attached as .config) > compiler: sparc64-linux-gcc (GCC) 9.3.0 > 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 > # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=df2de13a32afec989c0e735beb3bc391b3de1dbd > git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git > git fetch --no-tags linux-next master > git checkout df2de13a32afec989c0e735beb3bc391b3de1dbd > # save the attached .config to linux build tree > COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=sparc > > If you fix the issue, kindly add following tag as appropriate > Reported-by: kernel test robot > > All errors (new ones prefixed by >>): > > In file included from : > In function 'kmalloc_index', > inlined from 'kmalloc_node' at include/linux/slab.h:572:20, > inlined from 'bpf_map_kmalloc_node.isra.0.part.0' at include/linux/bpf.h:1319:9: > >> include/linux/compiler_types.h:328:38: error: call to '__compiletime_assert_236' declared with attribute error: unexpected size in kmalloc_index() > 328 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) > | ^ > include/linux/compiler_types.h:309:4: note: in definition of macro '__compiletime_assert' > 309 | prefix ## suffix(); \ > | ^~~~~~ > include/linux/compiler_types.h:328:2: note: in expansion of macro '_compiletime_assert' > 328 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) > | ^~~~~~~~~~~~~~~~~~~ > include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert' > 39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg) > | ^~~~~~~~~~~~~~~~~~ > include/linux/slab.h:389:2: note: in expansion of macro 'BUILD_BUG_ON_MSG' > 389 | BUILD_BUG_ON_MSG(1, "unexpected size in kmalloc_index()"); > | ^~~~~~~~~~~~~~~~ > This log doesn't show which .c file was being compiled at the time. Can this info be included? For me, it was kernel/bpf/local_storage.c. I don't see anything wrong with the code. Did this gcc simply screw up __builtin_constant_p()?