public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: ccc194101@163.com
To: jpoimboe@kernel.org
Cc: peterz@infradead.org, kent.overstreet@linux.dev,
	linux-kernel@vger.kernel.org, chenchangcheng <ccc194101@163.com>,
	chenchangcheng <chenchangcheng@kylinos.cn>
Subject: [PATCH v2] objtool: add bch2_trans_unlocked_error to bcachefs noreturns.
Date: Fri, 20 Dec 2024 15:48:47 +0800	[thread overview]
Message-ID: <20241220074847.3418134-1-ccc194101@163.com> (raw)

From: chenchangcheng <ccc194101@163.com>

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()")
Signed-off-by: chenchangcheng <chenchangcheng@kylinos.cn>
---
 tools/objtool/noreturns.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tools/objtool/noreturns.h b/tools/objtool/noreturns.h
index f37614cc2c1b..b2174894f9f7 100644
--- a/tools/objtool/noreturns.h
+++ b/tools/objtool/noreturns.h
@@ -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
-- 
2.25.1


             reply	other threads:[~2024-12-20  7:49 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-20  7:48 ccc194101 [this message]
2024-12-20  9:29 ` [PATCH v2] objtool: add bch2_trans_unlocked_error to bcachefs noreturns Peter Zijlstra
2024-12-24 18:55 ` [tip: objtool/urgent] " tip-bot2 for chenchangcheng
2024-12-29  8:59 ` [tip: objtool/urgent] objtool: Add bch2_trans_unlocked_error() " tip-bot2 for chenchangcheng

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20241220074847.3418134-1-ccc194101@163.com \
    --to=ccc194101@163.com \
    --cc=chenchangcheng@kylinos.cn \
    --cc=jpoimboe@kernel.org \
    --cc=kent.overstreet@linux.dev \
    --cc=linux-kernel@vger.kernel.org \
    --cc=peterz@infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox