Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp3971916imc; Thu, 14 Mar 2019 09:17:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqzwY9J4S0Z1b/ItolanfcIbVZ7OvXSiJJUDML6dYbGlOtTRb/STMQUwRRdJlsCxxTcXUQoE X-Received: by 2002:a63:5149:: with SMTP id r9mr20311608pgl.142.1552580259334; Thu, 14 Mar 2019 09:17:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552580259; cv=none; d=google.com; s=arc-20160816; b=kJTiSvFXGS+0kmra3XOGSMjFIfIA5d6F1mm+AEnntdvI3XKyu1oe4mDYRYgyMu8nYT Q36hzO2dYNZw9FB7Wf41ovID4VFxyq+1YGXy4RRdZYZslhb3GeZWvmPwWtEXjPVl+9dg 1n0aSzR5lExd16SpoTjqKJvT7Q30cEET34qHjGwHC60F5Znbm2mPnCJs8v9PKCPuFRpz hiOlwYPEZ6WDm0A7PCtVdRQedEF0ye+wH2QJM0VzWQAUdYKwJsfoHsW94y8RfcrZC+50 hA0cDkcC0bKSj8J6RowWIsvz+az0w/+XHYjH/vrGYVi2qyHW7yK2E9/1mAQlBYIzMAgH JgcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=7ktaUV3fMFadix+0Z6ctybnKLcsuwszmrSG1OINS11g=; b=wNdA3SaPig3Uzf5K8rWVHyyGPQjlmkenc3YGOUJ1M0aJrrp7VvNPlmjBYswo5SdBRM MZYEYTEZhK5oJVqe+m2vbSwAecgBhqnUw9++pltjUujBjvV7boIOa0ZoKz6CcZCj9ad9 qqgFs+ntyC8TgGngJLm5yYIOGMI3uSpgnkvSycfsCyzY70GSz3+wE5x7mxUymadGwPlK e4fQ5t38TVXPXE/D4+A7A24pMrUU2YQo/PlblMzsJM1xftZuV4qC3KIJcTaF1V6eYwwH 9O+uteFGc0EaijfoOD6a5nbJNO3QnrBhshAanIw58HaNAXftJDC0A4fEZ9DNv+fbMsM7 zUMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=P0Kg8Gm0; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x17si14190913plr.435.2019.03.14.09.17.24; Thu, 14 Mar 2019 09:17:39 -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=@gmail.com header.s=20161025 header.b=P0Kg8Gm0; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727739AbfCNQQs (ORCPT + 99 others); Thu, 14 Mar 2019 12:16:48 -0400 Received: from mail-yw1-f65.google.com ([209.85.161.65]:38681 "EHLO mail-yw1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727726AbfCNQQr (ORCPT ); Thu, 14 Mar 2019 12:16:47 -0400 Received: by mail-yw1-f65.google.com with SMTP id m207so4869622ywd.5; Thu, 14 Mar 2019 09:16:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=7ktaUV3fMFadix+0Z6ctybnKLcsuwszmrSG1OINS11g=; b=P0Kg8Gm051GGZnKv3tgLZdVWxZUALC+FgLYCwj/MOLKxU4gCM34jsuPZD0B6Fm7Szk jiTSz8EyCJgb7nI9YH37BouaBMOvePqXxdttxOwokuU/nFOgtucEaoyP3CbB4GlRGCY4 NrvliTk4k2Ap7N8NQAb5wIEQwK9CMM0Lg2B+lCj18/XKtA0nqn+vW8+cpeGQrohGk/cG LcVGXjQsm7XoHASa9TSUcZS6eck/QzZ5xUyHTKLqb4NvMd1BMap4/+ns8iUzexvFRXxt NY5quK8y3O8N4DpjB6MRwXLHC8P7Vwlquovv3PCy74XJh6IFR7woMEbdXxVb8NEzYZGK Sljg== 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; bh=7ktaUV3fMFadix+0Z6ctybnKLcsuwszmrSG1OINS11g=; b=MXvi80gKmc0LmKuaM1BfQ2BoyJCrYpTEIWzalS/j7u+HfPPTeUXKa6B5tuBhC1Kk41 cAk99A7btn6iUN1QH17+HTEohHzjhfH1BtsQi7rqkUQypPqXzEIvW3XpvR0cq5yGvO3J PUOSYdBkVl8V+9hobGA9EfJnR3kNkGHngpx+crTHyTr+UraTv7X/lYE8maCkXUt0haXv 5MVjWTJ2U9M2JiVb0IpdjX2q610l9yfM1GgMrvFrFgXZ1cv2kShwbEkbuZrKh0H7IHFy MZ+UVoiHD5iN+UdddlRnjnK9Y9Fd+3lxSVFWmXW4h/YUcrUVZ6TOojJGMLu6VxnW5SjS uKyQ== X-Gm-Message-State: APjAAAUT6uEMqAHLaOxzQggz8clE3IswsS30J7oeiH9ReLXO5BZIYElf lU+pnkwL9JnbOxK+RMSI2GyLq2NOPzBUTFGYeZE= X-Received: by 2002:a5b:642:: with SMTP id o2mr40888379ybq.32.1552580206382; Thu, 14 Mar 2019 09:16:46 -0700 (PDT) MIME-Version: 1.0 References: <201903140234.4FpTWdW3%lkp@intel.com> <20190314083758.GA16658@quack2.suse.cz> <20190314123811.GH16658@quack2.suse.cz> <20190314143158.GC27249@linux-mips.org> In-Reply-To: <20190314143158.GC27249@linux-mips.org> From: Amir Goldstein Date: Thu, 14 Mar 2019 18:16:35 +0200 Message-ID: Subject: Re: fs/notify/fanotify/fanotify.c:198:2: note: in expansion of macro 'pr_warn_ratelimited' To: Ralf Baechle Cc: Jan Kara , kbuild-all@01.org, linux-kernel , linux-mips@vger.kernel.org, Paul Burton , James Hogan Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 14, 2019 at 4:34 PM Ralf Baechle wrote: > > On Thu, Mar 14, 2019 at 01:38:11PM +0100, Jan Kara wrote: > > > On Thu 14-03-19 14:01:18, Amir Goldstein wrote: > > > On Thu, Mar 14, 2019 at 10:37 AM Jan Kara wrote: > > > > > > > > AFAICS this is the known problem with weird mips definitions of > > > > __kernel_fsid_t which uses long whereas all other architectures use int, > > > > right? Seeing that mips can actually have 8-byte longs, I guess this > > > > bogosity is just wired in the kernel API and we cannot easily fix it in > > > > mips (mips guys, correct me if I'm wrong). So what if we just > > > > unconditionally typed printed values to unsigned int to silence the > > > > warning? > > > > > > I don't understand why. To me that sounds like papering over a bug. > > > > > > See this reply from mips developer Paul Burton: > > > https://marc.info/?l=linux-fsdevel&m=154783680019904&w=2 > > > mips developers have not replied to the question why __kernel_fsid_t > > > should use long. > > > > Ah, right. I've missed that mips defines __kernel_fsid_t only if > > sizeof(long) == 4. OK, than fixing MIPS headers is definitely what we ought > > to do. Mips guys, any reason why the patch from Ralf didn't get merged yet? > > Paul's patch :-) > > As for the reason why the definition is as it is - 32-bit MIPS was > born using long, then in 2000 64-bit MIPS started off as arch/mips64 > using int. Eventually the two ports were combined using: > > ypedef struct { > #if (_MIPS_SZLONG == 32) > long val[2]; > #endif > #if (_MIPS_SZLONG == 64) > int val[2]; > #endif > } __kernel_fsid_t; > > A desparate attempt to use asm-generic where ever possible then resulted > in the confusing definition we'e having today. > > Normally APIs are cast into stone not to be changed. But fsid is used in > struct statfs and the man page states "Nobody knows what f_fsid is supposed > to contain (but see below)." and f_fsid is supposed to be opaque anyway so > I'm wondering if something could break at all. Researching that. > Its content is opaque, but its size must be equal to that of fsid_t from glibc/toolchain headers. Do the mips32 glibc headers also define fsid_t as long val[2], or do they define it as int val[2]? Thanks, Amir.