Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp404427ybn; Tue, 1 Oct 2019 23:28:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqwuqTZ83MWZxrqgciYfw6HqPZZ20aGZua4vIcbS5MrUN8OmaxuoQl0Jrvjo/BYoPsUviUT4 X-Received: by 2002:aa7:ce88:: with SMTP id y8mr2092994edv.145.1569997714992; Tue, 01 Oct 2019 23:28:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569997714; cv=none; d=google.com; s=arc-20160816; b=nPWiwV72K3mmc3ICMC7MUW2sNQ8n5gOP0LnADLfdq31Ne3uTcI4N8XfAdG5nx2xwFc L5k4EMoNVHeAxzOieh6MrqNYZ/lKUPM5jsWNJsUFiIc74fRXx2sqIlsvi5QHOdXv9ODV Tf4dzZfiC+f3yj1Hd+QJ+NkmwQrFpSux0yQVLMT45rAQA6GxmCQ1QECRBbniWj+ISfXC wlElr/oTLthRh3W+XMzbDnEJiBy2H8iBVfDFcAPe3BMHiwT/ptF21t4c3LD6xFfYZpJw f1cb8979GjK6ioHXSqlQtdA/uTb/U/paq3CCAjFpo2/Kspz7QkenNsUevOWY4sJz9JMg RN9Q== 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=WW4/xkSDQIhkfsesG9YoLnUMFaDJjWvzNHAEkW7fJkA=; b=cCl2z9jXsMv9+IFkBoIkafuFgQXJmCIc3KVB0GoGFMaj7UdbOPvCRG+PZP0S9ZPUUR qXE7SIXk9aRIlr9ncUd5MYL6XBdDl4ftw9Xdx+j/44H+jqsB9nujTABMxToz2Ac8i4ae mbtodr6qVcrZ+GnsWoQ1oTIMfWs6aIi6sM8GES9LWi8mmJet1psKs3uPejxHFZIbr+Yd sMwwkDPJk84h9cKI0Mw7plA0/XS2AWAHK7bRKhL042Yq+JjrlIw4DT80AzlrHhnb0rjM Y5qXcX1dPe9lZuoenLtas7di303i1K6wNch4gj/Cya4ZpScN6aQ+pZg1bPo9OKEc2ups yoog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=SELtzi6L; 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 u8si10015458ejt.219.2019.10.01.23.28.10; Tue, 01 Oct 2019 23:28:34 -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=SELtzi6L; 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 S1729690AbfJBBY5 (ORCPT + 99 others); Tue, 1 Oct 2019 21:24:57 -0400 Received: from mail-io1-f65.google.com ([209.85.166.65]:46160 "EHLO mail-io1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729681AbfJBBY5 (ORCPT ); Tue, 1 Oct 2019 21:24:57 -0400 Received: by mail-io1-f65.google.com with SMTP id c6so52935145ioo.13; Tue, 01 Oct 2019 18:24:56 -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=WW4/xkSDQIhkfsesG9YoLnUMFaDJjWvzNHAEkW7fJkA=; b=SELtzi6LjPYxNmk8TonlToYJ4dYGk/DN/z7VRaW2PzJqDnDQaeOgeMZP8OI+vQnSpw O4xP5NaXSwqj7tsClZcMPkxop33TffDN5xUboR3xabL07aaIv48fVdZlk4PaEvQT7Qsu T1U2kVyrfKhSP77hvAjdDypCgFCwkYs9LbYyG76k7NGbQ/wCwAZgJP/qyj8d5Mecfluc nTya1o8pxjDteRZSM7GQMakA071DvylNWInlaTtqBevulSTwArJxz8rnBm37bPnzTHyo LXzOTKZvZyqJQ8D6me/wa1HxQmXhOefjLqRI3O80Z782g7ub22+sA1zFlpRJiPWEvGjd EyFQ== 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=WW4/xkSDQIhkfsesG9YoLnUMFaDJjWvzNHAEkW7fJkA=; b=RJcuHXfOFw132Q4b+pYQuXV4atxgh2JFKk9x3KMZFsPh/3x1V/9OY12c/Gk7Hc0hBF SdPk5E6yhB4WaobIcaTndZdvsuAT0oXSe6k0voq5ppEfyo+EHaOzUnLRSyJB7qBtBpoT XODRJr7FxjoVI6pSi59cBN0WAnKitKOCA9hObGxw/SyIcZDHl7n0q+2FpE7MB9bFUqXD o7KKk0AGT0J7jWArBGNjecprRIpmY7UBLCLqX40npL+MC8qrEaOt/LhiJ9a241IX7ByV 8c9kNqx/XB6ZBBTEwBh0oVg9kEWd/NGob3+/c8DgtIcTZ0calBLoKWOJBUjBTRnzYjn5 vDfA== X-Gm-Message-State: APjAAAVIUmV4uwMwAcVSSTFROCWqHBowPnspbzwO7ehF1yeQfGCYQg4L 53nWHzN+XE+VzCo9tAxK9TM/Yljbr8ekk20dVUTMepB08rc= X-Received: by 2002:a92:d641:: with SMTP id x1mr1188239ilp.272.1569979495933; Tue, 01 Oct 2019 18:24:55 -0700 (PDT) MIME-Version: 1.0 References: <20191001231017.67txq4dhrvhyzbu5@desk.local> <20191002001859.qeyo3btl7tosz3vo@desk.local> In-Reply-To: <20191002001859.qeyo3btl7tosz3vo@desk.local> From: Steve French Date: Tue, 1 Oct 2019 20:24:45 -0500 Message-ID: Subject: Re: Many unexpected warnings with current sparse To: Luc Van Oostenryck , Paulo Alcantara , David Howells Cc: LKML , linux-sparse@vger.kernel.org, CIFS 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 Tue, Oct 1, 2019 at 7:19 PM Luc Van Oostenryck wrote: > > On Tue, Oct 01, 2019 at 06:14:23PM -0500, Steve French wrote: > > It may be related to the following sparse make warning: > > > > No rule to make target > > '/usr/include/x86_64-linux-gnu/bits/huge_val.h', needed by > > 'sparse-llvm.o' > > > > I don't see huge_val.h in the Ubuntu 19 version of libc6-dev > > Yes, I've been bitten myself by this. It's fixed since a little while. > So, just doing a clean build or removing all the deps (.*.d) > should allow you to build sparse. > > I've verified the problem with asm and __inline in quota.h: > it's autodetected by kconfig (CC_HAS_ASM_INLINE) so the exact config > doesn't matter (only gcc's version does) but in all cases recent > versions of sparse don't have a problem with it Removed the dependencies and rebuilt as you suggested and it worked ... and even better ... with the noise removed I now see two real bugs (endian conversion missing on two lines) and only one possible problem with sparse/gcc itself Sparse now flags this line from one of Paulo's DFS features merged last year: struct smb_vol fake_vol = {0}; with "warning: Using plain integer as NULL pointer" What is the recommended way to initialize a struct to avoid the sparse warning? And what about the "namespace" warnings from the fscache (cache.o) code that now show up? I hadn't seen those before. Any easy way to remove them? "WARNING: module cifs uses symbol sigprocmask from namespace fs/cifs/cache.o: $(deps_/home/sfrench/cifs-2.6/fs/cifs/cache.o), but does not import it." -- Thanks, Steve