All of lore.kernel.org
 help / color / mirror / Atom feed
* [openeuler:OLK-5.10 2516/2516] arch/arm64/mm/pmem_reserve.c:13:13: warning: no previous prototype for 'setup_reserve_pmem'
@ 2024-12-02 22:28 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-12-02 22:28 UTC (permalink / raw)
  To: kernel, Zheng Zengkai; +Cc: oe-kbuild-all

Hi Zhuling,

FYI, the error/warning still remains.

tree:   https://gitee.com/openeuler/kernel.git OLK-5.10
head:   929a9df37c1b7dec73fd417d79a116d02a8f9380
commit: db4cd75bc674e6f473c0a7303b1744155352882c [2516/2516] arm64: register persistent memory via protected memory
config: arm64-randconfig-002-20241203 (https://download.01.org/0day-ci/archive/20241203/202412030629.xfIRDSCP-lkp@intel.com/config)
compiler: aarch64-linux-gcc (GCC) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241203/202412030629.xfIRDSCP-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/202412030629.xfIRDSCP-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> arch/arm64/mm/pmem_reserve.c:13:13: warning: no previous prototype for 'setup_reserve_pmem' [-Wmissing-prototypes]
      13 | void __init setup_reserve_pmem(u64 start, u64 size)
         |             ^~~~~~~~~~~~~~~~~~
>> arch/arm64/mm/pmem_reserve.c:25:13: warning: no previous prototype for 'request_pmem_res_resource' [-Wmissing-prototypes]
      25 | void __init request_pmem_res_resource(void)
         |             ^~~~~~~~~~~~~~~~~~~~~~~~~
>> arch/arm64/mm/pmem_reserve.c:40:13: warning: no previous prototype for 'reserve_pmem' [-Wmissing-prototypes]
      40 | void __init reserve_pmem(void)
         |             ^~~~~~~~~~~~

Kconfig warnings: (for reference only)
   WARNING: unmet direct dependencies detected for HARDLOCKUP_DETECTOR
   Depends on [n]: DEBUG_KERNEL [=n] && !S390 && (HAVE_HARDLOCKUP_DETECTOR_PERF [=n] || HAVE_HARDLOCKUP_DETECTOR_ARCH [=y])
   Selected by [y]:
   - SDEI_WATCHDOG [=y] && ARM64 [=y] && ARM_SDE_INTERFACE [=y] && !HARDLOCKUP_CHECK_TIMESTAMP [=n]
   WARNING: unmet direct dependencies detected for PGP_PRELOAD
   Depends on [n]: CRYPTO [=y] && ASYMMETRIC_KEY_TYPE [=n]
   Selected by [y]:
   - PGP_PRELOAD_PUBLIC_KEYS [=y] && CRYPTO [=y]


vim +/setup_reserve_pmem +13 arch/arm64/mm/pmem_reserve.c

    12	
  > 13	void __init setup_reserve_pmem(u64 start, u64 size)
    14	{
    15		if (pmem_res_cnt >= MAX_REGIONS) {
    16			pr_err("protected memory regions above upper limit %d\n", MAX_REGIONS);
    17			return;
    18		}
    19	
    20		pmem_res[pmem_res_cnt].start = start;
    21		pmem_res[pmem_res_cnt].end = start + size - 1;
    22		pmem_res_cnt++;
    23	}
    24	
  > 25	void __init request_pmem_res_resource(void)
    26	{
    27		struct resource *res;
    28		int i;
    29	
    30		for (i = 0; i < pmem_res_cnt; i++) {
    31			res = &pmem_res[i];
    32			res->name = "Persistent Memory (legacy)";
    33			res->flags = IORESOURCE_MEM;
    34			res->desc = IORES_DESC_PERSISTENT_MEMORY_LEGACY;
    35			if (res->start && res->end)
    36				request_resource(&iomem_resource, res);
    37		}
    38	}
    39	
  > 40	void __init reserve_pmem(void)

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-12-02 22:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-02 22:28 [openeuler:OLK-5.10 2516/2516] arch/arm64/mm/pmem_reserve.c:13:13: warning: no previous prototype for 'setup_reserve_pmem' kernel test robot

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.