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=-2.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no 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 4EF0EC433ED for ; Sun, 2 May 2021 02:31:27 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 9C90D61449 for ; Sun, 2 May 2021 02:31:26 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9C90D61449 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=xanmod.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id B03306B006C; Sat, 1 May 2021 22:31:25 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id AB37C6B006E; Sat, 1 May 2021 22:31:25 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 9A38A6B0070; Sat, 1 May 2021 22:31:25 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0098.hostedemail.com [216.40.44.98]) by kanga.kvack.org (Postfix) with ESMTP id 7C9626B006C for ; Sat, 1 May 2021 22:31:25 -0400 (EDT) Received: from smtpin17.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id 1C8F13658 for ; Sun, 2 May 2021 02:31:25 +0000 (UTC) X-FDA: 78094714530.17.6A5B30B Received: from sender4-of-o53.zoho.com (sender4-of-o53.zoho.com [136.143.188.53]) by imf24.hostedemail.com (Postfix) with ESMTP id EC140A0003A2 for ; Sun, 2 May 2021 02:31:12 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; t=1619922679; cv=none; d=zohomail.com; s=zohoarc; b=liHifxTIYyql2GCRFmrVve+9KF3Jh1NBjQV94761PoNmei9dfnIMQ/3U1Tur57kbtMNeApfaO17NR7SAWlDjlfENuJYVEXOgP/Rg/vxB/Rl6nz/KsevywXct+4OzkVB2tnOStDrFMWJMH1q37VNqfn63z8yvlltuvzdb8O1YJrU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1619922679; h=Content-Type:Cc:Date:From:MIME-Version:Message-ID:Subject:To; bh=2izdNUnFdQP0mifaDRLh5fttzokePiKJSq5PATjEx/c=; b=Dg1OSfb/STqt2svo2oZV6oRKJDprAUGjDQ6Z85lF8Wl3FB7BeJhvnpkECO6CPUH/Sewp/oHRf6FLZAqFjyNRhptgIfISb2JDWPvcj2/zbPFjH+Uvss+m8xNg/ZIhRM6gnBAsEVHMLBcnXqjcKvEh+Pq8Rx08g+VjvlC8X8wrEUY= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=xanmod.org; spf=pass smtp.mailfrom=kernel@xanmod.org; dmarc=pass header.from= header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1619922679; s=main; d=xanmod.org; i=kernel@xanmod.org; h=Date:From:To:Cc:Message-Id:In-Reply-To:Subject:MIME-Version:Content-Type; bh=2izdNUnFdQP0mifaDRLh5fttzokePiKJSq5PATjEx/c=; b=d8yDi94N9hTdJJsk8ECytYyeIoFQOESV/6BvGt08rI/C4euhY4DpHcEk2WLXdEtR esanahb67bjGIZk1PtL10ntOSK+estXUl6NNSciXy3jotHunlH7km9s1yhR82FZGRqB nlpzycic1pg5bZ1RTkPHn1XeOnfTcjojx4Bc1t6M= Received: from mail.zoho.com by mx.zohomail.com with SMTP id 1619922678275526.8265586851248; Sat, 1 May 2021 19:31:18 -0700 (PDT) Date: Sat, 01 May 2021 23:31:18 -0300 From: Alexandre Frade To: "linux-mm" Cc: "yuzhao" Message-Id: <1792aea71ee.e2062a5f778082.9048268443626031415@xanmod.org> In-Reply-To: Subject: LRU_GEN v2 & v5.12 build issue MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_2529692_1135110684.1619922678254" Importance: Medium User-Agent: Zoho Mail X-Mailer: Zoho Mail Authentication-Results: imf24.hostedemail.com; dkim=pass header.d=xanmod.org header.s=main header.b=d8yDi94N; dmarc=none; spf=pass (imf24.hostedemail.com: domain of kernel@xanmod.org designates 136.143.188.53 as permitted sender) smtp.mailfrom=kernel@xanmod.org X-Rspamd-Server: rspam01 X-Rspamd-Queue-Id: EC140A0003A2 X-Stat-Signature: mkfpp33ihw8u86huei95zq6d7k31zdbx Received-SPF: none (xanmod.org>: No applicable sender policy available) receiver=imf24; identity=mailfrom; envelope-from=""; helo=sender4-of-o53.zoho.com; client-ip=136.143.188.53 X-HE-DKIM-Result: pass/pass X-HE-Tag: 1619922672-85826 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: ------=_Part_2529692_1135110684.1619922678254 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Dear Yu Zhao, =20 I=20 don't know if it's a known issue with the 5.12 kernel released=20 [9f4ad9e]:=20 =20 LRU_GEN v2 & v5.12 final: =20 In function =E2=80=98nd_pfn_init=E2=80=99, =C2=A0 =C2=A0 inlined from =E2=80=98nvdimm_setup_pfn=E2=80=99 at drivers/n= vdimm/pfn_devs.c:842:7: ././include/linux/compiler_types.h:320:38: error: call to=20 =E2=80=98__compiletime_assert_349=E2=80=99 declared with attribute error: B= UILD_BUG_ON=20 failed: sizeof(struct page) > MAX_STRUCT_PAGE_SIZE =C2=A0 320 |=C2=A0 _compiletime_assert(condition, msg, __compiletime_asser= t_, __COUNTER__) =C2=A0 =C2=A0 =C2=A0 |=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 ^ ././include/linux/compiler_types.h:301:4: note: in definition of macro =E2= =80=98__compiletime_assert=E2=80=99 =C2=A0 301 |=C2=A0 =C2=A0 prefix ## suffix();=C2=A0 =C2=A0 \ =C2=A0 =C2=A0 =C2=A0 |=C2=A0 =C2=A0 ^~~~~~ ././include/linux/compiler_types.h:320:2: note: in expansion of macro =E2= =80=98_compiletime_assert=E2=80=99 =C2=A0 320 |=C2=A0 _compiletime_assert(condition, msg, __compiletime_asser= t_, __COUNTER__) =C2=A0 =C2=A0 =C2=A0 |=C2=A0 ^~~~~~~~~~~~~~~~~~~ ./include/linux/build_bug.h:39:37: note: in expansion of macro =E2=80=98co= mpiletime_assert=E2=80=99 =C2=A0 39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond)= , msg) =C2=A0 =C2=A0 =C2=A0 |=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ^= ~~~~~~~~~~~~~~~~~ ./include/linux/build_bug.h:50:2: note: in expansion of macro =E2=80=98BUI= LD_BUG_ON_MSG=E2=80=99 =C2=A0 50 |=C2=A0 BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #con= dition) =C2=A0 =C2=A0 =C2=A0 |=C2=A0 ^~~~~~~~~~~~~~~~ drivers/nvdimm/pfn_devs.c:794:3: note: in expansion of macro =E2=80=98BUIL= D_BUG_ON=E2=80=99 =C2=A0 794 |=C2=A0 BUILD_BUG_ON(sizeof(struct page) > MAX_STRUCT_PAGE_SIZE= ); =C2=A0 =C2=A0 =C2=A0 |=C2=A0 ^~~~~~~~~~~~ make[5]: *** [scripts/Makefile.build:271: drivers/nvdimm/pfn_devs.o] Error= 1 make[4]: *** [scripts/Makefile.build:514: drivers/nvdimm] Error 2 make[4]: *** Waiting for unfinished jobs.... Grateful, Alexandre Frade ------=_Part_2529692_1135110684.1619922678254 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable =
=
Dear Yu Zhao,

