Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp945662lqp; Fri, 22 Mar 2024 00:05:15 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXWODTepBlFiEkvzQQe+jtFpKVZg2KrvdzFVr6xt6K1qJmXNaZbG+ABmHTbHGYNdF88IqsJWHD4vHMFJxshJ82yWT5dVaunnixyWJOrmw== X-Google-Smtp-Source: AGHT+IGWVeC7SkJmLr1Ac1y6fDdNg1sxWJfRmWvr23ikWk4AT7l3LpZ2/XuF5CfixZr3iY726ZD1 X-Received: by 2002:a05:6870:224e:b0:229:7fa8:f4c4 with SMTP id j14-20020a056870224e00b002297fa8f4c4mr1508790oaf.36.1711091115186; Fri, 22 Mar 2024 00:05:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711091115; cv=pass; d=google.com; s=arc-20160816; b=WMcX3Y3NAsaGE5JlqXn/mZpjYD+AQjEsFrzP+Wqw+4Yw/aWmaABNDW/YK+BypsyF5i HObsBKREsbPi1DI1+VNUnNDVV2srjD/mbP0akuAj9U3SsyzXvjpBUKGCOot37yF/SNPo zbJPert8Y/F2hEnu/GaYkYJo4rF9d1lJvaJhEjt+kej1PoZjRechvETfDLI1Q7wsZHZX w+W/HTzmTuixughgApsdSGDpRcZRNnE2MKvvRh7n6G1qcd6+gbpLfco06Vw+2ubbjyxS /bSIDdBdrKgE2COBPy8e9eolDSQiuaZRzTF86d47egxSL/LAyLjDPdC1SLR7N+Bg0bhp /y3g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=gHQPLGmFlzcvl6KThN3QzuzYTc9vixqyFqxGvDiC/nI=; fh=LGnJaT1pumNdC/i2uD68uO3mYIOEvj7mZpHiT0VHYwQ=; b=q0T5/LWo5mi7T4+nKepe48Zx4un8109hG8m8TpuIiHNy0WMdTTsWkDYOLFTs1nKJaG Nv3/4RatRVNqgk0dL96ZtRSj7leihPQW/WuqgMIdPDgpYkH6JopYu8t8uLBEpgpgAnew tsTXLAOv8wSqgHwuThJP92rBGJVTV289wmXYNNwCa1GI8h4tlmeQ2dMDj1E6pUFPpJPx B0iP3fEhbqLNpMXh4PiF/DyFTm7I8WiugoWM5JvA+fLaCIeQOm3Pt9PC0SRsaBKvqG5p 0wFjV61SSiTQNFC5lIHTg/qg+uwyFIjb7hr63U19Aj7ttmFi2nEw01/VTrSC2DO1Jsv5 f8uw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.alibaba.com header.s=default header.b=w6YVtoBB; arc=pass (i=1 spf=pass spfdomain=linux.alibaba.com dkim=pass dkdomain=linux.alibaba.com dmarc=pass fromdomain=linux.alibaba.com); spf=pass (google.com: domain of linux-kernel+bounces-111046-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111046-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.alibaba.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id b20-20020a63eb54000000b005c6b59c91bbsi1429110pgk.654.2024.03.22.00.05.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Mar 2024 00:05:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-111046-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.alibaba.com header.s=default header.b=w6YVtoBB; arc=pass (i=1 spf=pass spfdomain=linux.alibaba.com dkim=pass dkdomain=linux.alibaba.com dmarc=pass fromdomain=linux.alibaba.com); spf=pass (google.com: domain of linux-kernel+bounces-111046-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111046-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.alibaba.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 2CB6D28539C for ; Fri, 22 Mar 2024 07:05:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 01E6E12E58; Fri, 22 Mar 2024 07:04:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.b="w6YVtoBB" Received: from out30-118.freemail.mail.aliyun.com (out30-118.freemail.mail.aliyun.com [115.124.30.118]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 89E091170A for ; Fri, 22 Mar 2024 07:04:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=115.124.30.118 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711091094; cv=none; b=NKnSwmyjVyGcfF5An8fuu7cdkuKm2wDx1/YM4+RdxrM0c8oWgNbdCFkzUEkJNehbsiIIu4Wr5Ge/JqsiAhpeg0YEEU1mGCT5JsKVuHcB8ZDkr1ISB05CEalzJJc+AA4fRMqHJuBOGJRuSSpbBzfj5mC2vtgjcEOCTYYb4jOzUyQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711091094; c=relaxed/simple; bh=eza72tNLhjUf/QBka4ZDCt2HW4/dv5SgxhZDOaQgl9c=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=JDdGROxFPMVj/SMj7sJgYDKotaioa4V/NyFwYpdtUuOPzVda2Wy+qxcgFkyGPBO9KMMP5mlKAjmUq5wvtBa2Jwhzr07gIt5Ue8Il2X+itHSOwZoFPA3faRM8jI/7fI2bdOzm1ZBGbl8OH9KaEpea01s/f2jiOMUi4+QN7N7+Vds= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com; spf=pass smtp.mailfrom=linux.alibaba.com; dkim=pass (1024-bit key) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.b=w6YVtoBB; arc=none smtp.client-ip=115.124.30.118 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.alibaba.com DKIM-Signature:v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.alibaba.com; s=default; t=1711091089; h=From:To:Subject:Date:Message-Id:MIME-Version; bh=gHQPLGmFlzcvl6KThN3QzuzYTc9vixqyFqxGvDiC/nI=; b=w6YVtoBBfeo8OQT2r7B0Qlzd+pxD0HurkL5Jr2ggGM2wKtLdjw1XeszuwMLTONvlOWgJswomMj7is8ZLu5eIQwWVlgDAfQUJz2eFjXvGLbfDobvEWNQ05enS2/f6FTrfAjLGQTtsQvILLUjgP5PjB77my9/cFJBRx3xfJ5rTuUU= X-Alimail-AntiSpam:AC=PASS;BC=-1|-1;BR=01201311R181e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046051;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=4;SR=0;TI=SMTPD_---0W31BjBz_1711091082; Received: from localhost(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0W31BjBz_1711091082) by smtp.aliyun-inc.com; Fri, 22 Mar 2024 15:04:49 +0800 From: Jiapeng Chong To: tglx@linutronix.de Cc: linux-kernel@vger.kernel.org, Jiapeng Chong , Abaci Robot Subject: [PATCH] hrtimer: Remove unused function Date: Fri, 22 Mar 2024 15:04:41 +0800 Message-Id: <20240322070441.29646-1-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The function are defined in the hrtimer.c file, but not called elsewhere, so delete the unused function. kernel/time/hrtimer.c:1880:20: warning: unused function '__hrtimer_peek_ahead_timers'. Reported-by: Abaci Robot Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=8611 Signed-off-by: Jiapeng Chong --- kernel/time/hrtimer.c | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/kernel/time/hrtimer.c b/kernel/time/hrtimer.c index 70625dff62ce..cae9d04b5584 100644 --- a/kernel/time/hrtimer.c +++ b/kernel/time/hrtimer.c @@ -1875,25 +1875,7 @@ void hrtimer_interrupt(struct clock_event_device *dev) tick_program_event(expires_next, 1); pr_warn_once("hrtimer: interrupt took %llu ns\n", ktime_to_ns(delta)); } - -/* called with interrupts disabled */ -static inline void __hrtimer_peek_ahead_timers(void) -{ - struct tick_device *td; - - if (!hrtimer_hres_active()) - return; - - td = this_cpu_ptr(&tick_cpu_device); - if (td && td->evtdev) - hrtimer_interrupt(td->evtdev); -} - -#else /* CONFIG_HIGH_RES_TIMERS */ - -static inline void __hrtimer_peek_ahead_timers(void) { } - -#endif /* !CONFIG_HIGH_RES_TIMERS */ +#endif /* !CONFIG_HIGH_RES_TIMERS */ /* * Called from run_local_timers in hardirq context every jiffy -- 2.20.1.7.g153144c