From patchwork Fri Sep 21 14:22:33 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Kieran Bingham X-Patchwork-Id: 10610165 X-Patchwork-Delegate: geert@linux-m68k.org 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 1B9B115A6 for ; Fri, 21 Sep 2018 14:22:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0B9242DEFE for ; Fri, 21 Sep 2018 14:22:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F34AB2DF2E; Fri, 21 Sep 2018 14:22:41 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7F3182DEFE for ; Fri, 21 Sep 2018 14:22:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728384AbeIUULr (ORCPT ); Fri, 21 Sep 2018 16:11:47 -0400 Received: from perceval.ideasonboard.com ([213.167.242.64]:45604 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727554AbeIUULr (ORCPT ); Fri, 21 Sep 2018 16:11:47 -0400 Received: from localhost.localdomain (cpc89242-aztw30-2-0-cust488.18-1.cable.virginm.net [86.31.129.233]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 7A9A21280; Fri, 21 Sep 2018 16:22:38 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1537539758; bh=QAprZUSH7SZi1Dr8b9tXbbaG6phFjqIDYQnRK8vWwPk=; h=From:To:Cc:Subject:Date:From; b=Vb9PPXfh+jdR1oghgeQp7nbmNxbhxnKIHNNVqdLg9rVQ2Kw2eg4ZzHhon0Y2NJ7oY En7QNecxrXnqE+kQ/6HkgNP+RUEDDUEJcPbeqrLgs9INjpjpngPX46ByWvv3mN86wT lM5dy4qpb/Z24q1DpISGTP9VJX55VGhRVWoWpnRE= From: Kieran Bingham To: Andrew Morton Cc: linux-renesas-soc@vger.kernel.org, Kieran Bingham , stable@vger.kernel.org, Thomas Gleixner , Kate Stewart , Greg Kroah-Hartman , Philippe Ombredanne , linux-kernel@vger.kernel.org (open list) Subject: [PATCH] kernel/bounds: Provide prototype for foo Date: Fri, 21 Sep 2018 15:22:33 +0100 Message-Id: <20180921142234.16882-1-kieran.bingham+renesas@ideasonboard.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP kernel/bounds.c is recompiled on every build, and shows the following warning when compiling with W=1: CC kernel/bounds.s linux/kernel/bounds.c:16:6: warning: no previous prototype for ‘foo’ [-Wmissing-prototypes] void foo(void) ^~~ Provide a prototype to satisfy the compiler. Signed-off-by: Kieran Bingham Cc: stable@vger.kernel.org --- I compile all of my incremental builds with W=1, which allows me to know instantly if I add a new compiler warning in code I generate. This warning always comes up and seems trivial to clean up. --- kernel/bounds.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel/bounds.c b/kernel/bounds.c index c373e887c066..60136d937800 100644 --- a/kernel/bounds.c +++ b/kernel/bounds.c @@ -13,6 +13,8 @@ #include #include +void foo(void); + void foo(void) { /* The enum constants to put into include/generated/bounds.h */