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 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id BE958C6FA82 for ; Sat, 10 Sep 2022 08:33:58 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 3922B6B0071; Sat, 10 Sep 2022 04:33:58 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 342518D0002; Sat, 10 Sep 2022 04:33:58 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 2097D8D0001; Sat, 10 Sep 2022 04:33:58 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id 0F1046B0071 for ; Sat, 10 Sep 2022 04:33:58 -0400 (EDT) Received: from smtpin19.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id CA209160FE5 for ; Sat, 10 Sep 2022 08:33:57 +0000 (UTC) X-FDA: 79895512914.19.618E769 Received: from mail-pl1-f173.google.com (mail-pl1-f173.google.com [209.85.214.173]) by imf07.hostedemail.com (Postfix) with ESMTP id 7D05F40074 for ; Sat, 10 Sep 2022 08:33:57 +0000 (UTC) Received: by mail-pl1-f173.google.com with SMTP id p18so3868802plr.8 for ; Sat, 10 Sep 2022 01:33:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date; bh=G8nRJBytFt4zq3CBxkYjt9E6ufCcg2Kq6cvnSglYkwA=; b=ISuym4HLS42lUKXyE+Ag8QucwAJPGnmPJXjtEYDepCeBuU7MQyysGbXUsnBvM4995R f4wJ7ZvSVwrBGCAvgaBaYAct9haRKc/TdVB4OKbUV1Ia/3/jg7BulSlL8kadiAaXOLQ5 OTUHEKIFVvY6iZVyXzdGOtmLBySj6f7hXD2TBGuqTJKBiuk3vP54im4NKqxRedV+VsEe nzszdBWVnK8pSPR/yh8w13f/yXR6E8BF4OH5HDjorFD36yxsv5X4sUhWPL2cWMuqn00H sXHzB4W97DO5PTZjzUeqMogNSOvruyR1CPPhhck62QZYMxXw9ZCygPWWjejit7plcbKE fwgA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date; bh=G8nRJBytFt4zq3CBxkYjt9E6ufCcg2Kq6cvnSglYkwA=; b=EtlOwP13cly1K0gpvts6y7qI+zodtb7RTOjQUzJZPX1TiRC84I3FasDYDLSM1s4sQW 1wOm1kwt38V827uRSYnqyLLVZsDHaE1aliH4Ei579C4AOgVk+dISssbk0ntOD4mQpDtc SAXj2rLsMUz1M/jswornA86yYihTplKvs42vreuFHLrjJAF0Lz0Fxhh2YqR58WsxnWVd ZvMSRJ4VqaOYZkhndctK28Fl0U79u/iowIlCOW0k5dt+CUWQVBGSUrJt4EqvGc16ldwt wSAXrvqX6JbKTM/geOylGWOZfRxcVVB13mWkf5o2J2k1LfKTPrg9w3c+syaql6b4LZQ/ PbPA== X-Gm-Message-State: ACgBeo0Rtm9RTTgd2gRnrI9aBr4u4/oeaf6buVBP6Yz48k99qbC0/8xT io/h4fgNfU3HBUA8wjRUjKM= X-Google-Smtp-Source: AA6agR6RTnp/aCbkkO56cvk7JqVSY05q4WxLf/qhN6d/dOcEP2AaT/edmO5IcB25QPHllGMhMfFcqQ== X-Received: by 2002:a17:90a:318a:b0:1fa:c68c:aa03 with SMTP id j10-20020a17090a318a00b001fac68caa03mr13357169pjb.172.1662798836321; Sat, 10 Sep 2022 01:33:56 -0700 (PDT) Received: from hyeyoo ([114.29.91.56]) by smtp.gmail.com with ESMTPSA id k197-20020a6284ce000000b00540a8074c9dsm1116554pfd.166.2022.09.10.01.33.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 10 Sep 2022 01:33:55 -0700 (PDT) Date: Sat, 10 Sep 2022 17:33:51 +0900 From: Hyeonggon Yoo <42.hyeyoo@gmail.com> To: kernel test robot Cc: Vlastimil Babka , llvm@lists.linux.dev, kbuild-all@lists.01.org, linux-mm@kvack.org Subject: Re: [vbabka-slab:for-6.1/fit_rcu_head 2/2] mm/slab.h:94:1: error: static_assert failed due to requirement '((__builtin_offsetof(struct slab, counters)) & ((unsigned int)(16) - 1)) == 0' "IS_ALIGNED(offsetof(struct slab, counters), 16)" Message-ID: References: <202209101614.lMCcS0Zj-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <202209101614.lMCcS0Zj-lkp@intel.com> ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1662798837; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=G8nRJBytFt4zq3CBxkYjt9E6ufCcg2Kq6cvnSglYkwA=; b=fYBgOqAl5nvktm2Mi/2XySBtc48MFY6BN96JtcdDTi3R+Ii+nWihfUyITq3BJbRzRcAOBW A0D/01r1rYkgNdmPAZzlm004soypLOZiKNH0oQ6WrWn5ZCl7JszMU8aaYCjt3q3dvv/Qnn FapIusVDcN/cbkmE6Im380ekq5FUXW8= ARC-Authentication-Results: i=1; imf07.hostedemail.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=ISuym4HL; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf07.hostedemail.com: domain of 42.hyeyoo@gmail.com designates 209.85.214.173 as permitted sender) smtp.mailfrom=42.hyeyoo@gmail.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1662798837; a=rsa-sha256; cv=none; b=hDt2ve8nknyZpirYjh82fiRsWF9eoDZZ8ZEWzpYt7D/VancbDj1ZhtBu9vHWo3moq9dUb3 C3AFnqHJGOPG//S/aL4nIKe1oeEVWb/ICxlQzHpM2+H6A11ckEj2q0vOvsc4llL1RwnObT sfcadZkgDHBosBe56cofD454Z+FNTSU= X-Rspam-User: X-Stat-Signature: iwc7zmffc91uazt4oz6t1qatr6duafqo X-Rspamd-Queue-Id: 7D05F40074 Authentication-Results: imf07.hostedemail.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=ISuym4HL; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf07.hostedemail.com: domain of 42.hyeyoo@gmail.com designates 209.85.214.173 as permitted sender) smtp.mailfrom=42.hyeyoo@gmail.com X-Rspamd-Server: rspam12 X-HE-Tag: 1662798837-558708 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, Sep 10, 2022 at 04:05:44PM +0800, kernel test robot wrote: > tree: git://git.kernel.org/pub/scm/linux/kernel/git/vbabka/slab.git for-6.1/fit_rcu_head > head: 2af0ec317dc8f99f0620af23ff6c288bb6f49be5 > commit: 2af0ec317dc8f99f0620af23ff6c288bb6f49be5 [2/2] mm/sl[au]b: rearrange struct slab fields to allow larger rcu_head > config: i386-randconfig-a002 (https://download.01.org/0day-ci/archive/20220910/202209101614.lMCcS0Zj-lkp@intel.com/config) > compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project f28c006a5895fc0e329fe15fead81e37457cb1d1) > 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/vbabka/slab.git/commit/?id=2af0ec317dc8f99f0620af23ff6c288bb6f49be5 > git remote add vbabka-slab git://git.kernel.org/pub/scm/linux/kernel/git/vbabka/slab.git > git fetch --no-tags vbabka-slab for-6.1/fit_rcu_head > git checkout 2af0ec317dc8f99f0620af23ff6c288bb6f49be5 > # save the config file > mkdir build_dir && cp config build_dir/.config > COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash > > If you fix the issue, kindly add following tag where applicable > Reported-by: kernel test robot > > All errors (new ones prefixed by >>): > > In file included from mm/mempool.c:21: > >> mm/slab.h:94:1: error: static_assert failed due to requirement '((__builtin_offsetof(struct slab, counters)) & ((unsigned int)(16) - 1)) == 0' "IS_ALIGNED(offsetof(struct slab, counters), 16)" > static_assert(IS_ALIGNED(offsetof(struct slab, counters), 16)); > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > include/linux/build_bug.h:77:34: note: expanded from macro 'static_assert' > #define static_assert(expr, ...) __static_assert(expr, ##__VA_ARGS__, #expr) > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > include/linux/build_bug.h:78:41: note: expanded from macro '__static_assert' > #define __static_assert(expr, msg, ...) _Static_assert(expr, msg) > ^ ~~~~ > 1 error generated. > > > vim +94 mm/slab.h > > 90 > 91 #undef SLAB_MATCH > 92 static_assert(sizeof(struct slab) <= sizeof(struct page)); > 93 #if defined(CONFIG_HAVE_CMPXCHG_DOUBLE) && defined(CONFIG_SLUB) > > 94 static_assert(IS_ALIGNED(offsetof(struct slab, counters), 16)); > 95 #endif > 96 Ah, it should be sizeof(void *) * 2, instead of 16. > -- > 0-DAY CI Kernel Test Service > https://01.org/lkp > -- Thanks, Hyeonggon