From mboxrd@z Thu Jan 1 00:00:00 1970 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 shelob.surriel.com (shelob.surriel.com [96.67.55.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A2272C433F5 for ; Fri, 8 Apr 2022 01:47:06 +0000 (UTC) Received: from localhost ([::1] helo=shelob.surriel.com) by shelob.surriel.com with esmtp (Exim 4.94.2) (envelope-from ) id 1ncdi2-0004tF-3K; Thu, 07 Apr 2022 21:46:46 -0400 Received: from mail-lj1-x233.google.com ([2a00:1450:4864:20::233]) by shelob.surriel.com with esmtps (TLS1.2) tls TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1nbRUU-0003lk-2a for kernelnewbies@kernelnewbies.org; Mon, 04 Apr 2022 14:31:50 -0400 Received: by mail-lj1-x233.google.com with SMTP id q14so14034255ljc.12 for ; Mon, 04 Apr 2022 11:31:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:content-language:to:from :subject:content-transfer-encoding; bh=10NNCztDW0cuogrTUFj40OWovAam1xMvdcWhd7lsiNw=; b=SaJ62Yj2X5L0tOgZXth/UgRY0kBa95VuKr2a9dBeSPx4GsVr4wYUUWCxCZBeG8X7lq Jp8oCN9v9HaE9yKW+aM7Rkvqt2Qz7RBMX4lzpgqjel6V4yJKXV/+ObmRw1I+C6ILoTQ1 5ozT/ZOcx/Y/7ROFDEuUISRXW5Bh5l7LxnWQ3IChrl4in/5/E8g1s0ngnRRCQlAKbpyE Np0m+YyAIfquGhN8b/lE8nRfcjEXA2tkxa7a7eT2P/S1YXHYiNs17DQBWk55MfoGT9Na 57om5o2hOb3fw+YJWB1v6ArTwuT7NWd0u3a9hgl3uFlBTukSdd1r42F57GUTaV6e4tVL dFxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent :content-language:to:from:subject:content-transfer-encoding; bh=10NNCztDW0cuogrTUFj40OWovAam1xMvdcWhd7lsiNw=; b=WePAxJz3QE8fGHxfy+YCJuGnXyzr8MiudLjwvABdhjS/bO9Ar3CpyrwFlxF/hgCb/e 5RSZAIq2EGGKPRfMGx/hNhvIXsgt/3izheQIRIHu/J6Pl29YimutuVhkO5NfkBWQeTig 8Ua5tdYPZ1iF1mhNIlJDqyQuGbh/Ejbf/n6gJGBzBD3SKu3ENOlDq9SKUJteAnIB8+mv AX5bsLG414Fxl+WCUU3tic0c/IDzY4oTfxb8hNi6rzOjlpnm1nNCAfBkgsr+kXofs9M2 X2Wqq13yUj5ceKs2Gmnmwd/wtTBhaCk1VUIObqwp8GgidbjGqrVImBzMpj98QDS4P17B yKhQ== X-Gm-Message-State: AOAM5315X92Xxdw7zrk1bKPylFAIfaSmSGFe6zugFbZ+1rzie1GFW88m fKHgda/Uk4xdZKgMTJr29mqKbXn4oFOTp4l0 X-Google-Smtp-Source: ABdhPJy6p2L86WR1dxDUaG8oNqA66pyaagiwYsW5MBH7DXD39fBTwAKZ8SQ5YvdDd79Vi6TBtR+lwQ== X-Received: by 2002:a2e:9c2:0:b0:24a:c757:b9bb with SMTP id 185-20020a2e09c2000000b0024ac757b9bbmr589646ljj.360.1649097107670; Mon, 04 Apr 2022 11:31:47 -0700 (PDT) Received: from ?IPV6:2001:14ba:a302:984::1? (dzpbyxbyyyyyyyyyyyyyt-3.rev.dnainternet.fi. [2001:14ba:a302:984::1]) by smtp.gmail.com with ESMTPSA id l25-20020a2e9099000000b0024acbaba79asm1118792ljg.83.2022.04.04.11.31.47 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 04 Apr 2022 11:31:47 -0700 (PDT) Message-ID: <5cc55f35-7513-731d-6e6f-dd6cbf0d6765@gmail.com> Date: Mon, 4 Apr 2022 21:31:46 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Content-Language: en-US To: kernelnewbies@kernelnewbies.org From: Jasper Surmont Subject: Linux kernel environment setup in VSCode X-Mailman-Approved-At: Thu, 07 Apr 2022 21:46:43 -0400 X-BeenThere: kernelnewbies@kernelnewbies.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Learn about the Linux kernel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: kernelnewbies-bounces@kernelnewbies.org Hey, I'm new to the Linux kernel development, and I wanted to set up a VSCode environment for navigating the code (I know, even though people tell me Vim is better but currently I'm really not comfortable with it yet). My main goal is just navigating and understanding. I've been able to make a lot work, and using the C/C++ extension from Microsoft I have good IntelliSense. However, some things are getting flagged by the extension as errors (which of course shouldn't, since I've been able to compile the kernel). These are things like: identifiers being undefined (for example, in kernel/sched/cpudeadline.c u64 is undefined) and errors like: function returning array is not allowed (for example, in drivers/md/dm-zero.c on the bottom). I'm wondering if I'm forgetting things such that all these things get resolved. Any tips are appreciated. Thanks! _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies