Skip to contentSkip to conversation

linux-next: Tree for October 6

DISCUSSION Stephen Rothwell 6 participants 17 messages Oct 6, 2010 – Oct 26, 2010

Subsystems (5)
lore
Share & tools
lore
#0 lore raw

Hi all,

Changes since 20101005:

Removed tree: lost-spurious-irq

All the trees hosted on git.infradead.org are unfetchable (and presumably unable to be updated) due to the machine crashing.

Linus' tree gained a build failure for which I applied a patch.

The jdelvare-hwmon gained a build failure for which I reverted 2 commits.

The net tree lost 2 conflicts but gained another against the wireless tree.

The kgdb tree gained a conflict against the input tree.

The irda tree lost its conflict.

The rcu tree gained a conflict against Linus' tree.

The tip tree gained a conflicts against Linus' tree.

The drivers-x86 tree lost its build failure.

The hwpoison tree still has its build failure so I used the version from next-20100924.

The usb tree gained a conflict against the trivial tree.

The staging-next tree gained a conflict against the omap tree.

The bkl-config tree gained a conflict against the staging-next tree.

----------------------------------------------------------------------------

I have created today's linux-next tree at
git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
(patches at http://www.kernel.org/pub/linux/kernel/v2.6/next/ ). If you are tracking the linux-next tree using git, you should not use "git pull" to do so as that will try to merge the new linux-next release with the old one. You should use "git fetch" as mentioned in the FAQ on the wiki (see below).

You can see which trees have been included by looking in the Next/Trees file in the source. There are also quilt-import.log and merge.log files in the Next directory. Between each merge, the tree was built with a ppc64_defconfig for powerpc and an allmodconfig for x86_64. After the final fixups (if any), it is also built with powerpc allnoconfig (32 and 64 bit), ppc44x_defconfig and allyesconfig (minus CONFIG_PROFILE_ALL_BRANCHES - this fails its final link) and i386, sparc and sparc64 defconfig. These builds also have CONFIG_ENABLE_WARN_DEPRECATED, CONFIG_ENABLE_MUST_CHECK and CONFIG_DEBUG_INFO disabled when necessary.

Below is a summary of the state of the merge.

We are up to 176 trees (counting Linus' and 22 trees of patches pending for Linus' tree), more are welcome (even if they are currently empty). Thanks to those who have contributed, and to those who haven't, please do.

Status of my local build tests will be at
http://kisskb.ellerman.id.au/linux-next . If maintainers want to give advice about cross compilers/configs that work, we are always open to add more builds.

Thanks to Randy Dunlap for doing many randconfig builds.

There is a wiki covering stuff to do with linux-next at
http://linux.f-seidel.de/linux-next/pmwiki/ . Thanks to Frank Seidel.

Signature · 242 lines
Cheers,
Stephen Rothwell                    [email protected]

$ git checkout master
$ git reset --hard stable
Merging origin/master
Merging fixes/fixes
Merging arm-current/master
Merging m68k-current/for-linus
Merging powerpc-merge/merge
Merging sparc-current/master
Merging scsi-rc-fixes/master
Merging net-current/master
Merging sound-current/for-linus
Merging pci-current/for-linus
Merging wireless-current/master
Merging kbuild-current/rc-fixes
Merging quilt/driver-core.current
Merging quilt/tty.current
Merging quilt/usb.current
Merging quilt/staging.current
Merging cpufreq-current/fixes
Merging input-current/for-linus
Merging md-current/for-linus
Merging audit-current/for-linus
Merging crypto-current/master
Merging ide-curent/master
Merging dwmw2/master
Merging gcl-current/merge
Applying: powerpc: remove unused variable
Merging arm/devel
Merging davinci/davinci-next
Merging i.MX/for-next
Merging msm/for-next
CONFLICT (content): Merge conflict in arch/arm/mm/proc-v7.S
Merging omap/for-next
Merging pxa/for-next
Merging samsung/next-samsung
Merging s5p/for-next
Merging tegra/for-next
Merging avr32/avr32-arch
Merging blackfin/for-linus
Merging cris/for-next
Merging ia64/test
Merging m68k/for-next
Merging m68knommu/for-next
Merging microblaze/next
Merging mips/mips-for-linux-next
Merging parisc/next
Merging powerpc/next
Merging 4xx/next
Merging 52xx-and-virtex/next
Merging galak/next
CONFLICT (content): Merge conflict in arch/powerpc/platforms/85xx/mpc85xx_mds.c
Merging s390/features
Merging sh/master
Merging genesis/master
Merging sparc/master
Merging tile/master
Merging xtensa/master
CONFLICT (content): Merge conflict in arch/xtensa/configs/iss_defconfig
Merging ceph/for-next
Merging cifs/master
Merging configfs/linux-next
Merging ecryptfs/next
Merging ext3/for_next
Merging ext4/next
Merging fatfs/master
Merging fuse/for-next
Merging gfs2/master
Merging hfsplus/for-next
Merging jfs/next
Merging logfs/master
CONFLICT (content): Merge conflict in fs/logfs/logfs.h
Merging nfs/linux-next
Merging nfsd/nfsd-next
Merging nilfs2/for-next
Merging ocfs2/linux-next
Merging omfs/for-next
Merging squashfs/master
Merging udf/for_next
Merging v9fs/for-next
Merging ubifs/linux-next
Merging xfs/master
Merging vfs/for-next
Merging pci/linux-next
Merging hid/for-next
Merging quilt/i2c
Merging bjdooks-i2c/next-i2c
Merging quilt/jdelvare-hwmon
Merging hwmon-staging/hwmon-next
Merging quilt/kernel-doc
Merging v4l-dvb/master
Merging kbuild/for-next
Merging kconfig/for-next
Merging ide/master
Merging libata/NEXT
Merging infiniband/for-next
Merging acpi/test
Merging idle-test/idle-test
Merging ieee1394/for-next
Merging ubi/linux-next
Merging kvm/linux-next
Merging dlm/next
Merging swiotlb/master
Merging swiotlb-xen/master
Merging ibft/master
Merging scsi/master
Merging async_tx/next
Merging wireless/master
CONFLICT (content): Merge conflict in arch/arm/mach-omap2/board-omap3pandora.c
CONFLICT (content): Merge conflict in arch/arm/mach-omap2/board-zoom-peripherals.c
CONFLICT (content): Merge conflict in drivers/net/wireless/libertas/if_sdio.c
Merging net/master
CONFLICT (content): Merge conflict in drivers/net/pcmcia/pcnet_cs.c
CONFLICT (content): Merge conflict in drivers/net/wireless/ipw2x00/ipw2200.c
Merging mtd/master
Merging crypto/master
CONFLICT (content): Merge conflict in arch/arm/mach-omap2/devices.c
Merging sound-asoc/for-next
CONFLICT (content): Merge conflict in drivers/video/sh_mobile_hdmi.c
Merging sound/for-next
Merging cpufreq/next
Merging quilt/rr
Merging input/next
CONFLICT (content): Merge conflict in drivers/input/keyboard/Kconfig
Merging lsm/for-next
Merging block/for-next
CONFLICT (content): Merge conflict in fs/ext4/mballoc.c
Merging quilt/device-mapper
Merging embedded/master
Merging firmware/master
Merging pcmcia/master
CONFLICT (content): Merge conflict in drivers/net/pcmcia/smc91c92_cs.c
Merging battery/master
Merging leds/for-mm
Merging backlight/for-mm
Merging mmc/mmc-next
Merging kgdb/kgdb-next
CONFLICT (content): Merge conflict in drivers/char/sysrq.c
Merging slab/for-next
Merging uclinux/for-next
Merging md/for-next
Merging mfd/for-next
CONFLICT (content): Merge conflict in drivers/mfd/sh_mobile_sdhi.c
Merging hdlc/hdlc-next
Merging drm/drm-next
CONFLICT (content): Merge conflict in drivers/gpu/drm/drm_gem.c
CONFLICT (content): Merge conflict in drivers/gpu/drm/radeon/atombios_crtc.c
CONFLICT (content): Merge conflict in drivers/gpu/drm/radeon/radeon_legacy_crtc.c
CONFLICT (content): Merge conflict in drivers/gpu/drm/radeon/radeon_mode.h
CONFLICT (content): Merge conflict in include/drm/drmP.h
Merging viafb/viafb-next
Merging voltage/for-next
Merging security-testing/next
Merging lblnet/master
Merging agp/agp-next
Merging uwb/for-upstream
Merging watchdog/master
Merging bdev/master
Merging dwmw2-iommu/master
Merging cputime/cputime
Merging osd/linux-next
Merging jc_docs/docs-next
Merging nommu/master
Merging trivial/for-next
Merging audit/for-next
Merging quilt/aoe
Merging suspend/linux-next
Merging bluetooth/master
Merging fsnotify/for-next
Merging irda/for-next
Merging catalin/for-next
CONFLICT (content): Merge conflict in arch/arm/include/asm/smp_plat.h
CONFLICT (content): Merge conflict in arch/arm/kernel/Makefile
CONFLICT (content): Merge conflict in arch/arm/mach-vexpress/ct-ca9x4.c
CONFLICT (content): Merge conflict in arch/arm/mm/flush.c
Merging alacrity/linux-next
CONFLICT (content): Merge conflict in include/linux/Kbuild
Merging i7core_edac/linux_next
CONFLICT (content): Merge conflict in MAINTAINERS
Merging i7300_edac/linux_next
Merging devicetree/next-devicetree
Merging spi/next-spi
Merging omap_dss2/for-next
Merging xen/upstream/xen
Merging rcu/rcu/next
CONFLICT (content): Merge conflict in include/linux/rcupdate.h
Merging tip/auto-latest
CONFLICT (content): Merge conflict in arch/x86/kernel/module.c
CONFLICT (content): Merge conflict in include/linux/percpu.h
CONFLICT (content): Merge conflict in net/core/dev.c
Merging edac-amd/for-next
Merging oprofile/for-next
Merging percpu/for-next
CONFLICT (content): Merge conflict in include/linux/percpu.h
CONFLICT (content): Merge conflict in mm/percpu.c
Merging workqueues/for-next
Merging sfi/sfi-test
Merging asm-generic/next
Merging drivers-x86/linux-next
Merging hwpoison/hwpoison
$ git reset --hard HEAD^
Merging refs/next/20100924/hwpoison
Merging sysctl/master
Merging quilt/driver-core
CONFLICT (content): Merge conflict in drivers/misc/Makefile
Merging quilt/tty
Merging quilt/usb
CONFLICT (content): Merge conflict in drivers/usb/gadget/rndis.c
CONFLICT (content): Merge conflict in drivers/usb/musb/musb_gadget.c
Merging staging-next/staging-next
CONFLICT (content): Merge conflict in arch/arm/plat-omap/devices.c
CONFLICT (content): Merge conflict in drivers/staging/Makefile
CONFLICT (content): Merge conflict in drivers/staging/batman-adv/hard-interface.c
CONFLICT (delete/modify): drivers/staging/mrst-touchscreen/Makefile deleted in HEAD and modified in staging-next/staging-next. Version staging-next/staging-next of drivers/staging/mrst-touchscreen/Makefile left in tree.
CONFLICT (delete/modify): drivers/staging/mrst-touchscreen/intel-mid-touch.c deleted in HEAD and modified in staging-next/staging-next. Version staging-next/staging-next of drivers/staging/mrst-touchscreen/intel-mid-touch.c left in tree.
CONFLICT (delete/modify): drivers/staging/ti-st/st.h deleted in staging-next/staging-next and modified in HEAD. Version HEAD of drivers/staging/ti-st/st.h left in tree.
CONFLICT (delete/modify): drivers/staging/ti-st/st_core.h deleted in staging-next/staging-next and modified in HEAD. Version HEAD of drivers/staging/ti-st/st_core.h left in tree.
CONFLICT (content): Merge conflict in drivers/staging/ti-st/st_kim.c
$ git rm -f drivers/staging/mrst-touchscreen/Makefile drivers/staging/mrst-touchscreen/intel-mid-touch.c
$ git rm -f drivers/staging/ti-st/st.h drivers/staging/ti-st/st_core.h
Applying: staging: ath6kl: Fixing the driver to use modified mmc_host structure
Merging slabh/slabh
Merging bkl-trivial/trivial
CONFLICT (content): Merge conflict in drivers/block/ataflop.c
CONFLICT (content): Merge conflict in drivers/char/pcmcia/cm4000_cs.c
CONFLICT (content): Merge conflict in drivers/char/pcmcia/cm4040_cs.c
CONFLICT (content): Merge conflict in drivers/mmc/card/block.c
Merging bkl-llseek/llseek
CONFLICT (content): Merge conflict in drivers/infiniband/hw/cxgb4/device.c
Merging bkl-vfs/vfs
CONFLICT (content): Merge conflict in fs/nilfs2/super.c
Merging bkl-config/config
CONFLICT (content): Merge conflict in fs/compat_ioctl.c
Merging irqflags/master
Merging cleancache/linux-next
CONFLICT (content): Merge conflict in include/linux/fs.h
CONFLICT (content): Merge conflict in mm/Kconfig
Merging scsi-post-merge/merge-base:master
[master 43c2967] Revert "hwmon: (pcf8591) Don't attempt to detect devices"
[master 6d7cac2] Revert "hwmon: (pcf8591) Register as a hwmon device"
#3 lore raw

2010/10/6 Stephen Rothwell <[email protected]>:

Quoted 11 lines · On Wed, 6 Oct 2010 08:25:24 +0200 Zimny Lech…
Quoted 8 lines

2010/10/6 Stephen Rothwell <[email protected]>:

Quoted 3 lines

Hi all,

Changes since 20101005:

It seems that you forgot to push to repo
http://git.kernel.org/?p=linux/kernel/git/next/linux-next.git;a=summary

No, its just that the mirroring was slow/blocked :-(

Ok, I pulled latest tree. Thanks.

I already reported this before.

/home/test/linux-2.6/mm/slub.c: In function 'kmem_cache_init':
/home/test/linux-2.6/mm/slub.c:3031:2: error: 'slab_memory_callback' undeclared (first use in this function) /home/test/linux-2.6/mm/slub.c:3031:2: note: each undeclared identifier is reported only once for each function it appears in make[2]: *** [mm/slub.o] Error 1
make[1]: *** [mm] Error 2
make: *** [sub-make] Error 2

any thoughts?

Quoted 6 lines

--
Cheers,
Stephen Rothwell                    [email protected]
http://www.canb.auug.org.au/~sfr/

Signature · 7 lines
Slawa!
N.P.S.

Les fleurs du mal unfold
Comme les fleurs du mal
Dark demons of my soul
Un amour fatal
#4 lore raw
Quoted 18 lines · Zimny Lech
Quoted 4 lines
Quoted 2 lines

It seems that you forgot to push to repo
http://git.kernel.org/?p=linux/kernel/git/next/linux-next.git;a=summary

No, its just that the mirroring was slow/blocked :-(

Ok, I pulled latest tree. Thanks.

I already reported this before.

/home/test/linux-2.6/mm/slub.c: In function 'kmem_cache_init':
/home/test/linux-2.6/mm/slub.c:3031:2: error: 'slab_memory_callback' undeclared (first use in this function) /home/test/linux-2.6/mm/slub.c:3031:2: note: each undeclared identifier is reported only once for each function it appears in make[2]: *** [mm/slub.o] Error 1
make[1]: *** [mm] Error 2
make: *** [sub-make] Error 2

Quoted 1 line

any thoughts?

Subject: slub: hotplug_memory_notifier not useable for !CONFIG_MEMORY_HOTPLUG

Add #ifdef to resolve the situation.

---
 mm/slub.c |    2 ++
 1 file changed, 2 insertions(+)
mm/slub.c +2 -0
Index: linux-2.6/mm/slub.c
===================================================================
@@ -3028,7 +3028,9 @@ void __init kmem_cache_init(void)
 		sizeof(struct kmem_cache_node),
 		0, SLAB_HWCACHE_ALIGN | SLAB_PANIC, NULL);
 
+#ifdef CONFIG_MEMORY_HOTPLUG
 	hotplug_memory_notifier(slab_memory_callback, SLAB_CALLBACK_PRI);
+#endif
 
 	/* Able to allocate the per node structures */
 	slab_state = PARTIAL;
#10 lore raw
In reply to Stephen Rothwell

2010/10/6 Stephen Rothwell <[email protected]>:

Quoted 3 lines

Hi all,

Changes since 20101005:

This looks interesting

LD [M] sound/oss/sound.o
make[3]: *** No rule to make target /etc/sound/dsp001.ld', needed by sound/oss/pss_boot.h'. Stop.
make[2]: *** [sound/oss] Error 2
make[1]: *** [sound] Error 2
make: *** [sub-make] Error 2

Who maintains an old OSS?

I believe that this script is wrong again ;) scripts/get_maintainer.pl -f sound/oss/soundcard.c Jaroslav Kysela ..
Takashi Iwai ..
Arnd Bergmann ..
Tejun Heo ..
Dan Carpenter ..
alsa-devel ..
linux-kernel ..

Signature · 7 lines
Slawa!
N.P.S.

Les fleurs du mal unfold
Comme les fleurs du mal
Dark demons of my soul
Un amour fatal
#5 lore raw
In reply to Christoph Lameter
Quoted 38 lines · Christoph Lameter
Quoted 18 lines · Zimny Lech
Quoted 4 lines
Quoted 2 lines

It seems that you forgot to push to repo
http://git.kernel.org/?p=linux/kernel/git/next/linux-next.git;a=summary

No, its just that the mirroring was slow/blocked :-(

Ok, I pulled latest tree. Thanks.

I already reported this before.

/home/test/linux-2.6/mm/slub.c: In function 'kmem_cache_init':
/home/test/linux-2.6/mm/slub.c:3031:2: error: 'slab_memory_callback' undeclared (first use in this function) /home/test/linux-2.6/mm/slub.c:3031:2: note: each undeclared identifier is reported only once for each function it appears in make[2]: *** [mm/slub.o] Error 1
make[1]: *** [mm] Error 2
make: *** [sub-make] Error 2

Quoted 1 line

any thoughts?

Subject: slub: hotplug_memory_notifier not useable for !CONFIG_MEMORY_HOTPLUG

Add #ifdef to resolve the situation.

---
  mm/slub.c |    2 ++
  1 file changed, 2 insertions(+)

Index: linux-2.6/mm/slub.c
===================================================================

mm/slub.c void __init kmem_cache_init(void) · line 3036

Quoted 9 lines
mm/slub.c +2 -0
@@ -3028,7 +3028,9 @@ void __init kmem_cache_init(void)
  		sizeof(struct kmem_cache_node),
  		0, SLAB_HWCACHE_ALIGN | SLAB_PANIC, NULL);
 
+#ifdef CONFIG_MEMORY_HOTPLUG
  	hotplug_memory_notifier(slab_memory_callback, SLAB_CALLBACK_PRI);
+#endif
 
  	/* Able to allocate the per node structures */
  	slab_state = PARTIAL;

You already acked my patch to fix it:

http://lkml.org/lkml/2010/10/6/194

Pekka

#9 lore raw
In reply to Christoph Lameter

2010/10/6 Christoph Lameter <[email protected]>:

Quoted 20 lines · Zimny Lech
Quoted 19 lines
Quoted 5 lines
Quoted 3 lines

It seems that you forgot to push to repo
http://git.kernel.org/?p=linux/kernel/git/next/linux-next.git;a=summary

No, its just that the mirroring was slow/blocked :-(

Ok, I pulled latest tree. Thanks.

I already reported this before.

/home/test/linux-2.6/mm/slub.c: In function 'kmem_cache_init':
/home/test/linux-2.6/mm/slub.c:3031:2: error: 'slab_memory_callback' undeclared (first use in this function) /home/test/linux-2.6/mm/slub.c:3031:2: note: each undeclared identifier is reported only once for each function it appears in make[2]: *** [mm/slub.o] Error 1
make[1]: *** [mm] Error 2
make: *** [sub-make] Error 2

Quoted 8 lines
Quoted 1 line

any thoughts?

Subject: slub: hotplug_memory_notifier not useable for !CONFIG_MEMORY_HOTPLUG

Add #ifdef to resolve the situation.

Thanks for the quick reply :)

I'll check it later or in next -next

Quoted 20 lines

---
 mm/slub.c |    2 ++

 1 file changed, 2 insertions(+)

Index: linux-2.6/mm/slub.c
===================================================================

mm/slub.c 2010-10-06 13:10:25.000000000 -0500 renamed from mm/slub.c    2010-10-06 13:10:00.000000000 -0500 +2 -0
@@ -3028,7 +3028,9 @@ void __init kmem_cache_init(void)
                sizeof(struct kmem_cache_node),
                0, SLAB_HWCACHE_ALIGN | SLAB_PANIC, NULL);
 
