2.5.18 -- build failure -- suspend.c:1052: dereferencing pointer to incomplete type

2.5.18 -- build failure -- suspend.c:1052: dereferencing pointer to incomplete type

Post by Miles Lan » Sun, 26 May 2002 15:30:07



I have included the error, the output of ver_linux and
snippets of .config.

gcc -D__KERNEL__ -I/usr/src/linux-2.5.18/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer
-fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2
-march=athlon
  -DKBUILD_BASENAME=suspend -DEXPORT_SYMTAB -c -o suspend.o suspend.c
suspend.c: In function `freeze_processes':
suspend.c:240: warning: implicit declaration of function `signal_wake_up'
suspend.c: In function `fill_suspend_header':
suspend.c:292: warning: comparison between pointer and integer
suspend.c: In function `write_suspend_image':
suspend.c:436: warning: passing arg 3 of `get_swaphandle_info' from
incompatible pointer type
suspend.c:435: warning: unused variable `dummy2'
suspend.c: In function `count_and_copy_data_pages':
suspend.c:541: warning: passing arg 1 of `mmx_copy_page' makes pointer
from integer without a cast
suspend.c:541: warning: passing arg 2 of `mmx_copy_page' makes pointer
from integer without a cast
suspend.c: In function `suspend_save_image':
suspend.c:729: warning: assignment makes integer from pointer without a cast
suspend.c: In function `bdev_read_page':
suspend.c:1051: warning: implicit declaration of function `__bread'
suspend.c:1051: warning: assignment makes pointer from integer without a
cast
suspend.c:1052: dereferencing pointer to incomplete type
suspend.c:1055: dereferencing pointer to incomplete type
suspend.c:1055: dereferencing pointer to incomplete type
suspend.c:1056: warning: implicit declaration of function `buffer_uptodate'
suspend.c:1057: warning: implicit declaration of function `brelse'
suspend.c: In function `resume_try_to_read':
suspend.c:1071: warning: passing arg 1 of `name_to_kdev_t' discards
qualifiers from pointer target type
suspend.c:1079: warning: unsigned int format, kdev_t arg (arg 2)
suspend.c:1069: warning: unused variable `blksize'
suspend.c: At top level:
suspend.c:1232: warning: static declaration for `resume_setup' follows
non-static
make[1]: *** [suspend.o] Error 1
make[1]: Leaving directory `/usr/src/linux-2.5.18/kernel'

I don't know what options might be involved in causing this build
failure, so I will only include some of the higher level ones:

Linux turbulence.megapathdsl.net 2.5.17 #2 Tue May 21 16:06:13 PDT 2002
i686 unknown

Gnu C                  3.0.4
Gnu make               3.79.1
binutils               2.11.90.0.8
util-linux             2.11f
mount                  2.11g
modutils               2.4.14
e2fsprogs              1.26
reiserfsprogs          3.x.0j
pcmcia-cs              3.1.22
PPP                    2.4.1
isdn4k-utils           3.1pre1
Linux C Library        2.2.4
Dynamic linker (ldd)   2.2.4
Procps                 2.0.7
Net-tools              1.60
Console-tools          0.3.3
Sh-utils               2.0.11
Modules Loaded         snd-pcm-oss snd-mixer-oss snd-emu10k1 snd-pcm
snd-timer snd-hwdep snd-util-mem snd-rawmidi snd-seq-device
snd-ac97-codec floppy mousedev hid input ohci-hcd ehci-hcd ide-scsi
ide-cd vfat fat usbcore rtc

CONFIG_X86=y
CONFIG_ISA=y
CONFIG_UID16=y
CONFIG_EXPERIMENTAL=y
CONFIG_NET=y
CONFIG_SYSVIPC=y
CONFIG_BSD_PROCESS_ACCT=y
CONFIG_SYSCTL=y
CONFIG_MODULES=y
CONFIG_KMOD=y
CONFIG_MK7=y
CONFIG_NOHIGHMEM=y
CONFIG_MTRR=y
CONFIG_PREEMPT=y
CONFIG_X86_UP_APIC=y
CONFIG_X86_LOCAL_APIC=y
CONFIG_HAVE_DEC_LOCK=y
CONFIG_ACPI=y
CONFIG_ACPI_BOOT=y
CONFIG_ACPI_BUS=y
CONFIG_ACPI_EC=y
CONFIG_ACPI_INTERPRETER=y
CONFIG_ACPI_PCI=y
CONFIG_ACPI_POWER=y
CONFIG_ACPI_SLEEP=y
CONFIG_ACPI_SYSTEM=y
CONFIG_ACPI_AC=y
CONFIG_ACPI_BATTERY=y
CONFIG_ACPI_BUTTON=y
CONFIG_ACPI_FAN=y
CONFIG_ACPI_PROCESSOR=y
CONFIG_ACPI_THERMAL=y
CONFIG_ACPI_DEBUG=y
CONFIG_PCI=y
CONFIG_PCI_GOANY=y
CONFIG_PCI_BIOS=y
CONFIG_PCI_DIRECT=y
CONFIG_PCI_NAMES=y
CONFIG_HOTPLUG=y
CONFIG_SOFTWARE_SUSPEND=y
CONFIG_DEBUG_KERNEL=y
CONFIG_MAGIC_SYSRQ=y

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

2.5.18 -- build failure -- suspend.c:1052: dereferencing pointer to incomplete type

Post by Tim Schmiela » Sun, 26 May 2002 16:40:04



> I have included the error, the output of ver_linux and
> snippets of .config.

I have not yet analyzed why I don't get this failunre, but does the
following patch fix it for you?

Tim

--- linux-2.5.18/kernel/suspend.c       Sat May 25 09:25:30 2002

 #include <linux/swap.h>
 #include <linux/pm.h>
 #include <linux/device.h>
+#include <linux/sched.h>

 #include <asm/uaccess.h>
 #include <asm/mmu_context.h>

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

2.5.18 -- build failure -- suspend.c:1052: dereferencing pointer to incomplete type

Post by Miles Lan » Sun, 26 May 2002 17:00:08



 >
 > > I have included the error, the output of ver_linux and
 > > snippets of .config.
 >
 > I have not yet analyzed why I don't get this failunre, but does the
 > following patch fix it for you?

Nope.  The builds still fails with the same errors.
I will send you my entire .config file in private mail,
since the list likely doesn't want to see the whole thing.

Thanks,
        Miles

 > Tim
 >
 > --- linux-2.5.18/kernel/suspend.c       Sat May 25 09:25:30 2002
 > +++ linux-2.5.18/kernel/suspend.c       Sat May 25 09:25:44 2002

 >  #include <linux/swap.h>
 >  #include <linux/pm.h>
 >  #include <linux/device.h>
 > +#include <linux/sched.h>
 >  
 >  #include <asm/uaccess.h>
 >  #include <asm/mmu_context.h>

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

2.5.18 -- build failure -- suspend.c:1052: dereferencing pointer to incomplete type

Post by Tim Schmiela » Sun, 26 May 2002 17:10:06




>  > I have not yet analyzed why I don't get this failunre, but does the
>  > following patch fix it for you?

> Nope.  The builds still fails with the same errors.
> I will send you my entire .config file in private mail,
> since the list likely doesn't want to see the whole thing.

After looking into this a little bit deeper, I indeed see it has nothing
to do with mit sched.h cleanups which I suspected first.

So I'm sorry I can't help you.

Tim

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

2.5.18 -- build failure -- suspend.c:1052: dereferencing pointer to incomplete type

Post by Skip For » Sun, 26 May 2002 17:10:07



> I have included the error, the output of ver_linux and
> snippets of .config.

[snip]

The buffer_head declaration was just moved into its own header.

--- linux/kernel/suspend.c.orig Sat May 25 03:02:48 2002

 #include <linux/swap.h>
 #include <linux/pm.h>
 #include <linux/device.h>
+#include <linux/buffer_head.h>

 #include <asm/uaccess.h>
 #include <asm/mmu_context.h>

--
Skip
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

2.5.18 -- build failure -- suspend.c:1052: dereferencing pointer to incomplete type

Post by A Guy Called Tykett » Sun, 26 May 2002 17:20:08



> I have included the error, the output of ver_linux and
> snippets of .config.

> gcc -D__KERNEL__ -I/usr/src/linux-2.5.18/include -Wall
> -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer
> -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2
> -march=athlon
>  -DKBUILD_BASENAME=suspend -DEXPORT_SYMTAB -c -o suspend.o suspend.c
> suspend.c: In function `freeze_processes':
> suspend.c:240: warning: implicit declaration of function `signal_wake_up'
> suspend.c: In function `fill_suspend_header':
> suspend.c:292: warning: comparison between pointer and integer

 [ snip ]

