Messages in this thread Patch in this message | | | Date | Thu, 07 Jul 2005 12:06:48 -0500 | From | "Larry W. Finger" <> | Subject | Compiler warning when building 2.6.13-rc2 |
| |
This report describes a trivial warning that arises when compiling kernel 2.6.13-rc2. In routine yenta_allocate_res of yenta_socket.c, the void function tries to return a 0. The following patch removes the problem:
--- linux-2.6.13-rc2/drivers/pcmcia/yenta_socket.c_old 2005-07-06 15:41:41.000000000 -0500 +++ linux-2.6.13-rc2/drivers/pcmcia/yenta_socket.c 2005-07-06 15:42:04.000000000 -0500 @@ -552,7 +552,7 @@ res = socket->dev->resource + PCI_BRIDGE_RESOURCES + nr; /* Already allocated? */ if (res->parent) - return 0; + return;
/* The granularity of the memory limit is 4kB, on IO it's 4 bytes */ mask = ~0xfff; Thanks, Larry
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |