All of lore.kernel.org
 help / color / mirror / Atom feed
* [zen-kernel-zen-kernel:5.4/fixes 1/4] lib/devres.c:44:10: error: implicit declaration of function 'ioremap_uc'; did you mean 'ioremap_wc'?
@ 2019-12-31 21:30 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2019-12-31 21:30 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 2427 bytes --]

tree:   https://github.com/zen-kernel/zen-kernel 5.4/fixes
head:   9ee25dd5ad73678f96469e77b6968c05f008f851
commit: 3819a8e1b1b6d89b737a0566b579aef00a3cf723 [1/4] lib: devres: add a helper function for ioremap_uc
config: sparc64-randconfig-a001-20191231 (attached as .config)
compiler: sparc64-linux-gcc (GCC) 7.5.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 3819a8e1b1b6d89b737a0566b579aef00a3cf723
        # save the attached .config to linux build tree
        GCC_VERSION=7.5.0 make.cross ARCH=sparc64 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>

All error/warnings (new ones prefixed by >>):

   lib/devres.c: In function '__devm_ioremap':
>> lib/devres.c:44:10: error: implicit declaration of function 'ioremap_uc'; did you mean 'ioremap_wc'? [-Werror=implicit-function-declaration]
      addr = ioremap_uc(offset, size);
             ^~~~~~~~~~
             ioremap_wc
>> lib/devres.c:44:8: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
      addr = ioremap_uc(offset, size);
           ^
   cc1: some warnings being treated as errors

vim +44 lib/devres.c

    25	
    26	static void __iomem *__devm_ioremap(struct device *dev, resource_size_t offset,
    27					    resource_size_t size,
    28					    enum devm_ioremap_type type)
    29	{
    30		void __iomem **ptr, *addr = NULL;
    31	
    32		ptr = devres_alloc(devm_ioremap_release, sizeof(*ptr), GFP_KERNEL);
    33		if (!ptr)
    34			return NULL;
    35	
    36		switch (type) {
    37		case DEVM_IOREMAP:
    38			addr = ioremap(offset, size);
    39			break;
    40		case DEVM_IOREMAP_NC:
    41			addr = ioremap_nocache(offset, size);
    42			break;
    43		case DEVM_IOREMAP_UC:
  > 44			addr = ioremap_uc(offset, size);
    45			break;
    46		case DEVM_IOREMAP_WC:
    47			addr = ioremap_wc(offset, size);
    48			break;
    49		}
    50	
    51		if (addr) {
    52			*ptr = addr;
    53			devres_add(dev, ptr);
    54		} else
    55			devres_free(ptr);
    56	
    57		return addr;
    58	}
    59	

---
0-DAY kernel test infrastructure                 Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org Intel Corporation

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 31843 bytes --]

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

only message in thread, other threads:[~2019-12-31 21:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-31 21:30 [zen-kernel-zen-kernel:5.4/fixes 1/4] lib/devres.c:44:10: error: implicit declaration of function 'ioremap_uc'; did you mean 'ioremap_wc'? kbuild 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.