Received: by 2002:a05:6a10:8a4d:0:0:0:0 with SMTP id dn13csp849066pxb; Fri, 13 Aug 2021 07:40:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyxJmVATQ2KUUw1B0rdrnNCVWw9dUI4obqHFJlHc9Zl+BvDmHIS+hSnUx5ZuZIfY0kViHKI X-Received: by 2002:aa7:d04c:: with SMTP id n12mr3602665edo.342.1628865642009; Fri, 13 Aug 2021 07:40:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628865642; cv=none; d=google.com; s=arc-20160816; b=SLd2NgLvLg8e17h0E6bvTf4Z6y282MaOVtL7DSO37EyKPi1JhHDMwIDWxrHsApTVzr l2VN9ve1awSIZcFqnQHinFjV+qmJixNHlxgj4RGVFdvxSqOBcMUqUWfyIQutfAmQn2Mh PiUbG0UFDXdfVzywDdZbdQaqhLy0KwACa/ORvG1ox65DRs3LM47n/6sxzxmQbgKQ7XnD fc+55m6ovgW76VxctqbH7yx0REX1wWL1vZiBwnS8oY1T9Xc173lzgsy16SkSaXiYxzTV WARmSDq7UeCFriwH4Iql3j/CRC5/Yx5278XCYfSldENg320F0impxo7o8G1aWosjhftO 1f8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=XFcKHw//2vd3U7QgQ2xiSNXiMROFy/RGQJrSBYI8aJU=; b=pI+gdOEsH0UnqvUkdGdtetbR99niQxORhcniheHupNyLP5Pq8TGljpr6AMr/r6vbTg VCoAijIE7NvJpDI+vV+bu3f5pEHZH0k+WTiCcBeanHYJeuGAd2racLljQIUgBgilRkBr WLWh59o417Gjlq1NleZu3fYl4NZdtd8D+tjhjbP6h+GrIkcHvHXlABK0ec3JXlQ3PPrG jdTztY2J7FuJee8Z7gw3kIZKQSinRoyS+r1Q67yJSWLrxbQR1lLYFvrLnhNby9IQpDVC wM/PTaQhZCeDmhKB+/jbI3qvcvnNAx2Fanc7/ISXBMcK5H+WtjTNlNl0YYemLosEBXAc aCCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=iVTBeYI4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id yd27si2371413ejb.445.2021.08.13.07.40.18; Fri, 13 Aug 2021 07:40:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=iVTBeYI4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239942AbhHMOZv (ORCPT + 99 others); Fri, 13 Aug 2021 10:25:51 -0400 Received: from mail.kernel.org ([198.145.29.99]:59346 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233567AbhHMOZu (ORCPT ); Fri, 13 Aug 2021 10:25:50 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 7090F6103A; Fri, 13 Aug 2021 14:25:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1628864723; bh=Pg8/Icgmmh9tdB5PBuJn/UBvXusnIC9tMqOURN6zA60=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=iVTBeYI4OabSa6AWUh+yTGkBmA9jepG4TryvcTBebSyw0bdh7EYT+MvDTKsABAHWm 9mWt7pSuszxRt7jQ5MpIBDuB735HL7iG0sngemdgSqnCf38hlnYXh9B1NbanT6twj/ 2JA9u0BDi0APPw3S3gPf2eYII6SSr58eJN1XB+h4bqlBgofm3U876V4jR8YImvosTq vDIpiRlzXptm9Gf4Z35aEBmw4U8Gmwx14R3agZ5qoyMnXNTkhX0uisUfHIqJUNG4v8 1/q96YaNdvZRSC2pI7c03ceOQYShz69Uzyf1pDUimU8V54oQijYrRZcjT5JOW3Czyw LkLhCO/7BWqqQ== Subject: Re: [PATCH v2 08/19] ARC: mm: switch pgtable_t back to struct page * To: kernel test robot , linux-snps-arc@lists.infradead.org Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Anshuman Khandual , Mike Rapoport References: <20210812233753.104217-9-vgupta@kernel.org> <202108131844.wJYo94q5-lkp@intel.com> From: Vineet Gupta Message-ID: Date: Fri, 13 Aug 2021 07:25:22 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <202108131844.wJYo94q5-lkp@intel.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 8/13/21 3:45 AM, kernel test robot wrote: > Hi Vineet, > > I love your patch! Yet something to improve: > > [auto build test ERROR on arc/for-next] > [also build test ERROR on linux/master linus/master v5.14-rc5 next-20210812] > [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/Vineet-Gupta/ARC-mm-updates-support-3-4-levels-and-asm-generic-pgalloc/20210813-074023 > base: https://git.kernel.org/pub/scm/linux/kernel/git/vgupta/arc.git for-next > config: arc-randconfig-s032-20210812 (attached as .config) > compiler: arceb-elf-gcc (GCC) 10.3.0 > reproduce: > wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross > chmod +x ~/bin/make.cross > # apt-get install sparse > # sparse version: v0.6.3-348-gf0e6938b-dirty > # https://github.com/0day-ci/linux/commit/36e618e081c5a49b2aff51823c5f012045e902ef > git remote add linux-review https://github.com/0day-ci/linux > git fetch --no-tags linux-review Vineet-Gupta/ARC-mm-updates-support-3-4-levels-and-asm-generic-pgalloc/20210813-074023 > git checkout 36e618e081c5a49b2aff51823c5f012045e902ef > # save the attached .config to linux build tree > COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=arc > > If you fix the issue, kindly add following tag as appropriate > Reported-by: kernel test robot > > All errors (new ones prefixed by >>): > > arch/arc/mm/init.c:35:13: warning: no previous prototype for 'arc_get_mem_sz' [-Wmissing-prototypes] > 35 | long __init arc_get_mem_sz(void) > | ^~~~~~~~~~~~~~ > arch/arc/mm/init.c:88:13: warning: no previous prototype for 'setup_arch_memory' [-Wmissing-prototypes] > 88 | void __init setup_arch_memory(void) > | ^~~~~~~~~~~~~~~~~ > In file included from : > arch/arc/mm/init.c: In function 'mem_init': >>> include/linux/compiler_types.h:328:38: error: call to '__compiletime_assert_328' declared with attribute error: BUILD_BUG_ON failed: (PTRS_PER_PGD * sizeof(pgd_t)) > PAGE_SIZE > 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/build_bug.h:50:2: note: in expansion of macro 'BUILD_BUG_ON_MSG' > 50 | BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition) > | ^~~~~~~~~~~~~~~~ > arch/arc/mm/init.c:193:2: note: in expansion of macro 'BUILD_BUG_ON' > 193 | BUILD_BUG_ON((PTRS_PER_PGD * sizeof(pgd_t)) > PAGE_SIZE); > | ^~~~~~~~~~~~ > Thx for the report. This is 4K page config, where PGDIR_SHIFT 21 causes 32-21 = 11 bits or 2k entries which won't fit in 4k page. I've added the fix and added Tested-by. -Vineet