+#ifdef CONFIG_MEMORY_HOTPLUG
        hotplug_memory_notifier(slab_memory_callback, SLAB_CALLBACK_PRI);
+#endif
 
        /* Able to allocate the per node structures */
        slab_state = PARTIAL;
Signature · 7 lines
Slawa!
N.P.S.

Les fleurs du mal unfold
Comme les fleurs du mal
Dark demons of my soul
Un amour fatal
#11 lore raw
In reply to Stephen Rothwell

2010/10/6 Stephen Rothwell <[email protected]>:

Quoted 3 lines

Hi all,

Changes since 20101005:

It looka like a bug or a beetle or something like that

/home/test/linux-2.6/fs/nfs/nfsroot.c: In function 'nfs_root_debug':
/home/test/linux-2.6/fs/nfs/nfsroot.c:110:2: error: 'nfs_debug' undeclared (first use in this function) /home/test/linux-2.6/fs/nfs/nfsroot.c:110:2: note: each undeclared identifier is reported only once for each function it appears in make[3]: *** [fs/nfs/nfsroot.o] Error 1
make[2]: *** [fs/nfs] Error 2
make[1]: *** [fs] Error 2
make: *** [sub-make] Error 2

Signature · 7 lines
Slawa!
N.P.S.

Les fleurs du mal unfold
Comme les fleurs du mal
Dark demons of my soul
Un amour fatal
#8 lore raw
Quoted 11 lines · Pekka Enberg
Quoted 7 lines · Christoph Lameter
Quoted 3 lines · Pekka Enberg

