From patchwork Tue Nov 6 21:55:29 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 12703 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 0326523E28 for ; Tue, 6 Nov 2012 21:55:57 +0000 (UTC) Received: from mail-ie0-f180.google.com (mail-ie0-f180.google.com [209.85.223.180]) by fiordland.canonical.com (Postfix) with ESMTP id A5783A18710 for ; Tue, 6 Nov 2012 21:55:56 +0000 (UTC) Received: by mail-ie0-f180.google.com with SMTP id e10so1321946iej.11 for ; Tue, 06 Nov 2012 13:55:56 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:in-reply-to:references :x-provags-id:x-gm-message-state; bh=6bMRDXH6AOj1NnohsoQtXduQ2xgfuWz5tIThTcytvj4=; b=mgbrms0+y18wsrzBUH+IuotPcMOK69n9jXE3/mB8/taTVm2PbPQZF2xhfx4bsNjfj3 JRf8zlzt2LQ1K4kLUSJrK+WoRAd5R4dOnwGLLwc37yXxxBh0zhzOEuZFQqp9Yq/fAlQK SmBIH56GnrRQ9IOcZ5x4+Xi6nKnQtTODSsG4BOS7BMjNtku1od/NilTv11MGUsaKTGQc Dsa/BR89D/ys2cIyrfHOQ/WC7gGyyqcecJGimj59tK26w/zDhqL6988EvcATvIOpQQrG ZyxnXjajCYQCC6CPw0e6XV1TgmA013E3mdA9HIkghWr72KMtQ4zmh2I5HBaboo/MwsvD 2SBw== Received: by 10.50.161.169 with SMTP id xt9mr14411471igb.62.1352238956468; Tue, 06 Nov 2012 13:55:56 -0800 (PST) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.50.67.148 with SMTP id n20csp114526igt; Tue, 6 Nov 2012 13:55:55 -0800 (PST) Received: by 10.14.205.65 with SMTP id i41mr2321136eeo.2.1352238955069; Tue, 06 Nov 2012 13:55:55 -0800 (PST) Received: from moutng.kundenserver.de (moutng.kundenserver.de. [212.227.17.10]) by mx.google.com with ESMTPS id f44si192989eep.83.2012.11.06.13.55.54 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 06 Nov 2012 13:55:55 -0800 (PST) Received-SPF: neutral (google.com: 212.227.17.10 is neither permitted nor denied by best guess record for domain of arnd@arndb.de) client-ip=212.227.17.10; Authentication-Results: mx.google.com; spf=neutral (google.com: 212.227.17.10 is neither permitted nor denied by best guess record for domain of arnd@arndb.de) smtp.mail=arnd@arndb.de Received: from localhost.localdomain (HSI-KBW-149-172-5-253.hsi13.kabel-badenwuerttemberg.de [149.172.5.253]) by mrelayeu.kundenserver.de (node=mrbap0) with ESMTP (Nemesis) id 0LcVM6-1T6zxz1EYw-00jxev; Tue, 06 Nov 2012 22:55:41 +0100 From: Arnd Bergmann To: linux-kernel@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, Arnd Bergmann , Peter Boonstoppel , Peter Zijlstra , Paul Turner , Ingo Molnar Subject: [PATCH 4/8] sched: warnings in kernel/sched/fair.c Date: Tue, 6 Nov 2012 22:55:29 +0100 Message-Id: <1352238933-4886-5-git-send-email-arnd@arndb.de> X-Mailer: git-send-email 1.7.10 In-Reply-To: <1352238933-4886-1-git-send-email-arnd@arndb.de> References: <1352238933-4886-1-git-send-email-arnd@arndb.de> X-Provags-ID: V02:K0:Rr2cxAkJH9E2WKVd8YTNA5XAftBI2AySYJO6M4MoX0p MHTZUUFNPJ3nyIfkRVlHsa54eYw4vSXfwUpXPHGeDfsK+U9W/f tkF6JtTQO3kM7602Fro6WDRyh1quGb83g/rS+WkD3Zddd14TZR TlaxzWd8IHbZ8HvOwKBlDXYjb5+AUHPQdfwxv/j9Xk9NlxcVd2 6cvaOg6KZZF8eDePT/nc0FrhOqioja2WNebzuJFBbFfPAws0kB Tp3AZG77hSaPzX5kAtuvTw/zThK/hZF/xB/RIbTkCMYQsYMNc3 Vvzsfwp/dmVHLXEsY7eBjlr8/96kV+8G86j5u45NFUijcQOdi7 m+Pa4bfzsePNVHwNLf5J1tthVyzqmGAzrdz7Ffv/kp5wQhOeEo NxYFr4sGyjQBA== X-Gm-Message-State: ALoCoQnLGwg+0buxCn3ZKNqW8od/Yvrqsq6SpKXUI0SEml9M68ai4maXmnwPZVPuei1SboByZe/R a4c96ae319 "sched: Unthrottle rt runqueues in __disable_runtime()" turned the unthrottle_offline_cfs_rqs function into a static symbol, which now triggers a warning about it being potentially unused: kernel/sched/fair.c:2055:13: warning: 'unthrottle_offline_cfs_rqs' defined but not used [-Wunused-function] Marking it __maybe_unused shuts up the gcc warning and lets the compiler safely drop the function body when it's not being used. To reproduce, build the ARM bcm2835_defconfig. Signed-off-by: Arnd Bergmann Cc: Peter Boonstoppel Cc: Peter Zijlstra Cc: Paul Turner Cc: Ingo Molnar --- kernel/sched/fair.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index 6b800a1..9f52728 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -2052,7 +2052,7 @@ static void destroy_cfs_bandwidth(struct cfs_bandwidth *cfs_b) hrtimer_cancel(&cfs_b->slack_timer); } -static void unthrottle_offline_cfs_rqs(struct rq *rq) +static void __maybe_unused unthrottle_offline_cfs_rqs(struct rq *rq) { struct cfs_rq *cfs_rq;