From ae0bf31ba7ef4c85b854fc407cda69ccabcec1e0 Mon Sep 17 00:00:00 2001 From: Bruce Ashfield Date: Tue, 8 Jul 2025 10:36:31 -0400 Subject: linux-yocto/6.12: yaffs2: silence warnings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: Bruce Ashfield ] 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 Signed-off-by: Bruce Ashfield ] 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 Signed-off-by: Bruce Ashfield ] 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 Signed-off-by: Bruce Ashfield ] (From OE-Core rev: 9b877748ef7a789fb75db525fec5568691745fef) Signed-off-by: Bruce Ashfield Signed-off-by: Richard Purdie --- meta/recipes-kernel/linux/linux-yocto-rt_6.12.bb | 4 ++-- meta/recipes-kernel/linux/linux-yocto-tiny_6.12.bb | 4 ++-- 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 () { raise bb.parse.SkipRecipe("Set PREFERRED_PROVIDER_virtual/kernel to linux-yocto-rt to enable it") } -SRCREV_machine ?= "b1b3b3bd2dca380a849e9c593a1186d4f5f6b57d" -SRCREV_meta ?= "0d1b94bc6669a9573f15b9a83a288cc5a666c9ee" +SRCREV_machine ?= "7e0aff00ea569c858bf82407f501a0bf1f678f35" +SRCREV_meta ?= "4e9bf48139a77d0a5ce2d4d23a0e2316fe2f5fa3" SRC_URI = "git://git.yoctoproject.org/linux-yocto.git;branch=${KBRANCH};name=machine;protocol=https \ 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" KMETA = "kernel-meta" KCONF_BSP_AUDIT_LEVEL = "2" -SRCREV_machine ?= "f724ffca3fef3541b4be9f30f0a3261674c60e13" -SRCREV_meta ?= "0d1b94bc6669a9573f15b9a83a288cc5a666c9ee" +SRCREV_machine ?= "1cf1ca9467d84882daea5acf7426b214dd0a7fee" +SRCREV_meta ?= "4e9bf48139a77d0a5ce2d4d23a0e2316fe2f5fa3" PV = "${LINUX_VERSION}+git" 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" KBRANCH:qemuloongarch64 ?= "v6.12/standard/base" KBRANCH:qemumips64 ?= "v6.12/standard/mti-malta64" -SRCREV_machine:qemuarm ?= "be3c08ed343992d62710e7c6dec59b52ab1ed9a0" -SRCREV_machine:qemuarm64 ?= "f724ffca3fef3541b4be9f30f0a3261674c60e13" -SRCREV_machine:qemuloongarch64 ?= "f724ffca3fef3541b4be9f30f0a3261674c60e13" -SRCREV_machine:qemumips ?= "caf8b2498f27e7cf8d2ea23a823059c53d622567" -SRCREV_machine:qemuppc ?= "f724ffca3fef3541b4be9f30f0a3261674c60e13" -SRCREV_machine:qemuriscv64 ?= "f724ffca3fef3541b4be9f30f0a3261674c60e13" -SRCREV_machine:qemuriscv32 ?= "f724ffca3fef3541b4be9f30f0a3261674c60e13" -SRCREV_machine:qemux86 ?= "f724ffca3fef3541b4be9f30f0a3261674c60e13" -SRCREV_machine:qemux86-64 ?= "f724ffca3fef3541b4be9f30f0a3261674c60e13" -SRCREV_machine:qemumips64 ?= "f785750b2d7a06b2b19e69cc321665cb5f2d8e51" -SRCREV_machine ?= "f724ffca3fef3541b4be9f30f0a3261674c60e13" -SRCREV_meta ?= "0d1b94bc6669a9573f15b9a83a288cc5a666c9ee" +SRCREV_machine:qemuarm ?= "22fa09f54f9c345541d8e68ca73106489acec177" +SRCREV_machine:qemuarm64 ?= "1cf1ca9467d84882daea5acf7426b214dd0a7fee" +SRCREV_machine:qemuloongarch64 ?= "1cf1ca9467d84882daea5acf7426b214dd0a7fee" +SRCREV_machine:qemumips ?= "bf70488668471d5d0f6128d02cc23529132a7ee4" +SRCREV_machine:qemuppc ?= "1cf1ca9467d84882daea5acf7426b214dd0a7fee" +SRCREV_machine:qemuriscv64 ?= "1cf1ca9467d84882daea5acf7426b214dd0a7fee" +SRCREV_machine:qemuriscv32 ?= "1cf1ca9467d84882daea5acf7426b214dd0a7fee" +SRCREV_machine:qemux86 ?= "1cf1ca9467d84882daea5acf7426b214dd0a7fee" +SRCREV_machine:qemux86-64 ?= "1cf1ca9467d84882daea5acf7426b214dd0a7fee" +SRCREV_machine:qemumips64 ?= "b35f07357970c0de8cce2f6496090f8008ffc0ab" +SRCREV_machine ?= "1cf1ca9467d84882daea5acf7426b214dd0a7fee" +SRCREV_meta ?= "4e9bf48139a77d0a5ce2d4d23a0e2316fe2f5fa3" # set your preferred provider of linux-yocto to 'linux-yocto-upstream', and you'll # get the /base branch, which is pure upstream -stable, and the same -- cgit v1.2.3-54-g00ecf