Bug 2049 - block/blk-map.c:273:16: warning: variable 'added' set but not used [-Wunused-but-set-variable]
Summary: block/blk-map.c:273:16: warning: variable 'added' set but not used [-Wunused-...
Status: RESOLVED FIXED
Alias: None
Product: Upstream
Classification: Unclassified
Component: block/storage (show other bugs) block/storage
Version: unspecified
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: abaci-robot
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-09-05 10:07 UTC by abaci-robot
Modified: 2022-09-07 14:40 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description abaci-robot alibaba_cloud_group 2022-09-05 10:07:16 UTC
ABACI reported the following bug by code static scanning:

block/blk-map.c:273:16: warning: variable 'added' set but not used [-Wunused-but-set-variable]
                size_t offs, added = 0;



In the following kernel version:

[+]kernel: http://kernel.source.codeaurora.cn/pub/scm/linux/kernel/git/next/linux-next.git
[+]branch: next-20220901
[+]commit: e47eb90a0a9ae20b82635b9b99a8d0979b757ad8
Comment 1 abaci-robot alibaba_cloud_group 2022-09-07 14:40:52 UTC
submitted to upstream:
https://lore.kernel.org/all/166239989655.374444.6422945735649090194.b4-ty@kernel.dk/