Skip to contentSkip to conversation

linux 3.4.2 fails to compile with patch

DISCUSSION dE . 3 participants 4 messages Sep 14, 2012 – Sep 17, 2012 1 message not in the archive

lore
Share & tools
lore

dE .

author
#0 lore raw

Hello again :)

I downloaded the recent patches for 3.2 to 3.5 kernels, and applied it to my 3.4.2 kernel. It results in the following --

CC fs/fs-writeback.o
fs/fs-writeback.c: In function 'generic_writeback_sb_inodes':
fs/fs-writeback.c:560:6: error: request for member 'nr_to_write' in something not a structure or union fs/fs-writeback.c:561:6: error: request for member 'pages_skipped' in something not a structure or union fs/fs-writeback.c:563:3: warning: passing argument 3 of 'writeback_single_inode' from incompatible pointer type [enabled by default] fs/fs-writeback.c:344:1: note: expected 'struct writeback_control *' but argument is of type 'struct writeback_control **' fs/fs-writeback.c:565:38: error: request for member 'nr_to_write' in something not a structure or union fs/fs-writeback.c:566:29: error: request for member 'nr_to_write' in something not a structure or union fs/fs-writeback.c:569:10: error: request for member 'pages_skipped' in something not a structure or union make[1]: *** [fs/fs-writeback.o] Error 1
make: *** [fs] Error 2

#1 lore raw
Quoted 16 lines · dE .

Hello again :)

I downloaded the recent patches for 3.2 to 3.5 kernels, and applied it to my 3.4.2 kernel. It results in the following --

CC fs/fs-writeback.o
fs/fs-writeback.c: In function 'generic_writeback_sb_inodes':
fs/fs-writeback.c:560:6: error: request for member 'nr_to_write' in something not a structure or union
fs/fs-writeback.c:561:6: error: request for member 'pages_skipped' in something not a structure or union
fs/fs-writeback.c:563:3: warning: passing argument 3 of 'writeback_single_inode' from incompatible pointer type [enabled by default]
fs/fs-writeback.c:344:1: note: expected 'struct writeback_control *' but

Quoted 11 lines

argument is of type 'struct writeback_control **' fs/fs-writeback.c:565:38: error: request for member 'nr_to_write' in something not a structure or union fs/fs-writeback.c:566:29: error: request for member 'nr_to_write' in something not a structure or union fs/fs-writeback.c:569:10: error: request for member 'pages_skipped' in something not a structure or union
make[1]: *** [fs/fs-writeback.o] Error 1
make: *** [fs] Error 2
--
To unsubscribe from this list: send the line "unsubscribe

reiserfs-devel"

Quoted 3 lines

in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Hello,
This is using the v3.5.3 kernel.
Here are my full build logs:
https://build.opensuse.org/package/rawlog?arch=i586&package=kernel-reiser4&project=home%3Adoiggl&repository=openSUSE_12.2
https://build.opensuse.org/package/rawlog?arch=x86_64&package=kernel-reiser4&project=home%3Adoiggl&repository=openSUSE_12.2

Here is the specfile I used for the build:
https://build.opensuse.org/package/view_file?file=kernel-reiser4.spec&package=kernel-reiser4&project=home%3Adoiggl&rev=a8836074c0847694a4d174755184ed35

Cheers Glenn

A message that is not in the archive (sent off-list or not yet received): 1502246.NqeFiNrX3o@intelfx-laptop

author
#3 lore raw
Quoted 24 lines · Ivan Shapovalov
Quoted 15 lines · On Friday 14 September 2012 09:50:03 dE . wrote:

Hello again :)

I downloaded the recent patches for 3.2 to 3.5 kernels, and applied it to my 3.4.2 kernel. It results in the following --

CC fs/fs-writeback.o
fs/fs-writeback.c: In function 'generic_writeback_sb_inodes':
fs/fs-writeback.c:560:6: error: request for member 'nr_to_write' in something not a structure or union
fs/fs-writeback.c:561:6: error: request for member 'pages_skipped' in something not a structure or union
fs/fs-writeback.c:563:3: warning: passing argument 3 of 'writeback_single_inode' from incompatible pointer type [enabled by default] fs/fs-writeback.c:344:1: note: expected 'struct writeback_control *' but argument is of type 'struct writeback_control **'

Quoted 8 lines

fs/fs-writeback.c:565:38: error: request for member 'nr_to_write' in something not a structure or union fs/fs-writeback.c:566:29: error: request for member 'nr_to_write' in something not a structure or union fs/fs-writeback.c:569:10: error: request for member 'pages_skipped' in something not a structure or union
make[1]: *** [fs/fs-writeback.o] Error 1
make: *** [fs] Error 2

Quoted 13 lines

Hello,

The vfs layer had undergone some changes between versions 3.4 and 3.5, so a patch against 3.5 won't work when applied to 3.4 or earlier versions. Instead, please, try the attached patch.

Regards,
Ivan Shapovalov.

Quoted 4 lines

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

Thankyou! It works. This should be added to the SF project.

I'll test reiser4 with my root partition (without compression).

#4 lore raw
Quoted 37 lines · On Monday 17 September 2012 10:20:46 dE . wrote:
Quoted 36 lines · Ivan Shapovalov
Quoted 16 lines · On Friday 14 September 2012 09:50:03 dE . wrote:

Hello again :)

I downloaded the recent patches for 3.2 to 3.5 kernels, and applied it to my 3.4.2 kernel. It results in the following --

CC fs/fs-writeback.o
fs/fs-writeback.c: In function 'generic_writeback_sb_inodes':
fs/fs-writeback.c:560:6: error: request for member 'nr_to_write' in something not a structure or union
fs/fs-writeback.c:561:6: error: request for member 'pages_skipped' in something not a structure or union
fs/fs-writeback.c:563:3: warning: passing argument 3 of 'writeback_single_inode' from incompatible pointer type [enabled by default] fs/fs-writeback.c:344:1: note: expected 'struct writeback_control *' but argument is of type 'struct writeback_control **'

Quoted 8 lines

fs/fs-writeback.c:565:38: error: request for member 'nr_to_write' in something not a structure or union fs/fs-writeback.c:566:29: error: request for member 'nr_to_write' in something not a structure or union fs/fs-writeback.c:569:10: error: request for member 'pages_skipped' in something not a structure or union
make[1]: *** [fs/fs-writeback.o] Error 1
make: *** [fs] Error 2

Hello,

The vfs layer had undergone some changes between versions 3.4 and 3.5, so a
patch against 3.5 won't work when applied to 3.4 or earlier versions. Instead, please, try the attached patch.

Regards,
Ivan Shapovalov.

Quoted 6 lines
Quoted 4 lines
Quoted 4 lines

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

Thankyou! It works. This should be added to the SF project.

Yes; especially since 3.4 is a long-term support version...

// Edward, could you please add that patch to SF? It has your final changes applied.

Quoted 2 lines

I'll test reiser4 with my root partition (without compression).