<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel/linux.git/scripts/mod/file2alias.c, branch linux-2.6.18.y</title>
<subtitle>Linux kernel stable tree (mirror)</subtitle>
<id>https://git.radix-linux.su/kernel/linux.git/atom?h=linux-2.6.18.y</id>
<link rel='self' href='https://git.radix-linux.su/kernel/linux.git/atom?h=linux-2.6.18.y'/>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/'/>
<updated>2006-08-15T19:53:09+00:00</updated>
<entry>
<title>[PATCH] PATCH: 1 line 2.6.18 bugfix: modpost-64bit-fix.patch</title>
<updated>2006-08-15T19:53:09+00:00</updated>
<author>
<name>Hans de Goede</name>
<email>j.w.r.degoede@hhs.nl</email>
</author>
<published>2006-08-15T10:09:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/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:46+00:00</updated>
<author>
<name>Sam Ravnborg</name>
<email>sam@mars.ravnborg.org</email>
</author>
<published>2006-07-09T14:26:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/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>Input: move input_device_id to mod_devicetable.h</title>
<updated>2006-04-26T04:14:19+00:00</updated>
<author>
<name>Dmitry Torokhov</name>
<email>dtor_core@ameritech.net</email>
</author>
<published>2006-04-26T04:14:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=ddc5d3414593e4d7ad7fbd33e7f7517fcc234544'/>
<id>urn:sha1:ddc5d3414593e4d7ad7fbd33e7f7517fcc234544</id>
<content type='text'>
Signed-off-by: Dmitry Torokhov &lt;dtor@mail.ru&gt;
</content>
</entry>
<entry>
<title>Merge master.kernel.org:/pub/scm/linux/kernel/git/sam/kbuild</title>
<updated>2006-03-25T16:48:48+00:00</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@g5.osdl.org</email>
</author>
<published>2006-03-25T16:48:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=2e1ca21d46aaef95101723fa402f39d3a95aba59'/>
<id>urn:sha1:2e1ca21d46aaef95101723fa402f39d3a95aba59</id>
<content type='text'>
* master.kernel.org:/pub/scm/linux/kernel/git/sam/kbuild: (46 commits)
  kbuild: remove obsoleted scripts/reference_* files
  kbuild: fix make help &amp; make *pkg
  kconfig: fix time ordering of writes to .kconfig.d and include/linux/autoconf.h
  Kconfig: remove the CONFIG_CC_ALIGN_* options
  kbuild: add -fverbose-asm to i386 Makefile
  kbuild: clean-up genksyms
  kbuild: Lindent genksyms.c
  kbuild: fix genksyms build error
  kbuild: in makefile.txt note that Makefile is preferred name for kbuild files
  kbuild: replace PHONY with FORCE
  kbuild: Fix bug in crc symbol generating of kernel and modules
  kbuild: change kbuild to not rely on incorrect GNU make behavior
  kbuild: when warning symbols exported twice now tell user this is the problem
  kbuild: fix make dir/file.xx when asm symlink is missing
  kbuild: in the section mismatch check try harder to find symbols
  kbuild: fix section mismatch check for unwind on IA64
  kbuild: kill false positives from section mismatch warnings for powerpc
  kbuild: kill trailing whitespace in modpost &amp; friends
  kbuild: small update of allnoconfig description
  kbuild: make namespace.pl CROSS_COMPILE happy
  ...

Trivial conflict in arch/ppc/boot/Makefile manually fixed up
</content>
</entry>
<entry>
<title>[PATCH] s390: fix match in ccw modalias</title>
<updated>2006-03-07T02:40:45+00:00</updated>
<author>
<name>Bastian Blank</name>
<email>bastian@waldi.eu.org</email>
</author>
<published>2006-03-06T23:43:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=de1d9c033f32ce39bf60e25be3b8624225fa9181'/>
<id>urn:sha1:de1d9c033f32ce39bf60e25be3b8624225fa9181</id>
<content type='text'>
Fix matching of devmodel in modaliases.  It breaks automatic loading of any
dasd module.

Cc: Heiko Carstens &lt;heiko.carstens@de.ibm.com&gt;
Cc: Martin Schwidefsky &lt;schwidefsky@de.ibm.com&gt;
Acked-by: Cornelia Huck &lt;cornelia.huck@de.ibm.com&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>kbuild: kill trailing whitespace in modpost &amp; friends</title>
<updated>2006-03-03T15:46:04+00:00</updated>
<author>
<name>Sam Ravnborg</name>
<email>sam@mars.ravnborg.org</email>
</author>
<published>2006-03-03T15:46:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=62070fa42c4ac23d1d71146a4c14702302b80245'/>
<id>urn:sha1:62070fa42c4ac23d1d71146a4c14702302b80245</id>
<content type='text'>
Signed-off-by: Sam Ravnborg &lt;sam@ravnborg.org&gt;
</content>
</entry>
<entry>
<title>kbuild: use warn()/fatal() consistent in modpost</title>
<updated>2006-02-19T08:51:17+00:00</updated>
<author>
<name>Sam Ravnborg</name>
<email>sam@mars.ravnborg.org</email>
</author>
<published>2006-01-28T15:57:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=cb80514d9c517cc1d101ef304529a0e9b76b4468'/>
<id>urn:sha1:cb80514d9c517cc1d101ef304529a0e9b76b4468</id>
<content type='text'>
modpost.c provides warn() and fatal() - so use them all over the place.

Signed-off-by: Sam Ravnborg &lt;sam@ravnborg.org&gt;
</content>
</entry>
<entry>
<title>modpost/file2alias: Fix typo</title>
<updated>2006-01-08T17:44:01+00:00</updated>
<author>
<name>Brian Gerst</name>
<email>bgerst@didntduck.org</email>
</author>
<published>2006-01-08T15:53:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=cc6fa432f5eec26c43fd06c0314cb1c2cae6d9a1'/>
<id>urn:sha1:cc6fa432f5eec26c43fd06c0314cb1c2cae6d9a1</id>
<content type='text'>
SND_MAX should be FF_MAX

Signed-off-by: Brian Gerst &lt;bgerst@didntduck.org&gt;
Signed-off-by: Sam Ravnborg &lt;sam@ravnborg.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] Input: add modalias support</title>
<updated>2006-01-05T00:18:09+00:00</updated>
<author>
<name>Rusty Russell</name>
<email>rusty@rustcorp.com.au</email>
</author>
<published>2005-12-07T20:40:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=1d8f430c15b3a345db990e285742c67c2f52f9a6'/>
<id>urn:sha1:1d8f430c15b3a345db990e285742c67c2f52f9a6</id>
<content type='text'>
Here's the patch for modalias support for input classes.  It uses
comma-separated numbers, and doesn't describe all the potential keys (no
module currently cares, and that would make the strings huge).  The
changes to input.h are to move the definitions needed by file2alias
outside __KERNEL__.  I chose not to move those definitions to
mod_devicetable.h, because there are so many that it might break compile
of something else in the kernel.

The rest is fairly straightforward.

Signed-off-by: Rusty Russell &lt;rusty@rustcorp.com.au&gt;
CC: Kay Sievers &lt;kay.sievers@vrfy.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;
</content>
</entry>
<entry>
<title>[PATCH] I2C: add i2c module alias for i2c drivers to use</title>
<updated>2005-10-28T21:02:15+00:00</updated>
<author>
<name>Greg Kroah-Hartman</name>
<email>gregkh@suse.de</email>
</author>
<published>2005-10-21T22:23:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=a9d1b24d91f91b77db3da8aeacb414764f789b9c'/>
<id>urn:sha1:a9d1b24d91f91b77db3da8aeacb414764f789b9c</id>
<content type='text'>
This is the start of adding hotplug-like support for i2c devices.

Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;
</content>
</entry>
</feed>
