git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: bisect gives strange answer

From
SMSanjoy Mahajan <sanjoy@mrao.cam.ac.uk>
Date
Aug 4, 2005, 17:41 UTC
Message-ID
<E1E0jiv-0003c4-00@skye.ra.phy.cam.ac.uk>
In-Reply-To
<20050804172635.GA14144@kroah.com>
> By any chance, is this patch causing you problems?

No, sadly. But I had hopes! As I think about it more, there's no way it could, since I have CONFIG_HOTPLUG=y, so moving the CONFIG_HOTPLUG would not change anything (for those who don't know the patch, it is appended below).

My latest theory is that I fed bisect incorrect good/bad data. Perhaps If I had checked out and compiled those intermediate versions from scratch, each version in a separate directory, then I would have got different answers. Two possible reasons:

1. The kernel Makefiles ar do not understand every subtle dependency.
   So they might get confused by updating to different tree states (as
   the bisect progresses) because those updates change Makefiles and
   include files.  In other words, I should have done 'make clean' or
   'make mrproper' before each kernel compile.
2. git-bisect-script doesn't use -f when it does 'git checkout', so
   files that should be updated are not.  Right now I'm in the middle
   of recollecting the data with git-bisect-script using -f in all
   uses of git checkout (unless that is a really silly idea).
-Sanjoy
git diff a18bcb7450840f07a772..3d3c2ae1101c1f2dff7e2f9d514769779dbd2737
diff --git a/drivers/pci/pci-driver.c b/drivers/pci/pci-driver.c
--- a/drivers/pci/pci-driver.c
+++ b/drivers/pci/pci-driver.c
@@ -17,13 +17,13 @@
  * Dynamic device IDs are disabled for !CONFIG_HOTPLUG
  */
 
-#ifdef CONFIG_HOTPLUG
-
 struct pci_dynid {
	struct list_head node;
	struct pci_device_id id;
 };
 
+#ifdef CONFIG_HOTPLUG
+
 /**
  * store_new_id
  *
Previous: Greg KHNext: Dave Jones
Message 5 of 11 in “bisect gives strange answer”
  1. Sanjoy MahajanAug 4, 2005
  2. Junio C HamanoAug 4, 2005
  3. Sanjoy MahajanAug 4, 2005
  4. Greg KHAug 4, 2005
  5. Sanjoy MahajanAug 4, 2005
  6. Dave JonesAug 4, 2005
  7. Sanjoy MahajanAug 4, 2005
  8. Junio C HamanoAug 4, 2005
  9. Sam RavnborgAug 4, 2005
  10. Sanjoy MahajanAug 5, 2005
  11. Junio C HamanoAug 7, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.