From: kernel test robot <lkp@intel.com>
To: Zach Brown <zab@zabbo.net>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [zab-rpdfs:rpdfs-initial 41/51] fs/rpdfs/place.h:41:1: warning: control reaches end of non-void function
Date: Tue, 07 Apr 2026 14:40:35 +0800 [thread overview]
Message-ID: <202604071407.jaPX7Fpt-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/zab/linux-rpdfs.git rpdfs-initial
head: 9a0627207ad856d2a5eb09f3458afb1e34ac10a3
commit: 7db9f9d6d7cd9f1130ec06063f679a26a17d9fc0 [41/51] rpdfs: add place details metadata
config: nios2-allmodconfig (https://download.01.org/0day-ci/archive/20260407/202604071407.jaPX7Fpt-lkp@intel.com/config)
compiler: nios2-linux-gcc (GCC) 11.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260407/202604071407.jaPX7Fpt-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202604071407.jaPX7Fpt-lkp@intel.com/
All warnings (new ones prefixed by >>):
| ^~~~
fs/rpdfs/place.h: In function 'rpdfs_place_full':
fs/rpdfs/place.h:19:18: error: 'u128' undeclared (first use in this function)
19 | return ((u128)rpdfs_place_hi(type, ino, depth) << 64) | off;
| ^~~~
fs/rpdfs/place.h:19:18: note: each undeclared identifier is reported only once for each function it appears in
fs/rpdfs/place.h:19:23: error: expected ')' before 'rpdfs_place_hi'
19 | return ((u128)rpdfs_place_hi(type, ino, depth) << 64) | off;
| ~ ^~~~~~~~~~~~~~
| )
fs/rpdfs/place.h: At top level:
fs/rpdfs/place.h:32:65: error: unknown type name 'u128'
32 | static inline void rpdfs_place_split_le(__le64 *lo, __le64 *hi, u128 full)
| ^~~~
fs/rpdfs/place.h:38:15: error: unknown type name 'u128'
38 | static inline u128 rpdfs_place_combine_le(__le64 lo, __le64 hi)
| ^~~~
fs/rpdfs/place.h: In function 'rpdfs_place_combine_le':
fs/rpdfs/place.h:40:18: error: 'u128' undeclared (first use in this function)
40 | return ((u128)le64_to_cpu(hi) << 64) | le64_to_cpu(lo);
| ^~~~
In file included from fs/rpdfs/txn.h:7,
from fs/rpdfs/balloc.h:10,
from fs/rpdfs/block.c:9:
fs/rpdfs/block.h: At top level:
fs/rpdfs/block.h:79:9: error: unknown type name 'u128'
79 | u128 place;
| ^~~~
fs/rpdfs/block.c: In function 'send_block_write':
fs/rpdfs/block.c:614:9: error: implicit declaration of function 'rpdfs_place_split_le'; did you mean 'rpdfs_place_combine_le'? [-Werror=implicit-function-declaration]
614 | rpdfs_place_split_le(&wr.det.place_lo, &wr.det.place_hi, bk->hnd.place);
| ^~~~~~~~~~~~~~~~~~~~
| rpdfs_place_combine_le
In file included from fs/rpdfs/block.h:8,
from fs/rpdfs/txn.h:7,
from fs/rpdfs/balloc.h:10,
from fs/rpdfs/block.c:9:
fs/rpdfs/block.c: In function 'rpdfs_block_acquire':
fs/rpdfs/place.h:8:39: warning: right shift count >= width of type [-Wshift-count-overflow]
8 | #define RPA(place) (u64)((place) >> 64), (u64)(place)
| ^~
fs/rpdfs/block.c:189:63: note: in expansion of macro 'RPA'
189 | (bk)->hnd.bnr, (bk)->hnd.alloc_ctr, (bk)->hnd.wcount, RPA((bk)->hnd.place), \
| ^~~
include/linux/dynamic_debug.h:224:29: note: in expansion of macro 'RBA'
224 | func(&id, ##__VA_ARGS__); \
| ^~~~~~~~~~~
include/linux/dynamic_debug.h:248:9: note: in expansion of macro '__dynamic_func_call_cls'
248 | __dynamic_func_call_cls(__UNIQUE_ID(ddebug), cls, fmt, func, ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~~~~~~~~
include/linux/dynamic_debug.h:250:9: note: in expansion of macro '_dynamic_func_call_cls'
250 | _dynamic_func_call_cls(_DPRINTK_CLASS_DFLT, fmt, func, ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~~~~~~~
include/linux/dynamic_debug.h:269:9: note: in expansion of macro '_dynamic_func_call'
269 | _dynamic_func_call(fmt, __dynamic_pr_debug, \
| ^~~~~~~~~~~~~~~~~~
include/linux/printk.h:631:9: note: in expansion of macro 'dynamic_pr_debug'
631 | dynamic_pr_debug(fmt, ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~
fs/rpdfs/pr.h:19:9: note: in expansion of macro 'pr_debug'
19 | pr_debug("rpdfs: %s:%u: "fmt"\n", __func__, __LINE__, ##args); \
| ^~~~~~~~
fs/rpdfs/pr.h:26:9: note: in expansion of macro '_rpdfs_pr_debug'
26 | _rpdfs_pr_debug(fmt, ##args)
| ^~~~~~~~~~~~~~~
fs/rpdfs/block.c:1233:17: note: in expansion of macro 'rpdfs_prd_rfi'
1233 | rpdfs_prd_rfi(rfi, "acquire mode %u rbaf %x wait "RBF,
| ^~~~~~~~~~~~~
fs/rpdfs/block.c: In function 'recv_block_grant_mode':
fs/rpdfs/place.h:8:39: warning: right shift count >= width of type [-Wshift-count-overflow]
8 | #define RPA(place) (u64)((place) >> 64), (u64)(place)
| ^~
fs/rpdfs/block.c:189:63: note: in expansion of macro 'RPA'
189 | (bk)->hnd.bnr, (bk)->hnd.alloc_ctr, (bk)->hnd.wcount, RPA((bk)->hnd.place), \
| ^~~
include/linux/dynamic_debug.h:224:29: note: in expansion of macro 'RBA'
224 | func(&id, ##__VA_ARGS__); \
| ^~~~~~~~~~~
include/linux/dynamic_debug.h:248:9: note: in expansion of macro '__dynamic_func_call_cls'
248 | __dynamic_func_call_cls(__UNIQUE_ID(ddebug), cls, fmt, func, ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~~~~~~~~
include/linux/dynamic_debug.h:250:9: note: in expansion of macro '_dynamic_func_call_cls'
250 | _dynamic_func_call_cls(_DPRINTK_CLASS_DFLT, fmt, func, ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~~~~~~~
include/linux/dynamic_debug.h:269:9: note: in expansion of macro '_dynamic_func_call'
269 | _dynamic_func_call(fmt, __dynamic_pr_debug, \
| ^~~~~~~~~~~~~~~~~~
include/linux/printk.h:631:9: note: in expansion of macro 'dynamic_pr_debug'
631 | dynamic_pr_debug(fmt, ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~
fs/rpdfs/pr.h:19:9: note: in expansion of macro 'pr_debug'
19 | pr_debug("rpdfs: %s:%u: "fmt"\n", __func__, __LINE__, ##args); \
| ^~~~~~~~
fs/rpdfs/pr.h:22:9: note: in expansion of macro '_rpdfs_pr_debug'
22 | _rpdfs_pr_debug(fmt, ##args)
| ^~~~~~~~~~~~~~~
fs/rpdfs/block.c:1610:9: note: in expansion of macro 'rpdfs_prd'
1610 | rpdfs_prd("mode %u "RBF, cm->mode, RBA(bk));
| ^~~~~~~~~
fs/rpdfs/place.h: In function 'rpdfs_place_combine_le':
>> fs/rpdfs/place.h:41:1: warning: control reaches end of non-void function [-Wreturn-type]
41 | }
| ^
cc1: some warnings being treated as errors
vim +41 fs/rpdfs/place.h
37
38 static inline u128 rpdfs_place_combine_le(__le64 lo, __le64 hi)
39 {
40 return ((u128)le64_to_cpu(hi) << 64) | le64_to_cpu(lo);
> 41 }
42
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2026-04-07 6:40 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=202604071407.jaPX7Fpt-lkp@intel.com \
--to=lkp@intel.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=zab@zabbo.net \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.