Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp406288ybn; Tue, 1 Oct 2019 23:30:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqxEqQJsllngMp73Z35ybdr1p4YYVopS7ir4Gmcz6rI961TWiuB0ZO38CARwCgP/G9a8D7Zd X-Received: by 2002:a17:906:ecb6:: with SMTP id qh22mr1658711ejb.114.1569997849857; Tue, 01 Oct 2019 23:30:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569997849; cv=none; d=google.com; s=arc-20160816; b=Bj4HePOC4iLe+tx0ahY1/o1yG2MNiE4DP+KvK1o6YbGpTWUGTd2wPrt/X8Dkw9E7Jw mxq6lZmoHGHO3sli8FOBlDZBMe0jB+THmIA7zO7u7DnJv5A37Dagw09ZEquIfIGPcbEJ zjDSGFtgFiXJ2/Ss4R12JRHQ2OQ7HMB15i8cNDjLsCjb9VB4/CKWhBFdZ6CCLf/pje7N J6Ls/EecvQk0nfs9P2nvAI6JMHWI2H6wO3YfMFx4AkDLN8Dobbkulio7luPq1UXI+EIJ QFEN5v4z0fVQEXfCY6fmvZKqoShDP4SyEfiushndB6o2F7kiYIDTPZXipWqv+mvICnsI 2ERA== 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=Tc3oEsXss3L57smcg7ET5YqKd/3q1IBNjIpWHSb/fJo=; b=gHqP1dWowvSry1xEOaVNq/JavjFWayaWe8tzn5MDujMCKhxMOfErB4wh+OiiVJm7aA pmAKrqum9Beea6Iz29GxMkCwyMP9jOfqTIs9AmsbUxSNn/SjncjcLyUap128GJ1Fn3Tz oOfw1GsFWpELqrJnzF5SKXYH+7eUWcUl2fW3tUmPNj27die9g/8EmdTKkCA4vJsjlREq NqqHqCRGsIWcsjHH+9SL9CSQ4ImV0A2QoJJyVXKA7nfcbZaykoTldvYslfYgDXwYUWTr 4iRXjmCjX0wKJyc1rZYEFSDYBZd/3yS1r/LQrSQRHpOypxdvjMR/MliT8aamFkNWFSsW +XZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="GEIq/Ki3"; 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 h17si11527727edb.89.2019.10.01.23.30.25; Tue, 01 Oct 2019 23:30:49 -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="GEIq/Ki3"; 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 S1729741AbfJBBfo (ORCPT + 99 others); Tue, 1 Oct 2019 21:35:44 -0400 Received: from mail-ed1-f66.google.com ([209.85.208.66]:34923 "EHLO mail-ed1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729676AbfJBBfn (ORCPT ); Tue, 1 Oct 2019 21:35:43 -0400 Received: by mail-ed1-f66.google.com with SMTP id v8so13744949eds.2; Tue, 01 Oct 2019 18:35:40 -0700 (PDT) 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=Tc3oEsXss3L57smcg7ET5YqKd/3q1IBNjIpWHSb/fJo=; b=GEIq/Ki30tVD1G/ULWtFJFur8kJhcmFiMY+RFm8a2l3TslyzqlV1XKFXcY6yCm33EY 7ce+RL4sYllsb7v0fs4Ugs6sjYUfJ+VmqT2Mlt6BZwv0pzMc7xpo6OVZg6T8SW6WAn6/ ofU1K5X1d6JEbb3tFKhybysHXe6TLYkWiluzuBe85qvSqF8i8PMpmuGQ6W4gzQUeiNPk RSPHsnh6eJYS2UUn1HoPuuQI/QuZie5sEPTC/VRvgTL2xUJ4nwVuFAuEdJdtKNYz6uRa RJRclUvHAK5wYUnG5Kd5szhVJOWvrnDnSGGqxFqu8qwG0B25o2mufERVQeZkIh1uFYkK J1/w== 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=Tc3oEsXss3L57smcg7ET5YqKd/3q1IBNjIpWHSb/fJo=; b=SnLBDewtJJSPpvLN/sB7yEiQgubzAoRYJJditVe7ZwqB26td3P6+N9lQcG0H9zMt1r evca82OIUESO/4vIrkAoej05HWHYGCdBdtbeJsUbu2dbtRVMydShc60F1m2uAQzuQwdL hjzp6njzJt+KGgivfcKcurVVsUMHN5lKvmTml/3u5UEdCznbTRXbzVcTtDhxGLeOhyh0 yr1dyVsbv4bJ7s7MsKFG0YKM8dRUeJ/j94qpIWjOPz5ROor66klPvkPFyG9/S0MHL9LH c4pXs44kxnlah4IxCpveiGKxuohXoWskuBFjeIgdW5UKHZLEzCcTqWKvJNRHsCXFg4Gv 2kdg== X-Gm-Message-State: APjAAAWEaDnR8dC6ApJM/zA/2TTKZ3zJGEbhE8E7uSHBBipTGgxvEWCQ +h57A9gPMHqOuFlNcOOspS5/HFeA X-Received: by 2002:a17:906:b84d:: with SMTP id ga13mr993370ejb.236.1569980140067; Tue, 01 Oct 2019 18:35:40 -0700 (PDT) Received: from desk.local ([2a02:a03f:4080:1900:c8a8:489c:8544:d3e4]) by smtp.gmail.com with ESMTPSA id f36sm3525242ede.28.2019.10.01.18.35.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Oct 2019 18:35:39 -0700 (PDT) Date: Wed, 2 Oct 2019 03:35:38 +0200 From: Luc Van Oostenryck To: Steve French Cc: Paulo Alcantara , David Howells , LKML , linux-sparse@vger.kernel.org, CIFS Subject: Re: Many unexpected warnings with current sparse Message-ID: <20191002013537.2bfopy3ke5kkmqep@desk.local> References: <20191001231017.67txq4dhrvhyzbu5@desk.local> <20191002001859.qeyo3btl7tosz3vo@desk.local> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 01, 2019 at 08:24:45PM -0500, Steve French wrote: > 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 Ahh, good! > (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? Well, personally, I simply use '{}'. GCC and sparse are happy with it but, IIRC, it's not allowed by the standard... > 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." This one is not from sparse, it's from modpost (see EXPORT_SYMBOL_NS). Cheers, -- Luc