diff options
author | Bruce Ashfield <bruce.ashfield@gmail.com> | 2025-07-08 10:36:31 -0400 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-07-09 08:48:04 +0100 |
commit | ae0bf31ba7ef4c85b854fc407cda69ccabcec1e0 (patch) | |
tree | eafb4dc7503940a97af4a25538c1491c03c5522a | |
parent | 1d618767fc69a1c42b109126d59c58ba8752d297 (diff) | |
download | poky-ae0bf31ba7ef4c85b854fc407cda69ccabcec1e0.tar.gz |
linux-yocto/6.12: yaffs2: silence warnings
Integrating the following commit(s) to linux-yocto/6.12:
1/4 [
Author: Bin Lan
Email: bin.lan.cn@windriver.com
Subject: fs/yaffs2: fix build warnings in yaffs_vfs.c when running make allyesconfig
Date: Mon, 9 Jun 2025 14:51:47 +0800
When building linux yocto with allyesconfig, some build warnings are found:
fs/yaffs2/yaffs_vfs.c:1292:15: error: no previous prototype for
‘yaffs_get_inode’ [-Werror=missing-prototypes]
1292 | struct inode *yaffs_get_inode(struct super_block *sb, int mode,
int dev,
| ^~~~~~~~~~~~~~~
fs/yaffs2/yaffs_vfs.c: In function ‘yaffs_iterate’:
fs/yaffs2/yaffs_vfs.c:1841:13: error: unused variable ‘i_version’
[-Werror=unused-variable]
1841 | u64 i_version;
| ^~~~~~~~~
fs/yaffs2/yaffs_vfs.c: At top level:
fs/yaffs2/yaffs_vfs.c:2441:16: error: no previous prototype for
‘yaffs2_get_parent’ [-Werror=missing-prototypes]
2441 | struct dentry *yaffs2_get_parent(struct dentry *dentry)
| ^~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
Inspect the code that the two functions yaffs_get_inode() and
yaffs2_get_parent() are only used in the current file, i_version is not
used in the function yaffs_iterate(). So add the static modifier to the
two functions and remove the variable i_version.
Signed-off-by: Bin Lan <bin.lan.cn@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
]
2/4 [
Author: Bin Lan
Email: bin.lan.cn@windriver.com
Subject: fs/yaffs2: fix a build warning in yaffs_tagsmarshall.c when running make allyesconfig
Date: Mon, 9 Jun 2025 14:51:48 +0800
When building linux yocto with allyesconfig, a build warning is found:
fs/yaffs2/yaffs_tagsmarshall.c:188:6: error: no previous prototype for
‘yaffs_tags_marshall_install’ [-Werror=missing-prototypes]
188 | void yaffs_tags_marshall_install(struct yaffs_dev *dev)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
Inspect the code that the function yaffs_tags_marshall_install() is
declared in this header file yaffs_tagsmarshall.h. So include the
header file in yaffs_tagsmarshall.c.
Signed-off-by: Bin Lan <bin.lan.cn@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
]
3/4 [
Author: Bin Lan
Email: bin.lan.cn@windriver.com
Subject: fs/yaffs2: fix a build warning in yaffs_yaffs2.c when running make allyesconfig
Date: Mon, 9 Jun 2025 14:51:49 +0800
When building linux yocto with allyesconfig, a build warning is
found:
fs/yaffs2/yaffs_yaffs2.c:557:21: error: no previous prototype for
‘yaffs2_do_endian_tnode_copy’ [-Werror=missing-prototypes]
557 | struct yaffs_tnode *yaffs2_do_endian_tnode_copy(struct yaffs_dev
*dev,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
Inspect the code that the function yaffs2_do_endian_tnode_copy() is
only used in the current file. So add the static modifier to it.
Signed-off-by: Bin Lan <bin.lan.cn@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
]
4/4 [
Author: Bin Lan
Email: bin.lan.cn@windriver.com
Subject: fs/yaffs2: fix a build warning in yaffs_mtdif.c when running make allyesconfig
Date: Mon, 9 Jun 2025 14:51:50 +0800
When building linux yocto with allyesconfig, a build warning is
found:
fs/yaffs2/yaffs_mtdif.c:48:5: error: no previous prototype for
‘nandmtd_erase_block’ [-Werror=missing-prototypes]
48 | int nandmtd_erase_block(struct yaffs_dev *dev, int block_no)
| ^~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
Inspect the code that the function nandmtd_erase_block() is
not used by yaffs2. So remove it.
Signed-off-by: Bin Lan <bin.lan.cn@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
]
(From OE-Core rev: 9b877748ef7a789fb75db525fec5568691745fef)
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-kernel/linux/linux-yocto-rt_6.12.bb | 4 | ||||
-rw-r--r-- | meta/recipes-kernel/linux/linux-yocto-tiny_6.12.bb | 4 | ||||
-rw-r--r-- | meta/recipes-kernel/linux/linux-yocto_6.12.bb | 24 |
3 files changed, 16 insertions, 16 deletions
diff --git a/meta/recipes-kernel/linux/linux-yocto-rt_6.12.bb b/meta/recipes-kernel/linux/linux-yocto-rt_6.12.bb index c57ebb3143..f6bc400c71 100644 --- a/meta/recipes-kernel/linux/linux-yocto-rt_6.12.bb +++ b/meta/recipes-kernel/linux/linux-yocto-rt_6.12.bb | |||
@@ -14,8 +14,8 @@ python () { | |||
14 | raise bb.parse.SkipRecipe("Set PREFERRED_PROVIDER_virtual/kernel to linux-yocto-rt to enable it") | 14 | raise bb.parse.SkipRecipe("Set PREFERRED_PROVIDER_virtual/kernel to linux-yocto-rt to enable it") |
15 | } | 15 | } |
16 | 16 | ||
17 | SRCREV_machine ?= "b1b3b3bd2dca380a849e9c593a1186d4f5f6b57d" | 17 | SRCREV_machine ?= "7e0aff00ea569c858bf82407f501a0bf1f678f35" |
18 | SRCREV_meta ?= "0d1b94bc6669a9573f15b9a83a288cc5a666c9ee" | 18 | SRCREV_meta ?= "4e9bf48139a77d0a5ce2d4d23a0e2316fe2f5fa3" |
19 | 19 | ||
20 | SRC_URI = "git://git.yoctoproject.org/linux-yocto.git;branch=${KBRANCH};name=machine;protocol=https \ | 20 | SRC_URI = "git://git.yoctoproject.org/linux-yocto.git;branch=${KBRANCH};name=machine;protocol=https \ |
21 | git://git.yoctoproject.org/yocto-kernel-cache;type=kmeta;name=meta;branch=yocto-6.12;destsuffix=${KMETA};protocol=https" | 21 | git://git.yoctoproject.org/yocto-kernel-cache;type=kmeta;name=meta;branch=yocto-6.12;destsuffix=${KMETA};protocol=https" |
diff --git a/meta/recipes-kernel/linux/linux-yocto-tiny_6.12.bb b/meta/recipes-kernel/linux/linux-yocto-tiny_6.12.bb index bee8c550a3..db512ddde8 100644 --- a/meta/recipes-kernel/linux/linux-yocto-tiny_6.12.bb +++ b/meta/recipes-kernel/linux/linux-yocto-tiny_6.12.bb | |||
@@ -17,8 +17,8 @@ DEPENDS += "openssl-native util-linux-native" | |||
17 | KMETA = "kernel-meta" | 17 | KMETA = "kernel-meta" |
18 | KCONF_BSP_AUDIT_LEVEL = "2" | 18 | KCONF_BSP_AUDIT_LEVEL = "2" |
19 | 19 | ||
20 | SRCREV_machine ?= "f724ffca3fef3541b4be9f30f0a3261674c60e13" | 20 | SRCREV_machine ?= "1cf1ca9467d84882daea5acf7426b214dd0a7fee" |
21 | SRCREV_meta ?= "0d1b94bc6669a9573f15b9a83a288cc5a666c9ee" | 21 | SRCREV_meta ?= "4e9bf48139a77d0a5ce2d4d23a0e2316fe2f5fa3" |
22 | 22 | ||
23 | PV = "${LINUX_VERSION}+git" | 23 | PV = "${LINUX_VERSION}+git" |
24 | 24 | ||
diff --git a/meta/recipes-kernel/linux/linux-yocto_6.12.bb b/meta/recipes-kernel/linux/linux-yocto_6.12.bb index 5d8e0bc3f1..083b7b1325 100644 --- a/meta/recipes-kernel/linux/linux-yocto_6.12.bb +++ b/meta/recipes-kernel/linux/linux-yocto_6.12.bb | |||
@@ -18,18 +18,18 @@ KBRANCH:qemux86.104 ?= "v6.12/standard/base" | |||
18 | KBRANCH:qemuloongarch64 ?= "v6.12/standard/base" | 18 | KBRANCH:qemuloongarch64 ?= "v6.12/standard/base" |
19 | KBRANCH:qemumips64 ?= "v6.12/standard/mti-malta64" | 19 | KBRANCH:qemumips64 ?= "v6.12/standard/mti-malta64" |
20 | 20 | ||
21 | SRCREV_machine:qemuarm ?= "be3c08ed343992d62710e7c6dec59b52ab1ed9a0" | 21 | SRCREV_machine:qemuarm ?= "22fa09f54f9c345541d8e68ca73106489acec177" |
22 | SRCREV_machine:qemuarm64 ?= "f724ffca3fef3541b4be9f30f0a3261674c60e13" | 22 | SRCREV_machine:qemuarm64 ?= "1cf1ca9467d84882daea5acf7426b214dd0a7fee" |
23 | SRCREV_machine:qemuloongarch64 ?= "f724ffca3fef3541b4be9f30f0a3261674c60e13" | 23 | SRCREV_machine:qemuloongarch64 ?= "1cf1ca9467d84882daea5acf7426b214dd0a7fee" |
24 | SRCREV_machine:qemumips ?= "caf8b2498f27e7cf8d2ea23a823059c53d622567" | 24 | SRCREV_machine:qemumips ?= "bf70488668471d5d0f6128d02cc23529132a7ee4" |
25 | SRCREV_machine:qemuppc ?= "f724ffca3fef3541b4be9f30f0a3261674c60e13" | 25 | SRCREV_machine:qemuppc ?= "1cf1ca9467d84882daea5acf7426b214dd0a7fee" |
26 | SRCREV_machine:qemuriscv64 ?= "f724ffca3fef3541b4be9f30f0a3261674c60e13" | 26 | SRCREV_machine:qemuriscv64 ?= "1cf1ca9467d84882daea5acf7426b214dd0a7fee" |
27 | SRCREV_machine:qemuriscv32 ?= "f724ffca3fef3541b4be9f30f0a3261674c60e13" | 27 | SRCREV_machine:qemuriscv32 ?= "1cf1ca9467d84882daea5acf7426b214dd0a7fee" |
28 | SRCREV_machine:qemux86 ?= "f724ffca3fef3541b4be9f30f0a3261674c60e13" | 28 | SRCREV_machine:qemux86 ?= "1cf1ca9467d84882daea5acf7426b214dd0a7fee" |
29 | SRCREV_machine:qemux86-64 ?= "f724ffca3fef3541b4be9f30f0a3261674c60e13" | 29 | SRCREV_machine:qemux86-64 ?= "1cf1ca9467d84882daea5acf7426b214dd0a7fee" |
30 | SRCREV_machine:qemumips64 ?= "f785750b2d7a06b2b19e69cc321665cb5f2d8e51" | 30 | SRCREV_machine:qemumips64 ?= "b35f07357970c0de8cce2f6496090f8008ffc0ab" |
31 | SRCREV_machine ?= "f724ffca3fef3541b4be9f30f0a3261674c60e13" | 31 | SRCREV_machine ?= "1cf1ca9467d84882daea5acf7426b214dd0a7fee" |
32 | SRCREV_meta ?= "0d1b94bc6669a9573f15b9a83a288cc5a666c9ee" | 32 | SRCREV_meta ?= "4e9bf48139a77d0a5ce2d4d23a0e2316fe2f5fa3" |
33 | 33 | ||
34 | # set your preferred provider of linux-yocto to 'linux-yocto-upstream', and you'll | 34 | # set your preferred provider of linux-yocto to 'linux-yocto-upstream', and you'll |
35 | # get the <version>/base branch, which is pure upstream -stable, and the same | 35 | # get the <version>/base branch, which is pure upstream -stable, and the same |