<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/scripts, branch v2.6.18</title>
<subtitle>Linux kernel source tree</subtitle>
<id>https://git.amat.us/linux/atom/scripts?h=v2.6.18</id>
<link rel='self' href='https://git.amat.us/linux/atom/scripts?h=v2.6.18'/>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/'/>
<updated>2006-09-16T19:54:31Z</updated>
<entry>
<title>[PATCH] Fix 'make headers_check' on biarch architectures</title>
<updated>2006-09-16T19:54:31Z</updated>
<author>
<name>David Woodhouse</name>
<email>dwmw2@infradead.org</email>
</author>
<published>2006-09-16T19:15:45Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=b512217736049cef3e681bbd3ff6696c1cca567d'/>
<id>urn:sha1:b512217736049cef3e681bbd3ff6696c1cca567d</id>
<content type='text'>
We generate an &lt;asm/foo.h&gt; which includes either &lt;asm-$ARCH/foo.h&gt; or
&lt;asm-$ALTARCH/foo.h&gt; as appropriate.  But we were doing this dependent on
whether the file in question existed in the _unexported_ tree, not the
exported tree.  So if a file was exported to userspace in one asm- directory
but not the other, the generated file in asm/ was incorrect.

This only changed the failure mode if it _was_ included from a nice #error to
a less explicable #include failure -- but it also gave false errors in 'make
headers_check' output.  Fix it by looking in the right place instead.

Signed-off-by: David Woodhouse &lt;dwmw2@infradead.org&gt;
Cc: Sam Ravnborg &lt;sam@ravnborg.org&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] Add a missing space that prevents building modules that require host programs</title>
<updated>2006-09-16T19:54:31Z</updated>
<author>
<name>Ross Biro</name>
<email>rossb@google.com</email>
</author>
<published>2006-09-16T19:15:39Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=8f5cbd7e4810df382029ecaaa98535452da5d15e'/>
<id>urn:sha1:8f5cbd7e4810df382029ecaaa98535452da5d15e</id>
<content type='text'>
Signed-off-by: Ross Biro &lt;rossb@google.com&gt;
Acked-by: Sam Ravnborg &lt;sam@ravnborg.org&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] headers_check: clarify error message</title>
<updated>2006-09-13T14:32:15Z</updated>
<author>
<name>Alexey Dobriyan</name>
<email>adobriyan@gmail.com</email>
</author>
<published>2006-09-13T03:36:01Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=d5e064a6c733d3902302dbaca33dd3c76af77f38'/>
<id>urn:sha1:d5e064a6c733d3902302dbaca33dd3c76af77f38</id>
<content type='text'>
Signed-off-by: Alexey Dobriyan &lt;adobriyan@gmail.com&gt;
Cc: David Woodhouse &lt;dwmw2@infradead.org&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] headers_check: improve #include regexp</title>
<updated>2006-09-13T14:32:15Z</updated>
<author>
<name>Alexey Dobriyan</name>
<email>adobriyan@gmail.com</email>
</author>
<published>2006-09-13T03:36:00Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=120e2a97268c312bf81ee3d8cacc75d1f75ef8b5'/>
<id>urn:sha1:120e2a97268c312bf81ee3d8cacc75d1f75ef8b5</id>
<content type='text'>
The following combinations of pp-tokens are used

	#include
	 #include
	# include

so, script'd better check for all of them.

Signed-off-by: Alexey Dobriyan &lt;adobriyan@gmail.com&gt;
Cc: David Woodhouse &lt;dwmw2@infradead.org&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] PATCH: 1 line 2.6.18 bugfix: modpost-64bit-fix.patch</title>
<updated>2006-08-15T19:53:09Z</updated>
<author>
<name>Hans de Goede</name>
<email>j.w.r.degoede@hhs.nl</email>
</author>
<published>2006-08-15T10:09:27Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=e0e92632715f08dddeddb72b76e04c20126e1f67'/>
<id>urn:sha1:e0e92632715f08dddeddb72b76e04c20126e1f67</id>
<content type='text'>
There is a small but annoying bug in scripts/mod/file2alias.c which causes
it to generate invalid aliases for input devices on 64 bit archs. This causes
joydev.ko to not be automaticly loaded when inserting a joystick, resulting in
a non working joystick (for the average user).

