From: Chen Baozi Subject: Re: Duplicated arch_gnttab_init breaks the arm64 kernel build Date: Wed, 13 Aug 2014 10:15:35 +0800 Message-ID: <7C4B0DE0-B96F-4FBD-A549-FA5F36FDAFEE@gmail.com> References: <0B60D476-C0E4-4AE8-9FF9-C16F65352C33@gmail.com> Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Content-Type: multipart/mixed; boundary="===============4263916145782276113==" Return-path: In-Reply-To: <0B60D476-C0E4-4AE8-9FF9-C16F65352C33@gmail.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: David Vrabel , Konrad Rzeszutek Wilk Cc: Grall Julien , Campbell Ian , List Developer Xen List-Id: xen-devel@lists.xenproject.org --===============4263916145782276113== Content-Type: multipart/signed; boundary="Apple-Mail=_BAE885F2-24F8-44A6-96CD-95FAD4E76871"; protocol="application/pgp-signature"; micalg=pgp-sha512 --Apple-Mail=_BAE885F2-24F8-44A6-96CD-95FAD4E76871 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 On Aug 13, 2014, at 10:04, Chen Baozi wrote: > Hi David & Konrad,=20 >=20 > The current upstream kernel fails to build with Xen support because of = duplicated > arch_gnttab_init() definition: >=20 > CC arch/arm64/xen/../../arm/xen/grant-table.o > arch/arm64/xen/../../arm/xen/grant-table.c:53:5: error: conflicting = types for =91arch_gnttab_init=92 > int arch_gnttab_init(unsigned long nr_shared, unsigned long nr_status) > ^ > arch/arm64/xen/../../arm/xen/grant-table.c:48:5: note: previous = definition of =91arch_gnttab_init=92 was here > int arch_gnttab_init(unsigned long nr_shared) > ^ > make[1]: *** [arch/arm64/xen/../../arm/xen/grant-table.o] Error 1 > make: *** [arch/arm64/xen] Error 2 >=20 > I looked through the current upstream kernel tree. It looks like = arch_gnttab_init() > is still be called in the older fashion (int arch_gnttab_init(unsigned = long nr_shared)). > So I doubt if the b7dd0e3 at this stage of time? According to $ git grep arch_gnttab_init arch/arm/xen/grant-table.c:int arch_gnttab_init(unsigned long nr_shared) arch/arm/xen/grant-table.c:int arch_gnttab_init(unsigned long nr_shared, = unsigned long nr_status) arch/x86/xen/grant-table.c:int arch_gnttab_init(unsigned long nr_shared) drivers/xen/grant-table.c: ret =3D = arch_gnttab_init(max_nr_grant_frames); include/xen/grant_table.h:int arch_gnttab_init(unsigned long nr_shared); Is it appropriate if just making a patch to delete the arch_gnttab_init(unsigned long nr_shared, unsigned long nr_status) in arch/arm/xen/grant-table.c? >=20 > Cheers, >=20 > Baozi --Apple-Mail=_BAE885F2-24F8-44A6-96CD-95FAD4E76871 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQIcBAEBCgAGBQJT6spHAAoJEHXZCwEKhFERPGgQAJEeQz62YN0MHbxwChTdqU3P ubGLuOolYNzmmQeNkTjvbvVSsQHv3vQXu765/na7oBFwAUUO5uWNqEOcI6Pq1h/V rKIbtmmXsx2iSQqedU81vxApPwTGnB7AVnR1XKwx+9mqkTRhwBymLFHK+LHQO3kj oJVAUALiiLVo0ttLgM6IaYMyhe5z1V5WC4RmwpyNfYzy2oH/u3lTRZjycOoBijfx h3LPblS5t1LLKX0OMkv0Yk+J8nLMiMxWxtzsrRtttm5fJo9UCut5ehopisEdqlOS 2Voxu4yMVP0bGKhrIr8HP/YPtOHTBhCM7C0gmpl5UySd261ayXpnEabMB8AJxLiM CYALSNG6eckd+FnLB2BzcXOuC+LVBaSfzbMxD6z+oqU4yNfTlQFg70rlnIWrudvE spK68JKPZdmVnik8eLXljFxhAKIhN3TExnuAc0d8OqXhjXPU2JkLcFDT2lUbAqcs iWKSzkqUpaioTH3uHeAilITKVUNenw+9q8EO6g8ZEKgm8tALo7udYwUliFeLO8B4 IyG5anjw5vwAfb7U1W6qyJcLcU7vDqbdIpzzaReTqfjGo3pBYH0wJpaKYrAeu7EE TYPJhU+cqNtAaOxQlBbjgs9dtQ6n1NpKFwfkCmpsffj+cfKB3PPHPc+poc6utHsl skAqRGYMeeCOFdbCthZ+ =mjAP -----END PGP SIGNATURE----- --Apple-Mail=_BAE885F2-24F8-44A6-96CD-95FAD4E76871-- --===============4263916145782276113== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel --===============4263916145782276113==--