[vfs:work.pages 80/80] arch/m68k/sun3/dvma.c:44:2: error: expected ')' before 'return'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git work.pages
head:   b38f3a2b9287eeea9c8ab2e0e839035628662270
commit: b38f3a2b9287eeea9c8ab2e0e839035628662270 [80/80] [sun3] try to sort dvma types out
config: m68k-sun3_defconfig (attached as .config)
reproduce:
        wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout b38f3a2b9287eeea9c8ab2e0e839035628662270
        # save the attached .config to linux build tree
        make.cross ARCH=m68k 

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

   arch/m68k/sun3/dvma.c: In function 'dvma_page':
>> arch/m68k/sun3/dvma.c:44:2: error: expected ')' before 'return'
     return vaddr + offset_in_page(kaddr);
     ^
>> arch/m68k/sun3/dvma.c:45:1: error: expected ';' before '}' token
    }
    ^
>> arch/m68k/sun3/dvma.c:45:1: warning: no return statement in function returning non-void [-Wreturn-type]
   arch/m68k/sun3/dvma.c: At top level:
>> arch/m68k/sun3/dvma.c:47:5: error: conflicting types for 'dvma_map_iommu'
    int dvma_map_iommu(void *kaddr, unsigned long baddr, int len)
        ^
   In file included from arch/m68k/sun3/dvma.c:18:0:
   arch/m68k/include/asm/dvma.h:19:12: note: previous declaration of 'dvma_map_iommu' was here
    extern int dvma_map_iommu(unsigned long kaddr, unsigned long baddr,
               ^

vim +44 arch/m68k/sun3/dvma.c

    38	
    39		if (ptelist[idx] != pte)( {
    40			sun3_put_pte((unsigned long)vaddr, pte);
    41			ptelist[idx] = pte;
    42		}
    43	
  > 44		return vaddr + offset_in_page(kaddr);
  > 45	}
    46	
  > 47	int dvma_map_iommu(void *kaddr, unsigned long baddr, int len)
    48	{
    49		void *vaddr = dvma_btov(baddr);
    50		void *end = vaddr + len;

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: Binary data


[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux