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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E99E4C54EE9 for ; Wed, 7 Sep 2022 22:17:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229712AbiIGWRi (ORCPT ); Wed, 7 Sep 2022 18:17:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52368 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229598AbiIGWRf (ORCPT ); Wed, 7 Sep 2022 18:17:35 -0400 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DDF109E895 for ; Wed, 7 Sep 2022 15:17:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1662589054; x=1694125054; h=date:from:to:cc:subject:message-id:mime-version; bh=o8geMSLBk2VEUvSCrM5cmTFHTBH6Cr1248inD01duXs=; b=amHLtxsGo+1c5NMGRR/Wr1z/zs6pFPdMB1qiCA+EGY1XtaJ/H/vspE3c qLvoyK4Z8z2aofwMsrj/uxW8RffOnDOLicSC1EsOiG6qzHD8CTTf1NVYg 23Vb4ZWQ4RKcN5xLaDz06xcz2kGD2eWY5VHI0p7Srfb8EqFp43LWVqxGl APXwCBlZVTW6ih1os5ozp04873GTA2zvJ6cksKJq7TLu+AYfG0H+b+jTA bhhUudKdCv77gzFDHvhlWmr6InA9q9g6lXOE76HAbCUERf6m6fXFANOcb BeaF79MbkH29y7xTbQmWiuLzeyEHUA2Pv4xYuxKeBoaS5eN3Wzcv6ju8G A==; X-IronPort-AV: E=McAfee;i="6500,9779,10463"; a="360974522" X-IronPort-AV: E=Sophos;i="5.93,298,1654585200"; d="scan'208";a="360974522" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Sep 2022 15:17:34 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,298,1654585200"; d="scan'208";a="644806457" Received: from lkp-server02.sh.intel.com (HELO 95dfd251caa2) ([10.239.97.151]) by orsmga008.jf.intel.com with ESMTP; 07 Sep 2022 15:17:33 -0700 Received: from kbuild by 95dfd251caa2 with local (Exim 4.96) (envelope-from ) id 1oW3MS-00070f-2n; Wed, 07 Sep 2022 22:17:32 +0000 Date: Thu, 8 Sep 2022 06:17:30 +0800 From: kernel test robot To: Dave Hansen Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org Subject: [daveh-devel:testme 1/1] arch/x86/mm/pat/set_memory.c:2254:22: error: invalid operands to binary | (have 'pgprot_t' {aka 'struct pgprot'} and 'long unsigned int') Message-ID: <202209080608.99NMiui4-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org tree: https://git.kernel.org/pub/scm/linux/kernel/git/daveh/devel.git testme head: 081cfdf8062c89d33ee205da299ea36b7e648a5a commit: 081cfdf8062c89d33ee205da299ea36b7e648a5a [1/1] x86/mm: Set NX bit when making pages present config: x86_64-defconfig (https://download.01.org/0day-ci/archive/20220908/202209080608.99NMiui4-lkp@intel.com/config) compiler: gcc-11 (Debian 11.3.0-5) 11.3.0 reproduce (this is a W=1 build): # https://git.kernel.org/pub/scm/linux/kernel/git/daveh/devel.git/commit/?id=081cfdf8062c89d33ee205da299ea36b7e648a5a git remote add daveh-devel https://git.kernel.org/pub/scm/linux/kernel/git/daveh/devel.git git fetch --no-tags daveh-devel testme git checkout 081cfdf8062c89d33ee205da299ea36b7e648a5a # save the config file mkdir build_dir && cp config build_dir/.config make W=1 O=build_dir ARCH=x86_64 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 >>): arch/x86/mm/pat/set_memory.c: In function '__set_pages_p': >> arch/x86/mm/pat/set_memory.c:2254:22: error: invalid operands to binary | (have 'pgprot_t' {aka 'struct pgprot'} and 'long unsigned int') 2254 | cpa.mask_set |= __supported_pte_mask & _PAGE_NX; | ^~ vim +2254 arch/x86/mm/pat/set_memory.c 2239 2240 static int __set_pages_p(struct page *page, int numpages) 2241 { 2242 unsigned long tempaddr = (unsigned long) page_address(page); 2243 struct cpa_data cpa = { .vaddr = &tempaddr, 2244 .pgd = NULL, 2245 .numpages = numpages, 2246 .mask_set = __pgprot(_PAGE_PRESENT | _PAGE_RW), 2247 .mask_clr = __pgprot(0), 2248 .flags = 0}; 2249 2250 /* 2251 * Avoid W^X mappings that occur if the old 2252 * mapping was !_PAGE_RW and !_PAGE_NX. 2253 */ > 2254 cpa.mask_set |= __supported_pte_mask & _PAGE_NX; 2255 2256 /* 2257 * No alias checking needed for setting present flag. otherwise, 2258 * we may need to break large pages for 64-bit kernel text 2259 * mappings (this adds to complexity if we want to do this from 2260 * atomic context especially). Let's keep it simple! 2261 */ 2262 return __change_page_attr_set_clr(&cpa, 0); 2263 } 2264 -- 0-DAY CI Kernel Test Service https://01.org/lkp