From patchwork Fri Sep 28 21:36:11 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 11869 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 D8DD12414F for ; Fri, 28 Sep 2012 21:37:07 +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 73878A1828E for ; Fri, 28 Sep 2012 21:37:07 +0000 (UTC) Received: by mail-ie0-f180.google.com with SMTP id e10so8011610iej.11 for ; Fri, 28 Sep 2012 14:37:07 -0700 (PDT) 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=VruOjA08pymANtjn6k17qpj5JAXdEqYfG4D2dLRyVqxn1b4TWo+3/TgV44V5Jj0JOq ovHQLDVTcwXalC+6+7Up+a/PBfYe/tRuybwwMNTZitMjgNBYbRdg5ziFT67S7ylT1L9w NbL08ZAfP6foL36dYBHs9dPSm46ncXUHWB3aIyuxKRZDuEE4WtiiKN6yekM7/8mMgtfl Y/HjYcTQQX7hPMvNZWVKlVh0IXqe1X1nQzxeNeKjtwWFTEN5aWzu0HrQVPPx8VN7O4oy AQPqiZs9uPmLAYIxiFMR2Dnu4aoJozRNFXF1lgHFVNZj2CElgUj9J0/Wnhjf8zppAr29 45nw== Received: by 10.50.160.165 with SMTP id xl5mr72539igb.0.1348868227258; Fri, 28 Sep 2012 14:37:07 -0700 (PDT) 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.184.232 with SMTP id ex8csp495031igc; Fri, 28 Sep 2012 14:37:06 -0700 (PDT) Received: by 10.216.135.159 with SMTP id u31mr3943174wei.160.1348868225768; Fri, 28 Sep 2012 14:37:05 -0700 (PDT) Received: from moutng.kundenserver.de (moutng.kundenserver.de. [212.227.126.187]) by mx.google.com with ESMTPS id y32si4101747wen.19.2012.09.28.14.37.05 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 28 Sep 2012 14:37:05 -0700 (PDT) Received-SPF: neutral (google.com: 212.227.126.187 is neither permitted nor denied by best guess record for domain of arnd@arndb.de) client-ip=212.227.126.187; Authentication-Results: mx.google.com; spf=neutral (google.com: 212.227.126.187 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=mrbap2) with ESMTP (Nemesis) id 0Mfjsa-1T3T843emi-00NoMB; Fri, 28 Sep 2012 23:36:21 +0200 From: Arnd Bergmann To: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org, arm@kernel.org, Arnd Bergmann , Peter Boonstoppel , Peter Zijlstra , Paul Turner , Ingo Molnar Subject: [PATCH 06/12] sched: warnings in kernel/sched/fair.c Date: Fri, 28 Sep 2012 23:36:11 +0200 Message-Id: <1348868177-21205-7-git-send-email-arnd@arndb.de> X-Mailer: git-send-email 1.7.10 In-Reply-To: <1348868177-21205-1-git-send-email-arnd@arndb.de> References: <1348868177-21205-1-git-send-email-arnd@arndb.de> X-Provags-ID: V02:K0:BHKeKtOq4R3m/22RztqFL5Qg5W/R+pEO7G8qS2DgudS Lnd1uO35N8Hnb0vHSdoj6RSaqS1x6OHYy6pq3EuqLKVzLMPdhC K59mmJWuww1Hi19Cb1B16IUMO/cwKyDz9Yecpz9i1wgd2cl2gG DPgz1OMu8SLtv5pwmOQqL8+vggt2drD7zhuyoK+UFZ2OA8xBtp mY9xRxxZQrqT3ZFmkBhVSomcgIlr/MfSTTOPHAX18s4WC2jXMS N3OPd9gdBuWz1yi5Z5EjsY8ZcRv+nqjlKP5qJgSHK0qxC/7d8H EtY9lYmESCvn5F1btxlgRnafo2g3HBCDf0BUA4wuMgs/y7EIs1 24MT81d7M5Y7zF2NAtCel8T7VUUl1veMH3bA96kZTuIViGOhsU AjFISerASYjbA== X-Gm-Message-State: ALoCoQml607jXS/cmm+nBbtP66zXXGeyUXB+3n/ASiHPU/uU6J7CF9+1PqSKO5dS2on5e0sHxerz 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;