View Issue Details

IDProjectCategoryView StatusLast Update
0016610CentOS-7kernel-pluspublic2019-10-21 00:42
Reportertoracat 
PrioritynormalSeverityminorReproducibilityN/A
Status resolvedResolutionfixed 
Product Version7.7-1908 
Target VersionFixed in Version 
Summary0016610: kernel-3.10.0-1062.4.1.el7.centos.plus does not compile on i686
DescriptionBuild of kernel-3.10.0-1062.4.1.el7.centos.plus fails on i686 with the following error:

fs/gfs2/bmap.c: In function 'gfs2_iomap_get':
fs/gfs2/bmap.c:954:8: error: 'lblock' may be used uninitialized in this function [-Werror=maybe-uninitialized]
    ret = gfs2_hole_size(inode, lblock, len, mp, iomap);
        ^
cc1: all warnings being treated as errors
make[2]: *** [fs/gfs2/bmap.o] Error 1
make[1]: *** [fs/gfs2] Error 2
make: *** [fs] Error 2

The srpm package is available :

https://people.centos.org/toracat/kernel/7/plus/testing/kernel-3.10.0-1062.4.1.el7.centos.plus.src.rpm
TagsNo tags attached.
abrt_hash
URL

Activities

toracat

toracat

2019-10-16 18:12

manager   ~0035512

Fix suggested by @pgreco eliminates the error:

--- a/fs/gfs2/bmap.c 2019-10-15 11:14:39.818409000 -0700
+++ b/fs/gfs2/bmap.c 2019-10-16 10:40:15.838021500 -0700
@@ -847,7 +847,7 @@ static int gfs2_iomap_get(struct inode *
        struct gfs2_sbd *sdp = GFS2_SB(inode);
        loff_t size = i_size_read(inode);
        __be64 *ptr;
- sector_t lblock;
+ sector_t lblock = 0;
        sector_t lblock_stop;
        int ret;
        int eob;
toracat

toracat

2019-10-17 15:53

manager   ~0035524

The above patch resolved the issue.

Issue History

Date Modified Username Field Change
2019-10-16 16:58 toracat New Issue
2019-10-16 16:58 toracat Status new => assigned
2019-10-16 18:12 toracat Note Added: 0035512
2019-10-17 15:53 toracat Status assigned => resolved
2019-10-17 15:53 toracat Resolution open => fixed
2019-10-17 15:53 toracat Note Added: 0035524