Received: from mail-wr1-f51.google.com (mail-wr1-f51.google.com [209.85.221.51]) (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 8F27084FA9 for ; Thu, 7 Mar 2024 09:49:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709804948; cv=none; b=jaw8sG0Un9HW9YYJ1vbwgeLU4CrBLqodWF9Q/z9oDgD29hM7JjBqKwRlcovYSKb2aikBfddnRRPqBn1UT6ZcKwQe/3nlPmJNN/SGOY8WEDvqhbizM+Iks0g12X0V81B54hcHBfDsjAbuUtQh7S1rhdWfP5fc9eI55D/TGN/osIU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709804948; c=relaxed/simple; bh=ItXf2+wpmx+5RC4qe7Vm1hTV4kZ4FkqwPmmMkehS2uk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=fWuCOeGnUJSYMcC2aoDjZHNFM6NopCDwdS46IfyVFKmASxPT6mQD3995FX7/Ht4AbI670XHYs+mGPBgo0Zzow1ejcsLXbIcKS7oHgQZ/VOFR89egsv9KEI7+6iprdi1kszO4naTEVUaJWuEmZkQx2549vTfOVUjxPe+E2+K/Phc= 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=W+wue7Qu; arc=none smtp.client-ip=209.85.221.51 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="W+wue7Qu" Received: by mail-wr1-f51.google.com with SMTP id ffacd0b85a97d-33e2774bdc7so508595f8f.0 for ; Thu, 07 Mar 2024 01:49:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1709804945; x=1710409745; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=8s8xxjs1llk7AzU0i3k2x/UKpEXwMlDR68JnxKaXkPg=; b=W+wue7Quuk1EUQyNSSyUweJnevqngcW9SQDg+rPLliAO9Jd/OsYecgwiYmUYvlSC3e qP9xOEFI2eQiRSHDGF2x2Te2lpCRTPnK04TNe7QSej1l4qLrX/P7QVn+xdLNCtVNDOLp 1TBFJbKiHy+U8wo869lMGxdAp/IGCD61wasS21Ea6ukgbTYRrxBmj6bPJU+CjJ8f4FIq d11DC3MSly35YrpXyERTzH6G5slTRiTyiJxUnb1JAeJnodzKjOCmkL3P7zHTbXxWBaLx UPHTuGOsS6Ma3uWCj+JYt1ko0J4tiq9cArstkTHM9pYpgfgpMNkYCgsWJyrxsEFg5GAH /OBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709804945; x=1710409745; h=in-reply-to: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=8s8xxjs1llk7AzU0i3k2x/UKpEXwMlDR68JnxKaXkPg=; b=Jv/XZWILWviGO0UKJtgbcC63jxefmMRU+KuHc83pD6WJMWo35auiLfpEorL/gLES1E HbbrowRWI4ChDsLZckg6i01R90+rGz/t6UR82kjt2H0mF6h2faJr668brJgF8iD8i53m 8j3assznM8DM9v9S3NFy3f6AQv5nwleC0gCCG2DGevRlj/22QBgmAUymSkqt+aoOKYNT dfETZ1oN/5e+clHUe5tX8LZj6WLXE6eO8iFLUycG/xeIbQ0KlVom9jI6foX+p6DLT5Fh 4Pb13vw3jQiG9quWplqOCGfyuIB7l3oWAwHx33QqNra9vk8lg+6azslNKxMCE/ZaQoFe vphg== X-Gm-Message-State: AOJu0Yzii+OI2ta5KwcQ2R4zm1jIaOYqid3CJ5o7ycsJIxhqOQyytdIi JHbQEHSmS/NW5Hp6nJhfVje1WLODp5WGEDs1pK2sp1MXiI6fQSdWZsqhCvdFNdA= X-Google-Smtp-Source: AGHT+IGJ8b2NNq9K1NnW+B2DzcK1aHr/KdGSysG2SDJ2hJK1ir728grfktBsLwWfZea5RhqaOt16qQ== X-Received: by 2002:adf:a4d5:0:b0:33d:b2dd:7585 with SMTP id h21-20020adfa4d5000000b0033db2dd7585mr12603288wrb.9.1709804944501; Thu, 07 Mar 2024 01:49:04 -0800 (PST) Received: from localhost ([102.222.70.76]) by smtp.gmail.com with ESMTPSA id ay30-20020a5d6f1e000000b0033e239040d8sm16514785wrb.84.2024.03.07.01.49.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Mar 2024 01:49:04 -0800 (PST) Date: Thu, 7 Mar 2024 12:49:00 +0300 From: Dan Carpenter To: =?utf-8?B?5p2O5Lmm55WF?= Cc: smatch@vger.kernel.org Subject: Re: Re: Re: Re: about using smatch in all debian C code Message-ID: <46a7a880-fffa-42fb-9647-87bd5ec423be@moroto.mountain> 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> Precedence: bulk X-Mailing-List: smatch@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6b3acdbb.13547.18e170213be.Coremail.lishuchang@hust.edu.cn> I figured it out. You need to: export CHECK="/home/user/smatch/smatch --file-output" Then you can't use ~/ in the --cc option. It has to be /home/user/smatch/cgcc. But then Smatch/Sparse still doesn't compile the code correctly. There are tons of compile errors. This is really a Sparse problem (Smatch uses Sparse as a parser). I suspect that fixing it will be difficult. regards, dan carpenter