Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp6146370pxb; Mon, 14 Feb 2022 16:52:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJwa5ofxQdgLrxoBCfchBehdWtrHzl+9Cfmnq6Fx+AvW9jUDmcOz7MeMYix2MmJm+nco53K9 X-Received: by 2002:a17:902:e5ce:: with SMTP id u14mr1733591plf.86.1644886323327; Mon, 14 Feb 2022 16:52:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644886323; cv=none; d=google.com; s=arc-20160816; b=p9O6BQlY2KNXU+gD0mAC0+6Bk7oznsji1mUWLFQjAZB/tiTaaS1gIjtL5C5oKPazQ9 kf1/YsD00cLHwsPeB0sEXMBvYIs+QORJpoTxovpzntAPQAhvdqTsbgzwO5TDAkJcadff 2KyUO1KMsK392Qj1t94w45/jYNW9rwzFr3VqOvIZefXMQNGH/UGvBss1Fut0iLawxTbV fRyKng+ItHdviA9d3DYrSa87U+KerHr1aEAJ0jEsJlWQ3C8wtaiSQOfFi8fOYbrChoji OvuEMcCkbJRNuqmbcYm56fuyWG9p+IoGXh1w5ZFE1nK0GSnLXKxTZShVMkJKga0S0z5d AtHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:references:in-reply-to:subject :cc:to:from:mime-version:content-transfer-encoding:dkim-signature :dkim-signature; bh=qvPKjOh/wsUJqEQu+1yAdeggiSSJIk+3zVWtr119qmc=; b=mS4FQNM8YQAhpjYN6oShNZwi4GTkmwAr5EoC1wHWL17RhuxiWa1qS2y1LkeT7krxYz qLMDIKP9SRjjTlVetf6YGZl2PEiS8NLfohVql7Yl95no5dJ40N9P7fBXsEGgXQAQrRVP sPyqGHYGREO0N0x4xyYKfnQS9RRzZCYzCt/jg3SaYh2LEzlGHHhJdSgymMOOWrwJ+ad6 CCNe2H/61SpTHAxoFSmobj4axtYvsgDSRtZmnpdmA3EOsaj4PKonl/DKxCrhPPb4ltIh UhmPFSM+BXIW2DQDxWirOrm+P2Gmmo/TUqigOX2MSVy6wXNulSwGL0+NLprOPwLfzFQD pBFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=MZKhM6ba; dkim=neutral (no key) header.i=@suse.de header.b=q4XCtTO4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s1si1213746pgs.355.2022.02.14.16.51.48; Mon, 14 Feb 2022 16:52:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-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; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=MZKhM6ba; dkim=neutral (no key) header.i=@suse.de header.b=q4XCtTO4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232233AbiBNXus (ORCPT + 99 others); Mon, 14 Feb 2022 18:50:48 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:37984 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230007AbiBNXur (ORCPT ); Mon, 14 Feb 2022 18:50:47 -0500 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B4AED14032; Mon, 14 Feb 2022 15:50:38 -0800 (PST) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 03792210F5; Mon, 14 Feb 2022 23:50:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1644882637; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=qvPKjOh/wsUJqEQu+1yAdeggiSSJIk+3zVWtr119qmc=; b=MZKhM6baDXALJ8vMZRvkt0G/ule23iqk82N9aMTi4UY7j4EgQTr+czqmbaKwCj/YvSzYW9 0NqlSUIKeAr2COGHUE2sx6+4MXY77jrH3EEv6oyosIHgYgHgVi9YC+o+SDuxFyhb7RfRgU AQb380eSlEsyi6eU+84RGkWhP1+S6h4= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1644882637; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=qvPKjOh/wsUJqEQu+1yAdeggiSSJIk+3zVWtr119qmc=; b=q4XCtTO4Ndidxg058D+Zx3F0YQcH4twF3P/3VBgXGRGXeQ0YS4wrPnsb+7tj85xUBjPJF5 d+qoI2Skz5LzVPCw== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id DAD1213B59; Mon, 14 Feb 2022 23:50:32 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id 81zII8jqCmJ9MwAAMHmgww (envelope-from ); Mon, 14 Feb 2022 23:50:32 +0000 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit MIME-Version: 1.0 From: "NeilBrown" To: "Geert Uytterhoeven" Cc: "Trond Myklebust" , "Anna Schumaker" , "Chuck Lever" , "Andrew Morton" , "Mark Hemment" , "Christoph Hellwig" , "David Howells" , "open list:NFS, SUNRPC, AND..." , "Linux MM" , "Linux Kernel Mailing List" Subject: Re: [PATCH 01/21] MM: create new mm/swap.h header file. In-reply-to: References: <164420889455.29374.17958998143835612560.stgit@noble.brown>, <164420916109.29374.8959231877111146366.stgit@noble.brown>, Date: Tue, 15 Feb 2022 10:50:26 +1100 Message-id: <164488262648.17471.2510331812560662090@noble.neil.brown.name> X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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-kernel@vger.kernel.org On Fri, 11 Feb 2022, Geert Uytterhoeven wrote: > Hi Neil, > > On Wed, Feb 9, 2022 at 10:52 AM 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! > > > --- /dev/null > > +++ b/mm/swap.h > > @@ -0,0 +1,129 @@ > > + > > scripts/checkpatch.pl: > WARNING: Missing or malformed SPDX-License-Identifier tag in line 1 > > Gr{oetje,eeting}s, > > Geert Argg... I think you pointed that out previously and I forgot to act on it. I've now copied the SPDX line from linux/swap.h, and also added that standard "#ifndef _MM_SWAP_H" etc protection. Thanks, NeilBrown