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 A1276C43334 for ; Mon, 13 Jun 2022 11:13:38 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 2140F8D017B; Mon, 13 Jun 2022 07:13:38 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 1C36D8D0171; Mon, 13 Jun 2022 07:13:38 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 03CBA8D017B; Mon, 13 Jun 2022 07:13:37 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id E43828D0171 for ; Mon, 13 Jun 2022 07:13:37 -0400 (EDT) Received: from smtpin02.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id B33ED210AD for ; Mon, 13 Jun 2022 11:13:37 +0000 (UTC) X-FDA: 79572952074.02.8F6407A Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by imf11.hostedemail.com (Postfix) with ESMTP id A5B0440084 for ; Mon, 13 Jun 2022 11:13:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1655118815; x=1686654815; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=5tZQf9EAVDpCey4B5lB7oXuEVWHHk1ZjyHK7x16J6ZM=; b=k9cYPgVgFNHlC/Or/mDtTj7D/mVPkckMzVNJ0ol6kbwnnOLFs7qG2PFn BzLw3ZuquMECsGMQ2g6RlQabc0dL5rG9I94q+l+aCDvOqxBpt8twCcqdr juGc8JpgV98SErBxMQr25KZeH6SNVnKjBh4jfb5KKLb88ykpGEoTl7dA1 8PwLk7Sqr4fcGzzn+ROfAOgVqe/6oVbGFhzZHw3l1uT2r3+Hv0TQeDkB0 CNOPJT+PjivO1h2UiAVgUzRBJgCJjTPonnN4Cuoxf2t9F3uZnVY+qv79Y WJk2zSg1T16cI1HXuGXK7DiDGks8L0IyJHm8wcnjIgZsulhchPiQrJrny g==; X-IronPort-AV: E=McAfee;i="6400,9594,10376"; a="342222533" X-IronPort-AV: E=Sophos;i="5.91,297,1647327600"; d="scan'208";a="342222533" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Jun 2022 04:13:31 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,297,1647327600"; d="scan'208";a="711970654" Received: from lkp-server01.sh.intel.com (HELO 60dabacc1df6) ([10.239.97.150]) by orsmga004.jf.intel.com with ESMTP; 13 Jun 2022 04:13:29 -0700 Received: from kbuild by 60dabacc1df6 with local (Exim 4.95) (envelope-from ) id 1o0i0e-000Kl1-SQ; Mon, 13 Jun 2022 11:13:28 +0000 Date: Mon, 13 Jun 2022 19:13:26 +0800 From: kernel test robot To: Anshuman Khandual , linux-mm@kvack.org Cc: kbuild-all@lists.01.org, Anshuman Khandual , Andrew Morton , Linux Memory Management List , linux-kernel@vger.kernel.org Subject: Re: [PATCH V2 2/2] mm/mmap: Drop generic protection_map[] array Message-ID: <202206131931.ZJuanaBo-lkp@intel.com> References: <20220613053354.553579-3-anshuman.khandual@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220613053354.553579-3-anshuman.khandual@arm.com> ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1655118816; a=rsa-sha256; cv=none; b=Y8YRpHqZVAKtAhqrgWpgFoW+Lt2OakdXCpeQ8eYFL6u+T0Qsmt3ZJ8ew/yRsu+A7amWN3d ChZ/B3gLlP1gT+wD8oD7ayXX2EJ4veujGZ1lkiO7H2SBq3hWMf++tawRsCcZEZ9tFTJ0g2 Oi1zQT7B7pW4GF9OGkunc1li//hP5+I= ARC-Authentication-Results: i=1; imf11.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=k9cYPgVg; spf=none (imf11.hostedemail.com: domain of lkp@intel.com has no SPF policy when checking 134.134.136.100) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1655118816; 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=2judwbzcmcoBkS9zpkB8tDGkNLMyfnm5+SVlK9xsIz8=; b=b0de3sX/XmcsJBIUiqDwJYUvA8wf+NCbZtMprkcMYOyHg0VKsuZQcZ9Tlp22fvgQdwFR6c zyPg/z+uHuu02NXs/REnqFxz2oy+DgwM666t9tsvvTe4d5iOv7JqwQLTtHU60QjwLjNvgf c8mCul7xGpCSnE7/EGqUsiuLcYnWgcA= X-Rspamd-Queue-Id: A5B0440084 Authentication-Results: imf11.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=k9cYPgVg; spf=none (imf11.hostedemail.com: domain of lkp@intel.com has no SPF policy when checking 134.134.136.100) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com X-Rspam-User: X-Rspamd-Server: rspam06 X-Stat-Signature: aht7g671g4nincnnbbzkjkchjyfztwx4 X-HE-Tag: 1655118815-947679 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: Hi Anshuman, Thank you for the patch! Yet something to improve: [auto build test ERROR on akpm-mm/mm-everything] url: https://github.com/intel-lab-lkp/linux/commits/Anshuman-Khandual/mm-mmap-Drop-__SXXX-__PXXX-macros-from-across-platforms/20220613-133456 base: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-everything config: powerpc64-randconfig-r016-20220613 (https://download.01.org/0day-ci/archive/20220613/202206131931.ZJuanaBo-lkp@intel.com/config) compiler: powerpc64le-linux-gcc (GCC) 11.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://github.com/intel-lab-lkp/linux/commit/696f81b49f7b6316f652d795da4c0008efef4487 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Anshuman-Khandual/mm-mmap-Drop-__SXXX-__PXXX-macros-from-across-platforms/20220613-133456 git checkout 696f81b49f7b6316f652d795da4c0008efef4487 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.3.0 make.cross W=1 O=build_dir ARCH=powerpc SHELL=/bin/bash arch/powerpc/mm/book3s64/ 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 arch/powerpc/include/asm/page.h:306, from arch/powerpc/include/asm/mmu.h:149, from arch/powerpc/include/asm/lppaca.h:46, from arch/powerpc/include/asm/paca.h:18, from arch/powerpc/include/asm/current.h:13, from include/linux/sched.h:12, from arch/powerpc/mm/book3s64/pgtable.c:6: arch/powerpc/mm/book3s64/pgtable.c: In function 'vm_get_page_prot': >> arch/powerpc/mm/book3s64/pgtable.c:557:41: error: 'protection_map' undeclared (first use in this function) 557 | unsigned long prot = pgprot_val(protection_map[vm_flags & | ^~~~~~~~~~~~~~ arch/powerpc/include/asm/pgtable-be-types.h:68:27: note: in definition of macro 'pgprot_val' 68 | #define pgprot_val(x) ((x).pgprot) | ^ arch/powerpc/mm/book3s64/pgtable.c:557:41: note: each undeclared identifier is reported only once for each function it appears in 557 | unsigned long prot = pgprot_val(protection_map[vm_flags & | ^~~~~~~~~~~~~~ arch/powerpc/include/asm/pgtable-be-types.h:68:27: note: in definition of macro 'pgprot_val' 68 | #define pgprot_val(x) ((x).pgprot) | ^ vim +/protection_map +557 arch/powerpc/mm/book3s64/pgtable.c 634093c59a12fc Anshuman Khandual 2022-04-28 553 847c271152e941 Anshuman Khandual 2022-06-13 554 /* Note due to the way vm flags are laid out, the bits are XWR */ 634093c59a12fc Anshuman Khandual 2022-04-28 555 pgprot_t vm_get_page_prot(unsigned long vm_flags) 634093c59a12fc Anshuman Khandual 2022-04-28 556 { 634093c59a12fc Anshuman Khandual 2022-04-28 @557 unsigned long prot = pgprot_val(protection_map[vm_flags & 634093c59a12fc Anshuman Khandual 2022-04-28 558 (VM_READ|VM_WRITE|VM_EXEC|VM_SHARED)]); 634093c59a12fc Anshuman Khandual 2022-04-28 559 634093c59a12fc Anshuman Khandual 2022-04-28 560 if (vm_flags & VM_SAO) 634093c59a12fc Anshuman Khandual 2022-04-28 561 prot |= _PAGE_SAO; 634093c59a12fc Anshuman Khandual 2022-04-28 562 -- 0-DAY CI Kernel Test Service https://01.org/lkp