Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp693588ybf; Wed, 26 Feb 2020 21:21:03 -0800 (PST) X-Google-Smtp-Source: APXvYqz0MgYwCTRxtL1BDw16eCp9ueRcpoETOmHRWL0a1KsPZp5DAZ1rz1OVWbDfD9kSHV7dTnO/ X-Received: by 2002:a05:6830:1296:: with SMTP id z22mr1907081otp.354.1582780863483; Wed, 26 Feb 2020 21:21:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582780863; cv=none; d=google.com; s=arc-20160816; b=PrDZud+0pI7J8vlk61aPWDWge2geW2m+4ag7V/LWgJU8vpdW9HhN2DyXO0ZNuE2weS 8XyFuHpLklZDRzXGq59l1ZQ4yy6TLblFTQfO7vdhBCAM1M9o7eeTCI+Uzd/jPLUYsibs I2nJ5SorZYoxDq0scJOGtE0CzYUe/vNzD0Sh737/fzKx5haBPiqrZVBeqVICNlbk2PDT 3uWf+iRM8DTXmNz+UJ0R5MyZH8JJRbRurBH+nGSq7bWflLEc5Pr3APcipxuIP3xatsqq kTmIt8HX4omlPkbP2rPVnXzKlAywD674XBTnx0P5o4p1261xw78ponE+w+NyOz48Kvfr nmYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=iRUomU+bV2SOpdsn8/iRmEqp1CEgdv1ytb+AACa2I0I=; b=IDrXnRei5adUF1OqQDsfWLskhrUe/QU0vQYAb2MlSsOa/neuYEAOLCRrRxloqCBAG5 U/afemyR9iGGoOCpNRftwzlVV6dHPTP3SRKQFbCqnOm7TWFanZ/dJBlr7kMTbNeWru5A TyKNJeFWb1kU1tWINcPWJSoPM3hh5WFfJDu06x1z4a+HXrjk1OfLezjSfWR51DnNk7/u VWtjcqhVJiIG2AuWZNcrH8apNeU1K9VAFB748Twcb497ILF8WUHdiq9Pz/YKB9TrFEzc 2v4ttFx0Sae1kQdZqFApDsiLoaXmhBf9d/hPjvySwGqV38G11Zdj69yJMGVozISzSX2t ObYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=c828E5gI; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v25si943192oth.274.2020.02.26.21.20.51; Wed, 26 Feb 2020 21:21:03 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=c828E5gI; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726418AbgB0FUh (ORCPT + 99 others); Thu, 27 Feb 2020 00:20:37 -0500 Received: from mail-wm1-f67.google.com ([209.85.128.67]:50487 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725769AbgB0FUh (ORCPT ); Thu, 27 Feb 2020 00:20:37 -0500 Received: by mail-wm1-f67.google.com with SMTP id a5so2040132wmb.0 for ; Wed, 26 Feb 2020 21:20:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=iRUomU+bV2SOpdsn8/iRmEqp1CEgdv1ytb+AACa2I0I=; b=c828E5gIXTNAiWYgr1MB+lkstnQjrPJ813k5XRVz+mgF0gwTkviaDg7XlYSGHACYny PWpHK0QGLiFiifN0fzw+ZYScLxuxCRCfm3i2o9/W5fz5UbNoWFkSylhjWrTpwTFM8oW3 9KKUbRd8dc0thUdzBlzwuTyjTkT54w7DDLb/20OJZbW1JTXQSefeisvOdBlm6WGr2vE/ qhTMhluCGTrIN7QGiWNLafbTbUYCNMyqsRNT6aSCFA32XpqC+30EvxuKKTSvcJ9QhErW 0ElvapIFllTlg6ArnqraKz+rlxN+cwbQJ4zO8lhCGz6w9fQqkVIgNVMLSKkNrS/T/w/X OQIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=iRUomU+bV2SOpdsn8/iRmEqp1CEgdv1ytb+AACa2I0I=; b=sYJjCKxjZBvAohmARHroKILZy8cCI2nF1IIzpTnfbT5EzfnQY2/VMddscabuHUW9Va 4wTorjv80MNnxt+9xmeIS4FvNwZ/5ICuxPHXy+orcnhYaye07/Svb7Rcnd/RtOfLeqAK JyQeW6l1maoyKtCOBcQHJvi1jTPe7JMsSuSz7w0ZWEX8U/nNVE1R/xt/pjgw/kVg5N4K jvk/4WgIgYlCqkw/J74Zglxd+K0MPzPr3V33hijsb21Bfm4h6svi/r1d+bfJmvc8ht2P 2YilOgN+2WkEEUjp0wv55yh4ibEHKUbozdJxVdnD3gzINCWq5Uh/HzIQR/qOfiuPRaJA 4mVg== X-Gm-Message-State: APjAAAWNSgXpkONFah31iiQwtkKK8/Yz5Dykz0XVwPi7O1mEkNW7vA8T n1IBda8hf9pDpEChT4OouFeoaHDHTMCRrvvvy2fET+Zz X-Received: by 2002:a1c:a505:: with SMTP id o5mr2825734wme.78.1582780834981; Wed, 26 Feb 2020 21:20:34 -0800 (PST) MIME-Version: 1.0 References: <20200227151143.6a6edaf9@canb.auug.org.au> In-Reply-To: <20200227151143.6a6edaf9@canb.auug.org.au> From: Arjun Roy Date: Wed, 26 Feb 2020 21:20:23 -0800 Message-ID: Subject: Re: linux-next: build failure after merge of the akpm tree To: Stephen Rothwell Cc: Andrew Morton , Linux Next Mailing List , Linux Kernel Mailing List , David Miller Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 26, 2020 at 8:11 PM Stephen Rothwell wrote: > > Hi all, > > After merging the akpm tree, today's linux-next build (sparc defconfig) > failed like this: > > In file included from include/linux/list.h:9:0, > from include/linux/smp.h:12, > from include/linux/kernel_stat.h:5, > from mm/memory.c:42: > mm/memory.c: In function 'insert_pages': > mm/memory.c:1523:41: error: implicit declaration of function 'pte_index'; did you mean 'page_index'? [-Werror=implicit-function-declaration] > remaining_pages_total, PTRS_PER_PTE - pte_index(addr)); > ^ > include/linux/kernel.h:842:40: note: in definition of macro '__typecheck' > (!!(sizeof((typeof(x) *)1 == (typeof(y) *)1))) > ^ > include/linux/kernel.h:866:24: note: in expansion of macro '__safe_cmp' > __builtin_choose_expr(__safe_cmp(x, y), \ > ^~~~~~~~~~ > include/linux/kernel.h:934:27: note: in expansion of macro '__careful_cmp' > #define min_t(type, x, y) __careful_cmp((type)(x), (type)(y), <) > ^~~~~~~~~~~~~ > mm/memory.c:1522:26: note: in expansion of macro 'min_t' > pages_to_write_in_pmd = min_t(unsigned long, > ^~~~~ > > Caused by patch > > "mm/memory.c: add vm_insert_pages()" > > sparc32 does not implement pte_index at all :-( > > I have added the following patch for today. This may not be correct > or enough. > Thank you for the patch. I still do not have much/any knowledge about sparc in Linux, so will have to defer to those who know more. :( -Arjun > From: Stephen Rothwell > Date: Thu, 27 Feb 2020 14:57:49 +1100 > Subject: [PATCH] arch/sparc: add a definition of pte_index for the 32 bit kernel > > This is now needed for vm_insert_pages() > > Signed-off-by: Stephen Rothwell > --- > arch/sparc/include/asm/pgtable_32.h | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/arch/sparc/include/asm/pgtable_32.h b/arch/sparc/include/asm/pgtable_32.h > index 6d6f44c0cad9..dc7a4d69cb18 100644 > --- a/arch/sparc/include/asm/pgtable_32.h > +++ b/arch/sparc/include/asm/pgtable_32.h > @@ -326,6 +326,8 @@ static inline pmd_t *pmd_offset(pud_t * dir, unsigned long address) > } > > /* Find an entry in the third-level page table.. */ > +#define pte_index(address) \ > + ((address >> PAGE_SHIFT) & (PTRS_PER_PTE - 1)) > pte_t *pte_offset_kernel(pmd_t * dir, unsigned long address); > > /* > -- > 2.25.0 > > -- > Cheers, > Stephen Rothwell