Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp1348791ybf; Thu, 27 Feb 2020 09:15:37 -0800 (PST) X-Google-Smtp-Source: APXvYqw7pUU1/yanN/NlgDxzc6kUAA1a1h8yos9Tib4MsmFNutZaCKPwWOUlT018XWPK+ZVSExzt X-Received: by 2002:a05:6830:134c:: with SMTP id r12mr655229otq.126.1582823737213; Thu, 27 Feb 2020 09:15:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582823737; cv=none; d=google.com; s=arc-20160816; b=EScbI3r54zXGmhgHwUX+HO9KMpNOI/DYZqhrS/e0ri85Ovbqmg7VupKoH/CxiN124X ovCSuc4f0MCQkZtmNpyEawnMGRYKyzKDTOTODAnS5xGSLK5LOvrYLFiA8GRlSKBkHwH9 CejJPyavWSXOHr0vd/zJ+06MmYxclVKYwFLpOzpO7VeHSSVLnDlWsPoIhl9BKC0EBP0u eM97ZQh53cjN/1zEZN/hNuSMcdTkAxN1IADgNkjNAH8qTI+ZBVjxQFiXWReJU5DX0eqi y2JLrquyXHlONAe0wZdckN4jAZ5ZBIaHQi49+nvit9vZa8xNBxxzwaJnjKmB7FDKhSmM 8uyw== 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=kRFodb2ms+/Ze84f7ezZLQgjnfHyEqMYKFplavQU274=; b=fQTjAj56fIQedVIqr0RsOC6OZ4BqEv1qHH6+b2+TEvMppYLyQLSHMsVuQ0fuHASBk7 3Hp9v9lRnPqesKkMaJLPs8zDjhzb2VMJM6j1UmcMxg982MHQqZiBwUEBrry3QpOwXLqX Lgd/RSFd0+sAr2e45EM0Cr5cA1+oZWvG3N2UgBvEhm6uBIdZkMS/T09htucQcEQIQ3jN MVXP/RkOMF9ThYFsGMsil72dLxq1pgR5/xFBTmcQ23cvbGBMv7girbHm1fxB9gNWJLGd V2QZvJN56r6tiRSg2hMII24LB61hrYyHXwVJ3AiEdeARQpYXsFg0BWb+SRhOncuokd1v Eg4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=GFeWkNfA; 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 h21si1954243otr.235.2020.02.27.09.15.25; Thu, 27 Feb 2020 09:15:37 -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=GFeWkNfA; 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 S1729601AbgB0RNy (ORCPT + 99 others); Thu, 27 Feb 2020 12:13:54 -0500 Received: from mail-wm1-f68.google.com ([209.85.128.68]:52663 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728389AbgB0RNx (ORCPT ); Thu, 27 Feb 2020 12:13:53 -0500 Received: by mail-wm1-f68.google.com with SMTP id p9so176465wmc.2 for ; Thu, 27 Feb 2020 09:13:50 -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=kRFodb2ms+/Ze84f7ezZLQgjnfHyEqMYKFplavQU274=; b=GFeWkNfAeFE1PGxbru1Sszjp4401EcQ+VWatx1HlhLSe4ix2kBEeJ41isVFUKdvpXf Qc5kYZCEp5CrqbH2wU0Qhzq6BBm0MsrxtA1EhRqOY10IY+N0Ssefg+CyCKkeVgOxbVtJ VqrKS2fJ06pY/5Sv/021+h54fqqCO7WwOsbDXrzZM6ejGQFYRK9CB/0onzt0KnP0Xyfg aUljwm5ng9jv7V1otJqoMYEdb76PfawPqdgV1TdgZBlgEaSieGAjel1n29ALB1XcT4Pt BpUBteZTDViUBBZD7Kua27z1UaRzJmAA2J1aKm3e0dVywvpTUP0Eqbex73loF8rZA4x2 wDMw== 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=kRFodb2ms+/Ze84f7ezZLQgjnfHyEqMYKFplavQU274=; b=NLUdKGH9Y7Q0iP95dCTsxUY2i0C1i8G9pSnm399XWaxgA1Q17f4yx33MAgKwQ3o3UY jxsXFj07fAaQMEcQmsKwAd0wLHrsF6qt3HoSm7bPWfcX6EiSAooOeNbBCs7pvmBefBks C4YDthEUzSu4qwKr/9upsHHjrXotjt2tSNHt6YUWg0RLSc2fDejTpdty1FBW8bb5BCKl I3wOJhK8UZk5XodWO54pQPcMJQ78DYVg3CwHy6IeS1PO7v5+dWIRNhTaBmC0HlpcHGup qIVhBBUlS1sI9PH5ZkQ9s/TQfL+tWoItUM7PXXyPAjZFhF3aua62n43LeKqlp5AViBBJ pOLA== X-Gm-Message-State: APjAAAX5zXu1av5AiPORjh2bAkdGbcrndiKezNqiXowP9jlKa2MxFSij CuDP9uXd4l09stqxMor1KOTrttSwRVVv0ZRlH6bHIL4M X-Received: by 2002:a1c:2358:: with SMTP id j85mr510453wmj.137.1582823629861; Thu, 27 Feb 2020 09:13:49 -0800 (PST) MIME-Version: 1.0 References: <20200227151143.6a6edaf9@canb.auug.org.au> In-Reply-To: From: Arjun Roy Date: Thu, 27 Feb 2020 09:13:38 -0800 Message-ID: Subject: Re: linux-next: build failure after merge of the akpm tree To: Geert Uytterhoeven Cc: Stephen Rothwell , 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 Thu, Feb 27, 2020 at 1:03 AM Geert Uytterhoeven wrote: > > Hi Stephen et al, > > On Thu, Feb 27, 2020 at 5:12 AM Stephen Rothwell wrote: > > 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, > > ^~~~~ > > Same issue on m68k, as per a report from kisskb. > > > Caused by patch > > > > "mm/memory.c: add vm_insert_pages()" > > > > sparc32 does not implement pte_index at all :-( > > Seems like about only half of the architectures do. > :/ I begin to suspect the only sane way to make this work is to have a per-arch header defined method, returning a bool saying whether pte_index() is meaningful or not on that arch, and early on in vm_insert_pages() if that bool returns true, to just call vm_insert_page() in a loop. -Arjun > Gr{oetje,eeting}s, > > Geert > > -- > Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org > > In personal conversations with technical people, I call myself a hacker. But > when I'm talking to journalists I just say "programmer" or something like that. > -- Linus Torvalds