Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp3245031pxa; Tue, 18 Aug 2020 10:05:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzQjOSDXK1wxtPNQDVQB7+lUL6XH9Omt28kZyix27iogjzeJxSy8RacRJOluqGfRHacWnP7 X-Received: by 2002:a17:906:f24c:: with SMTP id gy12mr231410ejb.275.1597770333601; Tue, 18 Aug 2020 10:05:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597770333; cv=none; d=google.com; s=arc-20160816; b=0IZhjMNimE8GUCB/O+SVTAowjGwSNLKX/0BeHGcx1tyCaOQ5XkLbfi1SLOCK4S/INJ SJav6FcKHU8WkqCT+PlEHtG2vvC+2hPvwEVlBXqVCBP963wmq19aZZQlJ5K6RaGHwJff r/9xeDFH8XbQ5urrGg5ga5dpYs3KMvGqTU0bPeKy69pdUuyU5u3c7jweK+W+QzBfWpTR IdSTAYbQRP46TrUq5UOsIFEjfA1rYc7R1sll0K6+QsjvTQMk4KbnSpteGVkcWqsnywND rdWu9Wus0GhokUQ8NxbE1iBErrkpv/zRotsFqOYUYL5zTXVz9Mr1rZte+JpLB7JloWkF RpNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=cHhaJZL4omWMEhSsDlpfu6kH5HHdc261F7armVnM+tk=; b=z7uiU6eWKxgR2hyewe4+oo9bCW31xKpDLzSgNVxogeqOklm8yKv0Ve+D6pOerX2iWM nidNv9EB94Xy2u8LTZaunxMXUkMQm73XfFDuu7S/4GvAuJPD/a6lzkQ0qzfr82Id8gWp 5KkqXAutcbjTKrZmutAvUE5OodVQio6+6A63fdIT0Qb3ogSMmL3BwvKIT4Y1afG7bcta YtP0jZtkodlG/zzsuzHGO7GCF4T9eOSvVEjc0QKIXA+So4XKs3sBOM7JJR4Ut9Xg48IG UJlPv+b4cHwAAC/y7a+5d27QCk0J1Twlg0hHd3xt5TjIdy+fuBN35kozFcavKHlwOkH/ I5xQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=fyaXfJJY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u21si14084892ejr.295.2020.08.18.10.05.09; Tue, 18 Aug 2020 10:05:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=fyaXfJJY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727101AbgHRREP (ORCPT + 99 others); Tue, 18 Aug 2020 13:04:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48130 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726974AbgHRREA (ORCPT ); Tue, 18 Aug 2020 13:04:00 -0400 Received: from mail-wm1-x341.google.com (mail-wm1-x341.google.com [IPv6:2a00:1450:4864:20::341]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DBDE0C061389 for ; Tue, 18 Aug 2020 10:03:59 -0700 (PDT) Received: by mail-wm1-x341.google.com with SMTP id p14so16904407wmg.1 for ; Tue, 18 Aug 2020 10:03:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=cHhaJZL4omWMEhSsDlpfu6kH5HHdc261F7armVnM+tk=; b=fyaXfJJY7Gz1vHNo9Gjb151UCFusosFYaZ49ybX/W6V5evBGH65wQQBumzZC9MyxA/ MAvGCRF4UybKaqsdRSC77fan5k61zqCZgeCy5Cb8B12kdHG0w4bzU3bWz5FnZZGUnbcV geaDEEeYrbPPDZsCp9aCuEud410X1ttD1gAlsRAyA4cL+nht1lq7XxrotlESQvvlydFM rsT9RaLt3LJ8csbW21Yf3OfnCB0GbA/bkPCT/qrk5P1zG5LMWVGpAQ1YGLgSz+6wP/+z t6tiFdULZbzT5df6HS1pDAYeQduSBis5eM20VhMCvKJJ/zWXTIriOHw+K25vvGN5TLk4 ld6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=cHhaJZL4omWMEhSsDlpfu6kH5HHdc261F7armVnM+tk=; b=B1xsM6mhTLkKBo2qLJ0QSEi37/0Zq8Waql7llTLaYXdQWJT8wLqIO9LcjhTc3YSHpB KIMdJBleRJjQte44duR9uQLRTi9nKEMkwoNyFqxJLUjGT4PloohSAj5Opm7YzET2LtMm r4+75VDCNBylpmBa5DaezOhbxfVIyLo1kxcstgiFXkZ//SL1aXTcG4SLsCNNqftERujS ms3eCzy37t3HG1cqT5dLouufuyX8ZqyA9bcnOjkDigZqqZXpVXekx59n0cJTn7+6YYFf NlncvnUaD2w4CBYLFeujdKZGIdnHUqL2s0E7BFFXj2M0hL1TabBV+WVJuXv1l6HPh2xF dgog== X-Gm-Message-State: AOAM533dFZNve1fVZ1qwkl8DcHN2ZstByGhi3CWymLn1TC6/xKbKICs4 0Wpjj6g/7plSulIGHkP2G9Y= X-Received: by 2002:a1c:4b18:: with SMTP id y24mr842213wma.95.1597770238467; Tue, 18 Aug 2020 10:03:58 -0700 (PDT) Received: from localhost.localdomain (cpc83661-brig20-2-0-cust443.3-3.cable.virginm.net. [82.28.105.188]) by smtp.gmail.com with ESMTPSA id c14sm34833420wrw.85.2020.08.18.10.03.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Aug 2020 10:03:57 -0700 (PDT) From: Alex Dewar To: Ingo Molnar , Peter Zijlstra , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , linux-kernel@vger.kernel.org, clang-built-linux@googlegroups.com Cc: Alex Dewar Subject: [PATCH] sched/cputime: Mark function as __maybe_unused Date: Tue, 18 Aug 2020 18:03:36 +0100 Message-Id: <20200818170337.805624-1-alex.dewar90@gmail.com> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Depending on config options, account_other_time() may not be called anywhere. Add __maybe_unused flag to fix clang warning. Signed-off-by: Alex Dewar --- kernel/sched/cputime.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/sched/cputime.c b/kernel/sched/cputime.c index 5a55d2300452..43ede0d6661c 100644 --- a/kernel/sched/cputime.c +++ b/kernel/sched/cputime.c @@ -252,7 +252,7 @@ static __always_inline u64 steal_account_process_time(u64 maxtime) /* * Account how much elapsed time was spent in steal, irq, or softirq time. */ -static inline u64 account_other_time(u64 max) +static inline u64 __maybe_unused account_other_time(u64 max) { u64 accounted; -- 2.28.0