All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [intel-lts:5.15/dovetail-xenomai 2297/26832] arch/arm/mm/fault.c:160:15: warning: no previous prototype for function 'fault_entry'
Date: Tue, 29 Aug 2023 13:22:28 +0800	[thread overview]
Message-ID: <202308291313.LaheCtKO-lkp@intel.com> (raw)

Hi Philippe,

FYI, the error/warning still remains.

tree:   https://github.com/intel/linux-intel-lts.git 5.15/dovetail-xenomai
head:   ef4cd214d7c9836eb64fced61f30c02eadf8a91c
commit: 609f24eceac5bc30ee8dabb2168eba914c1a18e0 [2297/26832] ARM: dovetail: route traps
config: arm-randconfig-r033-20230828 (https://download.01.org/0day-ci/archive/20230829/202308291313.LaheCtKO-lkp@intel.com/config)
compiler: clang version 16.0.4 (https://github.com/llvm/llvm-project.git ae42196bc493ffe877a7e3dff8be32035dea4d07)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20230829/202308291313.LaheCtKO-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 <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202308291313.LaheCtKO-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> arch/arm/mm/fault.c:160:15: warning: no previous prototype for function 'fault_entry' [-Wmissing-prototypes]
   unsigned long fault_entry(int exception, struct pt_regs *regs)
                 ^
   arch/arm/mm/fault.c:160:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   unsigned long fault_entry(int exception, struct pt_regs *regs)
   ^
   static 
   arch/arm/mm/fault.c:609:1: warning: no previous prototype for function 'do_DataAbort' [-Wmissing-prototypes]
   do_DataAbort(unsigned long addr, unsigned int fsr, struct pt_regs *regs)
   ^
   arch/arm/mm/fault.c:608:12: note: declare 'static' if the function is not intended to be used outside of this translation unit
   asmlinkage void
              ^
              static 
   arch/arm/mm/fault.c:642:1: warning: no previous prototype for function 'do_PrefetchAbort' [-Wmissing-prototypes]
   do_PrefetchAbort(unsigned long addr, unsigned int ifsr, struct pt_regs *regs)
   ^
   arch/arm/mm/fault.c:641:12: note: declare 'static' if the function is not intended to be used outside of this translation unit
   asmlinkage void
              ^
              static 
   3 warnings generated.

Kconfig warnings: (for reference only)
   WARNING: unmet direct dependencies detected for GENERIC_CLOCKSOURCE_VDSO
   Depends on [n]: HAVE_GENERIC_VDSO [=n]
   Selected by [y]:
   - CLKSRC_EXYNOS_MCT [=y] && GENERIC_CLOCKEVENTS [=y] && (ARM [=y] || ARM64)
   - CLKSRC_IMX_GPT [=y] && GENERIC_CLOCKEVENTS [=y] && (ARM [=y] || ARM64) && HAVE_CLK [=y]
   - CLKSRC_ST_LPC [=y] && GENERIC_CLOCKEVENTS [=y] && HAS_IOMEM [=y]


vim +/fault_entry +160 arch/arm/mm/fault.c

    89	
    90	/*
    91	 * This is useful to dump out the page tables associated with
    92	 * 'addr' in mm 'mm'.
    93	 */
    94	void show_pte(const char *lvl, struct mm_struct *mm, unsigned long addr)
    95	{
    96		pgd_t *pgd;
    97	
    98		if (!mm)
    99			mm = &init_mm;
   100	
   101		printk("%spgd = %p\n", lvl, mm->pgd);
   102		pgd = pgd_offset(mm, addr);
   103		printk("%s[%08lx] *pgd=%08llx", lvl, addr, (long long)pgd_val(*pgd));
   104	
   105		do {
   106			p4d_t *p4d;
   107			pud_t *pud;
   108			pmd_t *pmd;
   109			pte_t *pte;
   110	
   111			p4d = p4d_offset(pgd, addr);
   112			if (p4d_none(*p4d))
   113				break;
   114	
   115			if (p4d_bad(*p4d)) {
   116				pr_cont("(bad)");
   117				break;
   118			}
   119	
   120			pud = pud_offset(p4d, addr);
   121			if (PTRS_PER_PUD != 1)
   122				pr_cont(", *pud=%08llx", (long long)pud_val(*pud));
   123	
   124			if (pud_none(*pud))
   125				break;
   126	
   127			if (pud_bad(*pud)) {
   128				pr_cont("(bad)");
   129				break;
   130			}
   131	
   132			pmd = pmd_offset(pud, addr);
   133			if (PTRS_PER_PMD != 1)
   134				pr_cont(", *pmd=%08llx", (long long)pmd_val(*pmd));
   135	
   136			if (pmd_none(*pmd))
   137				break;
   138	
   139			if (pmd_bad(*pmd)) {
   140				pr_cont("(bad)");
   141				break;
   142			}
   143	
   144			/* We must not map this if we have highmem enabled */
   145			if (PageHighMem(pfn_to_page(pmd_val(*pmd) >> PAGE_SHIFT)))
   146				break;
   147	
   148			pte = pte_offset_map(pmd, addr);
   149			pr_cont(", *pte=%08llx", (long long)pte_val(*pte));
   150	#ifndef CONFIG_ARM_LPAE
   151			pr_cont(", *ppte=%08llx",
   152			       (long long)pte_val(pte[PTE_HWTABLE_PTRS]));
   153	#endif
   154			pte_unmap(pte);
   155		} while(0);
   156	
   157		pr_cont("\n");
   158	}
   159	#else					/* CONFIG_MMU */
 > 160	unsigned long fault_entry(int exception, struct pt_regs *regs)
   161	{
   162		return 0;
   163	}
   164	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

                 reply	other threads:[~2023-08-29  5:23 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202308291313.LaheCtKO-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.