From patchwork Sun Nov 27 16:07:32 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe JAILLET X-Patchwork-Id: 26380 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp5185696wrr; Sun, 27 Nov 2022 08:10:26 -0800 (PST) X-Google-Smtp-Source: AA0mqf7rZC6VBfxsY0hSpGAfb9wweWj2QShwBnp9CKHZY11P5eEkAZQRYfYxa74WDjuK5LWh2H9i X-Received: by 2002:aa7:9ec2:0:b0:574:8995:eb7f with SMTP id r2-20020aa79ec2000000b005748995eb7fmr17239825pfq.85.1669565426531; Sun, 27 Nov 2022 08:10:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669565426; cv=none; d=google.com; s=arc-20160816; b=m3vRRwg/shrLjHKN3UXYz8DaP6YVNkZDx5DApq4+7REg0QB3a8+R9uB4Q6yGIQkaXH BN1fumBkJcHIKTXzpNNQzzz/kiX+uMeIaMsPfugyMhwhWf7knJv7HKuPkm9rRbAeVupU J8qYxBN1taMLuxs9jiG0/xEYcuYgTWxtZleQwUFNRg/h/XVDzUrLCYPJEX4iZEd9qVKZ cC4TDMxIKR97RdhjpOLNmptG9QQgWKVZYVXzSgPALCb/M3ugTkqcZhInCs6+nkzmDNEe PBI5M3veHI+Qlwp8t5eXNWyqXe6vfvkAG7wZWpTTO9k5dj1rfSiD9XuZajZb+5gHxtdw ay3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=L8mF/H1G79X613dJG/6eU6Lz53JFLemi3iiwXmGrwnU=; b=S+e26/togiOQBDEdQNCOafez1+wzpsTcTwzUECL8SR+dhutWRrDMykaExyg3GnRsMa rhukSYbtzdCXM/q1dkLVxeCR/iYg1Sl9jP9KOA81LruUJ903d1aYy7GN0LnylDP21Ad0 CPZlAA9tE2U9XDcLzwt7jnUIKQFkIC34FffTOO3dRI9VTg8WuxIvCLuTZLkj8YP2mheG TSwNwliyhrlou9qkABLwCl6+QtdL5X7w4ygSqR07n5p6qZIo6pJh64/FWZDeWcYwCnVm 76XVZCIQfY8KFqTSZvJzybigyesQqAujx16F1i35x2ZcPCLlha3/Juzk/ab3TYhf0Tyq bVPQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p18-20020a62ab12000000b00561fb77aed3si573594pff.368.2022.11.27.08.10.00; Sun, 27 Nov 2022 08:10:26 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229634AbiK0QHr (ORCPT + 99 others); Sun, 27 Nov 2022 11:07:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58786 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229630AbiK0QHp (ORCPT ); Sun, 27 Nov 2022 11:07:45 -0500 Received: from smtp.smtpout.orange.fr (smtp-30.smtpout.orange.fr [80.12.242.30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1D6276396 for ; Sun, 27 Nov 2022 08:07:41 -0800 (PST) Received: from pop-os.home ([86.243.100.34]) by smtp.orange.fr with ESMTPA id zKBuo3TEYgfI9zKBuokZLw; Sun, 27 Nov 2022 17:07:39 +0100 X-ME-Helo: pop-os.home X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Sun, 27 Nov 2022 17:07:39 +0100 X-ME-IP: 86.243.100.34 From: Christophe JAILLET To: Andrew Morton Cc: linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Christophe JAILLET Subject: [PATCH] io-mapping: Move some code within the include guarded section Date: Sun, 27 Nov 2022 17:07:32 +0100 Message-Id: <4dbaf427d4300edba6c6bbfaf4d57493b9bec6ee.1669565241.git.christophe.jaillet@wanadoo.fr> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750666236480174188?= X-GMAIL-MSGID: =?utf-8?q?1750666236480174188?= It is spurious to have some code out-side the include guard in a .h file. Fix it. Fixes: 1fbaf8fc12a0 ("mm: add a io_mapping_map_user helper") Signed-off-by: Christophe JAILLET --- include/linux/io-mapping.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/io-mapping.h b/include/linux/io-mapping.h index 66a774d2710e..09d4f17c8d3b 100644 --- a/include/linux/io-mapping.h +++ b/include/linux/io-mapping.h @@ -213,7 +213,7 @@ io_mapping_free(struct io_mapping *iomap) kfree(iomap); } -#endif /* _LINUX_IO_MAPPING_H */ - int io_mapping_map_user(struct io_mapping *iomap, struct vm_area_struct *vma, unsigned long addr, unsigned long pfn, unsigned long size); + +#endif /* _LINUX_IO_MAPPING_H */