In scripts/mod/file2alias.c is the following code for generating the input
aliases:
static void do_input(char *alias,
                     kernel_ulong_t *arr, unsigned int min, unsigned int max)
{
        unsigned int i;

        for (i = min; i &lt; max; i++)
                if (arr[i / BITS_PER_LONG] &amp; (1 &lt;&lt; (i%BITS_PER_LONG)))
                        sprintf(alias + strlen(alias), "%X,*", i);
}

On 32 bits systems, this correctly generates "0,*" for the first alias, "8,*"
for the second etc.

However on 64 bits it generates: "0,*20,*" resp "8,*28,*" Notice how it adds 20
+ first entry (hex) ! to the list of hex codes, which is 32 more then the first
entry, thus is because the bit test above wraps at 32 bits instead of 64.

scripts/mod/file2alias.c, line 379 reads:
                if (arr[i / BITS_PER_LONG] &amp; (1 &lt;&lt; (i%BITS_PER_LONG)))
That should be:
                if (arr[i / BITS_PER_LONG] &amp; (1L &lt;&lt; (i%BITS_PER_LONG)))

Notice the added 'L' after the 1, otherwise that is an 32 bit int instead of a
64 bit long, and when that int gets shifted &gt;= 32 times, appearantly the number
by which to shift is wrapped at 5 bits ( % 32) causing it to test a bit 32 bits
too low.

The patch below makes the nescesarry 1 char change :)

Signed-off-by: Hans de Goede &lt;j.w.r.degoede@hhs.nl&gt;
Acked-by: Rusty Russell &lt;rusty@rustcorp.com.au&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;
</content>
</entry>
<entry>
<title>kbuild: always use $(CC) for $(call cc-version)</title>
<updated>2006-08-01T09:32:47Z</updated>
<author>
<name>Sam Ravnborg</name>
<email>sam@mars.ravnborg.org</email>
</author>
<published>2006-07-23T17:49:45Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=8eb3afe0e95e5d45efbe58996fe90982c740565d'/>
<id>urn:sha1:8eb3afe0e95e5d45efbe58996fe90982c740565d</id>
<content type='text'>
The possibility to specify an optional parameter did not work out as
expected and it was not used - so remove the possibility.

Signed-off-by: Sam Ravnborg &lt;sam@ravnborg.org&gt;
</content>
</entry>
<entry>
<title>kconfig: correct oldconfig for unset choice options</title>
<updated>2006-08-01T09:32:47Z</updated>
<author>
<name>Roman Zippel</name>
<email>zippel@linux-m68k.org</email>
</author>
<published>2006-07-13T11:22:38Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=002d27b1b70f6d574c816ef265147704c4e951f1'/>
<id>urn:sha1:002d27b1b70f6d574c816ef265147704c4e951f1</id>
<content type='text'>
oldconfig currently ignores unset choice options and doesn't ask for them.
Correct the SYMBOL_DEF_USER flag of the choice symbol to be only set if
it's set for all values.

Signed-off-by: Roman Zippel &lt;zippel@linux-m68k.org&gt;
Signed-off-by: Sam Ravnborg &lt;sam@ravnborg.org&gt;
</content>
</entry>
<entry>
<title>kbuild: fix typo in modpost</title>
<updated>2006-08-01T09:32:46Z</updated>
<author>
<name>Dave Jones</name>
<email>davej@redhat.com</email>
</author>
<published>2006-07-13T04:44:15Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=0463f3c7a353e4d082e825f01e2862ca0f7b34ce'/>
<id>urn:sha1:0463f3c7a353e4d082e825f01e2862ca0f7b34ce</id>
<content type='text'>
Reported by a Fedora user when they tried to build some out of tree module..

