public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: linux 2.5.25
@ 2002-07-05  4:47 Ivan Gyurdiev
  2002-07-06  5:45 ` linux 2.5.25 (different compilation errors) Fabio Massimo Di Nitto
  2002-07-06 17:38 ` linux 2.5.25 James Simmons
  0 siblings, 2 replies; 4+ messages in thread
From: Ivan Gyurdiev @ 2002-07-05  4:47 UTC (permalink / raw)
  To: LKML

2.5.25: 2 problems found

1) Options under Input Device Support and under Character Devices: Mice
are duplicates from a user's point of view. Fortunately they have different 
names (CONFIG_PSMOUSE vs CONFIG_MOUSE_PS2).
Unfortunately they both seem to be used...did a recursive grep.


2)  This is a compilation error, which has been in 2.5 since 3 kernels ago or 
so. Reported twice on LKML by me, as well as another person. No reply. 

mpparse.c: In function `mp_parse_prt':
mpparse.c:1080: warning: implicit declaration of function `mp_find_ioapic'
mpparse.c:1083: `mp_ioapic_routing' undeclared (first use in this function)
mpparse.c:1083: (Each undeclared identifier is reported only once
mpparse.c:1083: for each function it appears in.)
mpparse.c:1107: warning: implicit declaration of function 
`io_apic_set_pci_routing'
make[1]: *** [mpparse.o] Error 1
make[1]: Leaving directory `/usr/src/linux-2.5.24/arch/i386/kernel'
make: *** [arch/i386/kernel] Error 2

occurs with: 
LOCAL_APIC on, IOAPIC off, ACPI on, uniprocessor machine.



^ permalink raw reply	[flat|nested] 4+ messages in thread
* Re: linux 2.5.25 (different compilation errors)
@ 2002-07-05  8:38 Ivan Gyurdiev
  0 siblings, 0 replies; 4+ messages in thread
From: Ivan Gyurdiev @ 2002-07-05  8:38 UTC (permalink / raw)
  To: LKML, fabbione

Hmm. Haven't received this message. Reading it on LKML.
Please cc, I'm not subscribed.


> iforce-packets.c:252: `IFORCE_USB' undeclared (first use in this function)
> iforce-packets.c:252: (Each undeclared identifier is reported only once
> iforce-packets.c:252: for each function it appears in.)
> iforce-packets.c:282: `IFORCE_232' undeclared (first use in this function)
> iforce-packets.c:278: warning: unreachable code at beginning of switch
> statement

Well, obviously the construct


switch (iforce->bus)

case CONSTANT:

#ifdef CONSTANT
do stuff
#endif

will not work.

Why is all this #ifdef mess necessary.
Those are recognition constants.
How can you compare iforce->bus to IFORCE_USB or IFORCE_232
if those are only defined sometimes, based on config options...

Why not just...
#if defined(CONFIG_JOYSTICK_IFORCE_232)
#define IFORCE_232      1
#endif
#if defined(CONFIG_JOYSTICK_IFORCE_USB)
#define IFORCE_USB      2
#endif

drop the if statements and always define the constants.
The code will get much simpler IMHO.

===========================================

> zr36120.c:1497: unknown field `open' specified in initializer 
zr36120.c:1497: warning: initialization makes integer from pointer without a 
cast zr36120.c:1498: unknown field `close' specified in initializer 
zr36120.c:1498: warning: initialization from incompatible pointer type
>
> [SNIP]
>
> zr36120.c:1839: unknown field `minor' specified in initializer make[3]: *** 
[zr36120.o] Error 1

Here's what I found in the 2.4 videodev.h:
   /* old, obsolete interface -- dropped in 2.5.x, don't use it */
        int (*open)(struct video_device *, int mode);
        void (*close)(struct video_device *);
...
 /* new interface -- we will use file_operations directly
         * like soundcore does.
         * kernel_ioctl() will be called by video_generic_ioctl.
         * video_generic_ioctl() does the userspace copying of the
         * ioctl arguments */

============================================


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-07-06 17:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-07-05  4:47 linux 2.5.25 Ivan Gyurdiev
2002-07-06  5:45 ` linux 2.5.25 (different compilation errors) Fabio Massimo Di Nitto
2002-07-06 17:38 ` linux 2.5.25 James Simmons
  -- strict thread matches above, loose matches on Subject: below --
2002-07-05  8:38 linux 2.5.25 (different compilation errors) Ivan Gyurdiev

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox