From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-io0-f199.google.com (mail-io0-f199.google.com [209.85.223.199]) by kanga.kvack.org (Postfix) with ESMTP id 721C06B0589 for ; Tue, 1 Aug 2017 22:28:50 -0400 (EDT) Received: by mail-io0-f199.google.com with SMTP id o9so29351555iod.13 for ; Tue, 01 Aug 2017 19:28:50 -0700 (PDT) Received: from NAM01-BY2-obe.outbound.protection.outlook.com (mail-by2nam01on0095.outbound.protection.outlook.com. [104.47.34.95]) by mx.google.com with ESMTPS id d1si32122922ioj.267.2017.08.01.19.28.49 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 01 Aug 2017 19:28:49 -0700 (PDT) From: "Zi Yan" Subject: Re: [mmotm:master 50/189] include/linux/swapops.h:220:9: error: implicit declaration of function '__pmd' Date: Tue, 01 Aug 2017 22:28:40 -0400 Message-ID: <3B5D0C56-FCBC-4911-9BE8-9CA895CBE49F@cs.rutgers.edu> In-Reply-To: <20170801143853.f210976a43d009dba1eeb0db@linux-foundation.org> References: <201708011949.LtRajyO5%fengguang.wu@intel.com> <20170801143853.f210976a43d009dba1eeb0db@linux-foundation.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=_MailMate_3649D1C7-04B9-4810-B4B8-303C371ACD27_="; micalg=pgp-sha512; protocol="application/pgp-signature" Sender: owner-linux-mm@kvack.org List-ID: To: Sam Ravnborg Cc: kbuild test robot , kbuild-all@01.org, Andrew Morton , Johannes Weiner , Linux Memory Management List , sparclinux@vger.kernel.org This is an OpenPGP/MIME signed message (RFC 3156 and 4880). --=_MailMate_3649D1C7-04B9-4810-B4B8-303C371ACD27_= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 1 Aug 2017, at 17:38, Andrew Morton wrote: > On Tue, 1 Aug 2017 19:57:54 +0800 kbuild test robot wrote: > >> tree: git://git.cmpxchg.org/linux-mmotm.git master >> head: 7961d18ba492e06ad240d37a5502c418b5f0a928 >> commit: 25faf0ef110322719330fcadf4fe541528bacd4d [50/189] mm-thp-enabl= e-thp-migration-in-generic-path-fix >> config: sparc-defconfig (attached as .config) >> compiler: sparc-linux-gcc (GCC) 6.2.0 >> reproduce: >> wget https://na01.safelinks.protection.outlook.com/?url=3Dhttp= s%3A%2F%2Fraw.githubusercontent.com%2F01org%2Flkp-tests%2Fmaster%2Fsbin%2= Fmake.cross&data=3D02%7C01%7Czi.yan%40cs.rutgers.edu%7C30301965f5964988c1= 8f08d4d925b5f4%7Cb92d2b234d35447093ff69aca6632ffe%7C1%7C0%7C6363722033712= 43236&sdata=3DQEB2C6y9u7ZfV4Ej%2F8M0BLMUi%2FI2XFVHStMPvPeyiFA%3D&reserved= =3D0 -O ~/bin/make.cross >> chmod +x ~/bin/make.cross >> git checkout 25faf0ef110322719330fcadf4fe541528bacd4d >> # save the attached .config to linux build tree >> make.cross ARCH=3Dsparc >> >> All errors (new ones prefixed by >>): >> >> In file included from fs/proc/task_mmu.c:15:0: >> include/linux/swapops.h: In function 'swp_entry_to_pmd': >>>> include/linux/swapops.h:220:9: error: implicit declaration of functi= on '__pmd' [-Werror=3Dimplicit-function-declaration] >> return __pmd(0); >> ^~~~~ >>>> include/linux/swapops.h:220:9: error: incompatible types when return= ing type 'int' but 'pmd_t {aka struct }' was expected >> return __pmd(0); >> ^~~~~~~~ >> cc1: some warnings being treated as errors >> >> vim +/__pmd +220 include/linux/swapops.h >> >> 217 = >> 218 static inline pmd_t swp_entry_to_pmd(swp_entry_t entry) >> 219 { >>> 220 return __pmd(0); >> 221 } >> 222 = >> > > Seems that sparc32 forgot to implement __pmd()? Hi Sam, I saw __pmd() was deleted at commit 6e6e41879: sparc32: fix build with ST= RICT_MM_TYPECHECKS. It was commented out at least since 2008, before commit a439fe51a. Is there any way to bring it back? Since __pmd() can help us work around = a GCC zero initializer bug. Thanks. =E2=80=94 Best Regards, Yan Zi --=_MailMate_3649D1C7-04B9-4810-B4B8-303C371ACD27_= Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQEcBAEBCgAGBQJZgTjZAAoJEEGLLxGcTqbMHWkH/2Ton+66x+RRZjfL9DXsKKPI t/+ydUusa5TrKZ41qIP9UiTIeaAaPzEvbqxWv3r7aLWrhtD6Bvp9yxmo+jY6K9ke Z0FkoLQ1FnOpvZSkZnv2R0CmrHwprd0DwPJXPo+JPUpLp2+pnkgBNcFFiAVkBhXK AOLA8sKF6QUWYLrTM7VfrCtt2+uPVkT+MB8ce+MxH6ofVBg4CsG4OzUroaR1+CT9 5cZDDSMleKNnnaXwwMEv04Ksk8NISSZyBBtZwK5vSgET5taJEWr/c5Z2jPYUxws3 aJiTptDsAAA2LQp/bejB8udOEmQUph4fXlXCLzyNGUR0PxyPwrSWaHosAIv3Vao= =i3TQ -----END PGP SIGNATURE----- --=_MailMate_3649D1C7-04B9-4810-B4B8-303C371ACD27_=-- -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org