Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp1732631ybn; Thu, 26 Sep 2019 01:06:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqwqzLP1CIXRYP/a2pMmgFJ6qekZgwHxDSV7w8OeBStdGl5Iv/BWZlJ2jfDD7i7OohIaUZw7 X-Received: by 2002:a50:fa0d:: with SMTP id b13mr2190467edq.66.1569485189772; Thu, 26 Sep 2019 01:06:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569485189; cv=none; d=google.com; s=arc-20160816; b=pMd/mRxH9xwNvxAGl1UUxsT5Km9kSkRWc3lgDtPp56SEan13PzTfhBKypS/YwuemEV v8OnyIV/YGdSOSeSHy9r3xHMBMoSzurlUPndS4ADM2FFBP2Ec7HNTymTCZSQ4co4eDO7 Lw43fCwR38jyCwqYftKcgLX5GyYImW6wwxZ0OgV6bga+HJ2rHuBECKenRQ1AQRNVREwe aJ3VU/wKenDmerkOOlQWG6Q3uh62Ne+nPytZwPBk4iZCDWWiNFDlbhb8P7qRuPCwpTLh Se9OuTQPnbC4ak3q95OhLY6KPPq1Em060js6AbUPEh9PQNG2m65mFeKMLvxyM1IFXs9Y Uvvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:content-transfer-encoding :mime-version:subject:cc:to:references:in-reply-to:from:organization; bh=BuiEZeLzCOXe4P2O4dzLBZPddoBwgHu7khyjn9w13PA=; b=SNFH62foxEoxyRI6d4tYCxC+FVnFkB3WG+PkOXPI0R19eF+TCWyXxZLAeUTDGGn04Z iGdQELOABnyRtpi+nDRCZ8lYjjntYbaWOgetSfewsKCKHXOh2FV+8o3p9NaZLNORjRiY o3EbqQ+sYp7HbqzJgXx/nOMxJYw6WO/vgAGcsErMjMwvtjw0J0mj8xtvD47ipjZoXgPk 8gqBGxUiyr7rXX7wYkfFR+bfzL4+nCRuDOELlVYKdQy2/zwEoDuW6sN53ZCWba1pUMvO PWp6KpyC8YLFS67L1JMYvDfmEEupnpoxxuIboWQEGNduSGtXSbY4eMnR9XSzNi5obHhx D15g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d17si794558edv.76.2019.09.26.01.06.06; Thu, 26 Sep 2019 01:06:29 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2440968AbfIXMkT convert rfc822-to-8bit (ORCPT + 99 others); Tue, 24 Sep 2019 08:40:19 -0400 Received: from mx1.redhat.com ([209.132.183.28]:53796 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2440960AbfIXMkR (ORCPT ); Tue, 24 Sep 2019 08:40:17 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 37ECA18C892F; Tue, 24 Sep 2019 12:40:17 +0000 (UTC) Received: from warthog.procyon.org.uk (ovpn-125-72.rdu2.redhat.com [10.10.125.72]) by smtp.corp.redhat.com (Postfix) with ESMTP id E254960852; Tue, 24 Sep 2019 12:40:15 +0000 (UTC) Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells In-Reply-To: References: <20190921231022.kawfomtmka737arq@pburton-laptop> <20190923180728.flp6jx4jc2bh7cys@pburton-laptop> To: Linus Torvalds Cc: dhowells@redhat.com, Paul Burton , Al Viro , "linux-kernel\@vger.kernel.org" , "linux-mips\@vger.kernel.org" , Florian Fainelli Subject: Re: [GIT PULL] MIPS changes MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT Date: Tue, 24 Sep 2019 13:40:15 +0100 Message-ID: <14580.1569328815@warthog.procyon.org.uk> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.6.2 (mx1.redhat.com [10.5.110.70]); Tue, 24 Sep 2019 12:40:17 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Linus Torvalds wrote: > In honesty, I actually do have one warning in my tree: > > samples/vfs/test-statx.c:24:15: warning: ‘struct foo’ declared > inside parameter list will not be visible outside of this definition > or declaration > 24 | #define statx foo > | ^~~ Were there any note lines from the compiler associated with this? The warning message can't actually be taking place on this line. Another thing I'm wondering is why your compiler shows this warning - and mine does not. I've seen this before with uninitialised variables too where you get a warning and I don't. > but because it's in the sample code, it pretty much never gets rebuilt > for me unless I basically do a "git clean" to get rid of everything, > so I don't normally see it for any normal pull. > > So I've ignored that one warning, although I've actually been tempted > to just remove the sample because of it. > > Adding David and Al to the cc just in case they have some simple fixup > for it that is likely to work across different user headers. > > I considered just adding a > > struct foo; > > declaration, but the whole thing is incredibly ugly. Yeah - I'm not sure the best way to deal with this. The problem being that userspace may have a conflicting definition - or no definition at all - and I need to use the one from the kernel in preference as that may have changes in it that aren't yet reflected in userspace. I'd rather not remove the sample if I can avoid it as I use it occasionally, but maybe I should switch to relying on glibc. David