Quote:> I don't know what options might be involved in causing this build
> failure, so I will only include some of the higher level ones:
> CONFIG_SOFTWARE_SUSPEND=y

  ^^^^^^^^^^^^^^^^^^^^^^^^^

        This, I believe is what is causing it. in looking through the 2.5.18
patch, this is new to the kernel, and is a newly configurable option to the
kernel. For testing, I could see you adding it in, but you need this?
especially if you have APM or ACPI? This doesn't rely on those, but if you're
using APM or ACPI for suspend, this really wouldn't be needed.

                                                        BL.
--


Web + NewsMaster, BOFH.. Smeghead! :)   |   http://www.wizard.com/~tyketto
  PGP: 1024D/E319F0BF 6980 AAD6 7329 E9E6 D569  F620 C819 199A E319 F0BF

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

1. 2.5.18 suspend.c don't compil with gcc 3.1

Hello,

I just wanted to try this new feature, but :

gcc -D__KERNEL__ -I/usr/src/linux-2.5/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i686    -DKBUILD_BASENAME=suspend -DEXPORT_SYMTAB -c -o suspend.o suspend.c
suspend.c: In function `freeze_processes':
suspend.c:240: warning: implicit declaration of function `signal_wake_up'
suspend.c: In function `fill_suspend_header':
suspend.c:292: warning: comparison between pointer and integer
suspend.c: In function `write_suspend_image':
suspend.c:436: warning: passing arg 3 of `get_swaphandle_info' from incompatible pointer type
suspend.c:435: warning: unused variable `dummy2'
suspend.c: In function `suspend_save_image':
suspend.c:729: warning: assignment makes integer from pointer without a cast
suspend.c: In function `bdev_read_page':
suspend.c:1051: warning: implicit declaration of function `__bread'
suspend.c:1051: warning: assignment makes pointer from integer without a cast
suspend.c:1052: dereferencing pointer to incomplete type
suspend.c:1055: dereferencing pointer to incomplete type
suspend.c:1055: dereferencing pointer to incomplete type
suspend.c:1056: warning: implicit declaration of function `buffer_uptodate'
suspend.c:1057: warning: implicit declaration of function `brelse'
suspend.c: In function `resume_try_to_read':
suspend.c:1071: warning: passing arg 1 of `name_to_kdev_t' discards qualifiers from pointer target type
suspend.c:1079: warning: unsigned int format, kdev_t arg (arg 2)
suspend.c:1069: warning: unused variable `blksize'
suspend.c: At top level:
suspend.c:1232: warning: static declaration for `resume_setup' follows non-static
make[1]: *** [suspend.o] Error 1
make[1]: Leaving directory `/usr/src/linux-2.5/kernel'
make: *** [_dir_kernel] Error 2

Thanks you very much,

        Grgoire
________________________________________________________________

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

2. aRts sound server/alsa drivers configuration

3. ov511 compilation failure 2.5.18 - struct urb has no next

4. help with star office and suse5.3

5. i386 arch subdivision into machine types for 2.5.18

6. Difference between Motif 1.2 and 2.0

7. 2.5.18 compilation failure ide_scsi

8. talk^Mdisplays^M^M's^Mon^Mremote^Msystem^M

9. : dereferencing pointer to incomplete type

10. 2.5.5 -- filesystems.c:30: In function `sys_nfsservctl': dereferencing pointer to incomplete type

11. Dereferencing pointer to incomplete type

12. dereferencing pointer to incomplete type?