You already acked my patch to fix it:

http://lkml.org/lkml/2010/10/6/194

That is a different issue.

It's the exact same build error and hotplug_memory_notifier() works just fine on !CONFIG_MEMORY_HOTPLUG.

Ahh. I see hotplug_memory_notifier is a macro and the argument just vanished for !CONFIG_MEMORY_HOTPLUG. You are right.

#12 lore raw
In reply to Zimny Lech
Quoted 7 lines · Zimny Lech

2010/10/6 Stephen Rothwell <[email protected]>:

Quoted 3 lines

Hi all,

Changes since 20101005:

It looka like a bug or a beetle or something like that

Quoted 9 lines

/home/test/linux-2.6/fs/nfs/nfsroot.c: In function 'nfs_root_debug':
/home/test/linux-2.6/fs/nfs/nfsroot.c:110:2: error: 'nfs_debug' undeclared (first use in this function) /home/test/linux-2.6/fs/nfs/nfsroot.c:110:2: note: each undeclared identifier is reported only once for each function it appears in make[3]: *** [fs/nfs/nfsroot.o] Error 1
make[2]: *** [fs/nfs] Error 2
make[1]: *** [fs] Error 2
make: *** [sub-make] Error 2

This build bug has now been pushed upstream and triggers rather easily. Trond?

