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 5B0EBC433EF for ; Wed, 8 Dec 2021 17:57:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238392AbhLHSAw (ORCPT ); Wed, 8 Dec 2021 13:00:52 -0500 Received: from mga11.intel.com ([192.55.52.93]:38109 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229534AbhLHSAu (ORCPT ); Wed, 8 Dec 2021 13:00:50 -0500 X-IronPort-AV: E=McAfee;i="6200,9189,10192"; a="235404363" X-IronPort-AV: E=Sophos;i="5.88,190,1635231600"; d="scan'208";a="235404363" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Dec 2021 09:57:13 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,190,1635231600"; d="scan'208";a="679976513" Received: from lkp-server02.sh.intel.com (HELO 9e1e9f9b3bcb) ([10.239.97.151]) by orsmga005.jf.intel.com with ESMTP; 08 Dec 2021 09:56:52 -0800 Received: from kbuild by 9e1e9f9b3bcb with local (Exim 4.92) (envelope-from ) id 1mv1BT-0000sq-Hj; Wed, 08 Dec 2021 17:56:51 +0000 Date: Thu, 9 Dec 2021 01:56:44 +0800 From: kernel test robot To: Brian Kim Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org, Dongjin Kim , memeka , Yang Deokgyu Subject: [tobetter:odroid-5.16.y 20/75] drivers/char/exynos-gpiomem.c:121:22: error: incompatible types when assigning to type 'pgprot_t' {aka 'struct '} from type 'int' Message-ID: <202112090115.CsqYVkoF-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org tree: https://github.com/tobetter/linux odroid-5.16.y head: 04f296b5f991198f16f76ba15a23e9e00e30aac4 commit: 6720769118c835b66f65eb40c2d476fd615d9549 [20/75] ODROID-XU4: char: exynos: add /dev/gpiomem device for rootless user GPIO access config: um-i386_defconfig (https://download.01.org/0day-ci/archive/20211209/202112090115.CsqYVkoF-lkp@intel.com/config) compiler: gcc-9 (Debian 9.3.0-22) 9.3.0 reproduce (this is a W=1 build): # https://github.com/tobetter/linux/commit/6720769118c835b66f65eb40c2d476fd615d9549 git remote add tobetter https://github.com/tobetter/linux git fetch --no-tags tobetter odroid-5.16.y git checkout 6720769118c835b66f65eb40c2d476fd615d9549 # save the config file to linux build tree mkdir build_dir make W=1 O=build_dir ARCH=um SUBARCH=i386 SHELL=/bin/bash drivers/char/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): drivers/char/exynos-gpiomem.c: In function 'exynos_gpiomem_mmap': drivers/char/exynos-gpiomem.c:121:22: error: implicit declaration of function 'phys_mem_access_prot'; did you mean 'phys_mem_access_prot_allowed'? [-Werror=implicit-function-declaration] 121 | vma->vm_page_prot = phys_mem_access_prot(file, vma->vm_pgoff, | ^~~~~~~~~~~~~~~~~~~~ | phys_mem_access_prot_allowed >> drivers/char/exynos-gpiomem.c:121:22: error: incompatible types when assigning to type 'pgprot_t' {aka 'struct '} from type 'int' cc1: some warnings being treated as errors vim +121 drivers/char/exynos-gpiomem.c 106 107 static int exynos_gpiomem_mmap(struct file *file, struct vm_area_struct *vma) 108 { 109 int gpio_area = 0; 110 111 while (gpio_area < inst->gpio_area_count) { 112 if ((inst->gpio_regs_phys[gpio_area] >> PAGE_SHIFT) == vma->vm_pgoff) 113 goto found; 114 115 gpio_area++; 116 } 117 118 return -EACCES; 119 120 found: > 121 vma->vm_page_prot = phys_mem_access_prot(file, vma->vm_pgoff, 122 PAGE_SIZE, 123 vma->vm_page_prot); 124 125 vma->vm_ops = &exynos_gpiomem_vm_ops; 126 127 if (remap_pfn_range(vma, vma->vm_start, 128 vma->vm_pgoff, 129 PAGE_SIZE, 130 vma->vm_page_prot)) { 131 return -EAGAIN; 132 } 133 134 return 0; 135 } 136 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org