From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 54A2CC54FD0 for ; Thu, 23 Apr 2020 14:20:10 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id F0E7E2076C for ; Thu, 23 Apr 2020 14:20:09 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org F0E7E2076C Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.ibm.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 8759D8E0005; Thu, 23 Apr 2020 10:20:09 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 826C38E0003; Thu, 23 Apr 2020 10:20:09 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 73B7F8E0005; Thu, 23 Apr 2020 10:20:09 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0198.hostedemail.com [216.40.44.198]) by kanga.kvack.org (Postfix) with ESMTP id 5A1C98E0003 for ; Thu, 23 Apr 2020 10:20:09 -0400 (EDT) Received: from smtpin27.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id 149E28248047 for ; Thu, 23 Apr 2020 14:20:09 +0000 (UTC) X-FDA: 76739329338.27.mind51_588c40baa7c24 X-HE-Tag: mind51_588c40baa7c24 X-Filterd-Recvd-Size: 8730 Received: from mx0a-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by imf27.hostedemail.com (Postfix) with ESMTP for ; Thu, 23 Apr 2020 14:20:08 +0000 (UTC) Received: from pps.filterd (m0098421.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 03NE2f3E059825 for ; Thu, 23 Apr 2020 10:20:07 -0400 Received: from e06smtp02.uk.ibm.com (e06smtp02.uk.ibm.com [195.75.94.98]) by mx0a-001b2d01.pphosted.com with ESMTP id 30jrj6ub0r-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 23 Apr 2020 10:20:07 -0400 Received: from localhost by e06smtp02.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 23 Apr 2020 15:19:28 +0100 Received: from b06cxnps3075.portsmouth.uk.ibm.com (9.149.109.195) by e06smtp02.uk.ibm.com (192.168.101.132) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Thu, 23 Apr 2020 15:19:26 +0100 Received: from d06av23.portsmouth.uk.ibm.com (d06av23.portsmouth.uk.ibm.com [9.149.105.59]) by b06cxnps3075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 03NEIlf863570068 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 23 Apr 2020 14:18:47 GMT Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id D7D6FA4053; Thu, 23 Apr 2020 14:18:47 +0000 (GMT) Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 59F04A4040; Thu, 23 Apr 2020 14:18:47 +0000 (GMT) Received: from linux.ibm.com (unknown [9.148.202.51]) by d06av23.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Thu, 23 Apr 2020 14:18:47 +0000 (GMT) Date: Thu, 23 Apr 2020 17:18:45 +0300 From: Mike Rapoport To: kbuild test robot Cc: kbuild-all@lists.01.org, Andrew Morton , Linux Memory Management List Subject: Re: [linux-next:master 2867/3715] arch/powerpc/include/asm/book3s/32/pgtable.h:361:45: error: passing argument 1 of 'pud_offset' from incompatible pointer type References: <202004232158.ndFngIH7%lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <202004232158.ndFngIH7%lkp@intel.com> X-TM-AS-GCONF: 00 x-cbid: 20042314-0008-0000-0000-0000037610A5 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 20042314-0009-0000-0000-00004A97DDFE Message-Id: <20200423141845.GI13521@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138,18.0.676 definitions=2020-04-23_10:2020-04-23,2020-04-23 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 spamscore=0 malwarescore=0 mlxscore=0 lowpriorityscore=0 priorityscore=1501 adultscore=0 mlxlogscore=999 phishscore=0 suspectscore=0 clxscore=1015 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2003020000 definitions=main-2004230112 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Thu, Apr 23, 2020 at 09:50:03PM +0800, kbuild test robot wrote: > tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master > head: 39a314cd1168cbcb05ebcd973098c8f1440a3064 > commit: 0640b7608c394b849e21e4731c60a524e39b3202 [2867/3715] powerpc: add support for folded p4d page tables > config: powerpc-randconfig-a001-20200422 (attached as .config) > compiler: powerpc-linux-gcc (GCC) 9.3.0 > reproduce: > wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross > chmod +x ~/bin/make.cross > git checkout 0640b7608c394b849e21e4731c60a524e39b3202 > # save the attached .config to linux build tree > COMPILER_INSTALL_PATH=$HOME/0day GCC_VERSION=9.3.0 make.cross ARCH=powerpc > > If you fix the issue, kindly add following tag as appropriate > Reported-by: kbuild test robot Andrew, can you please add the following diff as a fixup for "powerpc: add support for folded p4d page tables" diff --git a/arch/powerpc/mm/kasan/kasan_init_32.c b/arch/powerpc/mm/kasan/kasan_init_32.c index cbcad369fcb2..c99aa8cbaac5 100644 --- a/arch/powerpc/mm/kasan/kasan_init_32.c +++ b/arch/powerpc/mm/kasan/kasan_init_32.c @@ -121,7 +121,7 @@ static void __init kasan_unmap_early_shadow_vmalloc(void) phys_addr_t pa = __pa(kasan_early_shadow_page); for (k_cur = k_start & PAGE_MASK; k_cur < k_end; k_cur += PAGE_SIZE) { - pmd_t *pmd = pmd_offset(pud_offset(pgd_offset_k(k_cur), k_cur), k_cur); + pmd_t *pmd = pmd_ptr_k(k_cur); pte_t *ptep = pte_offset_kernel(pmd, k_cur); if ((pte_val(*ptep) & PTE_RPN_MASK) != pa) > All error/warnings (new ones prefixed by >>): > > In file included from arch/powerpc/include/asm/book3s/pgtable.h:8, > from arch/powerpc/include/asm/pgtable.h:18, > from include/linux/kasan.h:15, > from arch/powerpc/mm/kasan/kasan_init_32.c:5: > arch/powerpc/mm/kasan/kasan_init_32.c: In function 'kasan_unmap_early_shadow_vmalloc': > >> arch/powerpc/include/asm/book3s/32/pgtable.h:361:45: error: passing argument 1 of 'pud_offset' from incompatible pointer type [-Werror=incompatible-pointer-types] > 361 | #define pgd_offset(mm, address) ((mm)->pgd + pgd_index(address)) > | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ > | | > | pgd_t * {aka struct *} > >> arch/powerpc/include/asm/book3s/32/pgtable.h:357:31: note: in expansion of macro 'pgd_offset' > 357 | #define pgd_offset_k(address) pgd_offset(&init_mm, address) > | ^~~~~~~~~~ > >> arch/powerpc/mm/kasan/kasan_init_32.c:124:38: note: in expansion of macro 'pgd_offset_k' > 124 | pmd_t *pmd = pmd_offset(pud_offset(pgd_offset_k(k_cur), k_cur), k_cur); > | ^~~~~~~~~~~~ > In file included from include/asm-generic/pgtable-nopmd.h:7, > from arch/powerpc/include/asm/book3s/32/pgtable.h:5, > from arch/powerpc/include/asm/book3s/pgtable.h:8, > from arch/powerpc/include/asm/pgtable.h:18, > from include/linux/kasan.h:15, > from arch/powerpc/mm/kasan/kasan_init_32.c:5: > include/asm-generic/pgtable-nopud.h:45:40: note: expected 'p4d_t *' {aka 'struct *'} but argument is of type 'pgd_t *' {aka 'struct *'} > 45 | static inline pud_t *pud_offset(p4d_t *p4d, unsigned long address) > | ~~~~~~~^~~ > cc1: all warnings being treated as errors > > vim +/pud_offset +361 arch/powerpc/include/asm/book3s/32/pgtable.h > > 3dfcb315d81e66 Aneesh Kumar K.V 2015-12-01 350 > 3dfcb315d81e66 Aneesh Kumar K.V 2015-12-01 351 #define pmd_page_vaddr(pmd) \ > 32ea4c14999006 Christophe Leroy 2018-11-29 352 ((unsigned long)__va(pmd_val(pmd) & ~(PTE_TABLE_SIZE - 1))) > 3dfcb315d81e66 Aneesh Kumar K.V 2015-12-01 353 #define pmd_page(pmd) \ > 3dfcb315d81e66 Aneesh Kumar K.V 2015-12-01 354 pfn_to_page(pmd_val(pmd) >> PAGE_SHIFT) > 3dfcb315d81e66 Aneesh Kumar K.V 2015-12-01 355 > 3dfcb315d81e66 Aneesh Kumar K.V 2015-12-01 356 /* to find an entry in a kernel page-table-directory */ > 3dfcb315d81e66 Aneesh Kumar K.V 2015-12-01 @357 #define pgd_offset_k(address) pgd_offset(&init_mm, address) > 3dfcb315d81e66 Aneesh Kumar K.V 2015-12-01 358 > 3dfcb315d81e66 Aneesh Kumar K.V 2015-12-01 359 /* to find an entry in a page-table-directory */ > 3dfcb315d81e66 Aneesh Kumar K.V 2015-12-01 360 #define pgd_index(address) ((address) >> PGDIR_SHIFT) > 3dfcb315d81e66 Aneesh Kumar K.V 2015-12-01 @361 #define pgd_offset(mm, address) ((mm)->pgd + pgd_index(address)) > 3dfcb315d81e66 Aneesh Kumar K.V 2015-12-01 362 > > :::::: The code at line 361 was first introduced by commit > :::::: 3dfcb315d81e663bf70401de61940c1b4de2deea powerpc/mm: make a separate copy for book3s > > :::::: TO: Aneesh Kumar K.V > :::::: CC: Michael Ellerman > > --- > 0-DAY CI Kernel Test Service, Intel Corporation > https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org -- Sincerely yours, Mike.