Thanks,

Ingo

#13 lore raw
Quoted 19 lines · Ingo Molnar
Quoted 7 lines · Zimny Lech

2010/10/6 Stephen Rothwell <[email protected]>:

Quoted 3 lines

Hi all,

Changes since 20101005:

It looka like a bug or a beetle or something like that

Quoted 9 lines

/home/test/linux-2.6/fs/nfs/nfsroot.c: In function 'nfs_root_debug':
/home/test/linux-2.6/fs/nfs/nfsroot.c:110:2: error: 'nfs_debug' undeclared (first use in this function) /home/test/linux-2.6/fs/nfs/nfsroot.c:110:2: note: each undeclared identifier is reported only once for each function it appears in make[3]: *** [fs/nfs/nfsroot.o] Error 1
make[2]: *** [fs/nfs] Error 2
make[1]: *** [fs] Error 2
make: *** [sub-make] Error 2

Quoted 5 lines

This build bug has now been pushed upstream and triggers rather easily. Trond?

Thanks,

Ingo

Grrr.... Chuck, I forwarded this report to you almost 3 weeks ago. Anyhow, does the following fix the bug?

Cheers
Trond

----------------------------------------------------------------------------------------
NFS: Fix a compile issue in nfs_root

From: Trond Myklebust <[email protected]>

