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


Groups > linux.kernel > #1701510

Re: linux-next: build warning after merge of the akpm tree

From Arnd Bergmann <arnd@arndb.de>
Newsgroups linux.kernel
Subject Re: linux-next: build warning after merge of the akpm tree
Date 2017-08-01 23:20 +0200
Message-ID <u9MK5-L9-1@gated-at.bofh.it> (permalink)
References <u9yxs-81g-7@gated-at.bofh.it> <u9yH8-84C-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Tue, Aug 1, 2017 at 8:15 AM, Huang, Ying <ying.huang@intel.com> wrote:
> From 7a7ff76d7bcbd7affda169b29abcf3dafa38052e Mon Sep 17 00:00:00 2001
> From: Huang Ying <ying.huang@intel.com>
> Date: Tue, 1 Aug 2017 14:12:21 +0800
> Subject: [PATCH] mm, THP, swap: Silence a compiler warning
>
> To fix the following compiler warning,
>
> mm/swapfile.c: In function 'reuse_swap_page':
> mm/swapfile.c:1429:16: warning: 'offset' may be used uninitialized in this function [-Wmaybe-uninitialized]
>   unsigned long offset;
>                 ^
>
> This is a false positive report, but we should silence it anyway.

Looks ok, I ran into this too, and came to the same conclusion.
I normally try to find a way to reorganize the code without adding
a bogus initialization, but here I could not find come up with anything
better than what you did.

        Arnd

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


Thread

linux-next: build warning after merge of the akpm tree Stephen Rothwell <sfr@canb.auug.org.au> - 2017-08-01 08:10 +0200
  Re: linux-next: build warning after merge of the akpm tree "Huang\, Ying" <ying.huang@intel.com> - 2017-08-01 08:20 +0200
    Re: linux-next: build warning after merge of the akpm tree Arnd Bergmann <arnd@arndb.de> - 2017-08-01 23:20 +0200

csiph-web