蒋述

蒋述

1个粉丝

7

问答

0

专栏

0

资料

蒋述  发布于  2023-12-05 14:08:48
采纳率 0%
7个问答
244

这个错误是什么原因呢

   

./arch/x86/include/asm/bitops.h:96: 警告: no instruction mnemonic suffix given and no register operands; using default for `bts’
CC drivers/mtd/mtdblock.o
CC drivers/mtd/chips/chipreg.o
LD drivers/mtd/chips/built-in.o
LD drivers/mtd/devices/built-in.o
LD drivers/mtd/lpddr/built-in.o
LD drivers/mtd/maps/built-in.o
CC drivers/mtd/nand/nand_base.o
CC drivers/mtd/nand/nand_bbt.o
CC drivers/mtd/nand/nand_timings.o
CC drivers/mtd/nand/hinfc_gen.o
CC drivers/mtd/nand/hinfc_spl_ids.o
drivers/mtd/nand/hinfc_spl_ids.c: In function ‘hynix_probe_v02’:
drivers/mtd/nand/hinfc_spl_ids.c:54:30: error: ‘SZ_2K’ undeclared (first use in this function); did you mean ‘_2K’?
54 | int pagesizes[] = {SZ_2K, SZ_4K, SZ_8K, 0};
| ^~~
| _2K
drivers/mtd/nand/hinfc_spl_ids.c:54:30: note: each undeclared identifier is reported only once for each function it appears in
drivers/mtd/nand/hinfc_spl_ids.c:54:37: error: ‘SZ_4K’ undeclared (first use in this function); did you mean ‘_4K’?
54 | int pagesizes[] = {SZ_2K, SZ_4K, SZ_8K, 0};
| ^~~
| _4K
drivers/mtd/nand/hinfc_spl_ids.c:54:44: error: ‘SZ_8K’ undeclared (first use in this function); did you mean ‘_8K’?
54 | int pagesizes[] = {SZ_2K, SZ_4K, SZ_8K, 0};
| ^~~
| _8K
drivers/mtd/nand/hinfc_spl_ids.c:56:30: error: ‘SZ_128K’ undeclared (first use in this function); did you mean ‘_128K’?
56 | int blocksizes[] = {SZ_128K, SZ_256K, SZ_512K,
| ^~~
| _128K
drivers/mtd/nand/hinfc_spl_ids.c:56:39: error: ‘SZ_256K’ undeclared (first use in this function); did you mean ‘_256K’?
56 | int blocksizes[] = {SZ_128K, SZ_256K, SZ_512K,
| ^~~
| _256K
drivers/mtd/nand/hinfc_spl_ids.c:56:48: error: ‘SZ_512K’ undeclared (first use in this function); did you mean ‘_512K’?
56 | int blocksizes[] = {SZ_128K, SZ_256K, SZ_512K,
| ^~~
| _512K
drivers/mtd/nand/hinfc_spl_ids.c:57:54: error: ‘SZ_1M’ undeclared (first use in this function); did you mean ‘_1M’?
57 | (SZ_256K + SZ_512K), SZ_1M, SZ_2M, 0, 0};
| ^~~
| _1M
drivers/mtd/nand/hinfc_spl_ids.c:57:61: error: ‘SZ_2M’ undeclared (first use in this function); did you mean ‘_2M’?
57 | (SZ_256K + SZ_512K), SZ_1M, SZ_2M, 0, 0};
| ^~~
| _2M
drivers/mtd/nand/hinfc_spl_ids.c: In function ‘samsung_probe_v02’:
drivers/mtd/nand/hinfc_spl_ids.c:77:30: error: ‘SZ_2K’ undeclared (first use in this function); did you mean ‘_2K’?
77 | int pagesizes[] = {SZ_2K, SZ_4K, SZ_8K, 0};
| ^~~
| _2K
drivers/mtd/nand/hinfc_spl_ids.c:77:37: error: ‘SZ_4K’ undeclared (first use in this function); did you mean ‘_4K’?
77 | int pagesizes[] = {SZ_2K, SZ_4K, SZ_8K, 0};
| ^~~
| _4K
drivers/mtd/nand/hinfc_spl_ids.c:77:44: error: ‘SZ_8K’ undeclared (first use in this function); did you mean ‘_8K’?
77 | int pagesizes[] = {SZ_2K, SZ_4K, SZ_8K, 0};
| ^~~
| _8K
drivers/mtd/nand/hinfc_spl_ids.c:79:30: error: ‘SZ_128K’ undeclared (first use in this function); did you mean ‘_128K’?
79 | int blocksizes[] = {SZ_128K, SZ_256K, SZ_512K, SZ_1M, 0, 0, 0, 0};
| ^~~
| _128K
drivers/mtd/nand/hinfc_spl_ids.c:79:39: error: ‘SZ_256K’ undeclared (first use in this function); did you mean ‘_256K’?
79 | int blocksizes[] = {SZ_128K, SZ_256K, SZ_512K, SZ_1M, 0, 0, 0, 0};
| ^~~
| _256K
drivers/mtd/nand/hinfc_spl_ids.c:79:48: error: ‘SZ_512K’ undeclared (first use in this function); did you mean ‘_512K’?
79 | int blocksizes[] = {SZ_128K, SZ_256K, SZ_512K, SZ_1M, 0, 0, 0, 0};
| ^~~
| _512K
drivers/mtd/nand/hinfc_spl_ids.c:79:57: error: ‘SZ_1M’ undeclared (first use in this function); did you mean ‘_1M’?
79 | int blocksizes[] = {SZ_128K, SZ_256K, SZ_512K, SZ_1M, 0, 0, 0, 0};
| ^~~
| _1M
drivers/mtd/nand/hinfc_spl_ids.c: At top level:
drivers/mtd/nand/hinfc_spl_ids.c:168:30: error: ‘SZ_2K’ undeclared here (not in a function); did you mean ‘_2K’?
168 | .pagesize = SZ_2K,
| ^~~
| _2K
drivers/mtd/nand/hinfc_spl_ids.c:169:30: error: ‘SZ_128K’ undeclared here (not in a function); did you mean ‘_128K’?
169 | .erasesize = SZ_128K,
| ^~~
| _128K
drivers/mtd/nand/hinfc_spl_ids.c:199:30: error: ‘SZ_8K’ undeclared here (not in a function); did you mean ‘_8K’?
199 | .pagesize = SZ_8K,
| ^~~
| _8K
drivers/mtd/nand/hinfc_spl_ids.c:200:30: error: ‘SZ_2M’ undeclared here (not in a function); did you mean ‘_2M’?
200 | .erasesize = SZ_2M,
| ^~~
| _2M
drivers/mtd/nand/hinfc_spl_ids.c:225:30: error: ‘SZ_1G’ undeclared here (not in a function); did you mean ‘_1G’?
225 | .chipsize = SZ_1G,
| ^~~
| _1G
drivers/mtd/nand/hinfc_spl_ids.c:227:30: error: ‘SZ_4K’ undeclared here (not in a function); did you mean ‘_4K’?
227 | .pagesize = SZ_4K,
| ^~~
| _4K
drivers/mtd/nand/hinfc_spl_ids.c:228:30: error: ‘SZ_512K’ undeclared here (not in a function); did you mean ‘_512K’?
228 | .erasesize = SZ_512K,
| ^~~
| _512K
drivers/mtd/nand/hinfc_spl_ids.c:239:30: error: ‘SZ_2G’ undeclared here (not in a function); did you mean ‘_2G’?
239 | .chipsize = SZ_2G,
| ^~~
| _2G
drivers/mtd/nand/hinfc_spl_ids.c:242:30: error: ‘SZ_1M’ undeclared here (not in a function); did you mean ‘_1M’?
242 | .erasesize = SZ_1M,
| ^~~
| _1M
drivers/mtd/nand/hinfc_spl_ids.c:326:30: error: ‘SZ_256K’ undeclared here (not in a function); did you mean ‘_256K’?
326 | .erasesize = SZ_256K,
| ^~~
| _256K
drivers/mtd/nand/hinfc_spl_ids.c:337:30: error: ‘SZ_512M’ undeclared here (not in a function); did you mean ‘_512M’?
337 | .chipsize = SZ_512M,
| ^~~
| _512M
drivers/mtd/nand/hinfc_spl_ids.c:351:30: error: ‘SZ_256M’ undeclared here (not in a function); did you mean ‘_256M’?
351 | .chipsize = SZ_256M,
| ^~~
| _256M
drivers/mtd/nand/hinfc_spl_ids.c:454:30: error: ‘SZ_16K’ undeclared here (not in a function); did you mean ‘_16K’?
454 | .pagesize = SZ_16K,
| ^~
| _16K
drivers/mtd/nand/hinfc_spl_ids.c:455:30: error: ‘SZ_4M’ undeclared here (not in a function); did you mean ‘_4M’?
455 | .erasesize = SZ_4M,
| ^~~
| _4M
drivers/mtd/nand/hinfc_spl_ids.c:480:30: error: ‘SZ_128M’ undeclared here (not in a function); did you mean ‘_128M’?
480 | .chipsize = SZ_128M,
| ^~~~~
| _128M
make[3]: [scripts/Makefile.build:294:drivers/mtd/nand/hinfc_spl_ids.o] 错误 1
make[2]:
[scripts/Makefile.build:544:drivers/mtd/nand] 错误 2
make[1]: [scripts/Makefile.build:544:drivers/mtd] 错误 2
make:
[Makefile:988:drivers] 错误 2

我来回答
回答3个
时间排序
认可量排序

你会了没

16个粉丝

7

问答

6

专栏

6

资料

你会了没 2023-12-06 09:29:04 已获得 3.00 E币
认可0

哪一步出现的

阿帅

25个粉丝

0

问答

21

专栏

28

资料

阿帅 2023-12-06 11:34:26 已获得 1.00 E币
认可0

检查下定义SC_XX的头文件有没有引用到

蒋述
蒋述   回复   阿帅  2023-12-08 09:36:59
0

需要引用sizes.h文件

或将文件直接拖到这里
悬赏:
E币
网盘
* 网盘链接:
* 提取码:
悬赏:
E币

Markdown 语法

  • 加粗**内容**
  • 斜体*内容*
  • 删除线~~内容~~
  • 引用> 引用内容
  • 代码`代码`
  • 代码块```编程语言↵代码```
  • 链接[链接标题](url)
  • 无序列表- 内容
  • 有序列表1. 内容
  • 缩进内容
  • 图片![alt](url)
+ 添加网盘链接/附件

Markdown 语法

  • 加粗**内容**
  • 斜体*内容*
  • 删除线~~内容~~
  • 引用> 引用内容
  • 代码`代码`
  • 代码块```编程语言↵代码```
  • 链接[链接标题](url)
  • 无序列表- 内容
  • 有序列表1. 内容
  • 缩进内容
  • 图片![alt](url)
相关问答
无更多相似问答 去提问
举报反馈

举报类型

  • 内容涉黄/赌/毒
  • 内容侵权/抄袭
  • 政治相关
  • 涉嫌广告
  • 侮辱谩骂
  • 其他

详细说明

易百纳技术社区