Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2662777imu; Fri, 23 Nov 2018 12:42:30 -0800 (PST) X-Google-Smtp-Source: AFSGD/WANnjYGed8iZKZ/lRbJnhbP4UhME76B2z9JQO15lhWmhVq6BZawAPDnKSSaRl75esgIG5G X-Received: by 2002:a63:88c7:: with SMTP id l190mr15149993pgd.110.1543005750729; Fri, 23 Nov 2018 12:42:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543005750; cv=none; d=google.com; s=arc-20160816; b=XQAgkNomjT9vVWb7abPy8byRTm3BQZdivFz9cwwcTZ3FJrJL5Hc4wCLF5BTj2JFOA7 lAQ+8++9COzjY+/mHwRF9xu0s8yvZ4aBea1ZZpNh/mgLYsL9Gj6U3dBUCcC+TMWuWYrc uIMf/o0Ll5e71keicQxyzAW2/sJQPza2z5K5WCXOFZJy7Sk2EKVNAySQNNZAT7BkjpaL IvvtzZiDDiwb7QVWJsAED5dm9iyDo2KJ+W2UFO3wGoj5+TUQZQuYcfaSdJ5YJdCrbXOX izMSYvBj1Y5ZtSVuKnhcZ8nz7jBrAU7svPz6AC98erbZ3SkiF/1PAvCrCporTyVOnx32 fpkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=F66SYXiNorKCcziqBUCIpNtB5sKv0ifwQAmsm+7k3U0=; b=YuDbBGbFd+HZ02LeLnWT0dju6vsH686PpqBHmduyUTDLV/5T5jdyOCiZjQT8K9Ndyu qI1SSXxb8R3OUCf2ZKmFoRbNItx6Ti/grJN4+DmMFEV3Ow6hfecljLY3ZnN2ypFJLNtb YELyYGu9V3aZv1vOmZ3KyxliZau6kIWDKSDvYtoEwYMN9eUoSUzieWWZuezsgrCP+ZF3 DCFy9NRcBR3cysuY722hWB2kbwdO+zTIalOgLKOjl8OuJihUYntE0AtiGKRPURq9TMx+ JW27w8x3MEOk0aGLQcBsOBzKNNMHmGsRAWvNilc5SEi37qyLmaKZxNnCp4e7n4j7wHoU +z1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=szfEopFl; 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 y5si18695234pgs.588.2018.11.23.12.42.16; Fri, 23 Nov 2018 12:42:30 -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=@gmail.com header.s=20161025 header.b=szfEopFl; 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 S2395551AbeKWBLm (ORCPT + 99 others); Thu, 22 Nov 2018 20:11:42 -0500 Received: from mail-ed1-f66.google.com ([209.85.208.66]:34652 "EHLO mail-ed1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387777AbeKWBLm (ORCPT ); Thu, 22 Nov 2018 20:11:42 -0500 Received: by mail-ed1-f66.google.com with SMTP id b3so7906472ede.1 for ; Thu, 22 Nov 2018 06:32:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=F66SYXiNorKCcziqBUCIpNtB5sKv0ifwQAmsm+7k3U0=; b=szfEopFllWL1WAwj1UYPTJx1ouhdiFSTI4LNHW1xvcAuwWO3GP519U8I7m2XfzNu7Q ZTRmHBzSUXsX761Qm6jsoz5bGB7P7j07yy6TWtGaB12FjB8jbDSPoyne4iLCEnJ9QXKD qXRevR5kr3BPqIGTh4hBOb1AdDNn5Rq1gseEuw4ECEuuufHA3/KJl2rDUgq4iLgKQZy9 lJ7he5KvncMEd5GpDiBybnHxEd51253by2P8eVpdePEFKpGxOIoVb9ZNIU5GyDoVl9OV 1GS1FqP7eMdJum1GgLiCr6lSRU/0cnijdGaKuf73mEQ04BIvk8ZO8CDxu8zsLAe+HoaO Ep6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=F66SYXiNorKCcziqBUCIpNtB5sKv0ifwQAmsm+7k3U0=; b=ZVhsVBqyu238InB4kGxuKSCNqK5CKQ8DM7JVzG2uIlFHFEoxRH6LyFJ+hihvte92eN pPDejhFi3meRVZusSU2ayeEgMSKPkhUutcGYw3E/tA0k8NdbpJEs4avgTfYJ8c8gLk8T cgdvm5IJXT5GmgHaGUxnC2o0M+d8tvrZ+0F2ba3929WWSUk19DCpk5Bf2PvBOBuAo6zj R/FnjXu7X7oWp9NLWrvzxymYyl0U6lnWQKy+HuIVo40vJW+R99r5aoSEn+gM6O663K1N YMgBQfzRXIWz8aaUd4N+jmisK2Nd+zTp+WR6nhlL9uW8DbAvB0+Wb9GJgYU5z58GQ8Fj PFIA== X-Gm-Message-State: AA+aEWYylagb7p28EfTOiYfa1QHVCritivrQcdvgbObap29MAvAJ8hd5 XdLaf4HBMKrzeMXqnf1XmwQ= X-Received: by 2002:a50:aa31:: with SMTP id o46mr5045524edc.23.1542897124111; Thu, 22 Nov 2018 06:32:04 -0800 (PST) Received: from ltop.local ([2a02:a03f:40bc:4d00:e07b:5667:f20f:17b8]) by smtp.gmail.com with ESMTPSA id t24sm7275697edb.7.2018.11.22.06.32.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 22 Nov 2018 06:32:03 -0800 (PST) Date: Thu, 22 Nov 2018 15:32:02 +0100 From: Luc Van Oostenryck To: Masahiro Yamada Cc: Andrew Morton , Nick Desaulniers , Kees Cook , Josh Triplett , Alexei Starovoitov , linux-kernel@vger.kernel.org, NeilBrown , Greg Kroah-Hartman , Ingo Molnar , Crt Mori , Dan Carpenter Subject: Re: [PATCH v4 1/3] kernel.h: disable type-checks in container_of() for Sparse Message-ID: <20181122143201.d7vifhlny7gmrhzd@ltop.local> References: <1542856462-18836-1-git-send-email-yamada.masahiro@socionext.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1542856462-18836-1-git-send-email-yamada.masahiro@socionext.com> User-Agent: NeoMutt/20180622 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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