Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1218024

Re: [GIT PULL] SG changes for 4.3

From Ming Lin <mlin@kernel.org>
Newsgroups linux.kernel
Subject Re: [GIT PULL] SG changes for 4.3
Date 2015-09-03 06:30 +0200
Message-ID <q4ujT-1aP-1@gated-at.bofh.it> (permalink)
References <q4jya-2ro-17@gated-at.bofh.it> <q4oRb-1HC-5@gated-at.bofh.it> <q4p0R-1T0-1@gated-at.bofh.it> <q4pay-24f-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Wed, Sep 2, 2015 at 3:50 PM, Jens Axboe <axboe@fb.com> wrote:
> On 09/02/2015 04:41 PM, Jens Axboe wrote:
>>
>> On 09/02/2015 04:34 PM, Linus Torvalds wrote:
>>>
>>> Jens,
>>>
>>> On Wed, Sep 2, 2015 at 9:58 AM, Jens Axboe <axboe@fb.com> wrote:
>>>>
>>>>
>>>> This pull request contains a set of scatter-gather related changes/fixes
>>>> for 4.3. It contains:
>>>
>>>
>>> This results in several new and annoying warnings. They may all be ok
>>> code, but they are very distracting. Please stop introducing new
>>> warnings to the build, because by now most of the warnings I see come
>>> from the block layer.
>>>
>>>     block/blk-merge.c: In function ‘blk_queue_split’:
>>>     include/linux/blkdev.h:1368:21: warning: ‘bvprv.bv_offset’ may be
>>> used uninitialized in this function [-Wmaybe-uninitialized]
>>>       ((bprv->bv_offset + bprv->bv_len) & queue_virt_boundary(q));
>>>
>>> (it gives this for bv_len too). The reason seems to be that disgusting
>>> situation where "bvprv" is uninitiatlized unless "split" is true, and
>>> the code looks like it is correct, but the compiler clearly has a hard
>>> time seeing it. It took me a while too, so I can't really blame it.
>>>
>>> Either initialize bvprv to something explicit, or make the code clear
>>> enough that the compiler can see that it is never used uninitialized.
>>> Because those compiler warnings are sometimes real, and we can't just
>>> ignore them.
>>>
>>> There was another type-based warning introduced by your core block
>>> pull (size_t vs unsigned int).
>>
>>
>> I think it's a repeat offender that got reintroduced. I'll fix it up.
>
>
> This seems to make it happier. Will go out later in the merge window.
>
> http://git.kernel.dk/cgit/linux-block/commit/?h=for-linus&id=5014c311baa2b21384321fa4a9f617a92e3e56f0

Thanks Jens.

I didn't see these warnings with gcc 4.8.4.
What gcc version did you use or need to turn on some config option to
see the warning?
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[GIT PULL] SG changes for 4.3 Jens Axboe <axboe@fb.com> - 2015-09-02 19:00 +0200
  Re: [GIT PULL] SG changes for 4.3 Linus Torvalds <torvalds@linux-foundation.org> - 2015-09-03 00:40 +0200
    Re: [GIT PULL] SG changes for 4.3 Jens Axboe <axboe@fb.com> - 2015-09-03 00:50 +0200
      Re: [GIT PULL] SG changes for 4.3 Jens Axboe <axboe@fb.com> - 2015-09-03 01:00 +0200
        Re: [GIT PULL] SG changes for 4.3 Ming Lin <mlin@kernel.org> - 2015-09-03 06:30 +0200
          Re: [GIT PULL] SG changes for 4.3 Jens Axboe <axboe@fb.com> - 2015-09-03 16:40 +0200

csiph-web