Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp704976pxb; Tue, 8 Feb 2022 00:04:15 -0800 (PST) X-Google-Smtp-Source: ABdhPJxvVzLfPBxgiDN+Q+NpdxoJVncH2NQyhm6Kr/0LOml4eYNlBjJ+3LNMKEIf4cuECKGKcjcr X-Received: by 2002:a17:90b:33cd:: with SMTP id lk13mr25720pjb.91.1644307455144; Tue, 08 Feb 2022 00:04:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644307455; cv=none; d=google.com; s=arc-20160816; b=hewdtih4TxJfNq/JVor7kUbk0jMKf1zjIoT4eGo8D4+y97k38Mmhlu71qj/zJpqifW oZgaca7iEwtyxp8bkH4mp/CyJmVGUL6PRmnqFQW52rJyqj/pQt8Y5+r+KtQxhStgIHrG OPwiqcF0ZrD2v+TjogxGm0DLETFfKxsPF/P7KBvTSOCKvK2HvJJyZxMfymz9ChhM3EvK vm0KYoUZtdiAi17E4GgoGVKMIRhhZYAkgtX/5iP/wL6H2ccZHGU8f81Mz+L9yCFCBseM /hY1s1yW3BeY+GhQL7it72tpksrY10PQ9BWLR+qunhlkcFF+IgtlICiYmQKrjXlu9Daw ybgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=tjzeJCIchg/btFAbfutkcefwIE0ycfjOPEeIeIlWSUI=; b=lPy6ZKJ3vHOZm9uvTKDrW+Q8NozYgXRO5W6qbavLUVc3uo1ZJpsa6XZCn6A9PPP7N/ KNiPU7B0xzTXLPb8yv4kH6XdPuWBYVdFZlkTy3oUicM6CajtY1c81GCr59xrnuA9UzQ5 dblRxcF4nf93vSh7HH/jMrAxxAeux75rfFpfusPWtmU6RMwPvMbPXbsIvwjFZ1lDaBMk eLGeo/Cv8pznplPu6aKa77z5i7tvz8dK3HTZu4LupBiT1Ed/VFdb3UlJ+nJ+dhSI3V8u LqEQIYd37uA+wjeCWAMQ0XbNluSu+ft0DfwiaZFGCNEt4wJUxQJR8vMkgOP844Q0RyJW Z4IA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q5si5263489pla.547.2022.02.08.00.03.40; Tue, 08 Feb 2022 00:04:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231879AbiBGOUC convert rfc822-to-8bit (ORCPT + 99 others); Mon, 7 Feb 2022 09:20:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43986 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1389248AbiBGNvb (ORCPT ); Mon, 7 Feb 2022 08:51:31 -0500 Received: from mail-ua1-f41.google.com (mail-ua1-f41.google.com [209.85.222.41]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BE9B8C043188; Mon, 7 Feb 2022 05:51:30 -0800 (PST) Received: by mail-ua1-f41.google.com with SMTP id g18so12715586uak.5; Mon, 07 Feb 2022 05:51:30 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=fUAjBprB67NHx4X4sNT3As+x8i0b1+huuPKs3QJNjwY=; b=OD/mCEnJ0ikF7fUe/oz7B6NmxbPxCStlOWhBeEwN9vuDLa5twBENHzw5FUZOkTsmWQ Wh6E7U2Px07mszTTL2P9dmpqFx3gV9O4VCKO6xuOVCeHO+JHs4ClXIZhWtGGmrMwZkmo w+jermQ43CcAHbI/g/05BbRQt8u9az9920NwLV1duSEuYuX49qeir9pw/q2+lA/7ItKQ BYf77mQ8oLx2ho7ibXBDPflxXKr+U3oSy5tPZDaNiX9UF5Yt3e/iMX17WV52rOE3HrCj ujKPPQOfiwzIE5PxBzYn97Th5oIqYuje2fCmyxUwN6LEs1gk0x/THVy4bxvi+rD22TqD DSiA== X-Gm-Message-State: AOAM533jdDIo1e010paBs2wjcOrclt935i3UJGJIEMD4hb5RK2P9Ruo0 TiOKwARkbd46fTK+IvPX+O+Ap/NDZsLlBg== X-Received: by 2002:a67:e3b1:: with SMTP id j17mr4475447vsm.80.1644241889778; Mon, 07 Feb 2022 05:51:29 -0800 (PST) Received: from mail-vk1-f177.google.com (mail-vk1-f177.google.com. [209.85.221.177]) by smtp.gmail.com with ESMTPSA id w5sm2281412vkf.12.2022.02.07.05.51.28 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 07 Feb 2022 05:51:29 -0800 (PST) Received: by mail-vk1-f177.google.com with SMTP id o15so7858697vki.2; Mon, 07 Feb 2022 05:51:28 -0800 (PST) X-Received: by 2002:a1f:2555:: with SMTP id l82mr5141143vkl.7.1644241888621; Mon, 07 Feb 2022 05:51:28 -0800 (PST) MIME-Version: 1.0 References: <164299573337.26253.7538614611220034049.stgit@noble.brown> <164299611271.26253.2968456569309914722.stgit@noble.brown> In-Reply-To: <164299611271.26253.2968456569309914722.stgit@noble.brown> From: Geert Uytterhoeven Date: Mon, 7 Feb 2022 14:51:17 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 01/23] MM: create new mm/swap.h header file. To: NeilBrown Cc: Trond Myklebust , Anna Schumaker , Chuck Lever , Andrew Morton , Mel Gorman , Christoph Hellwig , David Howells , "open list:NFS, SUNRPC, AND..." , Linux MM , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org Hi Neil, On Mon, Jan 24, 2022 at 5:26 PM NeilBrown wrote: > Many functions declared in include/linux/swap.h are only used within mm/ > > Create a new "mm/swap.h" and move some of these declarations there. > Remove the redundant 'extern' from the function declarations. > > Reviewed-by: Christoph Hellwig > Signed-off-by: NeilBrown Thanks for your patch! mm/huge_memory.c: In function ‘__split_huge_page’: mm/huge_memory.c:2423:16: error: implicit declaration of function ‘swap_address_space’; did you mean ‘exit_swap_address_space’? [-Werror=implicit-function-declaration] 2423 | swap_cache = swap_address_space(entry); | ^~~~~~~~~~~~~~~~~~ | exit_swap_address_space mm/huge_memory.c needs to #include "swap.h", too. 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