Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4552508imu; Sun, 25 Nov 2018 05:57:54 -0800 (PST) X-Google-Smtp-Source: AFSGD/UkgipQZjkgivUOhiwOJYCjwknclNyZeZDOfh/diGTya/U9vqWkmEjqIWfpcsjEXa8Fzfpu X-Received: by 2002:a63:e302:: with SMTP id f2mr21525272pgh.320.1543154274898; Sun, 25 Nov 2018 05:57:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543154274; cv=none; d=google.com; s=arc-20160816; b=mua+TD4tXAKfYng2r8TvJO2jWn3t8JJdFvs/HDMQalIgkkH618CwsJkiIF0vY7Q0w7 yzh4u4KNMzW+SnwnhLL0Drshg57cnGRFOANXZubkFmCv9mvfiTP/ZKWrxMMA1aTsT1In 5GGfIvRuxG0MMZ3GgXQ1eWz1wzqA1mVdBwiZknKXw5134U2gxvbLr+QD50P9RozqROcr uyYQnnUBTUU36nvMz3QeIl7Izh9SLbpWmDDWM/qJfnyRp2w3VtZqgFB26OHUTJMI6Wvc OajYjwOoEFr2B36SJG/6KjkbO9Z8wty7ZrJdcEHR7lH1G+Dw1P3bHA1kW35CMnlqo25v rymw== 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:dkim-filter; bh=aIuesR7do2IocVBw8Ifx6CBIm/2NA2X6nJXyEEXcI20=; b=ErGO2d7GdN0mPfKkk3U6r7tjSWT3+68B+9VXd9CmB/X/ozwnxBHUahqIc7eedFojcI iX8iQemWEO3p94mOBWp6Mf1gfDXiMkuKSZwi0xbjASNc9lNduKuHHh7XB4YQooVYQRv5 jxIEXQvb+j16I9ErmOrP0FGAax621ibgM0leOFpYhGZHvvLFVqow2P+lINJ4laOqvLCb +Nr5A0iGB4fBbsHGBCKzrfTzgUsGl+w8ltIA7cjyo+VKPEIatW6TMSCuBzbos3s+XsCr UB5PDlr8Fz7oly31u9Vo303zRsdBPLjuIaOtgUqXI9PI6PlkZn0gSaI576wnf8GHEm5d i8XQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=1aUGJkfu; 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 h96si37741897plb.230.2018.11.25.05.57.39; Sun, 25 Nov 2018 05:57:54 -0800 (PST) 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=@nifty.com header.s=dec2015msa header.b=1aUGJkfu; 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 S1726199AbeKZAsN (ORCPT + 99 others); Sun, 25 Nov 2018 19:48:13 -0500 Received: from conssluserg-05.nifty.com ([210.131.2.90]:44695 "EHLO conssluserg-05.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726066AbeKZAsM (ORCPT ); Sun, 25 Nov 2018 19:48:12 -0500 Received: from mail-ua1-f46.google.com (mail-ua1-f46.google.com [209.85.222.46]) (authenticated) by conssluserg-05.nifty.com with ESMTP id wAPDux1W018779 for ; Sun, 25 Nov 2018 22:57:00 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-05.nifty.com wAPDux1W018779 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1543154220; bh=aIuesR7do2IocVBw8Ifx6CBIm/2NA2X6nJXyEEXcI20=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=1aUGJkfuFA2JPFrklE4SBF3GYLpme5k4XdBywvYRdOUeIEp//kRoPOZHMgFZHOpv/ gi3hgG7PgdxBa6uxkHf9LguwUhkV9b+4RVy/LbVZ/AHpNxyRBVOlCcQELjjyZGgKAu 2nSXCh4ZEgja/gHdq78HuD9EaBJRNQ+SxG52WxJE/iyea7GdsHRl9t3QQdyDgr04bx D8/yElge86Fs2bUuF4NMGYUYlCgWbqs5dtLweSLhuyRKKbZ2eeaSCTZcdxhNeM1LUN /FxdH1WapbMxxvYApOSyFHa5m+EXAK5lsj+sia8xUdSKocy6uD/R5ndw/ohq+qYglA INaQ0NMCK+nig== X-Nifty-SrcIP: [209.85.222.46] Received: by mail-ua1-f46.google.com with SMTP id z11so5431839uaa.10 for ; Sun, 25 Nov 2018 05:57:00 -0800 (PST) X-Gm-Message-State: AA+aEWYw8Vt7TGHb23WGQUXALX4cSO0l06LI4b79zejS/WTnvyy7TTue bkqNvtYSpikLSNPKokM4QEk1hTbPJ3Poth5mVfg= X-Received: by 2002:ab0:6705:: with SMTP id q5mr9751327uam.89.1543154219015; Sun, 25 Nov 2018 05:56:59 -0800 (PST) MIME-Version: 1.0 References: <1542856462-18836-1-git-send-email-yamada.masahiro@socionext.com> <20181122143201.d7vifhlny7gmrhzd@ltop.local> In-Reply-To: From: Masahiro Yamada Date: Sun, 25 Nov 2018 22:56:23 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v4 1/3] kernel.h: disable type-checks in container_of() for Sparse To: Miguel Ojeda Cc: Luc Van Oostenryck , Andrew Morton , Nick Desaulniers , Kees Cook , Josh Triplett , Alexei Starovoitov , Linux Kernel Mailing List , NeilBrown , Greg Kroah-Hartman , Ingo Molnar , cmo@melexis.com, Dan Carpenter 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 Sat, Nov 24, 2018 at 6:06 PM Miguel Ojeda wrote: > > On Fri, Nov 23, 2018 at 10:14 PM Luc Van Oostenryck > wrote: > > > > On Thu, Nov 22, 2018 at 12:14:20PM +0900, Masahiro Yamada wrote: > > > When I tried to enable BUILD_BUG_ON for Sparse, the kbuild test robot > > > reported lots of "unknown expression" warnings from container_of(), > > > which seemed false positive. > > > > > > I addressed this in [1], but fixing Sparse is the right thing to do. > > > > > > The issue was fixed by Sparse commit 0eb8175d3e9c ("fix expansion of > > > function designator"), but it will take time until the fixed version > > > of Sparse is widely available. > > > > > > Disable the container_of() type checks for Sparse for now. > > > > I would prefer that developers upgrade their version of sparse but ... > > > > Reviewed-by: Luc Van Oostenryck > > Indeed. If someone is writing code for the latest kernels, I think it > is reasonable to assume they are able to use the latest sparse too, > since it is not required for compilation anyway. I am OK with either way. I leave this to Andrew. -- Best Regards Masahiro Yamada