From patchwork Tue Dec 4 05:14:22 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Adeodato_Sim=C3=B3?= X-Patchwork-Id: 10711113 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2A740109C for ; Tue, 4 Dec 2018 05:14:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 19ACE2AB15 for ; Tue, 4 Dec 2018 05:14:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0A03A2AF7E; Tue, 4 Dec 2018 05:14:35 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8A7912AB15 for ; Tue, 4 Dec 2018 05:14:34 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 5115D6B6CFA; Tue, 4 Dec 2018 00:14:30 -0500 (EST) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 4DBFE6B6CFC; Tue, 4 Dec 2018 00:14:30 -0500 (EST) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 244A86B6CFA; Tue, 4 Dec 2018 00:14:30 -0500 (EST) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) by kanga.kvack.org (Postfix) with ESMTP id C41746B6CFB for ; Tue, 4 Dec 2018 00:14:29 -0500 (EST) Received: by mail-wr1-f69.google.com with SMTP id d11so12376345wrq.18 for ; Mon, 03 Dec 2018 21:14:29 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:dkim-signature:from:to:cc:subject:date :message-id:mime-version:content-transfer-encoding; bh=6O8ICnmIA1bl8F6MAMk9WLqLLO7z6c3SPydL88qudZM=; b=JdQJszXwuQgUlTtq/8f+c4PgSkmgMk2l93jwDG71p+Cl9xlcnxdQeZlG0rXY0wMonN jwWt3hDhatTlGsuHbD/XPdAdH6vB6/IwssRwMu1cxZ4xgaNByc9MnrvnTOTSeUgPrYiX SGU7cs28DXVE7Dip07g97X7U/MSAlBejJO7m/cM+FFt7LqQWG5V53/uBjb1URibk3DZq 6isPed5IWV74F4wy1F8Ye8OQz3axlA3VLHtZt5YpZZOQz7GVULKpCvje/wDpW0i6NxZs 4Rtgg9ig2cryknGZ+BNmHcbDnHhH9A9AVoTOU01Xh71LF7SO5p74I6+Ghypp/KMGBfad if/g== X-Gm-Message-State: AA+aEWZxpZK0w7dWEVIX4Q2r19yvV3WmjJlwQkuYMHJsooU4nbUiXj5g Ztnjj+MnnWr/lVPS9C6Butn8M/IR11SSSSBBg2tPkpRoaahNoZQ6kpdIy3UKWt3MImlvyY2ZDfA DgjcEuKR5Z+tWdib/40cDh2AK2NLYAIBv+kxIot6sz9WSQbgSqh47WQlWC3k6vQmWwQ== X-Received: by 2002:adf:edc1:: with SMTP id v1mr17008576wro.105.1543900469261; Mon, 03 Dec 2018 21:14:29 -0800 (PST) X-Google-Smtp-Source: AFSGD/V4O7osLZZtThLMxlRq2f1MvXEqdCFi3ita7tNg5GqCN0ffB4rQpSmoyGfQ58ouy4K81ogF X-Received: by 2002:adf:edc1:: with SMTP id v1mr17008540wro.105.1543900467978; Mon, 03 Dec 2018 21:14:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543900467; cv=none; d=google.com; s=arc-20160816; b=lBWhi5Zh7CNYGQyQSbP7iEWx2h7IOwysejNm33xN0xgsqmijaknz3mT5uPMBPKxJH0 STFdPZFkEAVGtD62mHetCkik1s3kYdyGDDKihvpF0Kjid4OXrcAsYX0m0OMSutenLAKX XHFN/VO7Ym0G2NF8DctAixv+Wdijiq1Gmz2dPXk1olz0z3EMC6nmAWPxSsts+1Zk7K7q xTYu/zt5he9/zBVMzS8tE6vyj7iyZ6I7f9z03SLkvYq2l4J5F9qws+AZZncep0jJXhGc sZ5OScWOGrUV5ZSXGU+Goz/cYMbt6KUEGRaX65FwpENSAuOg10883v0Zjfx89qQw99k9 yIQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=6O8ICnmIA1bl8F6MAMk9WLqLLO7z6c3SPydL88qudZM=; b=hjgnSyBrgoxaPIBhb64gzUCkM25dHRVZwf5SY56RN6J8fQpyxHTIjNatKPeHZoJWh2 FgqeD1DhjoGDIQgi0XzEyb2Gdyg25O9hcsKFT+XTWWuOvHRPD129/yUDoX9Psk+oZppc C0kENEfkGmmhzOEbqvgXc8SWI0yKkgwsSIKH0vAHaxQDtEcFehJVJ6zlteUz+aq1Kgz3 nRoeO0rTslYmprh+wYH62zNQ6+V9CcME3Kq+cKYnosdK759v20Bl88/cvN8MiPa5/4Jd KqWli0gCAVho4P+nFQdcqVb+GXzGChuZUcz4VUKTuVH9kJZTeFUNVdjcIlNJ+UmKF5Vs fniw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@net.com.org.es header.s=delany-v1 header.b="jggpj1j/"; spf=pass (google.com: domain of dato@net.com.org.es designates 176.31.98.17 as permitted sender) smtp.mailfrom=dato@net.com.org.es; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=net.com.org.es Received: from delany.relativists.org (delany.relativists.org. [176.31.98.17]) by mx.google.com with ESMTPS id v206si7692256wmb.108.2018.12.03.21.14.27 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 03 Dec 2018 21:14:27 -0800 (PST) Received-SPF: pass (google.com: domain of dato@net.com.org.es designates 176.31.98.17 as permitted sender) client-ip=176.31.98.17; Authentication-Results: mx.google.com; dkim=pass header.i=@net.com.org.es header.s=delany-v1 header.b="jggpj1j/"; spf=pass (google.com: domain of dato@net.com.org.es designates 176.31.98.17 as permitted sender) smtp.mailfrom=dato@net.com.org.es; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=net.com.org.es Received: from geertz.rel (geertz.rel [192.168.82.3]) by delany.relativists.org (Postfix) with ESMTPSA id 19B488F2; Tue, 4 Dec 2018 02:14:27 -0300 (-03) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=net.com.org.es; s=delany-v1; t=1543900467; bh=6O8ICnmIA1bl8F6MAMk9WLqLLO7z6c3SPydL88qudZM=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Content-Type: From; b=jggpj1j/ilQsvgQFzEejNRhqXdvppBT7zcG/BBO2TecxBp4hw+BUWNJUJ+j03habV hCB85Hg1rT2ZudjZy0O8EHgtH6LnLzGXVSaoh7S9D08I6I9Mvp/FgpOGo7jHM7Flz4 H4ZHhT+I3sA+jSEYnuRyXyDlvrBZCyHsgLxXymS4= Received: by geertz.rel (Postfix, from userid 1000) id 211A280A5A; Tue, 4 Dec 2018 02:14:24 -0300 (-03) From: =?utf-8?q?Adeodato_Sim=C3=B3?= To: linux-mm@kvack.org Cc: kernel-janitors@vger.kernel.org Subject: [PATCH 1/3] mm: add include files so that function definitions have a prototype Date: Tue, 4 Dec 2018 02:14:22 -0300 Message-Id: <466ad4ebe5d788e7be6a14fbbcaaa9596bac7141.1543899764.git.dato@net.com.org.es> X-Mailer: git-send-email 2.19.2 MIME-Version: 1.0 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: X-Virus-Scanned: ClamAV using ClamSMTP Previously, rodata_test(), usercopy_warn(), and usercopy_abort() were defined without a matching prototype. Detected by -Wmissing-prototypes GCC flag. Signed-off-by: Adeodato Simó Reviewed-by: Mike Rapoport --- I started poking at this after kernel-janitors got the suggestion[1] to look into the -Wmissing-prototypes warnings. Thanks for considering! [1]: https://www.spinics.net/lists/linux-kernel-janitors/msg43981.html mm/rodata_test.c | 1 + mm/usercopy.c | 1 + 2 files changed, 2 insertions(+) diff --git a/mm/rodata_test.c b/mm/rodata_test.c index d908c8769b48..01306defbd1b 100644 --- a/mm/rodata_test.c +++ b/mm/rodata_test.c @@ -11,6 +11,7 @@ */ #define pr_fmt(fmt) "rodata_test: " fmt +#include #include #include diff --git a/mm/usercopy.c b/mm/usercopy.c index 852eb4e53f06..f487ba4888df 100644 --- a/mm/usercopy.c +++ b/mm/usercopy.c @@ -20,6 +20,7 @@ #include #include #include +#include #include #include #include