Signed-off-by: Dave Jones &lt;davej@redhat.com&gt;
Signed-off-by: Sam Ravnborg &lt;sam@ravnborg.org&gt;
</content>
</entry>
<entry>
<title>kbuild: improve error from file2alias</title>
<updated>2006-08-01T09:32:46Z</updated>
<author>
<name>Sam Ravnborg</name>
<email>sam@mars.ravnborg.org</email>
</author>
<published>2006-07-09T14:26:07Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=fb33d81613a4e3e27972a65b6e566de50a447d33'/>
<id>urn:sha1:fb33d81613a4e3e27972a65b6e566de50a447d33</id>
<content type='text'>
The original errormessage was just plain unreadable.

Sample error message after this update (not for real - I provoked it):

FATAL: drivers/net/s2io: sizeof(struct pci_device_id)=33 is not a modulo of the
size of section __mod_pci_device_table=160.
Fix definition of struct pci_device_id in mod_devicetable.h

Before a warning was generated - this is now a fatal error.

Signed-off-by: Sam Ravnborg &lt;sam@ravnborg.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] vDSO hash-style fix</title>
<updated>2006-07-31T20:28:43Z</updated>
<author>
<name>Roland McGrath</name>
<email>roland@redhat.com</email>
</author>
<published>2006-07-30T10:04:06Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=0b0bf7a3ccb6f0b38ead71980e79f875046047b7'/>
<id>urn:sha1:0b0bf7a3ccb6f0b38ead71980e79f875046047b7</id>
<content type='text'>
The latest toolchains can produce a new ELF section in DSOs and
dynamically-linked executables.  The new section ".gnu.hash" replaces
".hash", and allows for more efficient runtime symbol lookups by the
dynamic linker.  The new ld option --hash-style={sysv|gnu|both} controls
whether to produce the old ".hash", the new ".gnu.hash", or both.  In some
new systems such as Fedora Core 6, gcc by default passes --hash-style=gnu
to the linker, so that a standard invocation of "gcc -shared" results in
producing a DSO with only ".gnu.hash".  The new ".gnu.hash" sections need
to be dealt with the same way as ".hash" sections in all respects; only the
dynamic linker cares about their contents.  To work with older dynamic
linkers (i.e.  preexisting releases of glibc), a binary must have the old
".hash" section.  The --hash-style=both option produces binaries that a new
dynamic linker can use more efficiently, but an old dynamic linker can
still handle.

The new section runs afoul of the custom linker scripts used to build vDSO
images for the kernel.  On ia64, the failure mode for this is a boot-time
panic because the vDSO's PT_IA_64_UNWIND segment winds up ill-formed.

This patch addresses the problem in two ways.

First, it mentions ".gnu.hash" in all the linker scripts alongside ".hash".
 This produces correct vDSO images with --hash-style=sysv (or old tools),
with --hash-style=gnu, or with --hash-style=both.

Second, it passes the --hash-style=sysv option when building the vDSO
images, so that ".gnu.hash" is not actually produced.  This is the most
conservative choice for compatibility with any old userland.  There is some
concern that some ancient glibc builds (though not any known old production
system) might choke on --hash-style=both binaries.  The optimizations
provided by the new style of hash section do not really matter for a DSO
with a tiny number of symbols, as the vDSO has.  If someone wants to use
=gnu or =both for their vDSO builds and worry less about that
compatibility, just change the option and the linker script changes will
make any choice work fine.

Signed-off-by: Roland McGrath &lt;roland@redhat.com&gt;
Cc: "Luck, Tony" &lt;tony.luck@intel.com&gt;
Cc: Kyle McMartin &lt;kyle@mcmartin.ca&gt;
Cc: Paul Mackerras &lt;paulus@samba.org&gt;
Cc: Benjamin Herrenschmidt &lt;benh@kernel.crashing.org&gt;
Cc: Jeff Dike &lt;jdike@addtoit.com&gt;
Cc: Andi Kleen &lt;ak@muc.de&gt;
Cc: Sam Ravnborg &lt;sam@ravnborg.org&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
</feed>
