Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753028AbbKLFq1 (ORCPT ); Thu, 12 Nov 2015 00:46:27 -0500 Received: from mail-pa0-f54.google.com ([209.85.220.54]:34094 "EHLO mail-pa0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750908AbbKLFqZ (ORCPT ); Thu, 12 Nov 2015 00:46:25 -0500 Date: Wed, 11 Nov 2015 21:46:23 -0800 (PST) From: David Rientjes X-X-Sender: rientjes@chino.kir.corp.google.com To: Sergey Senozhatsky cc: Sergey Senozhatsky , Andrew Morton , Christoph Lameter , Pekka Enberg , Joonsoo Kim , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/3] tools/vm/page-types: suppress gcc warnings In-Reply-To: <20151112005455.GA1651@swordfish> Message-ID: References: <1447162326-30626-1-git-send-email-sergey.senozhatsky@gmail.com> <1447162326-30626-3-git-send-email-sergey.senozhatsky@gmail.com> <20151112005455.GA1651@swordfish> User-Agent: Alpine 2.10 (DEB 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; CHARSET=US-ASCII Content-ID: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 892 Lines: 20 On Thu, 12 Nov 2015, Sergey Senozhatsky wrote: > > This can't possibly be correct, the warnings are legitimate and the result > > of the sigsetjmp() in the function. You may be interested in > > returns_twice rather than marking random automatic variables as volatile. > > Hm, ok. I saw no probs with `int first' and `end' being volatile > This will only happen with the undocumented change in your first patch which adds -O2. I don't know what version of gcc you're using, but only "first" and "end" being marked volatile isn't sufficient since mere code inspection would show that "off" will also be clobbered -- it's part of the loop. -- 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/