Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1145907imm; Fri, 15 Jun 2018 12:00:42 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIwZ7lcerH73nef0qzYoRb4Y0JIVUCcUVh9wrLIX9PLKJS27mPNcdmivoLvlmLBWrIFpGYP X-Received: by 2002:a63:b307:: with SMTP id i7-v6mr2657776pgf.448.1529089241982; Fri, 15 Jun 2018 12:00:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529089241; cv=none; d=google.com; s=arc-20160816; b=zlvdNrYczkvo1phD84M+tbiD2pXBBkJesKiVmI0YBK28ncQlzxiY/eiK5JowJzFPmO S2VZFdKSUd7lgtukHA2LmVv/ChL+4exlRqlL9ztOfPdbrPapTj/VRcgaEHuX7kdn3KYB hPMjYuXMiYfIWoqNF9T8Sir7Mk45p0X2ZOZnFC7eUiW5I1PMOVDPEAB29XDraUaXL6Xo DWOeP/HbN9oQga6k+IIyHpje3Y3sD7vZjN01wfs6yo2dR5nHUNXiJ2UybnmBSrM2YA1k os+boVC+7qb/39SWvDwhtD7kEoHmDYT7+BFFNfQjwhWJwGDi5fce7rMsNKIcpCjTZtDe eySA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:references:in-reply-to:mime-version :dkim-signature:arc-authentication-results; bh=y0FwBIRgtoaw6vAwHI4XCJdkasOY/Dg0pHp87eMgVO8=; b=vl2zXYc7sZ++yE8UdRFIL+YHuCO0Aidnn0PNXb7LAcswJjldFjjyvfxBX5e124Gp2i yprRGpyr6hvDQjrXUeelCJZ0TRhAgsBoNx/AkTMvQHm5/u1ug6zEOAE6gWod2bat42vV 8Nvr2rGDG8ZtZz3MclbFH7NxA3iaMRqAhP+qJ2i5xqBcvoRD5u/LpmkcgcO8eCDmjSRO gfwCP15gKFRlR1gvUCElLpTXg6qPyDgDRJez3azOUttDAch0NtsXSPSduRRL2XjNzyfW JK4aYToOKZAfXTc7EyhGx66O4tMOz6CXS7CHBGodoa0cx/iKw4VZ7eE7DM+bWzq80qv/ IS3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=p00TYBXX; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a16-v6si7887197pff.43.2018.06.15.12.00.27; Fri, 15 Jun 2018 12:00:41 -0700 (PDT) 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=@gmail.com header.s=20161025 header.b=p00TYBXX; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756485AbeFOS7M (ORCPT + 99 others); Fri, 15 Jun 2018 14:59:12 -0400 Received: from mail-qk0-f195.google.com ([209.85.220.195]:41307 "EHLO mail-qk0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756352AbeFOS7L (ORCPT ); Fri, 15 Jun 2018 14:59:11 -0400 Received: by mail-qk0-f195.google.com with SMTP id w23-v6so6195279qkb.8 for ; Fri, 15 Jun 2018 11:59:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=y0FwBIRgtoaw6vAwHI4XCJdkasOY/Dg0pHp87eMgVO8=; b=p00TYBXXI4VdZaLzPR0g0Kv6zVAtBzjTl3KJk7RqVI5WalJjIDO7RGrXG5PB2/X2Wa VBeAaKtucMRGze0NZ9Nt8PmzBEeL0hLVhS4SiZ0bTaFau70vTWoX9UOUEX4OulC357R3 BJVaCHEGtOKIZHwAKafY+7oFGKqVgfwmDHza32DET40wTQXTyqlQ4r49UFPDvljge8hp /MyeDWskbkJyKAIiY5TP8HLDbQCdgH2XwE76K5eci6+nSPcN69aiQfZFoFiapj05pKw8 u+4nhmLfxSc1fVNJc9nI4g62wwTXkB/ANlanJH47mj67/QmS1fFo6234SyUxjvdG6jS7 yu0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=y0FwBIRgtoaw6vAwHI4XCJdkasOY/Dg0pHp87eMgVO8=; b=KdWHZSG3ifE+wEGRzPTRdUFhJXgOz6ije+8Pb74a9PME/OUUMyUoYgFwBaHonHs4SO BwPW/QNkUTh9kmvsAwBJBogEBGF6yn64hKEUuNbQgxodSYfwQ51CtuAUuK7Xwt/A7wVa qn92hFOgx/TLOOAcrZncMAlLivYmGlUyPfH0jVm5Pdl5EEcp3o7zGHAsafyDM10lssfM 7h2L8npMkie2dA/PGNuNVONz0z3yCsCq5bh+sZo+4bYoJgjYGJstTEfY6kyAxzOsMbK9 RrjpAv7Q0ihUSbp4msdWvVeDj59tXiVMzW9U1MN4eHZlmqokeLb3ErWSwq+PysGl7CkM kGDg== X-Gm-Message-State: APt69E3hVuO5oRtNky1ex+qPk043ZOGu1++ZqBIe7DQ+PxmSSJCKl9Rx D9TJdpNnfMqzrsqyVoQ881hp2VC9rE82mSN9VPW+OA== X-Received: by 2002:a37:d78c:: with SMTP id t12-v6mr2428641qkt.45.1529089150815; Fri, 15 Jun 2018 11:59:10 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:ac8:7190:0:0:0:0:0 with HTTP; Fri, 15 Jun 2018 11:59:10 -0700 (PDT) In-Reply-To: <20180606194144.16990-1-malat@debian.org> References: <20180606194144.16990-1-malat@debian.org> From: Tony Luck Date: Fri, 15 Jun 2018 11:59:10 -0700 Message-ID: Subject: Re: [PATCH] mm/memblock: add missing include To: Mathieu Malaterre Cc: Andrew Morton , linux-mm@kvack.org, Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 6, 2018 at 12:41 PM, Mathieu Malaterre wrote= : > Commit 26f09e9b3a06 ("mm/memblock: add memblock memory allocation apis") > introduced two new function definitions: > =E2=80=98memblock_virt_alloc_try_nid_nopanic=E2=80=99 > and > =E2=80=98memblock_virt_alloc_try_nid=E2=80=99. > Commit ea1f5f3712af ("mm: define memblock_virt_alloc_try_nid_raw") > introduced the following function definition: > =E2=80=98memblock_virt_alloc_try_nid_raw=E2=80=99 > > This commit adds an includeof header file to provide th= e > missing function prototypes. Silence the following gcc warning (W=3D1): > > mm/memblock.c:1334:15: warning: no previous prototype for =E2=80=98memb= lock_virt_alloc_try_nid_raw=E2=80=99 [-Wmissing-prototypes] > mm/memblock.c:1371:15: warning: no previous prototype for =E2=80=98memb= lock_virt_alloc_try_nid_nopanic=E2=80=99 [-Wmissing-prototypes] > mm/memblock.c:1407:15: warning: no previous prototype for =E2=80=98memb= lock_virt_alloc_try_nid=E2=80=99 [-Wmissing-prototypes] > > Signed-off-by: Mathieu Malaterre Sadly that breaks ia64 build: CC mm/memblock.o mm/memblock.c:1340: error: redefinition of =E2=80=98memblock_virt_alloc_try= _nid_raw=E2=80=99 ./include/linux/bootmem.h:335: error: previous definition of =E2=80=98memblock_virt_alloc_try_nid_raw=E2=80=99 was here mm/memblock.c:1377: error: redefinition of =E2=80=98memblock_virt_alloc_try= _nid_nopanic=E2=80=99 ./include/linux/bootmem.h:343: error: previous definition of =E2=80=98memblock_virt_alloc_try_nid_nopanic=E2=80=99 was here mm/memblock.c:1413: error: redefinition of =E2=80=98memblock_virt_alloc_try= _nid=E2=80=99 ./include/linux/bootmem.h:327: error: previous definition of =E2=80=98memblock_virt_alloc_try_nid=E2=80=99 was here make[1]: *** [mm/memblock.o] Error 1 make: *** [mm/memblock.o] Error 2 -Tony