* [dm:for-next 53/58] drivers/md/dm-zoned-metadata.c:779:3: error: implicit declaration of function 'export_uuid'
@ 2020-05-15 6:32 ` kbuild test robot
0 siblings, 0 replies; 6+ messages in thread
From: kbuild test robot @ 2020-05-15 6:32 UTC (permalink / raw)
To: Hannes Reinecke
Cc: Damien Le Moal, dm-devel, kbuild-all, Bob Liu, Mike Snitzer
[-- Attachment #1: Type: text/plain, Size: 3349 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git for-next
head: 6c871f63986b34c7768080259ddf5991c55ee385
commit: 70978208ec91d798066f4c291bc98ff914bea222 [53/58] dm zoned: metadata version 2
config: nios2-allyesconfig (attached as .config)
compiler: nios2-linux-gcc (GCC) 9.3.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 70978208ec91d798066f4c291bc98ff914bea222
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day GCC_VERSION=9.3.0 make.cross ARCH=nios2
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp@intel.com>
All errors (new ones prefixed by >>, old ones prefixed by <<):
drivers/md/dm-zoned-metadata.c: In function 'dmz_write_sb':
>> drivers/md/dm-zoned-metadata.c:779:3: error: implicit declaration of function 'export_uuid' [-Werror=implicit-function-declaration]
779 | export_uuid(sb->dmz_uuid, &zmd->uuid);
| ^~~~~~~~~~~
drivers/md/dm-zoned-metadata.c: In function 'dmz_check_sb':
>> drivers/md/dm-zoned-metadata.c:1015:3: error: implicit declaration of function 'import_uuid' [-Werror=implicit-function-declaration]
1015 | import_uuid(&sb_uuid, sb->dmz_uuid);
| ^~~~~~~~~~~
cc1: some warnings being treated as errors
vim +/export_uuid +779 drivers/md/dm-zoned-metadata.c
761
762 /*
763 * Write super block of the specified metadata set.
764 */
765 static int dmz_write_sb(struct dmz_metadata *zmd, unsigned int set)
766 {
767 struct dmz_mblock *mblk = zmd->sb[set].mblk;
768 struct dmz_super *sb = zmd->sb[set].sb;
769 struct dmz_dev *dev = zmd->sb[set].dev;
770 sector_t sb_block;
771 u64 sb_gen = zmd->sb_gen + 1;
772 int ret;
773
774 sb->magic = cpu_to_le32(DMZ_MAGIC);
775
776 sb->version = cpu_to_le32(zmd->sb_version);
777 if (zmd->sb_version > 1) {
778 BUILD_BUG_ON(UUID_SIZE != 16);
> 779 export_uuid(sb->dmz_uuid, &zmd->uuid);
780 memcpy(sb->dmz_label, zmd->label, BDEVNAME_SIZE);
781 export_uuid(sb->dev_uuid, &dev->uuid);
782 }
783
784 sb->gen = cpu_to_le64(sb_gen);
785
786 /*
787 * The metadata always references the absolute block address,
788 * ie relative to the entire block range, not the per-device
789 * block address.
790 */
791 sb_block = zmd->sb[set].zone->id << zmd->zone_nr_blocks_shift;
792 sb->sb_block = cpu_to_le64(sb_block);
793 sb->nr_meta_blocks = cpu_to_le32(zmd->nr_meta_blocks);
794 sb->nr_reserved_seq = cpu_to_le32(zmd->nr_reserved_seq);
795 sb->nr_chunks = cpu_to_le32(zmd->nr_chunks);
796
797 sb->nr_map_blocks = cpu_to_le32(zmd->nr_map_blocks);
798 sb->nr_bitmap_blocks = cpu_to_le32(zmd->nr_bitmap_blocks);
799
800 sb->crc = 0;
801 sb->crc = cpu_to_le32(crc32_le(sb_gen, (unsigned char *)sb, DMZ_BLOCK_SIZE));
802
803 ret = dmz_rdwr_block(dev, REQ_OP_WRITE, zmd->sb[set].block,
804 mblk->page);
805 if (ret == 0)
806 ret = blkdev_issue_flush(dev->bdev, GFP_NOIO, NULL);
807
808 return ret;
809 }
810
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 52401 bytes --]
[-- Attachment #3: Type: text/plain, Size: 0 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* [dm:for-next 53/58] drivers/md/dm-zoned-metadata.c:779:3: error: implicit declaration of function 'export_uuid'
@ 2020-05-15 6:32 ` kbuild test robot
0 siblings, 0 replies; 6+ messages in thread
From: kbuild test robot @ 2020-05-15 6:32 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 3434 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git for-next
head: 6c871f63986b34c7768080259ddf5991c55ee385
commit: 70978208ec91d798066f4c291bc98ff914bea222 [53/58] dm zoned: metadata version 2
config: nios2-allyesconfig (attached as .config)
compiler: nios2-linux-gcc (GCC) 9.3.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 70978208ec91d798066f4c291bc98ff914bea222
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day GCC_VERSION=9.3.0 make.cross ARCH=nios2
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp@intel.com>
All errors (new ones prefixed by >>, old ones prefixed by <<):
drivers/md/dm-zoned-metadata.c: In function 'dmz_write_sb':
>> drivers/md/dm-zoned-metadata.c:779:3: error: implicit declaration of function 'export_uuid' [-Werror=implicit-function-declaration]
779 | export_uuid(sb->dmz_uuid, &zmd->uuid);
| ^~~~~~~~~~~
drivers/md/dm-zoned-metadata.c: In function 'dmz_check_sb':
>> drivers/md/dm-zoned-metadata.c:1015:3: error: implicit declaration of function 'import_uuid' [-Werror=implicit-function-declaration]
1015 | import_uuid(&sb_uuid, sb->dmz_uuid);
| ^~~~~~~~~~~
cc1: some warnings being treated as errors
vim +/export_uuid +779 drivers/md/dm-zoned-metadata.c
761
762 /*
763 * Write super block of the specified metadata set.
764 */
765 static int dmz_write_sb(struct dmz_metadata *zmd, unsigned int set)
766 {
767 struct dmz_mblock *mblk = zmd->sb[set].mblk;
768 struct dmz_super *sb = zmd->sb[set].sb;
769 struct dmz_dev *dev = zmd->sb[set].dev;
770 sector_t sb_block;
771 u64 sb_gen = zmd->sb_gen + 1;
772 int ret;
773
774 sb->magic = cpu_to_le32(DMZ_MAGIC);
775
776 sb->version = cpu_to_le32(zmd->sb_version);
777 if (zmd->sb_version > 1) {
778 BUILD_BUG_ON(UUID_SIZE != 16);
> 779 export_uuid(sb->dmz_uuid, &zmd->uuid);
780 memcpy(sb->dmz_label, zmd->label, BDEVNAME_SIZE);
781 export_uuid(sb->dev_uuid, &dev->uuid);
782 }
783
784 sb->gen = cpu_to_le64(sb_gen);
785
786 /*
787 * The metadata always references the absolute block address,
788 * ie relative to the entire block range, not the per-device
789 * block address.
790 */
791 sb_block = zmd->sb[set].zone->id << zmd->zone_nr_blocks_shift;
792 sb->sb_block = cpu_to_le64(sb_block);
793 sb->nr_meta_blocks = cpu_to_le32(zmd->nr_meta_blocks);
794 sb->nr_reserved_seq = cpu_to_le32(zmd->nr_reserved_seq);
795 sb->nr_chunks = cpu_to_le32(zmd->nr_chunks);
796
797 sb->nr_map_blocks = cpu_to_le32(zmd->nr_map_blocks);
798 sb->nr_bitmap_blocks = cpu_to_le32(zmd->nr_bitmap_blocks);
799
800 sb->crc = 0;
801 sb->crc = cpu_to_le32(crc32_le(sb_gen, (unsigned char *)sb, DMZ_BLOCK_SIZE));
802
803 ret = dmz_rdwr_block(dev, REQ_OP_WRITE, zmd->sb[set].block,
804 mblk->page);
805 if (ret == 0)
806 ret = blkdev_issue_flush(dev->bdev, GFP_NOIO, NULL);
807
808 return ret;
809 }
810
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 52401 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [dm:for-next 53/58] drivers/md/dm-zoned-metadata.c:779:3: error: implicit declaration of function 'export_uuid'
2020-05-15 6:32 ` kbuild test robot
@ 2020-05-15 7:25 ` Hannes Reinecke
-1 siblings, 0 replies; 6+ messages in thread
From: Hannes Reinecke @ 2020-05-15 7:25 UTC (permalink / raw)
To: kbuild test robot
Cc: Damien Le Moal, dm-devel, kbuild-all, Bob Liu, Mike Snitzer
Hi Mike,
On 5/15/20 8:32 AM, kbuild test robot wrote:
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git for-next
> head: 6c871f63986b34c7768080259ddf5991c55ee385
> commit: 70978208ec91d798066f4c291bc98ff914bea222 [53/58] dm zoned: metadata version 2
> config: nios2-allyesconfig (attached as .config)
> compiler: nios2-linux-gcc (GCC) 9.3.0
> reproduce:
> wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
> chmod +x ~/bin/make.cross
> git checkout 70978208ec91d798066f4c291bc98ff914bea222
> # save the attached .config to linux build tree
> COMPILER_INSTALL_PATH=$HOME/0day GCC_VERSION=9.3.0 make.cross ARCH=nios2
>
> If you fix the issue, kindly add following tag as appropriate
> Reported-by: kbuild test robot <lkp@intel.com>
>
> All errors (new ones prefixed by >>, old ones prefixed by <<):
>
> drivers/md/dm-zoned-metadata.c: In function 'dmz_write_sb':
>>> drivers/md/dm-zoned-metadata.c:779:3: error: implicit declaration of function 'export_uuid' [-Werror=implicit-function-declaration]
> 779 | export_uuid(sb->dmz_uuid, &zmd->uuid);
> | ^~~~~~~~~~~
> drivers/md/dm-zoned-metadata.c: In function 'dmz_check_sb':
>>> drivers/md/dm-zoned-metadata.c:1015:3: error: implicit declaration of function 'import_uuid' [-Werror=implicit-function-declaration]
> 1015 | import_uuid(&sb_uuid, sb->dmz_uuid);
> | ^~~~~~~~~~~
> cc1: some warnings being treated as errors
>
> vim +/export_uuid +779 drivers/md/dm-zoned-metadata.c
>
> 761
> 762 /*
> 763 * Write super block of the specified metadata set.
> 764 */
> 765 static int dmz_write_sb(struct dmz_metadata *zmd, unsigned int set)
> 766 {
> 767 struct dmz_mblock *mblk = zmd->sb[set].mblk;
> 768 struct dmz_super *sb = zmd->sb[set].sb;
> 769 struct dmz_dev *dev = zmd->sb[set].dev;
> 770 sector_t sb_block;
> 771 u64 sb_gen = zmd->sb_gen + 1;
> 772 int ret;
> 773
> 774 sb->magic = cpu_to_le32(DMZ_MAGIC);
> 775
> 776 sb->version = cpu_to_le32(zmd->sb_version);
> 777 if (zmd->sb_version > 1) {
> 778 BUILD_BUG_ON(UUID_SIZE != 16);
> > 779 export_uuid(sb->dmz_uuid, &zmd->uuid);
> 780 memcpy(sb->dmz_label, zmd->label, BDEVNAME_SIZE);
> 781 export_uuid(sb->dev_uuid, &dev->uuid);
> 782 }
> 783
> 784 sb->gen = cpu_to_le64(sb_gen);
> 785
> 786 /*
> 787 * The metadata always references the absolute block address,
> 788 * ie relative to the entire block range, not the per-device
> 789 * block address.
> 790 */
> 791 sb_block = zmd->sb[set].zone->id << zmd->zone_nr_blocks_shift;
> 792 sb->sb_block = cpu_to_le64(sb_block);
> 793 sb->nr_meta_blocks = cpu_to_le32(zmd->nr_meta_blocks);
> 794 sb->nr_reserved_seq = cpu_to_le32(zmd->nr_reserved_seq);
> 795 sb->nr_chunks = cpu_to_le32(zmd->nr_chunks);
> 796
> 797 sb->nr_map_blocks = cpu_to_le32(zmd->nr_map_blocks);
> 798 sb->nr_bitmap_blocks = cpu_to_le32(zmd->nr_bitmap_blocks);
> 799
> 800 sb->crc = 0;
> 801 sb->crc = cpu_to_le32(crc32_le(sb_gen, (unsigned char *)sb, DMZ_BLOCK_SIZE));
> 802
> 803 ret = dmz_rdwr_block(dev, REQ_OP_WRITE, zmd->sb[set].block,
> 804 mblk->page);
> 805 if (ret == 0)
> 806 ret = blkdev_issue_flush(dev->bdev, GFP_NOIO, NULL);
> 807
> 808 return ret;
> 809 }
> 810
>
> ---
> 0-DAY CI Kernel Test Service, Intel Corporation
> https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
>
This is cause by missing commit d01cd62400b3 ("uuid: Add inline helpers
to import / export UUIDs"), which went into 5.7.
Mind to update your tree?
Cheers,
Hannes
--
Dr. Hannes Reinecke Teamlead Storage & Networking
hare@suse.de +49 911 74053 688
SUSE Software Solutions GmbH, Maxfeldstr. 5, 90409 Nürnberg
HRB 36809 (AG Nürnberg), Geschäftsführer: Felix Imendörffer
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [dm:for-next 53/58] drivers/md/dm-zoned-metadata.c:779:3: error: implicit declaration of function 'export_uuid'
@ 2020-05-15 7:25 ` Hannes Reinecke
0 siblings, 0 replies; 6+ messages in thread
From: Hannes Reinecke @ 2020-05-15 7:25 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 4142 bytes --]
Hi Mike,
On 5/15/20 8:32 AM, kbuild test robot wrote:
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git for-next
> head: 6c871f63986b34c7768080259ddf5991c55ee385
> commit: 70978208ec91d798066f4c291bc98ff914bea222 [53/58] dm zoned: metadata version 2
> config: nios2-allyesconfig (attached as .config)
> compiler: nios2-linux-gcc (GCC) 9.3.0
> reproduce:
> wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
> chmod +x ~/bin/make.cross
> git checkout 70978208ec91d798066f4c291bc98ff914bea222
> # save the attached .config to linux build tree
> COMPILER_INSTALL_PATH=$HOME/0day GCC_VERSION=9.3.0 make.cross ARCH=nios2
>
> If you fix the issue, kindly add following tag as appropriate
> Reported-by: kbuild test robot <lkp@intel.com>
>
> All errors (new ones prefixed by >>, old ones prefixed by <<):
>
> drivers/md/dm-zoned-metadata.c: In function 'dmz_write_sb':
>>> drivers/md/dm-zoned-metadata.c:779:3: error: implicit declaration of function 'export_uuid' [-Werror=implicit-function-declaration]
> 779 | export_uuid(sb->dmz_uuid, &zmd->uuid);
> | ^~~~~~~~~~~
> drivers/md/dm-zoned-metadata.c: In function 'dmz_check_sb':
>>> drivers/md/dm-zoned-metadata.c:1015:3: error: implicit declaration of function 'import_uuid' [-Werror=implicit-function-declaration]
> 1015 | import_uuid(&sb_uuid, sb->dmz_uuid);
> | ^~~~~~~~~~~
> cc1: some warnings being treated as errors
>
> vim +/export_uuid +779 drivers/md/dm-zoned-metadata.c
>
> 761
> 762 /*
> 763 * Write super block of the specified metadata set.
> 764 */
> 765 static int dmz_write_sb(struct dmz_metadata *zmd, unsigned int set)
> 766 {
> 767 struct dmz_mblock *mblk = zmd->sb[set].mblk;
> 768 struct dmz_super *sb = zmd->sb[set].sb;
> 769 struct dmz_dev *dev = zmd->sb[set].dev;
> 770 sector_t sb_block;
> 771 u64 sb_gen = zmd->sb_gen + 1;
> 772 int ret;
> 773
> 774 sb->magic = cpu_to_le32(DMZ_MAGIC);
> 775
> 776 sb->version = cpu_to_le32(zmd->sb_version);
> 777 if (zmd->sb_version > 1) {
> 778 BUILD_BUG_ON(UUID_SIZE != 16);
> > 779 export_uuid(sb->dmz_uuid, &zmd->uuid);
> 780 memcpy(sb->dmz_label, zmd->label, BDEVNAME_SIZE);
> 781 export_uuid(sb->dev_uuid, &dev->uuid);
> 782 }
> 783
> 784 sb->gen = cpu_to_le64(sb_gen);
> 785
> 786 /*
> 787 * The metadata always references the absolute block address,
> 788 * ie relative to the entire block range, not the per-device
> 789 * block address.
> 790 */
> 791 sb_block = zmd->sb[set].zone->id << zmd->zone_nr_blocks_shift;
> 792 sb->sb_block = cpu_to_le64(sb_block);
> 793 sb->nr_meta_blocks = cpu_to_le32(zmd->nr_meta_blocks);
> 794 sb->nr_reserved_seq = cpu_to_le32(zmd->nr_reserved_seq);
> 795 sb->nr_chunks = cpu_to_le32(zmd->nr_chunks);
> 796
> 797 sb->nr_map_blocks = cpu_to_le32(zmd->nr_map_blocks);
> 798 sb->nr_bitmap_blocks = cpu_to_le32(zmd->nr_bitmap_blocks);
> 799
> 800 sb->crc = 0;
> 801 sb->crc = cpu_to_le32(crc32_le(sb_gen, (unsigned char *)sb, DMZ_BLOCK_SIZE));
> 802
> 803 ret = dmz_rdwr_block(dev, REQ_OP_WRITE, zmd->sb[set].block,
> 804 mblk->page);
> 805 if (ret == 0)
> 806 ret = blkdev_issue_flush(dev->bdev, GFP_NOIO, NULL);
> 807
> 808 return ret;
> 809 }
> 810
>
> ---
> 0-DAY CI Kernel Test Service, Intel Corporation
> https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
>
This is cause by missing commit d01cd62400b3 ("uuid: Add inline helpers
to import / export UUIDs"), which went into 5.7.
Mind to update your tree?
Cheers,
Hannes
--
Dr. Hannes Reinecke Teamlead Storage & Networking
hare(a)suse.de +49 911 74053 688
SUSE Software Solutions GmbH, Maxfeldstr. 5, 90409 Nürnberg
HRB 36809 (AG Nürnberg), Geschäftsführer: Felix Imendörffer
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [dm:for-next 53/58] drivers/md/dm-zoned-metadata.c:779:3: error: implicit declaration of function 'export_uuid'
2020-05-15 7:25 ` Hannes Reinecke
@ 2020-05-15 14:32 ` Mike Snitzer
-1 siblings, 0 replies; 6+ messages in thread
From: Mike Snitzer @ 2020-05-15 14:32 UTC (permalink / raw)
To: Hannes Reinecke
Cc: Damien Le Moal, dm-devel, kbuild-all, kbuild test robot, Bob Liu
On Fri, May 15 2020 at 3:25am -0400,
Hannes Reinecke <hare@suse.de> wrote:
> Hi Mike,
>
> This is cause by missing commit d01cd62400b3 ("uuid: Add inline
> helpers to import / export UUIDs"), which went into 5.7.
> Mind to update your tree?
Rebased on v5.7-rc5, thanks
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [dm:for-next 53/58] drivers/md/dm-zoned-metadata.c:779:3: error: implicit declaration of function 'export_uuid'
@ 2020-05-15 14:32 ` Mike Snitzer
0 siblings, 0 replies; 6+ messages in thread
From: Mike Snitzer @ 2020-05-15 14:32 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 283 bytes --]
On Fri, May 15 2020 at 3:25am -0400,
Hannes Reinecke <hare@suse.de> wrote:
> Hi Mike,
>
> This is cause by missing commit d01cd62400b3 ("uuid: Add inline
> helpers to import / export UUIDs"), which went into 5.7.
> Mind to update your tree?
Rebased on v5.7-rc5, thanks
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2020-05-15 14:32 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-05-15 6:32 [dm:for-next 53/58] drivers/md/dm-zoned-metadata.c:779:3: error: implicit declaration of function 'export_uuid' kbuild test robot
2020-05-15 6:32 ` kbuild test robot
2020-05-15 7:25 ` Hannes Reinecke
2020-05-15 7:25 ` Hannes Reinecke
2020-05-15 14:32 ` Mike Snitzer
2020-05-15 14:32 ` Mike Snitzer
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.