Skip to contentSkip to conversation

objtool: add bch2_trans_unlocked_error to bcachefs noreturns.

PATCH In review chenchangcheng 3 participants 8 messages Dec 18, 2024 – Dec 20, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 objtool: add bch2_trans_unlocked_error to bcachefs noreturns.

fs/bcachefs/btree_trans_commit.o: warning: objtool: bch2_trans_commit_write_locked.isra.0() falls through to next function do_bch2_trans_commit.isra.0() fs/bcachefs/btree_trans_commit.o: warning: objtool: .text: unexpected end of section
......
fs/bcachefs/btree_update.o: warning: objtool: bch2_trans_update_get_key_cache() falls through to next function flush_new_cached_update() fs/bcachefs/btree_update.o: warning: objtool: flush_new_cached_update() falls through to next function bch2_trans_update_by_path()

---
 tools/objtool/noreturns.h | 1 +
 1 file changed, 1 insertion(+)
tools/objtool/noreturns.h +1 -0
index f37614cc2c1b..b2174894f9f7 100644
@@ -19,6 +19,7 @@ NORETURN(__x64_sys_exit_group)
 NORETURN(arch_cpu_idle_dead)
 NORETURN(bch2_trans_in_restart_error)
 NORETURN(bch2_trans_restart_error)
+NORETURN(bch2_trans_unlocked_error)
 NORETURN(cpu_bringup_and_idle)
 NORETURN(cpu_startup_entry)
 NORETURN(do_exit)
Signature · 1 line
2.25.1
maintainer Acked-by on v1 1/1
#1 lore raw
Quoted 7 lines · chenchangcheng

fs/bcachefs/btree_trans_commit.o: warning: objtool: bch2_trans_commit_write_locked.isra.0() falls through to next function do_bch2_trans_commit.isra.0() fs/bcachefs/btree_trans_commit.o: warning: objtool: .text: unexpected end of section
......
fs/bcachefs/btree_update.o: warning: objtool: bch2_trans_update_get_key_cache() falls through to next function flush_new_cached_update() fs/bcachefs/btree_update.o: warning: objtool: flush_new_cached_update() falls through to next function bch2_trans_update_by_path()

Thanks!

Peter, are you able to grab this one?

Signature · 1 line
Josh
#2 lore raw

PATCH 1/1 objtool: add bch2_trans_unlocked_error to bcachefs noreturns.

From: chenchangcheng <[email protected]>

fix the following objtool warning during build time:
fs/bcachefs/btree_trans_commit.o: warning: objtool: bch2_trans_commit_write_locked.isra.0() falls through to next function do_bch2_trans_commit.isra.0() fs/bcachefs/btree_trans_commit.o: warning: objtool: .text: unexpected end of section
......
fs/bcachefs/btree_update.o: warning: objtool: bch2_trans_update_get_key_cache() falls through to next function flush_new_cached_update() fs/bcachefs/btree_update.o: warning: objtool: flush_new_cached_update() falls through to next function bch2_trans_update_by_path()

Fixes fd104e2967b7 ("bcachefs: bch2_trans_verify_not_unlocked()")
---
 tools/objtool/noreturns.h | 1 +
 1 file changed, 1 insertion(+)
tools/objtool/noreturns.h +1 -0
index f37614cc2c1b..b2174894f9f7 100644
@@ -19,6 +19,7 @@ NORETURN(__x64_sys_exit_group)
 NORETURN(arch_cpu_idle_dead)
 NORETURN(bch2_trans_in_restart_error)
 NORETURN(bch2_trans_restart_error)
+NORETURN(bch2_trans_unlocked_error)
 NORETURN(cpu_bringup_and_idle)
 NORETURN(cpu_startup_entry)
 NORETURN(do_exit)

base-commit: 78d4f34e2115b517bcbfe7ec0d018bbbb6f9b0b8

Signature · 8 lines
2.25.1

hello,

You can use this new version to add fixes and modify the signed email address.

--
Changcheng Chen
maintainer
#3 lore raw
Quoted 3 lines · On Thu, Dec 19, 2024 at 01:51:57PM +0800, [email protected] wrote:

hello,

You can use this new version to add fixes and modify the signed email address.

When updating a patch, please update the title with a new version number, e.g. "PATCH v2".

Signature · 1 line
Josh
maintainer
#4 lore raw
Quoted 7 lines · Josh Poimboeuf
Quoted 3 lines · On Thu, Dec 19, 2024 at 01:51:57PM +0800, [email protected] wrote:

hello,

You can use this new version to add fixes and modify the signed email address.

When updating a patch, please update the title with a new version number, e.g. "PATCH v2".

Also, if it's for upstream, please cc lkml.

Signature · 1 line
Josh
#5 lore raw
Quoted 1 line

Also, if it's for upstream, please cc lkml.

May I ask what is LKML's email address

--
Changcheng Chen

maintainer
#6 lore raw
Quoted 4 lines · On Fri, Dec 20, 2024 at 09:27:06AM +0800, [email protected] wrote:
Quoted 1 line

Also, if it's for upstream, please cc lkml.

May I ask what is LKML's email address

Please use the tool, scripts/get_maintainer.pl which will show you how to do this. Also, there is a great "how to write a first kernel patch" tutorial at kernelnewbies.org that you probably should go through first as well.

good luck!

greg k-h

#7 lore raw
Quoted 51 lines · On Fri, Dec 20, 2024 at 09:27:06AM +0800, [email protected] wrote:
Quoted 14 lines
Quoted 3 lines

Also, if it's for upstream, please cc lkml.

Quoted 1 line

May I ask what is LKML's email address

Please use the tool, scripts/get_maintainer.pl which will show you how

to do this.  Also, there is a great "how to write a first kernel patch"

tutorial at kernelnewbies.org that you probably should go through first

as well.

good luck!

Quoted 1 line

greg k-h

Thanks!

--------------

Changcheng Chen