Created
August 21, 2017 12:19
-
-
Save robimarko/3f4a22ecdc6fb6a7f307a216d884ee4e to your computer and use it in GitHub Desktop.
NAND errors2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CC drivers/mtd/maps/ralink_nand.o | |
drivers/mtd/maps/ralink_nand.c: In function 'nand_write_oob_buf': | |
drivers/mtd/maps/ralink_nand.c:1415:17: error: 'RA_CHIP_OOB_AVAIL' undeclared (first use in this function) | |
if (ooboffs > RA_CHIP_OOB_AVAIL) | |
^ | |
drivers/mtd/maps/ralink_nand.c:1415:17: note: each undeclared identifier is reported only once for each function it appears in | |
drivers/mtd/maps/ralink_nand.c:1419:22: error: dereferencing pointer to incomplete type 'struct nand_ecclayout' | |
for(free = ra->oob->oobfree; free->length && size; free++) { | |
^ | |
drivers/mtd/maps/ralink_nand.c: In function 'nand_read_oob_buf': | |
drivers/mtd/maps/ralink_nand.c:1470:17: error: 'RA_CHIP_OOB_AVAIL' undeclared (first use in this function) | |
if (ooboffs > RA_CHIP_OOB_AVAIL) | |
^ | |
In file included from ./include/linux/list.h:8:0, | |
from ./include/linux/kobject.h:20, | |
from ./include/linux/device.h:17, | |
from drivers/mtd/maps/ralink_nand.c:2: | |
./include/linux/kernel.h:739:16: warning: comparison of distinct pointer types lacks a cast | |
(void) (&min1 == &min2); \ | |
^ | |
./include/linux/kernel.h:742:2: note: in expansion of macro '__min' | |
__min(typeof(x), typeof(y), \ | |
^ | |
drivers/mtd/maps/ralink_nand.c:1473:10: note: in expansion of macro 'min' | |
size = min(size, RA_CHIP_OOB_AVAIL - ooboffs); | |
^ | |
drivers/mtd/maps/ralink_nand.c: In function 'nand_do_write_ops': | |
drivers/mtd/maps/ralink_nand.c:1538:41: error: 'RA_CHIP_OOB_AVAIL' undeclared (first use in this function) | |
int len = ((ooblen + ops->ooboffs) + (RA_CHIP_OOB_AVAIL - 1)) / RA_CHIP_OOB_AVAIL * oobsize; | |
^ | |
drivers/mtd/maps/ralink_nand.c: At top level: | |
drivers/mtd/maps/ralink_nand.c:1937:15: error: variable 'ra_oob_layout' has initializer but incomplete type | |
static struct nand_ecclayout ra_oob_layout = { | |
^ | |
drivers/mtd/maps/ralink_nand.c:1938:2: error: unknown field 'eccbytes' specified in initializer | |
.eccbytes = CONFIG_ECC_BYTES, | |
^ | |
In file included from drivers/mtd/maps/ralink_nand.c:17:0: | |
drivers/mtd/maps/ralink_nand.h:39:26: warning: excess elements in struct initializer | |
#define CONFIG_ECC_BYTES 3 //! ecc has 3 bytes | |
^ | |
drivers/mtd/maps/ralink_nand.c:1938:14: note: in expansion of macro 'CONFIG_ECC_BYTES' | |
.eccbytes = CONFIG_ECC_BYTES, | |
^ | |
drivers/mtd/maps/ralink_nand.h:39:26: note: (near initialization for 'ra_oob_layout') | |
#define CONFIG_ECC_BYTES 3 //! ecc has 3 bytes | |
^ | |
drivers/mtd/maps/ralink_nand.c:1938:14: note: in expansion of macro 'CONFIG_ECC_BYTES' | |
.eccbytes = CONFIG_ECC_BYTES, | |
^ | |
drivers/mtd/maps/ralink_nand.c:1939:2: error: unknown field 'eccpos' specified in initializer | |
.eccpos = {5, 6, 7}, | |
^ | |
drivers/mtd/maps/ralink_nand.c:1939:12: error: extra brace group at end of initializer | |
.eccpos = {5, 6, 7}, | |
^ | |
drivers/mtd/maps/ralink_nand.c:1939:12: note: (near initialization for 'ra_oob_layout') | |
drivers/mtd/maps/ralink_nand.c:1939:12: warning: excess elements in struct initializer | |
drivers/mtd/maps/ralink_nand.c:1939:12: note: (near initialization for 'ra_oob_layout') | |
drivers/mtd/maps/ralink_nand.c:1940:2: error: unknown field 'oobfree' specified in initializer | |
.oobfree = { | |
^ | |
drivers/mtd/maps/ralink_nand.c:1940:13: error: extra brace group at end of initializer | |
.oobfree = { | |
^ | |
drivers/mtd/maps/ralink_nand.c:1940:13: note: (near initialization for 'ra_oob_layout') | |
drivers/mtd/maps/ralink_nand.c:1941:4: error: extra brace group at end of initializer | |
{.offset = 0, .length = 4}, | |
^ | |
drivers/mtd/maps/ralink_nand.c:1941:4: note: (near initialization for 'ra_oob_layout') | |
drivers/mtd/maps/ralink_nand.c:1942:4: error: extra brace group at end of initializer | |
{.offset = 8, .length = 8}, | |
^ | |
drivers/mtd/maps/ralink_nand.c:1942:4: note: (near initialization for 'ra_oob_layout') | |
drivers/mtd/maps/ralink_nand.c:1943:4: error: extra brace group at end of initializer | |
{.offset = 0, .length = 0} | |
^ | |
drivers/mtd/maps/ralink_nand.c:1943:4: note: (near initialization for 'ra_oob_layout') | |
drivers/mtd/maps/ralink_nand.c:1940:13: warning: excess elements in struct initializer | |
.oobfree = { | |
^ | |
drivers/mtd/maps/ralink_nand.c:1940:13: note: (near initialization for 'ra_oob_layout') | |
drivers/mtd/maps/ralink_nand.c:1946:2: error: unknown field 'oobavail' specified in initializer | |
.oobavail = RA_CHIP_OOB_AVAIL, | |
^ | |
drivers/mtd/maps/ralink_nand.c:1945:27: warning: excess elements in struct initializer | |
#define RA_CHIP_OOB_AVAIL (4+8) | |
^ | |
drivers/mtd/maps/ralink_nand.c:1946:14: note: in expansion of macro 'RA_CHIP_OOB_AVAIL' | |
.oobavail = RA_CHIP_OOB_AVAIL, | |
^ | |
drivers/mtd/maps/ralink_nand.c:1945:27: note: (near initialization for 'ra_oob_layout') | |
#define RA_CHIP_OOB_AVAIL (4+8) | |
^ | |
drivers/mtd/maps/ralink_nand.c:1946:14: note: in expansion of macro 'RA_CHIP_OOB_AVAIL' | |
.oobavail = RA_CHIP_OOB_AVAIL, | |
^ | |
drivers/mtd/maps/ralink_nand.c: In function 'mtk_nand_probe': | |
drivers/mtd/maps/ralink_nand.c:2041:2: error: invalid use of undefined type 'struct nand_ecclayout' | |
ra_oob_layout.eccpos[0] = CONFIG_ECC_OFFSET; | |
^ | |
drivers/mtd/maps/ralink_nand.c:2042:2: error: invalid use of undefined type 'struct nand_ecclayout' | |
ra_oob_layout.eccpos[1] = CONFIG_ECC_OFFSET + 1; | |
^ | |
drivers/mtd/maps/ralink_nand.c:2043:2: error: invalid use of undefined type 'struct nand_ecclayout' | |
ra_oob_layout.eccpos[2] = CONFIG_ECC_OFFSET + 2; | |
^ | |
drivers/mtd/maps/ralink_nand.c:2064:11: error: 'struct mtd_info' has no member named 'ecclayout' | |
ranfc_mtd->ecclayout = &ra_oob_layout; | |
^ | |
drivers/mtd/maps/ralink_nand.c:2095:8: error: 'struct mtd_part_parser_data' has no member named 'of_node' | |
ppdata.of_node = pdev->dev.of_node; | |
^ | |
scripts/Makefile.build:293: recipe for target 'drivers/mtd/maps/ralink_nand.o' failed | |
make[8]: *** [drivers/mtd/maps/ralink_nand.o] Error 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment