FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu Kernel Team

 
 
LinkBack Thread Tools
 
Old 02-10-2009, 12:50 AM
Zeyan Lu
 
Default Can not build MSS subsystem

Hi, all

Regarding: commit 18dabf473e15850c0dbc8ff13ac1e2806d542c15
change the file (include/asm-x86/scatterlist_32.h), up doing for struct
scatterlist->page changing to scatterlist->page_link and
include/linux/scatterlist.h

this actually breaks the MSS subsystem (drivers/mmc/mss/mmc_protocol.c)
which relies on the page struct. (drivers/mmc/mss/mmc_protocol.c:619).
Can anyone suggest a solution to fix it? As of 2.6.24, the MSS subsystem
cannot compile.

here is the make log
**********************************
root@rd-desktop:/home/intelmid/targets/for_kernel/fs/home/bydk/build/forMk#
make
CHK include/linux/version.h
CHK include/linux/utsrelease.h
CALL scripts/checksyscalls.sh
CHK include/linux/compile.h
CC drivers/mmc/mss/mmc_protocol.o
drivers/mmc/mss/mmc_protocol.c: In function ‘mmc_card_init’:
drivers/mmc/mss/mmc_protocol.c:619: error: ‘struct scatterlist’ has no
member named ‘page’
make[3]: *** [drivers/mmc/mss/mmc_protocol.o] Error 1
make[2]: *** [drivers/mmc/mss] Error 2
make[1]: *** [drivers/mmc] Error 2
make: *** [drivers] Error 2
********************************************

best regards & thanks in advance.
Ag

---------------------------------------------------------------------------------------------------
Confidentiality Notice: The information contained in this e-mail and any accompanying attachment(s)
is intended only for the use of the intended recipient and may be confidential and/or privileged of
Neusoft Corporation, its subsidiaries and/or its affiliates. If any reader of this communication is
not the intended recipient, unauthorized use, forwarding, printing, storing, disclosure or copying
is strictly prohibited, and may be unlawful.If you have received this communication in error,please
immediately notify the sender by return e-mail, and delete the original message and all copies from
your system. Thank you.
---------------------------------------------------------------------------------------------------


--
kernel-team mailing list
kernel-team@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/kernel-team
 
Old 02-11-2009, 02:08 PM
Andy Whitcroft
 
Default Can not build MSS subsystem

On Tue, Feb 10, 2009 at 09:50:42AM +0800, Zeyan Lu wrote:
> Hi, all
>
> Regarding: commit 18dabf473e15850c0dbc8ff13ac1e2806d542c15
> change the file (include/asm-x86/scatterlist_32.h), up doing for struct
> scatterlist->page changing to scatterlist->page_link and
> include/linux/scatterlist.h
>
> this actually breaks the MSS subsystem (drivers/mmc/mss/mmc_protocol.c)
> which relies on the page struct. (drivers/mmc/mss/mmc_protocol.c:619).
> Can anyone suggest a solution to fix it? As of 2.6.24, the MSS subsystem
> cannot compile.
>
> here is the make log
> **********************************
> root@rd-desktop:/home/intelmid/targets/for_kernel/fs/home/bydk/build/forMk#
> make
> CHK include/linux/version.h
> CHK include/linux/utsrelease.h
> CALL scripts/checksyscalls.sh
> CHK include/linux/compile.h
> CC drivers/mmc/mss/mmc_protocol.o
> drivers/mmc/mss/mmc_protocol.c: In function ‘mmc_card_init’:
> drivers/mmc/mss/mmc_protocol.c:619: error: ‘struct scatterlist’ has no
> member named ‘page’
> make[3]: *** [drivers/mmc/mss/mmc_protocol.o] Error 1
> make[2]: *** [drivers/mmc/mss] Error 2
> make[1]: *** [drivers/mmc] Error 2
> make: *** [drivers] Error 2

That does not appear to be enabled in our distro builds. So I guess
its not been tested here. The referenced commits change looks pretty
simple overall. I would expect that you would need to change all read
references to sg->page to sg_page(sg) and all write references to sg->page
to sg_set_page(sg, ...) etc.

I have tried to do that in the attached patch which makes it compile and
looks ok to my eye. I have no hardware to test it on so perhaps you
could give it a go and report back here.

-apw
 

Thread Tools




All times are GMT. The time now is 04:40 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org