From: kernel test robot <[email protected]>
To: Ammar Faizi <[email protected]>,
GNU/Weeb Mailing List <[email protected]>
Cc: [email protected]
Subject: [ammarfaizi2-block:google/android/kernel/common/deprecated/android-4.14-p-release 73/6167] drivers/md/dm-linear.c:132:5: warning: no previous prototype for function 'dm_linear_prepare_ioctl'
Date: Tue, 24 Jan 2023 07:38:10 +0800 [thread overview]
Message-ID: <[email protected]> (raw)
tree: https://github.com/ammarfaizi2/linux-block google/android/kernel/common/deprecated/android-4.14-p-release
head: 0ca5d5ac9152d01b3494fb2efb5390319eb9904a
commit: 28969a9aaf3fd1a5d67d23ed0e9735adc389caa3 [73/6167] ANDROID: dm: android-verity: adopt changes made to dm callbacks
config: x86_64-randconfig-a013-20230123 (https://download.01.org/0day-ci/archive/20230124/[email protected]/config)
compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project f28c006a5895fc0e329fe15fead81e37457cb1d1)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/ammarfaizi2/linux-block/commit/28969a9aaf3fd1a5d67d23ed0e9735adc389caa3
git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block
git fetch --no-tags ammarfaizi2-block google/android/kernel/common/deprecated/android-4.14-p-release
git checkout 28969a9aaf3fd1a5d67d23ed0e9735adc389caa3
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash LDFLAGS=-z max-page-size=0x200000 drivers/md/
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <[email protected]>
All warnings (new ones prefixed by >>):
drivers/md/dm-linear.c:29:5: warning: no previous prototype for function 'dm_linear_ctr' [-Wmissing-prototypes]
int dm_linear_ctr(struct dm_target *ti, unsigned int argc, char **argv)
^
drivers/md/dm-linear.c:29:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int dm_linear_ctr(struct dm_target *ti, unsigned int argc, char **argv)
^
static
drivers/md/dm-linear.c:72:6: warning: no previous prototype for function 'dm_linear_dtr' [-Wmissing-prototypes]
void dm_linear_dtr(struct dm_target *ti)
^
drivers/md/dm-linear.c:72:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void dm_linear_dtr(struct dm_target *ti)
^
static
drivers/md/dm-linear.c:97:5: warning: no previous prototype for function 'dm_linear_map' [-Wmissing-prototypes]
int dm_linear_map(struct dm_target *ti, struct bio *bio)
^
drivers/md/dm-linear.c:97:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int dm_linear_map(struct dm_target *ti, struct bio *bio)
^
static
drivers/md/dm-linear.c:115:6: warning: no previous prototype for function 'dm_linear_status' [-Wmissing-prototypes]
void dm_linear_status(struct dm_target *ti, status_type_t type,
^
drivers/md/dm-linear.c:115:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void dm_linear_status(struct dm_target *ti, status_type_t type,
^
static
>> drivers/md/dm-linear.c:132:5: warning: no previous prototype for function 'dm_linear_prepare_ioctl' [-Wmissing-prototypes]
int dm_linear_prepare_ioctl(struct dm_target *ti,
^
drivers/md/dm-linear.c:132:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int dm_linear_prepare_ioctl(struct dm_target *ti,
^
static
drivers/md/dm-linear.c:149:5: warning: no previous prototype for function 'dm_linear_iterate_devices' [-Wmissing-prototypes]
int dm_linear_iterate_devices(struct dm_target *ti,
^
drivers/md/dm-linear.c:149:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int dm_linear_iterate_devices(struct dm_target *ti,
^
static
6 warnings generated.
vim +/dm_linear_prepare_ioctl +132 drivers/md/dm-linear.c
114
> 115 void dm_linear_status(struct dm_target *ti, status_type_t type,
116 unsigned status_flags, char *result, unsigned maxlen)
117 {
118 struct linear_c *lc = (struct linear_c *) ti->private;
119
120 switch (type) {
121 case STATUSTYPE_INFO:
122 result[0] = '\0';
123 break;
124
125 case STATUSTYPE_TABLE:
126 snprintf(result, maxlen, "%s %llu", lc->dev->name,
127 (unsigned long long)lc->start);
128 break;
129 }
130 }
131
> 132 int dm_linear_prepare_ioctl(struct dm_target *ti,
133 struct block_device **bdev, fmode_t *mode)
134 {
135 struct linear_c *lc = (struct linear_c *) ti->private;
136 struct dm_dev *dev = lc->dev;
137
138 *bdev = dev->bdev;
139
140 /*
141 * Only pass ioctls through if the device sizes match exactly.
142 */
143 if (lc->start ||
144 ti->len != i_size_read(dev->bdev->bd_inode) >> SECTOR_SHIFT)
145 return 1;
146 return 0;
147 }
148
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
reply other threads:[~2023-01-23 23:38 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 \
[email protected] \
[email protected] \
[email protected] \
[email protected] \
[email protected] \
/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