<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/scripts/mod, branch v2.6.18</title>
<subtitle>Linux kernel source tree</subtitle>
<id>https://git.amat.us/linux/atom/scripts/mod?h=v2.6.18</id>
<link rel='self' href='https://git.amat.us/linux/atom/scripts/mod?h=v2.6.18'/>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/'/>
<updated>2006-08-15T19:53:09Z</updated>
<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: 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>kbuild: warn when a moduled uses a symbol marked UNUSED</title>
<updated>2006-07-01T09:44:23Z</updated>
<author>
<name>Sam Ravnborg</name>
<email>sam@mars.ravnborg.org</email>
</author>
<published>2006-07-01T09:44:23Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=c96fca213737a5b4bc569e1d9a0ef6adeff661e9'/>
<id>urn:sha1:c96fca213737a5b4bc569e1d9a0ef6adeff661e9</id>
<content type='text'>
We now have infrastructure in place to mark an EXPORTed symbol
as unused. So the natural next step is to warn during buildtime when
a module uses a symbol marked UNUSED.

Signed-off-by: Sam Ravnborg &lt;sam@ravnborg.org&gt;
</content>
</entry>
<entry>
<title>kbuild: fix segv in modpost</title>
<updated>2006-07-01T08:10:19Z</updated>
<author>
<name>Sam Ravnborg</name>
<email>sam@mars.ravnborg.org</email>
</author>
<published>2006-07-01T08:10:19Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=534b89a9f6a86a28300cd71619112c4bbca7c0ae'/>
<id>urn:sha1:534b89a9f6a86a28300cd71619112c4bbca7c0ae</id>
<content type='text'>
Parsing an old Modules.symvers file casued modpost to SEGV.

Signed-off-by: Sam Ravnborg &lt;sam@ravnborg.org&gt;
</content>
</entry>
<entry>
<title>kbuild: replace abort() with exit(1)</title>
<updated>2006-06-24T21:46:54Z</updated>
<author>
<name>Sam Ravnborg</name>
<email>sam@mars.ravnborg.org</email>
</author>
<published>2006-06-24T21:46:54Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=6803dc0ea85ad21b2cb3ec88decff5e27d7a390b'/>
<id>urn:sha1:6803dc0ea85ad21b2cb3ec88decff5e27d7a390b</id>
<content type='text'>
We have had no use of the coredump file for a long time.
So just exit(1) and avoid coredumping.

Signed-off-by: Sam Ravnborg &lt;sam@ravnborg.org&gt;
</content>
</entry>
<entry>
<title>kbuild: kill some false positives from modpost</title>
<updated>2006-06-24T21:14:05Z</updated>
<author>
<name>Al Viro</name>
<email>viro@zeniv.linux.org.uk</email>
</author>
<published>2006-06-23T22:22:43Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=468d949401d729b28eed6ea5be25695c5731d3f1'/>
<id>urn:sha1:468d949401d729b28eed6ea5be25695c5731d3f1</id>
<content type='text'>
Signed-off-by: Al Viro &lt;viro@zeniv.linux.org.uk&gt;
Signed-off-by: Sam Ravnborg &lt;sam@ravnborg.org&gt;
</content>
</entry>
<entry>
<title>kbuild: fix module.symvers parsing in modpost</title>
<updated>2006-06-16T21:45:45Z</updated>
<author>
<name>Laurent Riffard</name>
<email>laurent.riffard@free.fr</email>
</author>
<published>2006-06-11T06:02:06Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=9ac545b0f7161eaf2e180acc406c1dd6fdd77686'/>
<id>urn:sha1:9ac545b0f7161eaf2e180acc406c1dd6fdd77686</id>
<content type='text'>
read_dump didn't split lines between module name and export type.

Signed-off-by: Laurent Riffard &lt;laurent.riffard@free.fr&gt;
Signed-off-by: Sam Ravnborg &lt;sam@ravnborg.org&gt;
</content>
</entry>
<entry>
<title>kbuild: modpost build fix</title>
<updated>2006-06-10T05:58:14Z</updated>
<author>
<name>Andrew Morton</name>
<email>akpm@osdl.org</email>
</author>
<published>2006-06-10T03:45:06Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=6449bd621ba51ef652ac5bda632eeabbc18dd296'/>
<id>urn:sha1:6449bd621ba51ef652ac5bda632eeabbc18dd296</id>
<content type='text'>
scripts/mod/modpost.c: In function `check_license':
scripts/mod/modpost.c:1094: parse error before `const'
scripts/mod/modpost.c:1095: `basename' undeclared (first use in this function)
scripts/mod/modpost.c:1095: (Each undeclared identifier is reported only once
scripts/mod/modpost.c:1095: for each function it appears in.)

Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
Signed-off-by: Sam Ravnborg &lt;sam@ravnborg.org&gt;
</content>
</entry>
<entry>
<title>kbuild: check license compatibility when building modules</title>
<updated>2006-06-09T19:53:55Z</updated>
<author>
<name>Sam Ravnborg</name>
<email>sam@mars.ravnborg.org</email>
</author>
<published>2006-06-09T19:53:55Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=b817f6feff4a565b08f0e699a5790b4008b8f494'/>
<id>urn:sha1:b817f6feff4a565b08f0e699a5790b4008b8f494</id>
<content type='text'>
Modules that uses GPL symbols can no longer be build with kbuild,
the build will fail during the modpost step.
When a GPL-incompatible module uses a EXPORT_SYMBOL_GPL_FUTURE symbol
then warn during modpost so author are actually notified.

The actual license compatibility check is shared with the kernel
to make sure it is in sync.

Patch originally from: Andreas Gruenbacher &lt;agruen@suse.de&gt; and
Ram Pai &lt;linuxram@us.ibm.com&gt;

Signed-off-by: Sam Ravnborg &lt;sam@ravnborg.org&gt;
</content>
</entry>
<entry>
<title>kbuild: export-type enhancement to modpost.c</title>
<updated>2006-06-09T18:33:10Z</updated>
<author>
<name>Ram Pai</name>
<email>linuxram@us.ibm.com</email>
</author>
<published>2006-06-09T05:12:53Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=bd5cbcedf446e2f37cf2a37f533a7e1d7dff9312'/>
<id>urn:sha1:bd5cbcedf446e2f37cf2a37f533a7e1d7dff9312</id>
<content type='text'>
This patch provides the ability to identify the export-type of each
exported symbols in Module.symvers.

NOTE: It updates the Module.symvers file with the additional
information as shown below.

0x0f8b92af      platform_device_add_resources   vmlinux EXPORT_SYMBOL_GPL
0xcf7efb2a      ethtool_op_set_tx_csum          vmlinux EXPORT_SYMBOL

Signed-off-by: Andreas Gruenbacher &lt;agruen@suse.de&gt;
Signed-off-by: Ram Pai &lt;linuxram@us.ibm.com&gt;
Signed-off-by: Avantika Mathur &lt;mathur@us.ibm.com&gt;
Signed-off-by: Valdis Kletnieks &lt;valdis.kletnieks@vt.edu&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
Signed-off-by: Sam Ravnborg &lt;sam@ravnborg.org&gt;
</content>
</entry>
</feed>
