Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp1793641pxb; Fri, 1 Oct 2021 20:37:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzn1Bx9d8gXM4IXRUhye4GzC9JgOqHJcWajh9bVgW5uMBexqWPvCKOsnMnl501NBILFzo+/ X-Received: by 2002:a17:906:f259:: with SMTP id gy25mr1994189ejb.210.1633145836732; Fri, 01 Oct 2021 20:37:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633145836; cv=none; d=google.com; s=arc-20160816; b=CbpEQMtazpD5iyIdBGofgg4c5V3XW+QgMN0Y//o7qNfKxQhmhZ3hbDfP9H8e35KgQ4 NniNTE1DxEXGtrU2qYPNaESnQyJlhJR+71SHwMu/1JIsus9T1TLjPLcjY8RI/RaM1EOd ouQWL/SkU+vPi0ASKyViT3OwbE0I5q6gGBHzUJw9X4Q+/wdGeO6MIrTdBhKwdR0mDM5x leRQRnnuGG7iNqGSmC9HV73pxoRp2LpGKZs/zdjUsLjDwAGgxUD2fSOJEamo0tegiB5y 1KiAJXg/iKpL6QPyDsXW4Dt8g2JjiAJ7O/UGZbqhFPaRqiLtTWIrMWmZLam5/j2+DZyV hIVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:subject:message-id:date:from:mime-version :dkim-signature; bh=VTgxhaMyHeOM/YH1orVTHGNy9BvH6IGGo8MbL/iSmeg=; b=EytdFl0HiB2cvPo0U/9SRMPMh3HF2a1K+dsjWGotm7j8sWRgU++e5TNUdppVjL09rR WiVABP+vJ/ClNAEo2hqwJl4iI79Vc61im1oQ9U0cDTHk0beqq+rGsAHPwXi9YEUAvl/8 GW2B7vLAmgsfQ8mmkCx5l+sOfcWHSyxo+/0bfJqUsnNI+y7R1wP8UePmK+2y8FmhM9wF NEwjia2jNhbZYnjgvDgRP64xdjdlScF5n6JxCvIO53MEkF4ZNGZWUM680m80tlkrtvnU IgdGGDl2kCeAL8C7+/vpCl3qLTntzRyqhqUmf3MLprw7ilGk+KZktYkSxYSd5sq5108G tsUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=k7BmG0cP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i10si10575116ejd.99.2021.10.01.20.36.24; Fri, 01 Oct 2021 20:37:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=k7BmG0cP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232416AbhJBDdh (ORCPT + 99 others); Fri, 1 Oct 2021 23:33:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34690 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229649AbhJBDdg (ORCPT ); Fri, 1 Oct 2021 23:33:36 -0400 Received: from mail-oi1-x232.google.com (mail-oi1-x232.google.com [IPv6:2607:f8b0:4864:20::232]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 15F20C061775; Fri, 1 Oct 2021 20:31:51 -0700 (PDT) Received: by mail-oi1-x232.google.com with SMTP id z11so13931481oih.1; Fri, 01 Oct 2021 20:31:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=VTgxhaMyHeOM/YH1orVTHGNy9BvH6IGGo8MbL/iSmeg=; b=k7BmG0cPdMxY59NPZggZ2R5Btk7R5a7KGMOFkiVLk35lpf4BjkMxNGlwiaR0n9p01p NScfuOmOoNjcNxfd885R9oTjTAhoWwPDbQ4Vh3tXQAqibLNTuD/aEMYCJcqe0HGGwn5Y gsamLSXdlzL8t9fwS6gAmLImR/DQMpJBu6YiSg+fIWVzEMZTwCiHRGTwQXz/PnGw0K4/ Y/3yzwF/GA+eChK6r+Z4I4NOsWj+aSQRsbVvKv7Ymvy4yw2Z9rpUPyx68VDsWcCbiXd1 T3npra1cXpjKSFN9BwMZTzS/VOwKxZhaxOQdX+3+xWVRVXtLWW/RfVHRCP4DebcJyLZp FRQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=VTgxhaMyHeOM/YH1orVTHGNy9BvH6IGGo8MbL/iSmeg=; b=QOffvkPSYXP0eA6aBqRlDqCOnrROz5h4VngewtTvgNd/c3+Jy/7GerGabyF4vUb/bz 4ql17izsiFpmdbpT7E7IchfDguMMIM+/ndEenP/odITTzKM7mQPpUZhuorecac6FEwwo HCdVKJ1+AM6jN3MVftGzptzsJ2JNw3ih8Q3/ptzsytoKfiAOyZB9/CILrhxm9O8IpWjr hCuHAovtafRbcxmE3Uc1rYXdcKMRM8ylHx2QB4XMH+sJGR2qDBGA5h4baMIBEItKEGKy H31hrw+6pfrhQv3zM5qqzy/YzjPnA09jpCha23PaAIOGbhGMnvwamWnBUPX6llWXIJ8Y s6Zg== X-Gm-Message-State: AOAM530SstKJK2lIf1JiUkxzmb+d0RItSFYT3puObS46EtMGz0EZMmhr hmqcpAFFR4fXIV3KF2eFSxfS3afmkE5QdtISO5LJ4bPY X-Received: by 2002:a05:6808:1912:: with SMTP id bf18mr6727020oib.118.1633145509797; Fri, 01 Oct 2021 20:31:49 -0700 (PDT) MIME-Version: 1.0 From: Ajay Garg Date: Sat, 2 Oct 2021 09:01:38 +0530 Message-ID: Subject: Recommended way to do kernel-development for static modules To: linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello All, Let's say, I want to make a simple printk change to drivers/pci/bus.c, compile it, load it, test it. Now, since bus.o is built as a result of CONFIG_PCI=y in drivers/pci/Makefile, so this module is statically built, and as a result doing a "make M=drivers/pci" does-not-pick-up-the-change / have-any-effect. Doing a simple "make" takes too long, everytime for even a trivial change. So, what is the recommended way to do kernel-development for static modules? Will be grateful for pointers. Thanks and Regards, Ajay