From mboxrd@z Thu Jan 1 00:00:00 1970 From: Linus Torvalds Subject: Re: [PATCH] fix expansion cost of pure functions Date: Wed, 22 Feb 2017 17:01:03 -0800 Message-ID: References: <20170216154532.9261-1-luc.vanoostenryck@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from mail-oi0-f54.google.com ([209.85.218.54]:34705 "EHLO mail-oi0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932456AbdBWBBw (ORCPT ); Wed, 22 Feb 2017 20:01:52 -0500 Received: by mail-oi0-f54.google.com with SMTP id 65so10603326oig.1 for ; Wed, 22 Feb 2017 17:01:04 -0800 (PST) In-Reply-To: Sender: linux-sparse-owner@vger.kernel.org List-Id: linux-sparse@vger.kernel.org To: Christopher Li Cc: Luc Van Oostenryck , Linux-Sparse On Wed, Feb 22, 2017 at 3:57 PM, Christopher Li wrote: > > I think dropping to zero has some thing to do with get rid of > the side effect cost. So it possible the cost can be dropping. No, I think the zero is just a bug, introduced in commit 8376ab091a ("sparse: Fix __builtin_safe_p for pure and const functions"). I might be missing something, but I think Luc's patch is fine. Linus