[OpenAFS] Compatibility of openafs with suspend2 ?
Madhusudan Singh
singh.madhusudan@gmail.com
Sun, 2 Oct 2005 00:04:32 -0400
On Tuesday 27 September 2005 6:33 pm, Jeffrey Hutzelman wrote:
> On Tuesday, September 27, 2005 05:53:44 PM -0400 Madhusudan Singh
>
> <singh.madhusudan@gmail.com> wrote:
> > Hi
> >
> > Over the past 2-3 days, I have tried to add software suspend (using patch
> > from www.suspend2.net) functionality into the kernel (tried 2.6.12 and
> > 2.6.13 - openafs modules compile and install correctly with 2.6.12.5
> > without this patch) and each time, the compilation of openafs has
> > failed.
> >
> > I am wondering if this is at all possible. If anyone has a working
> > configuration, please post.
>
> Well, since you just said "it failed" without posting any details, I can
> only guess what problems you might be encountering.
>
> In order to get OpenAFS to work with a 2.6.12 kernel with swsusp2, you will
> need to undo a change made by the swsusp2 patches to the last line of
> kernel/power/process.c. Change
>
> EXPORT_SYMBOL_GPL(refrigerator);
>
> back to
>
> EXPORT_SYMBOL(refrigerator);
>
> Without this change, the OpenAFS module will fail to load. I reported this
> problem to the suspend2 maintainer a while ago, and while he says he made
> the change, it hadn't been integrated as of 2.1.9.5 (I haven't looked yet
> at 2.1.9.9, which is the latest version available for Linux 2.6.12).
>
>
> To build against Linux 2.6.13, you will likely need the latest OpenAFS
> release candidate, released today. Unfortunately, we've just gotten word
> that the source tarball on the web site is broken, so you might want to
> wait a few hours until it's been replaced with a corrected one.
>
> -- Jeffrey T. Hutzelman (N3NHS) <jhutz+@cmu.edu>
> Sr. Research Systems Programmer
> School of Computer Science - Research Computing Facility
> Carnegie Mellon University - Pittsburgh, PA
Here is the error o/p from the module compilation :
CC
[M] /usr/src/modules/openafs/src/libafs/MODLOAD-2.6.13.1-rj-SP/osi_misc.o
/usr/src/modules/openafs/src/libafs/MODLOAD-2.6.13.1-rj-SP/osi_misc.c: In
function 'osi_rdwr':
/usr/src/modules/openafs/src/libafs/MODLOAD-2.6.13.1-rj-SP/osi_misc.c:149:
warning: '_fs_space_decl.seg' may be used uninitialized in this function
CC
[M] /usr/src/modules/openafs/src/libafs/MODLOAD-2.6.13.1-rj-SP/osi_module.o
In file included
from /usr/src/modules/openafs/src/libafs/MODLOAD-2.6.13.1-rj-SP/osi_module.c:38:
include/linux/seq_file.h:43: warning: 'printk' is an unrecognized format
function type
CC
[M] /usr/src/modules/openafs/src/libafs/MODLOAD-2.6.13.1-rj-SP/osi_probe.o
CC
[M] /usr/src/modules/openafs/src/libafs/MODLOAD-2.6.13.1-rj-SP/osi_sleep.o
/usr/src/modules/openafs/src/libafs/MODLOAD-2.6.13.1-rj-SP/osi_sleep.c: In
function 'osi_TimedSleep':
/usr/src/modules/openafs/src/libafs/MODLOAD-2.6.13.1-rj-SP/osi_sleep.c:291:
error: 'PF_FREEZE' undeclared (first use in this function)
/usr/src/modules/openafs/src/libafs/MODLOAD-2.6.13.1-rj-SP/osi_sleep.c:291:
error: (Each undeclared identifier is reported only once
/usr/src/modules/openafs/src/libafs/MODLOAD-2.6.13.1-rj-SP/osi_sleep.c:291:
error: for each function it appears in.)
make[8]: ***
[/usr/src/modules/openafs/src/libafs/MODLOAD-2.6.13.1-rj-SP/osi_sleep.o]
Error 1
make[7]: ***
[_module_/usr/src/modules/openafs/src/libafs/MODLOAD-2.6.13.1-rj-SP] Error 2
make[7]: Leaving directory `/usr/src/linux-2.6.13.1'
make[6]: *** [openafs.ko] Error 2
make[6]: Leaving directory
`/usr/src/modules/openafs/src/libafs/MODLOAD-2.6.13.1-rj-SP'
make[5]: *** [linux_compdirs] Error 2
make[5]: Leaving directory `/usr/src/modules/openafs/src/libafs'
make[4]: *** [libafs] Error 2
make[4]: Leaving directory `/usr/src/modules/openafs'
make[3]: *** [build] Error 2
make[3]: Leaving directory `/usr/src/modules/openafs'
make[2]: *** [only_libafs] Error 2
make[2]: Leaving directory `/usr/src/modules/openafs'
make[1]: *** [build-modules-stamp] Error 2
make[1]: Leaving directory `/usr/src/modules/openafs'
Module /usr/src/modules/openafs failed.
Hit return to Continue