lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202412030318.lUO50DjW-lkp@intel.com>
Date: Tue, 3 Dec 2024 03:42:25 +0800
From: kernel test robot <lkp@...el.com>
To: Johannes Berg <johannes.berg@...el.com>
Cc: oe-kbuild-all@...ts.linux.dev, linux-kernel@...r.kernel.org,
	Richard Weinberger <richard@....at>
Subject: drivers/nvdimm/../../tools/testing/nvdimm/test/iomap.c:207:24:
 warning: passing argument 1 of 'iounmap' discards 'volatile' qualifier from
 pointer target type

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   e70140ba0d2b1a30467d4af6bcfe761327b9ec95
commit: 0bbadafdc49d11a1836e5946f517d18cceaea6c8 um: allow disabling NO_IOMEM
date:   3 years, 6 months ago
config: um-randconfig-r061-20241113 (https://download.01.org/0day-ci/archive/20241203/202412030318.lUO50DjW-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241203/202412030318.lUO50DjW-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@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202412030318.lUO50DjW-lkp@intel.com/

All warnings (new ones prefixed by >>):

   drivers/nvdimm/../../tools/testing/nvdimm/test/iomap.c:76:15: warning: no previous prototype for '__wrap_devm_ioremap' [-Wmissing-prototypes]
      76 | void __iomem *__wrap_devm_ioremap(struct device *dev,
         |               ^~~~~~~~~~~~~~~~~~~
   drivers/nvdimm/../../tools/testing/nvdimm/test/iomap.c:88:7: warning: no previous prototype for '__wrap_devm_memremap' [-Wmissing-prototypes]
      88 | void *__wrap_devm_memremap(struct device *dev, resource_size_t offset,
         |       ^~~~~~~~~~~~~~~~~~~~
   drivers/nvdimm/../../tools/testing/nvdimm/test/iomap.c:126:7: warning: no previous prototype for '__wrap_devm_memremap_pages' [-Wmissing-prototypes]
     126 | void *__wrap_devm_memremap_pages(struct device *dev, struct dev_pagemap *pgmap)
         |       ^~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/nvdimm/../../tools/testing/nvdimm/test/iomap.c:159:7: warning: no previous prototype for '__wrap_phys_to_pfn_t' [-Wmissing-prototypes]
     159 | pfn_t __wrap_phys_to_pfn_t(phys_addr_t addr, unsigned long flags)
         |       ^~~~~~~~~~~~~~~~~~~~
   drivers/nvdimm/../../tools/testing/nvdimm/test/iomap.c:169:7: warning: no previous prototype for '__wrap_memremap' [-Wmissing-prototypes]
     169 | void *__wrap_memremap(resource_size_t offset, size_t size,
         |       ^~~~~~~~~~~~~~~
   drivers/nvdimm/../../tools/testing/nvdimm/test/iomap.c:180:6: warning: no previous prototype for '__wrap_devm_memunmap' [-Wmissing-prototypes]
     180 | void __wrap_devm_memunmap(struct device *dev, void *addr)
         |      ^~~~~~~~~~~~~~~~~~~~
   drivers/nvdimm/../../tools/testing/nvdimm/test/iomap.c:190:15: warning: no previous prototype for '__wrap_ioremap' [-Wmissing-prototypes]
     190 | void __iomem *__wrap_ioremap(resource_size_t offset, unsigned long size)
         |               ^~~~~~~~~~~~~~
   drivers/nvdimm/../../tools/testing/nvdimm/test/iomap.c:196:15: warning: no previous prototype for '__wrap_ioremap_wc' [-Wmissing-prototypes]
     196 | void __iomem *__wrap_ioremap_wc(resource_size_t offset, unsigned long size)
         |               ^~~~~~~~~~~~~~~~~
   drivers/nvdimm/../../tools/testing/nvdimm/test/iomap.c: In function '__wrap_iounmap':
>> drivers/nvdimm/../../tools/testing/nvdimm/test/iomap.c:207:24: warning: passing argument 1 of 'iounmap' discards 'volatile' qualifier from pointer target type [-Wdiscarded-qualifiers]
     207 |         return iounmap(addr);
         |                        ^~~~
   In file included from include/linux/io.h:13,
                    from drivers/nvdimm/../../tools/testing/nvdimm/test/iomap.c:13:
   arch/um/include/asm/io.h:13:42: note: expected 'void *' but argument is of type 'volatile void *'
      13 | static inline void iounmap(void __iomem *addr)
         |                            ~~~~~~~~~~~~~~^~~~
   drivers/nvdimm/../../tools/testing/nvdimm/test/iomap.c: At top level:
   drivers/nvdimm/../../tools/testing/nvdimm/test/iomap.c:211:6: warning: no previous prototype for '__wrap_memunmap' [-Wmissing-prototypes]
     211 | void __wrap_memunmap(void *addr)
         |      ^~~~~~~~~~~~~~~
   drivers/nvdimm/../../tools/testing/nvdimm/test/iomap.c:347:18: warning: no previous prototype for '__wrap___request_region' [-Wmissing-prototypes]
     347 | struct resource *__wrap___request_region(struct resource *parent,
         |                  ^~~~~~~~~~~~~~~~~~~~~~~
   drivers/nvdimm/../../tools/testing/nvdimm/test/iomap.c:355:5: warning: no previous prototype for '__wrap_insert_resource' [-Wmissing-prototypes]
     355 | int __wrap_insert_resource(struct resource *parent, struct resource *res)
         |     ^~~~~~~~~~~~~~~~~~~~~~
   drivers/nvdimm/../../tools/testing/nvdimm/test/iomap.c:363:5: warning: no previous prototype for '__wrap_remove_resource' [-Wmissing-prototypes]
     363 | int __wrap_remove_resource(struct resource *res)
         |     ^~~~~~~~~~~~~~~~~~~~~~
   drivers/nvdimm/../../tools/testing/nvdimm/test/iomap.c:371:18: warning: no previous prototype for '__wrap___devm_request_region' [-Wmissing-prototypes]
     371 | struct resource *__wrap___devm_request_region(struct device *dev,
         |                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/nvdimm/../../tools/testing/nvdimm/test/iomap.c:381:6: warning: no previous prototype for '__wrap___release_region' [-Wmissing-prototypes]
     381 | void __wrap___release_region(struct resource *parent, resource_size_t start,
         |      ^~~~~~~~~~~~~~~~~~~~~~~
   drivers/nvdimm/../../tools/testing/nvdimm/test/iomap.c:389:6: warning: no previous prototype for '__wrap___devm_release_region' [-Wmissing-prototypes]
     389 | void __wrap___devm_release_region(struct device *dev, struct resource *parent,
         |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/nvdimm/../../tools/testing/nvdimm/test/iomap.c:397:13: warning: no previous prototype for '__wrap_acpi_evaluate_object' [-Wmissing-prototypes]
     397 | acpi_status __wrap_acpi_evaluate_object(acpi_handle handle, acpi_string path,
         |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/nvdimm/../../tools/testing/nvdimm/test/iomap.c:413:21: warning: no previous prototype for '__wrap_acpi_evaluate_dsm' [-Wmissing-prototypes]
     413 | union acpi_object * __wrap_acpi_evaluate_dsm(acpi_handle handle, const guid_t *guid,
         |                     ^~~~~~~~~~~~~~~~~~~~~~~~


vim +207 drivers/nvdimm/../../tools/testing/nvdimm/test/iomap.c

32ab0a3f51701c Dan Williams 2015-08-01  189  
c1468554776229 Dan Williams 2019-11-13 @190  void __iomem *__wrap_ioremap(resource_size_t offset, unsigned long size)
c1468554776229 Dan Williams 2019-11-13  191  {
c1468554776229 Dan Williams 2019-11-13  192  	return __nfit_test_ioremap(offset, size, ioremap);
c1468554776229 Dan Williams 2019-11-13  193  }
c1468554776229 Dan Williams 2019-11-13  194  EXPORT_SYMBOL(__wrap_ioremap);
c1468554776229 Dan Williams 2019-11-13  195  
9d27a87ec9e131 Dan Williams 2015-07-10  196  void __iomem *__wrap_ioremap_wc(resource_size_t offset, unsigned long size)
9d27a87ec9e131 Dan Williams 2015-07-10  197  {
9d27a87ec9e131 Dan Williams 2015-07-10  198  	return __nfit_test_ioremap(offset, size, ioremap_wc);
9d27a87ec9e131 Dan Williams 2015-07-10  199  }
9d27a87ec9e131 Dan Williams 2015-07-10  200  EXPORT_SYMBOL(__wrap_ioremap_wc);
9d27a87ec9e131 Dan Williams 2015-07-10  201  
6bc756193ff61b Dan Williams 2015-06-17  202  void __wrap_iounmap(volatile void __iomem *addr)
6bc756193ff61b Dan Williams 2015-06-17  203  {
9bfa84969dd52b Dan Williams 2015-12-11  204  	struct nfit_test_resource *nfit_res = get_nfit_res((long) addr);
6bc756193ff61b Dan Williams 2015-06-17  205  	if (nfit_res)
6bc756193ff61b Dan Williams 2015-06-17  206  		return;
6bc756193ff61b Dan Williams 2015-06-17 @207  	return iounmap(addr);
6bc756193ff61b Dan Williams 2015-06-17  208  }
6bc756193ff61b Dan Williams 2015-06-17  209  EXPORT_SYMBOL(__wrap_iounmap);
6bc756193ff61b Dan Williams 2015-06-17  210  

:::::: The code at line 207 was first introduced by commit
:::::: 6bc756193ff61bf5e7b3cfedfbb0873bf40f8055 tools/testing/nvdimm: libnvdimm unit test infrastructure

:::::: TO: Dan Williams <dan.j.williams@...el.com>
:::::: CC: Dan Williams <dan.j.williams@...el.com>

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