Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4371EC4332F for ; Thu, 2 Nov 2023 11:21:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229643AbjKBLVv (ORCPT ); Thu, 2 Nov 2023 07:21:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45670 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229460AbjKBLVu (ORCPT ); Thu, 2 Nov 2023 07:21:50 -0400 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BB1E0132 for ; Thu, 2 Nov 2023 04:21:44 -0700 (PDT) Received: from [192.168.1.110] (unknown [103.86.18.252]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 01DB28C2; Thu, 2 Nov 2023 12:21:23 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1698924084; bh=ok+QJya9VE9LDUmifXsBEzXixZzHS5C2Xb0i0kxv/o4=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=PUhjLKlKoaTprSYWunRR9CEyP2vUpvPIRGofAuF+/zzgvl2zcD8rcJDNx1tqpygfe SCLRmIWnLZgJoCIIgx/3eGAST5zXq1azqWR0TZNOSc3Kjr1zFQNoHAqUn/6LoSjV56 bkUkBnWEJPJgJXpL0Ssnmlhw5AD0BLeVxS/ZJi78= Message-ID: <97f7ae5a-e434-989d-ba6a-dda3ec7462fc@ideasonboard.com> Date: Thu, 2 Nov 2023 16:51:36 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: Kernel config usage Content-Language: en-US To: Dan Carpenter Cc: smatch@vger.kernel.org References: From: Umang Jain In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: smatch@vger.kernel.org Hi Dan, On 11/2/23 3:20 PM, Dan Carpenter wrote: > On Thu, Nov 02, 2023 at 02:30:18PM +0530, Umang Jain wrote: >> Hello, >> >> I am reading >> https://repo.or.cz/smatch.git/blob/HEAD:/Documentation/smatch.txt >> >> And trying to test smatch against the linux kernel staging branch from Greg >> KH's repo. >> >> I am a bit confused about kernel .config usage ? What does smatch needs? I >> tried using multi_v7_defconfig and allmodefconfig, but everytime I try to: >> >> $) make O=../my_build_dir CHECK="~/src/smatch/smatch -p=kernel" C=1  bzImage >> modules -j32 >> >> I get asked about config options again. As below: >> >> * >> * Restart config... >> * >> * >> * General setup >> * >> Compile also drivers which will not load (COMPILE_TEST) [Y/n/?] y >> Compile the kernel with warnings as errors (WERROR) [Y/n/?] y >> Compile test UAPI headers (UAPI_HEADER_TEST) [N/y/?] (NEW) >> >> >> ... >> >> Am I missing something ? > > That's not a Smatch issue, that's just a kernel compile issue. Did you > do an "export ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu-" before you > ran the make. indeed, that was the issue. I forgot to mention that on the command line and didn't notice :-/ Thanks. > > regards, > dan carpenter >