Received: from mail-ed1-f42.google.com (mail-ed1-f42.google.com [209.85.208.42]) (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 7492A1B27A for ; Wed, 13 Mar 2024 08:08:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710317326; cv=none; b=X3rInHrCPwp55QULy1Hhah98meGoMEWentQQl5TN6zEDgSJ/23BFV2ocv8SmvR038mNaHaeu4syI3svj2rHFBJaLkvuwXGZWbT9LMoZM6L/7RQ9QrR3uFDlHs+fbpRMge96IJ9D3OYmKky4mg+3prgg3l1KGncX+lehSv154Zl4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710317326; c=relaxed/simple; bh=Ilo7SBklsnpBdSGKtf1DEHWyH/DDS0n5CeQfOE5bh2s=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=exxCGzbtgx/GXsaATIAhJ1KtkTEuZqLptNDi45kU6w1+E7w662W28JdDKVpaI5Jxm7Yp8F0HtMFKtES4Sf4bcdBqzofd3SYf8Pzjf1edpR6mdV0WeWooKGQBDSF2Pbk45URcU2E7c91KpxOSWXzzNMc35MEUP7kw+1/feG5yh+k= 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=oiWW7tgT; arc=none smtp.client-ip=209.85.208.42 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="oiWW7tgT" Received: by mail-ed1-f42.google.com with SMTP id 4fb4d7f45d1cf-563c595f968so8043678a12.0 for ; Wed, 13 Mar 2024 01:08:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1710317323; x=1710922123; 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=TySwUNxIJoh9Z+xrAuagQQcNvoDnLkRppstk3HiKyDs=; b=oiWW7tgTQSrf3ja8NcHer9a1P0d4hEabRoTPfxpHI8l4Kbh/lHj/H9kWZhd0mt9mpI Y8xMw8P5C8iQdrqe3WOy2oFMrzomBCtcdRF1yB+L6zVriJ3eIvP5jyP9LSUvbRtTi/pQ yur7pOXrTRQS3K0iP20dcOHgmY2YkgnBdA2hKmJiss/EoxSrxxyjP9Q3HzVHb+lOdzkB NibL4deggLTcBbxhc1DSXP9qtYSLp3ODYRwyXm2bXEs49UKYueeGqf7NAyTS56h5i583 QzMZhWWkIJH/5r5y07o2Go4L5UbjGGWGLW4Nj2SzX+L7GnD6PaJH2kjVvoahnO55I8Ha YULA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710317323; x=1710922123; 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=TySwUNxIJoh9Z+xrAuagQQcNvoDnLkRppstk3HiKyDs=; b=AYtBJX6Z1BlSFbnM1bKCmEb0Qm99wjzcBfVBNHHXJ0cVolFZrBymU5qexruUm3GHqz GVFV8vZeNssD8hSlGV3cPKwmj3Rh9TOeH33ZO9aGkjcHyGUHG6j5B7wpXxQ9D00UO0Ly inXG694I4mk9m6r8PSHTbBeFGIKQ64mrlYUaDOUM/ToK2ceF92oI3ntQgFt18Ggo8Tnx j89XHdkbcDUpehXGoY8fxGlgYTfT/MzIQN4ecS21B99bR8jaDTGaZb3pg0hJdfnBG0gL 6B4oNL5x8HAb3SjKlTBAliPB3fVAfmkQrOKFGTcQDuuG8O1gH256MdfL0d35G5imGsv7 WWqw== X-Gm-Message-State: AOJu0YyVRJAjV4kXlx9kimyvrbEIzMJeJqzgTthCUfb1sKtew7Ap+2Ad GljgJdEZ7UExtshLQaqpym2e2uFa/4uXnKI+S1ZUTSQR680Hph5bidX5kSiWkdRUyS+samoQ/th X X-Google-Smtp-Source: AGHT+IFwzcOHudF/rDPmPozkhS5gKJ3LddC9JOIw7G1ozSO8pXgKaZuKrjpx17HY7A+jj4HXDvDwhA== X-Received: by 2002:a50:baa4:0:b0:564:71:ccf0 with SMTP id x33-20020a50baa4000000b005640071ccf0mr7904595ede.2.1710317322584; Wed, 13 Mar 2024 01:08:42 -0700 (PDT) Received: from localhost ([102.222.70.76]) by smtp.gmail.com with ESMTPSA id v22-20020aa7d816000000b005687e041608sm834265edq.37.2024.03.13.01.08.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Mar 2024 01:08:41 -0700 (PDT) Date: Wed, 13 Mar 2024 11:08:37 +0300 From: Dan Carpenter To: =?utf-8?B?5p2O5Lmm55WF?= Cc: smatch@vger.kernel.org Subject: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: about using smatch in all debian C code Message-ID: <0d650b08-bcdb-47d9-ac74-b17efa988bc3@moroto.mountain> References: <3b9e9279.28e21.18e26b879d8.Coremail.lishuchang@hust.edu.cn> <2fa8d823-8580-402b-a856-86421b07a810@moroto.mountain> <7ddd4c66.29f07.18e2daed25e.Coremail.lishuchang@hust.edu.cn> <131f96be.2ab85.18e32ac1ad6.Coremail.lishuchang@hust.edu.cn> <1227cd84.2ac72.18e330abff8.Coremail.lishuchang@hust.edu.cn> <69bd87b1-d94f-48ab-9c1e-182da4581e50@moroto.mountain> <52ac94eb.17525.18e36cb9c67.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: <52ac94eb.17525.18e36cb9c67.Coremail.lishuchang@hust.edu.cn> On Wed, Mar 13, 2024 at 03:51:37PM +0800, 李书畅 wrote: > It's working ! > Though the output does't change, but for each .c file, it create a .smatch file, which show me the warn and error. > Can you explain the WLOG command for me? It's a shell variable I copied and pasted from smatch_scripts/test_kernel.sh > Other than that, for other similar C projects, do I need to go through the above steps as well? The unfortunate thing is that there doesn't seem to be any standard way of building code... I wish we could just swap out /usr/bin/gcc for the cgcc script but gcc is used as a linker and all sorts of other stuff besides just being a C compiler so it's a bit complicated. regards, dan carpenter