Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp1742653ybn; Thu, 26 Sep 2019 01:18:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqzEhTQPYRraOBV/hhCMA5od/JFNNMuVI/L36gWOt6plSSbixzKZ3czcWGb2/6wJ3fPr8n86 X-Received: by 2002:a50:f152:: with SMTP id z18mr2140015edl.141.1569485905353; Thu, 26 Sep 2019 01:18:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569485905; cv=none; d=google.com; s=arc-20160816; b=DxD4ZiGuLJZKM6jc1A+8LdAxfS3pSsZSuhUpEF0uIlbUNhvLJlce+wh+YFLV1pd0SW xzPbeaAyYLpb4nDfvNRjvJ7J1vnFYMzt0gUrIRd8FRDTw7hjz7qDwGg10tu2zJqYJt48 hFUoPCYoVoS6W1nL6IYQlvsSfHXpTQWzGas6oe+xMWMI+/tDnWokpN7lfE+d4zoWyzvm rPLgovZxcP/k1EqhOOwYdeFVrAhNc12QTJVENJQEOY+1IjJgm4v5lAc+lPbQ/uWxKuko zib92nUMmgU5NUl3y5duWpJkYhkU9rK7INtG+4zY6aIQdMcwR/othyzGpM8kZxIKA91A jHww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=yTXFMWN7uG8HeKP04hBknHMX7DjCzdXpjR3u5gYPGyo=; b=a+iw7AWy1zd/0peAqzWgnxd1jILZW+DR/S8hn8bC7cxyTzQ5x1DmTiAgAdN75dzgHv UIrHG6dzbtuc9GeLm2/KRr37NHoy75RY1ia9gMxbJObTInYHHgFFnxDS0kTArs4au1sY b9OBKAw6zVtyzQlQ9Ov8YNrW2/T3W9QzuV645W/EXQfBFTtXdfMprLWwKDO+YlN4PLKy X9DPINkQCp0Ttg+eMzly++svkLKmCf4eCHGDnQFvV//jgRPWzRkVyssRTU1vZzkCTyuZ mzdbjBDRb9sOcmTrD9we/wSWSzGGN8YE7Je64xb5bZOEkmSLEIx2pN85VP7gabXyLUEt B9cA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=csnyqQhY; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id nl6si625625ejb.207.2019.09.26.01.18.02; Thu, 26 Sep 2019 01:18:25 -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; dkim=pass header.i=@linux-foundation.org header.s=google header.b=csnyqQhY; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389710AbfIXPcZ (ORCPT + 99 others); Tue, 24 Sep 2019 11:32:25 -0400 Received: from mail-lj1-f194.google.com ([209.85.208.194]:37907 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732178AbfIXPcZ (ORCPT ); Tue, 24 Sep 2019 11:32:25 -0400 Received: by mail-lj1-f194.google.com with SMTP id b20so2354630ljj.5 for ; Tue, 24 Sep 2019 08:32:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=yTXFMWN7uG8HeKP04hBknHMX7DjCzdXpjR3u5gYPGyo=; b=csnyqQhYOP+PrKHw6U6DXiICj2iJbqP0xhK/YsgX0NJ8CDm3M7BkvgPR21n8zf2Xoj bqRF7cHq2x5ioxRBkz1SMK/+9emYk9lSfnjFcL8FaOaKAL3lr7ybZnVeWLcdBnTKP94a XXbMWg7yvpKrqMnmGzh46esRmL0KRGQX8wTMY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=yTXFMWN7uG8HeKP04hBknHMX7DjCzdXpjR3u5gYPGyo=; b=Fb6GBm3zET31xFta3Z66e0l4XI5eK9vH7qUkcFVBypj1Q+vJRrQGUhpkKmHvRN1Ai9 c/T4BG+Mge+rhh+8iYuxpjL7T/GFQubM1GhpkOVRCnEdXBMk7oOAwxBuxDcWiYserlC0 3g3KCaax2J6GFecVKK53u0oAsJ8TCSR/xYWC6NyCAp+TqUEkTvgTeLG8bewFnYhNZPKk tdQ51y2Uw2D9A+SSgeNq7y/KLpDgEm00IpvF9uMZ09NwBbrfo0iFDwbGbBk6V092OFz5 WhZcD47LNMCdw0xXoHrMxBtCgjTxc+ROH9Wa4Ggtjc4bJYWPm6IBBMnjAAYjJpQOelea pWLw== X-Gm-Message-State: APjAAAU0MU54sk6ydcaBOELYcdPSCz/BwkjE2FJShj0nHplyKLz9yby4 8lR43DKVB2cMSo0UxygcYqWn+2aTuJI= X-Received: by 2002:a2e:9748:: with SMTP id f8mr2477698ljj.167.1569339142271; Tue, 24 Sep 2019 08:32:22 -0700 (PDT) Received: from mail-lj1-f175.google.com (mail-lj1-f175.google.com. [209.85.208.175]) by smtp.gmail.com with ESMTPSA id c26sm587475ljj.45.2019.09.24.08.32.20 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 24 Sep 2019 08:32:21 -0700 (PDT) Received: by mail-lj1-f175.google.com with SMTP id 7so2357158ljw.7 for ; Tue, 24 Sep 2019 08:32:20 -0700 (PDT) X-Received: by 2002:a2e:2c02:: with SMTP id s2mr2495973ljs.156.1569339140581; Tue, 24 Sep 2019 08:32:20 -0700 (PDT) MIME-Version: 1.0 References: <20190921231022.kawfomtmka737arq@pburton-laptop> <20190923180728.flp6jx4jc2bh7cys@pburton-laptop> <14580.1569328815@warthog.procyon.org.uk> In-Reply-To: <14580.1569328815@warthog.procyon.org.uk> From: Linus Torvalds Date: Tue, 24 Sep 2019 08:32:04 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [GIT PULL] MIPS changes To: David Howells Cc: Paul Burton , Al Viro , "linux-kernel@vger.kernel.org" , "linux-mips@vger.kernel.org" , Florian Fainelli Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 24, 2019 at 5:40 AM David Howells wrote: > > Linus Torvalds wrote: > > > In honesty, I actually do have one warning in my tree: > > > > samples/vfs/test-statx.c:24:15: warning: =E2=80=98struct foo=E2=80=99= declared > > inside parameter list > > Were there any note lines from the compiler associated with this? The wa= rning > message can't actually be taking place on this line. That's the only thing that gcc says. I agree that it's not where the problem occurs, but the gcc warning system tries to avoid warning inside system header files, so it seems to have logic tracing it back to the user. But I have system header files that look like this: /* Fill *BUF with information about PATH in DIRFD. */ int statx (int __dirfd, const char *__restrict __path, int __flags, unsigned int __mask, struct statx *__restrict __buf) __THROW __nonnull ((2, 5)); and I think that's the one that triggers. You must have hit *something* similar too, since the only reason for that #define statx foo #define statx_timestamp foo_timestamp #include #undef statx #undef statx_timestamp is that you're playing games with the kernel 'statx' clashing with user 'statx' use. And what I think happens is that you had the include *without* that #define, so the 'struct statx' got declared there, and then in it gets used, but it gets used as 'struct foo', so now the compiler complains (properly) that you're using this undeclared 'struct foo' in the function declaration, and because of namespace rules it's not the same thing as then a later 'struct foo' would be. Linus Linus