Stephen Rothwell reports:

Quoted 9 lines

/home/test/linux-2.6/fs/nfs/nfsroot.c: In function 'nfs_root_debug':
/home/test/linux-2.6/fs/nfs/nfsroot.c:110:2: error: 'nfs_debug' undeclared (first use in this function) /home/test/linux-2.6/fs/nfs/nfsroot.c:110:2: note: each undeclared identifier is reported only once for each function it appears in make[3]: *** [fs/nfs/nfsroot.o] Error 1
make[2]: *** [fs/nfs] Error 2
make[1]: *** [fs] Error 2
make: *** [sub-make] Error 2

Which is caused by commit 306a075362a288683f6346185f97dd0e06df19da (NFS: Allow NFSROOT debugging messages to be enabled dynamically)

Fix is to disable this code when RPC_DEBUG is disabled.

---

 fs/nfs/nfsroot.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
fs/nfs/nfsroot.c +2 -0
index 460df36..903908a 100644
@@ -101,6 +101,7 @@ static char nfs_export_path[NFS_MAXPATHLEN + 1] __initdata = "";
 /* server:export path string passed to super.c */
 static char nfs_root_device[NFS_MAXPATHLEN + 1] __initdata = "";
 
+#ifdef RPC_DEBUG
 /*
  * When the "nfsrootdebug" kernel command line option is specified,
  * enable debugging messages for NFSROOT.
@@ -112,6 +113,7 @@ static int __init nfs_root_debug(char *__unused)
 }
 
 __setup("nfsrootdebug", nfs_root_debug);
+#endif
 
 /*
  *  Parse NFS server and directory information passed on the kernel

--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

#14 lore raw
Quoted 1 line · Trond Myklebust

Anyhow, does the following fix the bug?

Thanks, trying it.

Quoted 12 lines

Stephen Rothwell reports:

Quoted 9 lines

/home/test/linux-2.6/fs/nfs/nfsroot.c: In function 'nfs_root_debug':
/home/test/linux-2.6/fs/nfs/nfsroot.c:110:2: error: 'nfs_debug' undeclared (first use in this function) /home/test/linux-2.6/fs/nfs/nfsroot.c:110:2: note: each undeclared identifier is reported only once for each function it appears in make[3]: *** [fs/nfs/nfsroot.o] Error 1
make[2]: *** [fs/nfs] Error 2
make[1]: *** [fs] Error 2
make: *** [sub-make] Error 2

Quoted 6 lines

Which is caused by commit 306a075362a288683f6346185f97dd0e06df19da (NFS: Allow NFSROOT debugging messages to be enabled dynamically)

Fix is to disable this code when RPC_DEBUG is disabled.

The commit also needs this tag:

Thanks,

Ingo