I=20 don't know if it's a known issue with the 5.12 kernel released=20 [9f4ad9e]:

LRU_GEN v2 & v5.12 final:


In function =E2=80=98nd_pfn_init=E2=80=99,
  &nbs= p; inlined from =E2=80=98nvdimm_setup_pfn=E2=80=99 at drivers/nvdimm/pfn_de= vs.c:842:7:
././include/linux/compiler_types.h:320:38: error: call to= =20 =E2=80=98__compiletime_assert_349=E2=80=99 declared with attribute error: B= UILD_BUG_ON=20 failed: sizeof(struct page) > MAX_STRUCT_PAGE_SIZE
  320 | = ; _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)       |              &= nbsp;                    =   ^
././include/linux/compiler_types.h:301:4: note: in definition= of macro =E2=80=98__compiletime_assert=E2=80=99
  301 |  &nb= sp; prefix ## suffix();    \
      |  &nb= sp; ^~~~~~
././include/linux/compiler_types.h:320:2: note: in expansion= of macro =E2=80=98_compiletime_assert=E2=80=99
  320 |  _com= piletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
&nb= sp;     |  ^~~~~~~~~~~~~~~~~~~
./include/linux/build_bug= .h:39:37: note: in expansion of macro =E2=80=98compiletime_assert=E2=80=99<= br>   39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(co= nd), msg)
      |          &nbs= p;                     &n= bsp;   ^~~~~~~~~~~~~~~~~~
./include/linux/build_bug.h:50:2: note: = in expansion of macro =E2=80=98BUILD_BUG_ON_MSG=E2=80=99
  50 |&nb= sp; BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
&nb= sp;     |  ^~~~~~~~~~~~~~~~
drivers/nvdimm/pfn_devs.c:79= 4:3: note: in expansion of macro =E2=80=98BUILD_BUG_ON=E2=80=99
  = 794 |  BUILD_BUG_ON(sizeof(struct page) > MAX_STRUCT_PAGE_SIZE);       |  ^~~~~~~~~~~~
make[5]: *** [scripts/Makef= ile.build:271: drivers/nvdimm/pfn_devs.o] Error 1
make[4]: *** [scripts= /Makefile.build:514: drivers/nvdimm] Error 2
make[4]: *** Waiting for u= nfinished jobs....


Gra= teful,

Alexandre Frade








------=_Part_2529692_1135110684.1619922678254--