Kumaran Rajaram
2006-May-19 07:36 UTC
[Lustre-discuss] kernel making issure:drivers/scsi/sd.c:89: error: parameter name omitted
Ian,
The Suse patch sd_iostats-2.6-suse.patch needs a fix. Refer to Bug #7000
in Bugzilla.clusterfs
You can temporarily fix by editing the drivers/scsi/sd.c file manually
as follows:
Fix the error in line 89 by adding parameter name (similar to
below):
static inline void sd_iostats_init_disk(struct gendisk *dsk) {}
Similarly replaced kdev_t with int in line 91 (similar to line 86).
Hope this helps.
Cheers,
-Kums
On Wed, 2005-07-13 at 16:34 +0800, Ian Jiang wrote:> Some issure while making a linux kernel Lustre patched :
>
> drivers/scsi/sd.c: In function `sd_iostats_init_disk'':
> drivers/scsi/sd.c:89: error: parameter name omitted
>
> I am using the Suse Sles 9 x86_64 rc5(linux kernel 2.6.5-7.97) and the
> Lustre-1.2.4.
> I patched the kernel source, but failed to make a new kernel.
> Was there something wrong when I patched or configured the kernel?
> Any suggestion is appreciated!
> Nothing deviant happened when I was using the redhat as 3.0, by the way.
>
> Here are the details:
>
> #cd /usr/src
> #cp -r linux-2.6.5-7.97 patched-linux-2.6.5-7.97
> #cd patched-linux-2.6.5-7.97
> #quilt setup -l
> /usr/Jiang/lustre-1.2.4/kernel_patches/series/2.6-suse.series -d
> /usr/Jiang/lustre-1.2.4/kernel_patches/patches/
> # quilt push -av
> Applying sd_iostats-2.6-suse
> patching file drivers/scsi/Kconfig
> patching file drivers/scsi/sd.c
> patching file drivers/scsi/scsi_proc.c
>
> Applying blkdev_tunables-2.6-suse
> patching file include/scsi/scsi_host.h
> patching file include/linux/blkdev.h
>
> Applying export-filemap_populate
> patching file mm/filemap.c
> Hunk #1 succeeded at 1632 (offset 223 lines).
> patching file include/linux/mm.h
> Hunk #1 succeeded at 868 (offset 207 lines).
>
> Applying grab_cache_page_nowait_gfp-2.6-suse
> patching file mm/filemap.c
> Hunk #1 succeeded at 787 (offset 14 lines).
> Hunk #2 succeeded at 807 (offset 14 lines).
> Hunk #3 succeeded at 816 (offset 14 lines).
> patching file include/linux/pagemap.h
> Hunk #1 succeeded at 84 (offset -8 lines).
>
> Applying remove-suid-2.6-suse
> patching file mm/filemap.c
> Hunk #1 succeeded at 1823 (offset 7 lines).
>
> Now at patch remove-suid-2.6-suse
> #make distclean
> CLEAN scripts/basic
> CLEAN scripts/kconfig
> CLEAN scripts/lxdialog
> CLEAN include/asm include/linux/autoconf.h include/linux/version.h
> #make menuconfig
> (In fact I changed nothing here because the jbd and ext3 support have been
> included in the kernel or in a module)
> #make
> ...
> ...
> In file included from drivers/scsi/pcmcia/fdomain_core.c:2:
> drivers/scsi/fdomain.c: In function `fdomain_isa_detect'':
> drivers/scsi/fdomain.c:763: warning: `check_region'' is deprecated
(declared
> at includ
> e/linux/ioport.h:121)
> drivers/scsi/sd.c: In function `sd_iostats_init_disk'':
> drivers/scsi/sd.c:89: error: parameter name omitted
> drivers/scsi/sd.c: At top level:
> drivers/scsi/sd.c:91: error: parse error before "dev"
> drivers/scsi/sd.c:91: warning: function declaration isn''t a
prototype
> make[2]: *** [drivers/scsi/sd.o] Error 1
> make[1]: *** [drivers/scsi] Error 2
> make: *** [drivers] Error 2
>
>
>
>
> Ian Jiang
> ianjiang91@hotmail.com
> ----
> Computer Architecture Laboratory
> Institute of Computing Technology
> Chinese Academy of Sciences
> Beijing,P.R.China
> Zip code: 100080
> Tel: +86-10-62564394(office)
>
> _________________________________________________________________
> 与联机的朋友进行交流,请使用 MSN Messenger: http://messenger.msn.com/cn
>
> _______________________________________________
> Lustre-discuss mailing list
> Lustre-discuss@lists.clusterfs.com
> https://lists.clusterfs.com/mailman/listinfo/lustre-discuss
Ian Jiang
2006-May-19 07:36 UTC
[Lustre-discuss] make install error on suse: "rejects in file fs/ext3/inode.c"
Hi, Kums!
Thanks for your reply!
I modifyed the sd.c file as you told me and got a Lustre patched kernel
that could works very well. But another issue came accross while making the
Lustre-1.2.4. That is :
Applying iopen-2.6-suse
1 out of 2 hunks FAILED -- rejects in file fs/ext3/inode.c
1 out of 1 hunk FAILED -- rejects in file include/linux/ext3_fs.h
Patch iopen-2.6-suse does not apply (enforce with -f)
make[2]: *** [sources] Error 1
make[2]: Leaving directory `/usr/mafish/lustre-1.2.4/ldiskfs''
make[1]: *** [ldiskfs-sources] Error 2
make[1]: Leaving directory `/usr/mafish/lustre-1.2.4''
make: *** [install-recursive] Error 1
I am using the Suse Sles 9 x86_64 rc5(linux kernel 2.6.5-7.97) and the
Lustre-1.2.4.
Could you please give me more suggestion?
Thanks a lot and best regards!
Ian
--------------
Here are the details:
-------------
#pwd
/usr/mafish/lustre-1.2.4
# ./configure --with-linux=/usr/src/linux-2.6.5-7.97
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to build kernel modules... yes
checking whether to build Lustre library... no
checking whether to build utilities... yes
checking whether to build Lustre tests... yes
checking whether to build docs... no
checking whether to use extN... no
checking whether to enable ldiskfs... no
checking which backing filesystem to use... ext3
checking whether to enable pinger support... yes
checking maximum OBD ioctl size... 8192 bytes
checking location of libsysio... ../libsysio
checking for ../libsysio/src/libsysio.a... no
checking whether to build mpitests... no
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking dependency style of gcc... gcc3
checking for spinlock_t... yes
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for unsigned long long... yes
checking size of unsigned long long... 8
---> size SIZEOF
---> size SIZEOF 8
checking for ranlib... ranlib
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking for buggy compiler... no known problems
checking for readline support... yes
checking if efence debugging support is requested... no
checking for autoMakefile.am... yes
checking if inkernel build support is requested... no
checking if Cray portals should be used... no
checking for Linux sources... /usr/src/linux-2.6.5-7.97
checking for /boot/kernel.h... no
checking for /var/adm/running-kernel.h... no
./configure: line 5335: ,: command not found
checking if you are running user mode linux for x86_64... no (asm
doesn''t
point at asm-um)
checking for /usr/src/linux-2.6.5-7.97/include/linux/namei.h... yes
checking if you are using Linux 2.6... yes
checking for patch... /usr/bin/patch
checking for quilt... /usr/local/bin/quilt
checking for /usr/src/linux-2.6.5-7.97/.config... yes
checking for /usr/src/linux-2.6.5-7.97/include/linux/autoconf.h... yes
checking for /usr/src/linux-2.6.5-7.97/include/linux/version.h... yes
checking for /usr/src/linux-2.6.5-7.97/include/linux/config.h... yes
checking that modules can be built... yes
checking for external module build support... yes
checking for Linux release... 2.6.5-7.97-default
checking for Lustre release... 2.6.5_7.97_default_200507141947
checking for zero-copy TCP support... no (no kernel support)
checking for CPU affinity support... yes
checking if quadrics kernel headers are present... no
checking if gm support was requested... no
checking if struct kiobuf has a dovary field... no
checking if struct page has a list field... no
checking if task_struct has a sighand field... yes
checking if kernel offers cond_resched... yes
checking if kernel defines PDE... yes
checking if kernel passes struct file to direct_IO... no
checking if kernel defines cpu_online()... yes
checking if kernel defines cpumask_t... yes
checking if kernel has mm_inline.h header... no
checking if struct inode has i_alloc_sem... yes
checking for module support... yes
checking for MODVERSIONS... yes
checking if preempt is enabled... no
checking if fshooks are present... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating Rules
config.status: creating autoMakefile
config.status: creating conf/Makefile
config.status: creating doc/Makefile
config.status: creating include/Makefile
config.status: creating include/linux/Makefile
config.status: creating include/lustre/Makefile
config.status: creating ldiskfs/Makefile
config.status: creating ldiskfs/autoMakefile
config.status: creating ldlm/Makefile
config.status: creating llite/Makefile
config.status: creating llite/autoMakefile
config.status: creating lov/Makefile
config.status: creating lov/autoMakefile
config.status: creating lvfs/Makefile
config.status: creating lvfs/autoMakefile
config.status: creating mdc/Makefile
config.status: creating mdc/autoMakefile
config.status: creating mds/Makefile
config.status: creating mds/autoMakefile
config.status: creating obdclass/Makefile
config.status: creating obdclass/autoMakefile
config.status: creating obdecho/Makefile
config.status: creating obdecho/autoMakefile
config.status: creating obdfilter/Makefile
config.status: creating obdfilter/autoMakefile
config.status: creating osc/Makefile
config.status: creating osc/autoMakefile
config.status: creating ost/Makefile
config.status: creating ost/autoMakefile
config.status: creating portals/Kernelenv
config.status: creating portals/Makefile
config.status: creating portals/autoMakefile
config.status: creating portals/doc/Makefile
config.status: creating portals/include/Makefile
config.status: creating portals/include/linux/Makefile
config.status: creating portals/include/portals/Makefile
config.status: creating portals/knals/Makefile
config.status: creating portals/knals/autoMakefile
config.status: creating portals/knals/gmnal/Makefile
config.status: creating portals/knals/gmnal/autoMakefile
config.status: creating portals/knals/qswnal/Makefile
config.status: creating portals/knals/qswnal/autoMakefile
config.status: creating portals/knals/socknal/Makefile
config.status: creating portals/knals/socknal/autoMakefile
config.status: creating portals/libcfs/Makefile
config.status: creating portals/libcfs/autoMakefile
config.status: creating portals/portals/Makefile
config.status: creating portals/portals/autoMakefile
config.status: creating portals/router/Makefile
config.status: creating portals/router/autoMakefile
config.status: creating portals/tests/Makefile
config.status: creating portals/tests/autoMakefile
config.status: creating portals/unals/Makefile
config.status: creating portals/utils/Makefile
config.status: creating ptlrpc/Makefile
config.status: creating ptlrpc/autoMakefile
config.status: creating scripts/Makefile
config.status: creating scripts/lustre.spec
config.status: creating scripts/version_tag.pl
config.status: creating tests/Makefile
config.status: creating utils/Lustre/Makefile
config.status: creating utils/Makefile
config.status: creating include/config.h
config.status: include/config.h is unchanged
config.status: executing depfiles commands
#make install
Making install in .
make[1]: Entering directory `/usr/mafish/lustre-1.2.4''
perl ./scripts/version_tag.pl . . > tmpver
echo "#define LUSTRE_RELEASE 2.6.5_7.97_default_200507141947" >>
tmpver
cmp -s ./include/linux/lustre_build_version.h tmpver \
2> /dev/null &&
\
rm -f tmpver ||
\
mv tmpver ./include/linux/lustre_build_version.h
make sources -C ldiskfs
make[2]: Entering directory `/usr/mafish/lustre-1.2.4/ldiskfs''
rm -rf linux-stage linux sources
mkdir -p linux-stage/fs/ext3 linux-stage/include/linux
cp /usr/src/linux-2.6.5-7.97/fs/ext3/acl.c
/usr/src/linux-2.6.5-7.97/fs/ext3/balloc.c
/usr/src/linux-2.6.5-7.97/fs/ext3/bitmap.c
/usr/src/linux-2.6.5-7.97/fs/ext3/dir.c
/usr/src/linux-2.6.5-7.97/fs/ext3/file.c
/usr/src/linux-2.6.5-7.97/fs/ext3/fsync.c
/usr/src/linux-2.6.5-7.97/fs/ext3/hash.c
/usr/src/linux-2.6.5-7.97/fs/ext3/ialloc.c
/usr/src/linux-2.6.5-7.97/fs/ext3/inode.c
/usr/src/linux-2.6.5-7.97/fs/ext3/ioctl.c
/usr/src/linux-2.6.5-7.97/fs/ext3/namei.c
/usr/src/linux-2.6.5-7.97/fs/ext3/super.c
/usr/src/linux-2.6.5-7.97/fs/ext3/symlink.c
/usr/src/linux-2.6.5-7.97/fs/ext3/xattr.c
/usr/src/linux-2.6.5-7.97/fs/ext3/xattr_security.c
/usr/src/linux-2.6.5-7.97/fs/ext3/xattr_trusted.c
/usr/src/linux-2.6.5-7.97/fs/ext3/xattr_user.c
/usr/src/linux-2.6.5-7.97/fs/ext3/acl.h
/usr/src/linux-2.6.5-7.97/fs/ext3/xattr.h
/usr/src/linux-2.6.5-7.97/fs/ext3/Makefile linux-stage/fs/ext3
cp /usr/src/linux-2.6.5-7.97/include/linux/ext3_fs.h
/usr/src/linux-2.6.5-7.97/include/linux/ext3_fs_i.h
/usr/src/linux-2.6.5-7.97/include/linux/ext3_fs_sb.h
/usr/src/linux-2.6.5-7.97/include/linux/ext3_jbd.h
linux-stage/include/linux
cd linux-stage && quilt setup -l
../../kernel_patches/series/ldiskfs-2.6-suse.series -d
../../kernel_patches/patches
Creating link to patches directory
/usr/mafish/lustre-1.2.4/ldiskfs/linux-stage/../../kernel_patches/patches
Creating link to series file
/usr/mafish/lustre-1.2.4/ldiskfs/linux-stage/../../kernel_patches/series/ldiskfs-2.6-suse.series
cd linux-stage && quilt push -a -q
Applying ext3-wantedi-2.6-suse
Applying ext3-san-jdike-2.6-suse
Applying iopen-2.6-suse
1 out of 2 hunks FAILED -- rejects in file fs/ext3/inode.c
1 out of 1 hunk FAILED -- rejects in file include/linux/ext3_fs.h
Patch iopen-2.6-suse does not apply (enforce with -f)
make[2]: *** [sources] Error 1
make[2]: Leaving directory `/usr/mafish/lustre-1.2.4/ldiskfs''
make[1]: *** [ldiskfs-sources] Error 2
make[1]: Leaving directory `/usr/mafish/lustre-1.2.4''
make: *** [install-recursive] Error 1
_________________________________________________________________
ÏíÓÃÊÀ½çÉÏ×î´óµÄµç×ÓÓʼþϵͳ¡ª MSN Hotmail¡£ http://www.hotmail.com
Kumaran Rajaram
2006-May-19 07:36 UTC
[Lustre-discuss] Re: [BULK] make install error on suse: "rejects in file fs/ext3/inode.c"
Ian, I had used lustre-1.4.2.1 and 2.6.suse-lnxi.series which does not include iopen-2.6.suse patch. So, Iam not sure if I can help you on this. -Kums On Thu, 2005-07-14 at 12:04 +0800, Ian Jiang wrote:> Hi, Kums! > Thanks for your reply! > I modifyed the sd.c file as you told me and got a Lustre patched kernel > that could works very well. But another issue came accross while making the > Lustre-1.2.4. That is : > Applying iopen-2.6-suse > 1 out of 2 hunks FAILED -- rejects in file fs/ext3/inode.c > 1 out of 1 hunk FAILED -- rejects in file include/linux/ext3_fs.h > Patch iopen-2.6-suse does not apply (enforce with -f) > make[2]: *** [sources] Error 1 > make[2]: Leaving directory `/usr/mafish/lustre-1.2.4/ldiskfs'' > make[1]: *** [ldiskfs-sources] Error 2 > make[1]: Leaving directory `/usr/mafish/lustre-1.2.4'' > make: *** [install-recursive] Error 1 > > I am using the Suse Sles 9 x86_64 rc5(linux kernel 2.6.5-7.97) and the > Lustre-1.2.4. > > Could you please give me more suggestion? > Thanks a lot and best regards! > > Ian > > -------------- > Here are the details: > ------------- > #pwd > /usr/mafish/lustre-1.2.4 > # ./configure --with-linux=/usr/src/linux-2.6.5-7.97 > checking build system type... x86_64-unknown-linux-gnu > checking host system type... x86_64-unknown-linux-gnu > checking target system type... x86_64-unknown-linux-gnu > checking for a BSD-compatible install... /usr/bin/install -c > checking whether build environment is sane... yes > checking for gawk... gawk > checking whether make sets $(MAKE)... yes > checking whether to build kernel modules... yes > checking whether to build Lustre library... no > checking whether to build utilities... yes > checking whether to build Lustre tests... yes > checking whether to build docs... no > checking whether to use extN... no > checking whether to enable ldiskfs... no > checking which backing filesystem to use... ext3 > checking whether to enable pinger support... yes > checking maximum OBD ioctl size... 8192 bytes > checking location of libsysio... ../libsysio > checking for ../libsysio/src/libsysio.a... no > checking whether to build mpitests... no > checking for style of include used by make... GNU > checking for gcc... gcc > checking for C compiler default output file name... a.out > checking whether the C compiler works... yes > checking whether we are cross compiling... no > checking for suffix of executables... > checking for suffix of object files... o > checking whether we are using the GNU C compiler... yes > checking whether gcc accepts -g... yes > checking for gcc option to accept ANSI C... none needed > checking dependency style of gcc... gcc3 > checking for spinlock_t... yes > checking how to run the C preprocessor... gcc -E > checking for egrep... grep -E > checking for ANSI C header files... yes > checking for sys/types.h... yes > checking for sys/stat.h... yes > checking for stdlib.h... yes > checking for string.h... yes > checking for memory.h... yes > checking for strings.h... yes > checking for inttypes.h... yes > checking for stdint.h... yes > checking for unistd.h... yes > checking for unsigned long long... yes > checking size of unsigned long long... 8 > ---> size SIZEOF > ---> size SIZEOF 8 > checking for ranlib... ranlib > checking for gcc... (cached) gcc > checking whether we are using the GNU C compiler... (cached) yes > checking whether gcc accepts -g... (cached) yes > checking for gcc option to accept ANSI C... (cached) none needed > checking dependency style of gcc... (cached) gcc3 > checking for buggy compiler... no known problems > checking for readline support... yes > checking if efence debugging support is requested... no > checking for autoMakefile.am... yes > checking if inkernel build support is requested... no > checking if Cray portals should be used... no > checking for Linux sources... /usr/src/linux-2.6.5-7.97 > checking for /boot/kernel.h... no > checking for /var/adm/running-kernel.h... no > ./configure: line 5335: ,: command not found > checking if you are running user mode linux for x86_64... no (asm doesn''t > point at asm-um) > checking for /usr/src/linux-2.6.5-7.97/include/linux/namei.h... yes > checking if you are using Linux 2.6... yes > checking for patch... /usr/bin/patch > checking for quilt... /usr/local/bin/quilt > checking for /usr/src/linux-2.6.5-7.97/.config... yes > checking for /usr/src/linux-2.6.5-7.97/include/linux/autoconf.h... yes > checking for /usr/src/linux-2.6.5-7.97/include/linux/version.h... yes > checking for /usr/src/linux-2.6.5-7.97/include/linux/config.h... yes > checking that modules can be built... yes > checking for external module build support... yes > checking for Linux release... 2.6.5-7.97-default > checking for Lustre release... 2.6.5_7.97_default_200507141947 > checking for zero-copy TCP support... no (no kernel support) > checking for CPU affinity support... yes > checking if quadrics kernel headers are present... no > checking if gm support was requested... no > checking if struct kiobuf has a dovary field... no > checking if struct page has a list field... no > checking if task_struct has a sighand field... yes > checking if kernel offers cond_resched... yes > checking if kernel defines PDE... yes > checking if kernel passes struct file to direct_IO... no > checking if kernel defines cpu_online()... yes > checking if kernel defines cpumask_t... yes > checking if kernel has mm_inline.h header... no > checking if struct inode has i_alloc_sem... yes > checking for module support... yes > checking for MODVERSIONS... yes > checking if preempt is enabled... no > checking if fshooks are present... yes > configure: creating ./config.status > config.status: creating Makefile > config.status: creating Rules > config.status: creating autoMakefile > config.status: creating conf/Makefile > config.status: creating doc/Makefile > config.status: creating include/Makefile > config.status: creating include/linux/Makefile > config.status: creating include/lustre/Makefile > config.status: creating ldiskfs/Makefile > config.status: creating ldiskfs/autoMakefile > config.status: creating ldlm/Makefile > config.status: creating llite/Makefile > config.status: creating llite/autoMakefile > config.status: creating lov/Makefile > config.status: creating lov/autoMakefile > config.status: creating lvfs/Makefile > config.status: creating lvfs/autoMakefile > config.status: creating mdc/Makefile > config.status: creating mdc/autoMakefile > config.status: creating mds/Makefile > config.status: creating mds/autoMakefile > config.status: creating obdclass/Makefile > config.status: creating obdclass/autoMakefile > config.status: creating obdecho/Makefile > config.status: creating obdecho/autoMakefile > config.status: creating obdfilter/Makefile > config.status: creating obdfilter/autoMakefile > config.status: creating osc/Makefile > config.status: creating osc/autoMakefile > config.status: creating ost/Makefile > config.status: creating ost/autoMakefile > config.status: creating portals/Kernelenv > config.status: creating portals/Makefile > config.status: creating portals/autoMakefile > config.status: creating portals/doc/Makefile > config.status: creating portals/include/Makefile > config.status: creating portals/include/linux/Makefile > config.status: creating portals/include/portals/Makefile > config.status: creating portals/knals/Makefile > config.status: creating portals/knals/autoMakefile > config.status: creating portals/knals/gmnal/Makefile > config.status: creating portals/knals/gmnal/autoMakefile > config.status: creating portals/knals/qswnal/Makefile > config.status: creating portals/knals/qswnal/autoMakefile > config.status: creating portals/knals/socknal/Makefile > config.status: creating portals/knals/socknal/autoMakefile > config.status: creating portals/libcfs/Makefile > config.status: creating portals/libcfs/autoMakefile > config.status: creating portals/portals/Makefile > config.status: creating portals/portals/autoMakefile > config.status: creating portals/router/Makefile > config.status: creating portals/router/autoMakefile > config.status: creating portals/tests/Makefile > config.status: creating portals/tests/autoMakefile > config.status: creating portals/unals/Makefile > config.status: creating portals/utils/Makefile > config.status: creating ptlrpc/Makefile > config.status: creating ptlrpc/autoMakefile > config.status: creating scripts/Makefile > config.status: creating scripts/lustre.spec > config.status: creating scripts/version_tag.pl > config.status: creating tests/Makefile > config.status: creating utils/Lustre/Makefile > config.status: creating utils/Makefile > config.status: creating include/config.h > config.status: include/config.h is unchanged > config.status: executing depfiles commands > #make install > Making install in . > make[1]: Entering directory `/usr/mafish/lustre-1.2.4'' > perl ./scripts/version_tag.pl . . > tmpver > echo "#define LUSTRE_RELEASE 2.6.5_7.97_default_200507141947" >> tmpver > cmp -s ./include/linux/lustre_build_version.h tmpver \ > 2> /dev/null && > \ > rm -f tmpver || > \ > mv tmpver ./include/linux/lustre_build_version.h > make sources -C ldiskfs > make[2]: Entering directory `/usr/mafish/lustre-1.2.4/ldiskfs'' > rm -rf linux-stage linux sources > mkdir -p linux-stage/fs/ext3 linux-stage/include/linux > cp /usr/src/linux-2.6.5-7.97/fs/ext3/acl.c > /usr/src/linux-2.6.5-7.97/fs/ext3/balloc.c > /usr/src/linux-2.6.5-7.97/fs/ext3/bitmap.c > /usr/src/linux-2.6.5-7.97/fs/ext3/dir.c > /usr/src/linux-2.6.5-7.97/fs/ext3/file.c > /usr/src/linux-2.6.5-7.97/fs/ext3/fsync.c > /usr/src/linux-2.6.5-7.97/fs/ext3/hash.c > /usr/src/linux-2.6.5-7.97/fs/ext3/ialloc.c > /usr/src/linux-2.6.5-7.97/fs/ext3/inode.c > /usr/src/linux-2.6.5-7.97/fs/ext3/ioctl.c > /usr/src/linux-2.6.5-7.97/fs/ext3/namei.c > /usr/src/linux-2.6.5-7.97/fs/ext3/super.c > /usr/src/linux-2.6.5-7.97/fs/ext3/symlink.c > /usr/src/linux-2.6.5-7.97/fs/ext3/xattr.c > /usr/src/linux-2.6.5-7.97/fs/ext3/xattr_security.c > /usr/src/linux-2.6.5-7.97/fs/ext3/xattr_trusted.c > /usr/src/linux-2.6.5-7.97/fs/ext3/xattr_user.c > /usr/src/linux-2.6.5-7.97/fs/ext3/acl.h > /usr/src/linux-2.6.5-7.97/fs/ext3/xattr.h > /usr/src/linux-2.6.5-7.97/fs/ext3/Makefile linux-stage/fs/ext3 > cp /usr/src/linux-2.6.5-7.97/include/linux/ext3_fs.h > /usr/src/linux-2.6.5-7.97/include/linux/ext3_fs_i.h > /usr/src/linux-2.6.5-7.97/include/linux/ext3_fs_sb.h > /usr/src/linux-2.6.5-7.97/include/linux/ext3_jbd.h > linux-stage/include/linux > cd linux-stage && quilt setup -l > ../../kernel_patches/series/ldiskfs-2.6-suse.series -d > ../../kernel_patches/patches > Creating link to patches directory > /usr/mafish/lustre-1.2.4/ldiskfs/linux-stage/../../kernel_patches/patches > Creating link to series file > /usr/mafish/lustre-1.2.4/ldiskfs/linux-stage/../../kernel_patches/series/ldiskfs-2.6-suse.series > > cd linux-stage && quilt push -a -q > Applying ext3-wantedi-2.6-suse > Applying ext3-san-jdike-2.6-suse > Applying iopen-2.6-suse > 1 out of 2 hunks FAILED -- rejects in file fs/ext3/inode.c > 1 out of 1 hunk FAILED -- rejects in file include/linux/ext3_fs.h > Patch iopen-2.6-suse does not apply (enforce with -f) > make[2]: *** [sources] Error 1 > make[2]: Leaving directory `/usr/mafish/lustre-1.2.4/ldiskfs'' > make[1]: *** [ldiskfs-sources] Error 2 > make[1]: Leaving directory `/usr/mafish/lustre-1.2.4'' > make: *** [install-recursive] Error 1 > > _________________________________________________________________ > 享用世界上最大的电子邮件系统― MSN Hotmail。 http://www.hotmail.com >
Ian Jiang
2006-May-19 07:36 UTC
[Lustre-discuss] kernel making issure:drivers/scsi/sd.c:89: error: parameter name omitted
Some issure while making a linux kernel Lustre patched : drivers/scsi/sd.c: In function `sd_iostats_init_disk'': drivers/scsi/sd.c:89: error: parameter name omitted I am using the Suse Sles 9 x86_64 rc5(linux kernel 2.6.5-7.97) and the Lustre-1.2.4. I patched the kernel source, but failed to make a new kernel. Was there something wrong when I patched or configured the kernel? Any suggestion is appreciated! Nothing deviant happened when I was using the redhat as 3.0, by the way. Here are the details: #cd /usr/src #cp -r linux-2.6.5-7.97 patched-linux-2.6.5-7.97 #cd patched-linux-2.6.5-7.97 #quilt setup -l /usr/Jiang/lustre-1.2.4/kernel_patches/series/2.6-suse.series -d /usr/Jiang/lustre-1.2.4/kernel_patches/patches/ # quilt push -av Applying sd_iostats-2.6-suse patching file drivers/scsi/Kconfig patching file drivers/scsi/sd.c patching file drivers/scsi/scsi_proc.c Applying blkdev_tunables-2.6-suse patching file include/scsi/scsi_host.h patching file include/linux/blkdev.h Applying export-filemap_populate patching file mm/filemap.c Hunk #1 succeeded at 1632 (offset 223 lines). patching file include/linux/mm.h Hunk #1 succeeded at 868 (offset 207 lines). Applying grab_cache_page_nowait_gfp-2.6-suse patching file mm/filemap.c Hunk #1 succeeded at 787 (offset 14 lines). Hunk #2 succeeded at 807 (offset 14 lines). Hunk #3 succeeded at 816 (offset 14 lines). patching file include/linux/pagemap.h Hunk #1 succeeded at 84 (offset -8 lines). Applying remove-suid-2.6-suse patching file mm/filemap.c Hunk #1 succeeded at 1823 (offset 7 lines). Now at patch remove-suid-2.6-suse #make distclean CLEAN scripts/basic CLEAN scripts/kconfig CLEAN scripts/lxdialog CLEAN include/asm include/linux/autoconf.h include/linux/version.h #make menuconfig (In fact I changed nothing here because the jbd and ext3 support have been included in the kernel or in a module) #make ... ... In file included from drivers/scsi/pcmcia/fdomain_core.c:2: drivers/scsi/fdomain.c: In function `fdomain_isa_detect'': drivers/scsi/fdomain.c:763: warning: `check_region'' is deprecated (declared at includ e/linux/ioport.h:121) drivers/scsi/sd.c: In function `sd_iostats_init_disk'': drivers/scsi/sd.c:89: error: parameter name omitted drivers/scsi/sd.c: At top level: drivers/scsi/sd.c:91: error: parse error before "dev" drivers/scsi/sd.c:91: warning: function declaration isn''t a prototype make[2]: *** [drivers/scsi/sd.o] Error 1 make[1]: *** [drivers/scsi] Error 2 make: *** [drivers] Error 2 Ian Jiang ianjiang91@hotmail.com ---- Computer Architecture Laboratory Institute of Computing Technology Chinese Academy of Sciences Beijing,P.R.China Zip code: 100080 Tel: +86-10-62564394(office) _________________________________________________________________ ÓëÁª»úµÄÅóÓѽøÐн»Á÷£¬ÇëʹÓà MSN Messenger: http://messenger.msn.com/cn