[#4846] build failure with yaffs2 in trunk kernel

Document created by Aaronwu Employee on Aug 30, 2013
Version 1Show Document
  • View in full screen mode

[#4846] build failure with yaffs2 in trunk kernel

Submitted By: Mike Frysinger

Open Date

2009-01-30 14:06:07     Close Date

2009-02-03 11:43:02

Priority:

Medium     Assignee:

Yi Li

Status:

Closed     Fixed In Release:

N/A

Found In Release:

snaps     Release:

svn r6043

Category:

N/A     Board:

N/A

Processor:

ALL     Silicon Revision:

Is this bug repeatable?:

Yes     Resolution:

Fixed

Uboot version or rev.:

    Toolchain version or rev.:

gcc 4.3.3

App binary format:

N/A     

Summary: build failure with yaffs2 in trunk kernel

Details:

 

$ make fs/yaffs2/yaffs_fs.o

  CC [M]  fs/yaffs2/yaffs_fs.o

fs/yaffs2/yaffs_fs.c: In function ‘yaffs_write_end’:

fs/yaffs2/yaffs_fs.c:808: warning: unused variable ‘index’

fs/yaffs2/yaffs_fs.c: In function ‘yaffs_file_write’:

fs/yaffs2/yaffs_fs.c:1056: warning: format ‘%d’ expects type ‘int’, but argument 2 has type ‘size_t’

fs/yaffs2/yaffs_fs.c:1065: warning: format ‘%d’ expects type ‘int’, but argument 2 has type ‘size_t’

fs/yaffs2/yaffs_fs.c: In function ‘yaffs_internal_read_super’:

fs/yaffs2/yaffs_fs.c:1892: error: implicit declaration of function ‘bdevname’

fs/yaffs2/yaffs_fs.c:1897: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’

fs/yaffs2/yaffs_fs.c:1924: warning: format ‘%s’ expects type ‘char *’, but argument 4 has type ‘int’

make[1]: *** [fs/yaffs2/yaffs_fs.o] Error 1

make: *** [fs/yaffs2/yaffs_fs.o] Error 2

 

kernel config file is attached

 

Follow-ups

 

--- Yi Li                                                    2009-02-02 02:40:00

I cannot reproduce this bug:

 

There is no kernel config file attached. Could you please check CONFIG_BLOCK is

set or not?

 

make fs/yaffs2/yaffs.o

  CHK     include/linux/version.h

  CHK     include/linux/utsrelease.h

  SYMLINK include/asm -> include/asm-blackfin

  CALL    scripts/checksyscalls.sh

  CC [M]  fs/yaffs2/yaffs_fs.o

fs/yaffs2/yaffs_fs.c: In function ‘yaffs_write_end’:

fs/yaffs2/yaffs_fs.c:808: warning: unused variable ‘index’

fs/yaffs2/yaffs_fs.c: In function ‘yaffs_file_write’:

fs/yaffs2/yaffs_fs.c:1056: warning: format ‘%d’ expects type ‘int’, but

argument 2 has type ‘size_t’

fs/yaffs2/yaffs_fs.c:1065: warning: format ‘%d’ expects type ‘int’, but

argument 2 has type ‘size_t’

  LD [M]  fs/yaffs2/yaffs.o

 

 

In fs/yaffs2/yaffs_fs.c:1892:

 

        else if (!yaffs_devname(sb, devname_buf))

                printk(KERN_INFO "yaffs: devname is NULL\n");

 

And:

 

/* FIXME: use sb->s_id instead ? */

#define yaffs_devname(sb, buf)    bdevname(sb->s_bdev, buf)

 

fs/partitions/check.c:

const char *bdevname(struct block_device *bdev, char *buf)

{

    return disk_name(bdev->bd_disk, bdev->bd_part->partno, buf);

}

 

EXPORT_SYMBOL(bdevname);

 

--- Mike Frysinger                                           2009-02-02 11:23:51

not sure why the config wasnt posted ... at any rate, disable CONFIG_BLOCK and

then you'll hit the failure

 

--- Yi Li                                                    2009-02-02 20:36:35

I think CONFIG_BLOCK need to be enabled to build yaffs2, so this is not a bug?

 

--- Mike Frysinger                                           2009-02-02 20:48:37

then the kconfig shouldnt have allowed yaffs2 to be enabled

 

--- Mike Frysinger                                           2009-02-03 11:43:02

looks like the fix i added a while ago was reverted during the yaffs upgrade

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

No Files Were Found

Attachments

    Outcomes