Received: from mail-lj1-f172.google.com (mail-lj1-f172.google.com [209.85.208.172]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 475AF101E2 for ; Mon, 11 Mar 2024 07:33:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710142412; cv=none; b=fI+3dL7wOLDFY8s0TPX9F/x+aGBo10WmWZ/UKAq2X1uIHfrdPv/RwcH8ML5aifJb17eiN9Io2bC8srAUQAC3zEaaWeE2x9fVBWEc1HmhOcwp3NjNxuHVVFwId6dRmvNMpFgemsYsgxpre3UMao2ZWslk2yu/Evsktv8gSHTYx4U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710142412; c=relaxed/simple; bh=lj0HBNVw49UC9T2wNfK96IDltr4+I+A3n4x39PNLeAU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=S+Xelp0e+DPFe+PmbJAbqwJE8vEjfqJtHzf+GPTPAcZsMCnnCAKO/S/HIATcy4651uh5kXtnSNqfd5UlvBfaY2plR1coXA6G7mjr6s9+/Bir9Cq+Zx40SzFhpZM/WkQtERcwjcYCdr3EyW5sWLSgcw7ahWHLNBv+b77J/tmnKe4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=CGRB4kfE; arc=none smtp.client-ip=209.85.208.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="CGRB4kfE" Received: by mail-lj1-f172.google.com with SMTP id 38308e7fff4ca-2d28051376eso35353221fa.0 for ; Mon, 11 Mar 2024 00:33:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1710142408; x=1710747208; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=LDYXU+0rYT07dSgOIAVVMMYGewa5Pr/PFlhHMtn1xdE=; b=CGRB4kfEkNkcHejB/q1ZaVf9YymFNI/GZJ/wv+les5EPazEBQKMqk/wE/IaHi1d+Np lnWWJv4CPjM9MMhUM4fqM9eSLXbhfasSy/tUU3t2S6y9yDTG33hF/7wv9MjMj/55KP3R 8pRKV3+rYtnyVE9nWgsAIyugWRHzks21wKFKyw89W1ifN8SzMw9A2bMMVlt+lVIHxv6F I8EElw9nnEgt41UfSzUn83mdyYTxwLvleEtkAjeK/jlz1iPrKEGrnPgU0fsTDI0mH1L5 f5rX4Tt6VWqzyHZY5flX8d0UfRF8S6giRm0b2nyMGFFUKnaaTElinTYN0NMsBqO53W0M 4/tg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710142408; x=1710747208; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=LDYXU+0rYT07dSgOIAVVMMYGewa5Pr/PFlhHMtn1xdE=; b=mLkYnHCS94wDZsHfvOFVtIug/v2qUzTMYWrqODtgr93Ckjv1sLwH5WACnKyPqxZ03E VLmcvYB+6K2ByCgUVPXDEfiRxf6WAvpiv3LoS6uBvoYgC41OsOnoVdTYKXNX0FarWsIq uJ7vrC1gxlGq4xNCtvo/qIUrNsDYB7YVgUnwuXlsPfLRAt9SIBx/HvbFTHK3Mgx3p1tS xmhvkfXTX2wv38wladPBbUu+yu4f0INitgE0dIonNBDu2r5rxfJt9TDAfahNuRzF8eNr Uuuy0vyaQDjVY9CBKVJ/gMdHjx0gsdQjswn2WWJUupLPuolRgfd11YS1uomGH3BN3MDs uang== X-Gm-Message-State: AOJu0Yyxw4HsIxJaOspoEaW7fzDTswPcRZTw0oRNpoEGKVWEe+eKmoN9 WCpcJCiBvc8Of8qiyOEqzS4nFqB0YBa329JUNF+d+hYNfl9puOfZUt9wpRoiVj8= X-Google-Smtp-Source: AGHT+IF/AXb+IdIb82TPoPo+xxm02G/Ft0s5xD1Dwal5aaF+nmNFsKWuH3nXYntz7F1ny1XnzZGZWA== X-Received: by 2002:a2e:b907:0:b0:2d4:2250:1da with SMTP id b7-20020a2eb907000000b002d4225001damr2834694ljb.30.1710142407929; Mon, 11 Mar 2024 00:33:27 -0700 (PDT) Received: from localhost ([102.222.70.76]) by smtp.gmail.com with ESMTPSA id v9-20020a05600c444900b00412f8bf2d82sm14353513wmn.28.2024.03.11.00.33.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Mar 2024 00:33:27 -0700 (PDT) Date: Mon, 11 Mar 2024 10:33:24 +0300 From: Dan Carpenter To: =?utf-8?B?5p2O5Lmm55WF?= Cc: smatch@vger.kernel.org Subject: Re: Re: Re: Re: Re: about using smatch in all debian C code Message-ID: References: <4640a9aa.3db.18bb28dbe21.Coremail.lishuchang@hust.edu.cn> <8cc9d3ba-f542-4d41-aea7-c5045e4769cb@kadam.mountain> <28841114.12973.18e12649674.Coremail.lishuchang@hust.edu.cn> <65cbde84.26ce5.18e132930df.Coremail.lishuchang@hust.edu.cn> <114bf6c8-2916-4770-aafe-33e6cab7ff4f@moroto.mountain> <05b886e5-cb94-4396-987a-f54a666f3c80@moroto.mountain> <6b3acdbb.13547.18e170213be.Coremail.lishuchang@hust.edu.cn> <46a7a880-fffa-42fb-9647-87bd5ec423be@moroto.mountain> <42242b9f.15aa4.18e2c56a8ed.Coremail.lishuchang@hust.edu.cn> Precedence: bulk X-Mailing-List: smatch@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <42242b9f.15aa4.18e2c56a8ed.Coremail.lishuchang@hust.edu.cn> On Mon, Mar 11, 2024 at 03:07:40PM +0800, 李书畅 wrote: > Hello Dan, I'd like to know are there any requirements for the makefile of a C project (e.g. not using meson to build) > to prevent similar sparse problems? > It's not a problem that it used meson. We figured that solved that. The issue was that Sparse couldn't find the correct header files... I don't really have a good answer for that. I suspect it has to do with #pragmas but I didn't look. regards, dan carpenter