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 2A960E77188 for ; Sun, 22 Dec 2024 07:06:42 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 3E5FC6B007B; Sun, 22 Dec 2024 02:06:42 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 36DF06B0082; Sun, 22 Dec 2024 02:06:42 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 211186B0083; Sun, 22 Dec 2024 02:06:42 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id F15076B007B for ; Sun, 22 Dec 2024 02:06:41 -0500 (EST) Received: from smtpin24.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 5E0A580280 for ; Sun, 22 Dec 2024 07:06:41 +0000 (UTC) X-FDA: 82921711110.24.87A2576 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.7]) by imf09.hostedemail.com (Postfix) with ESMTP id B283714000B for ; Sun, 22 Dec 2024 07:06:13 +0000 (UTC) Authentication-Results: imf09.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b="Qk/YwPPj"; spf=pass (imf09.hostedemail.com: domain of lkp@intel.com designates 192.198.163.7 as permitted sender) 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=1734851175; 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: references:dkim-signature; bh=XLq4nfHNA5tQg/t72gxdGxt+x06NJIxVmV8yF14KquE=; b=Mz+KQ1+/Vto/jC5xX2ft4sceUJTjolkSEtmKpVzn8MP6ab6mAMM7csFAmFNqD3Mg5+Y++t OyRAIYJokzyIHL3EoYbQSaiuS8/lu4xTeN5AeGg6Bpc5PtZI+16GFz7r+FAb8U0l6Ny4l4 nHVZFrLp10et+OgHACQ0MhlcgD3CkfE= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1734851175; a=rsa-sha256; cv=none; b=WQxn8KodOy628vetjqN0CaIGnlUg4FVT5g15iEZZRAV5vhoZXN9MjsFqS6qj9qwM8lFzYL CEcpQEvxQeurni9at8ekapzqEP04HjlR+oBzSZbr7AJd+fsQesn7noDMrbafn7MAKOnRgt glBsT5QkCMTnq6u0+F+ps4BUFVR6TAo= ARC-Authentication-Results: i=1; imf09.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b="Qk/YwPPj"; spf=pass (imf09.hostedemail.com: domain of lkp@intel.com designates 192.198.163.7 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1734851199; x=1766387199; h=date:from:to:cc:subject:message-id:mime-version; bh=Dlj7j408Rj5pnROfE461rnMR5pdwG2ljr5dsMldvvk8=; b=Qk/YwPPjUXPYNx380W4sXbf/DlMAF83fVoj4LjoZ/OkCqKkkO4IImIuu 6dTaNdCFN1CSg/ZV/V20Vnj9cVDpDrwnzTXx1bKK73j6ZvuGh3fT5h6IN wrrVpfnu0/OyqNOM3VLevVTkBZIZdBcF9mKjKD6EEKnvY7V7MS6Y3IcXF XX4ceG7xwKMpkoMXm1zGj2zSs3FNV7m2IiKcOMM/n2tH/n1S+ZC49Iq/N gJYqCjOEZpGYFh5BX6eeCF1SJg6e5umTZo2VxcmDPQLbswn+HO/ZBaLUO lPMUSc8syQPjuM8huq8ZwQjeY090OrDSefVwkgr0HCLtTM0OqtKQl1Vte w==; X-CSE-ConnectionGUID: j0G1JX+BQ8C700qnOZX/8w== X-CSE-MsgGUID: n098wVEDSSOMljiYbMUXyw== X-IronPort-AV: E=McAfee;i="6700,10204,11293"; a="60730261" X-IronPort-AV: E=Sophos;i="6.12,254,1728975600"; d="scan'208";a="60730261" Received: from fmviesa004.fm.intel.com ([10.60.135.144]) by fmvoesa101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Dec 2024 23:06:35 -0800 X-CSE-ConnectionGUID: l6FqANuPR1CZI4FfOVRuiw== X-CSE-MsgGUID: VF7wfc3VRpGhsqztFpwOhg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.12,254,1728975600"; d="scan'208";a="103769250" Received: from lkp-server01.sh.intel.com (HELO a46f226878e0) ([10.239.97.150]) by fmviesa004.fm.intel.com with ESMTP; 21 Dec 2024 23:06:34 -0800 Received: from kbuild by a46f226878e0 with local (Exim 4.96) (envelope-from ) id 1tPG2p-0002mD-2m; Sun, 22 Dec 2024 07:06:31 +0000 Date: Sun, 22 Dec 2024 15:06:30 +0800 From: kernel test robot To: Mike Rapoport Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, Andrew Morton , Linux Memory Management List Subject: arch/sh/mm/cache-sh4.c:223:15: error: implicit declaration of function 'pmd_off' Message-ID: <202412221527.oTd4Lie4-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspamd-Server: rspam02 X-Rspamd-Queue-Id: B283714000B X-Stat-Signature: e9rg1unt6xyuw91pdiugfnjz86bmezds X-Rspam-User: X-HE-Tag: 1734851173-510842 X-HE-Meta: U2FsdGVkX1/CgYo81ZbAgVIzN4XfmSYipVZYwjCgl90TT5D364uhYfFmbEDGUFj5lP6eHU+fIfdIvFRgBBI3mVGNSN/bTpfDFTVaAOhFOZJq73MqovTafh9L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InETtut06rHZoV0hcZeg4wxaVWb0E3ZeH0r7nG4vTt226OLWGHxBuEmLiPetBlAf4aj+/VuuWGvQ4tcybkaAgtlUl3dM6yV9RDyNK/p/7ab3LyvuNk3D7fzoamV/aE3o/ZFGQQDc/SS982MNXsvaFkH4Zdg== 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: List-Subscribe: List-Unsubscribe: tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 48f506ad0b683d3e7e794efa60c5785c4fdc86fa commit: e05c7b1f2bc4b7b28199b9a7572f73436d97317e mm: pgtable: add shortcuts for accessing kernel PMD and PTE date: 4 years, 6 months ago config: sh-randconfig-002-20241212 (https://download.01.org/0day-ci/archive/20241222/202412221527.oTd4Lie4-lkp@intel.com/config) compiler: sh4-linux-gcc (GCC) 12.4.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241222/202412221527.oTd4Lie4-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202412221527.oTd4Lie4-lkp@intel.com/ All errors (new ones prefixed by >>): cc1: error: arch/sh/include/mach-highlander: No such file or directory [-Werror=missing-include-dirs] cc1: error: arch/sh/include/mach-sdk7780: No such file or directory [-Werror=missing-include-dirs] cc1: error: arch/sh/include/mach-highlander: No such file or directory [-Werror=missing-include-dirs] cc1: error: arch/sh/include/mach-sdk7780: No such file or directory [-Werror=missing-include-dirs] arch/sh/mm/cache-sh4.c: In function 'flush_cache_one': arch/sh/mm/cache-sh4.c:98:31: error: 'cached_to_uncached' undeclared (first use in this function); did you mean 'jump_to_uncached'? 98 | exec_offset = cached_to_uncached; | ^~~~~~~~~~~~~~~~~~ | jump_to_uncached arch/sh/mm/cache-sh4.c:98:31: note: each undeclared identifier is reported only once for each function it appears in In file included from include/linux/init.h:5, from arch/sh/mm/cache-sh4.c:13: arch/sh/mm/cache-sh4.c: In function 'sh4_flush_cache_mm': arch/sh/mm/cache-sh4.c:191:13: error: implicit declaration of function 'cpu_context'; did you mean 'put_io_context'? [-Werror=implicit-function-declaration] 191 | if (cpu_context(smp_processor_id(), mm) == NO_CONTEXT) | ^~~~~~~~~~~ include/linux/compiler.h:58:52: note: in definition of macro '__trace_if_var' 58 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond)) | ^~~~ arch/sh/mm/cache-sh4.c:191:9: note: in expansion of macro 'if' 191 | if (cpu_context(smp_processor_id(), mm) == NO_CONTEXT) | ^~ arch/sh/mm/cache-sh4.c: In function 'sh4_flush_cache_page': >> arch/sh/mm/cache-sh4.c:223:15: error: implicit declaration of function 'pmd_off' [-Werror=implicit-function-declaration] 223 | pmd = pmd_off(vma->vm_mm, address); | ^~~~~~~ arch/sh/mm/cache-sh4.c:223:13: error: assignment to 'pmd_t *' from 'int' makes pointer from integer without a cast [-Werror=int-conversion] 223 | pmd = pmd_off(vma->vm_mm, address); | ^ arch/sh/mm/cache-sh4.c: At top level: arch/sh/mm/cache-sh4.c:373:13: error: no previous prototype for 'sh4_cache_init' [-Werror=missing-prototypes] 373 | void __init sh4_cache_init(void) | ^~~~~~~~~~~~~~ cc1: all warnings being treated as errors vim +/pmd_off +223 arch/sh/mm/cache-sh4.c 176 177 /* 178 * Note : (RPC) since the caches are physically tagged, the only point 179 * of flush_cache_mm for SH-4 is to get rid of aliases from the 180 * D-cache. The assumption elsewhere, e.g. flush_cache_range, is that 181 * lines can stay resident so long as the virtual address they were 182 * accessed with (hence cache set) is in accord with the physical 183 * address (i.e. tag). It's no different here. 184 * 185 * Caller takes mm->mmap_sem. 186 */ 187 static void sh4_flush_cache_mm(void *arg) 188 { 189 struct mm_struct *mm = arg; 190 > 191 if (cpu_context(smp_processor_id(), mm) == NO_CONTEXT) 192 return; 193 194 flush_dcache_all(); 195 } 196 197 /* 198 * Write back and invalidate I/D-caches for the page. 199 * 200 * ADDR: Virtual Address (U0 address) 201 * PFN: Physical page number 202 */ 203 static void sh4_flush_cache_page(void *args) 204 { 205 struct flusher_data *data = args; 206 struct vm_area_struct *vma; 207 struct page *page; 208 unsigned long address, pfn, phys; 209 int map_coherent = 0; 210 pmd_t *pmd; 211 pte_t *pte; 212 void *vaddr; 213 214 vma = data->vma; 215 address = data->addr1 & PAGE_MASK; 216 pfn = data->addr2; 217 phys = pfn << PAGE_SHIFT; 218 page = pfn_to_page(pfn); 219 220 if (cpu_context(smp_processor_id(), vma->vm_mm) == NO_CONTEXT) 221 return; 222 > 223 pmd = pmd_off(vma->vm_mm, address); 224 pte = pte_offset_kernel(pmd, address); 225 226 /* If the page isn't present, there is nothing to do here. */ 227 if (!(pte_val(*pte) & _PAGE_PRESENT)) 228 return; 229 230 if ((vma->vm_mm == current->active_mm)) 231 vaddr = NULL; 232 else { 233 /* 234 * Use kmap_coherent or kmap_atomic to do flushes for 235 * another ASID than the current one. 236 */ 237 map_coherent = (current_cpu_data.dcache.n_aliases && 238 test_bit(PG_dcache_clean, &page->flags) && 239 page_mapcount(page)); 240 if (map_coherent) 241 vaddr = kmap_coherent(page, address); 242 else 243 vaddr = kmap_atomic(page); 244 245 address = (unsigned long)vaddr; 246 } 247 248 flush_cache_one(CACHE_OC_ADDRESS_ARRAY | 249 (address & shm_align_mask), phys); 250 251 if (vma->vm_flags & VM_EXEC) 252 flush_icache_all(); 253 254 if (vaddr) { 255 if (map_coherent) 256 kunmap_coherent(vaddr); 257 else 258 kunmap_atomic(vaddr); 259 } 260 } 261 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki