Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp674410lqb; Wed, 17 Apr 2024 07:47:55 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVRiuRhF02NSMDnSQlc7+hfpKYKvPLAGnDeeQCdN7/Ke0GGeEEB0nM4agexla8bD74T/rqCtgVa1fzoWAjNmdPQMo6ZMY/GWj5L0qlYEg== X-Google-Smtp-Source: AGHT+IHnIzgnMSJ0j6Z8SjooYFoZehSdKkI9vFiG4rnw49SOyGib4Khh94M6jk2avgFIpzpcAYmg X-Received: by 2002:a17:90b:46d0:b0:2a5:34a7:3430 with SMTP id jx16-20020a17090b46d000b002a534a73430mr17107365pjb.11.1713365275381; Wed, 17 Apr 2024 07:47:55 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713365275; cv=pass; d=google.com; s=arc-20160816; b=FF9jUucy1ryM8wsD6zh+pfczj/Ypp8+2Y2cTgFgY1Kuj1eFWA6oQp4CHH8BmON7rL2 lfXs5EsAveY08Anzk8cERK1kHbcwVPAe7zPf8SLH+23FDSj33i98YfmFCE2OrpZZcjEa wohqwHhr2jXEiar9TIHwneeBATbzeuXaPhWp0Ep9UD70pCgjXxDHVfNexDHt3ADesdoy 3PERFeI+B/6nCMT1VZiwK7WMEUEPRLyiN60F6d2GJKIAP4Zlz/sQCmrPa96C9/ytyLox qD46jXqHwFfQfec0gWiHX0ewP42qy8IBe4m2roytB6jfMOIcPUCS+6m3uMaH9pw/HoY6 0Mkg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:date:references:in-reply-to:subject:cc:to:dkim-signature :dkim-signature:from; bh=Iv0F5n+wt2/isQQuczAB8LxbG9OobE569mefgXu1zak=; fh=ZYeK5WUqHbe6oEphFI3cKTK83nDDkhAZGxViwilAJ9M=; b=xDbtMjhSBaFFUwpjQ+KvtzL8HG3AITYetoIjG05m2IiHsw1T3LgsPUsexzoVUR+Xm3 wyql7I4jOHsvJ6cNyNzq4glYHVMuxAMWwEVd1auSAdhNRSBBs+n04O3rZVlKYXy4bFow Q5KN+w60e9Ht913Q36ojZshoL/BIJBzm3bQx7bv72wmgN+yk86llJj1VuM62AZq+XNme ll2XZFAi3wWxADBMMUtGdOL90WycuQX7yD6otiYaynFvLA74YOvaM4ZfipCeM/myNca8 7WBytUEBxn1w58GOQpfB2tqJ0h6nUQLHg0Z46Snk3wQQxVoTGBPPOKhuT8u2+iD4VRw2 9qcQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=xz+vAPcs; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-148678-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-148678-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id y6-20020a17090a8b0600b002a4abf41261si1394426pjn.89.2024.04.17.07.47.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Apr 2024 07:47:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-148678-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=xz+vAPcs; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-148678-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-148678-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id F2076B22303 for ; Wed, 17 Apr 2024 14:32:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5BDE31411F9; Wed, 17 Apr 2024 14:32:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="xz+vAPcs"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="wIrsteCA" Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 23A1113C3CF for ; Wed, 17 Apr 2024 14:32:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713364355; cv=none; b=EPCowtE7HtEbPihDUgjsdBo4d086F8/vphPv+TDXEnwkRsnLTaZPY/c6kVX1wn/IfBBgkAtquIzVgMJO7Yow1jrETivwzGrS4F3pADg+xwWNOuPM8Tf/kRgIkwhPqGL1jbdPqEQrAupadf52ELTIGrH02pJbDu+/Jjo1rgRnzsg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713364355; c=relaxed/simple; bh=akRpoSE1aSsr1suMziutI2H/OvzunaBEH2OaRnIAoPY=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=aboeWs57g6Ml1lLzhjGj7e3r279W3Vf6BCv3aMOgE4z/4ua5rx5zkoGSY5NxocXygC16QObX92brPR5dFYH7fv/VEyQGCJkPC+HqsPQ1+f6KHyNsoGsdDtwUcWm8BPUDMwf95kYR7kg+APHP3hWhq8+58vfnUrUz6cbXH8SK4Ro= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=xz+vAPcs; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=wIrsteCA; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de From: Anna-Maria Behnsen DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1713364352; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Iv0F5n+wt2/isQQuczAB8LxbG9OobE569mefgXu1zak=; b=xz+vAPcsqGsKD84y2YdcuuS2AbFW8kpdy+hzXHOifd14UbY3s+PmTcOWxsZd9VZYzmlhUc gA6j/t/Q2G1ZzKCQ8iSEymS/xp00dmpzCnH2M7yJIsmkv6GIeRDmDe3zdxQjSUhH9dxdPH p58mwtz0Xtp4lPwwbhWmb7pb0fZ3ayyKcf28rL92fUdGwzcxzt6m3h6F8U54Cm9RcZuGD9 f6MwgUyfGuqYn/e7KltS0eMkOfcCHusXK1YfOFKd53687ce4HAXHIrzOTdIaKwDf9sLBjB 7t/sjQ7aoYLXp+uCMPi2rKNQpfEKrjb9QL3qWt2C3tcMozcGkXZrLgO+ejGT8A== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1713364352; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Iv0F5n+wt2/isQQuczAB8LxbG9OobE569mefgXu1zak=; b=wIrsteCAzaxtTnnZPxNVYBoin+Wlw4BKtWvOZh/Yff6P0Hf41IcGHKx9xGQxzaTO8sieco +dxXkj/4A+2wCnAw== To: Jiapeng Chong Cc: frederic@kernel.org, tglx@linutronix.de, linux-kernel@vger.kernel.org, Jiapeng Chong , Abaci Robot Subject: Re: [PATCH] hrtimer: Remove unused function hrtimer_hres_active In-Reply-To: <20240417072342.113756-1-jiapeng.chong@linux.alibaba.com> References: <20240417072342.113756-1-jiapeng.chong@linux.alibaba.com> Date: Wed, 17 Apr 2024 16:32:31 +0200 Message-ID: <87wmow3vr4.fsf@somnus> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain Jiapeng Chong writes: > The function are defined in the hrtimer.c file, but not called > elsewhere, so delete the unused function. > > kernel/time/hrtimer.c:653:19: warning: unused function 'hrtimer_hres_active'. > > Reported-by: Abaci Robot > Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=8778 > Signed-off-by: Jiapeng Chong > --- > kernel/time/hrtimer.c | 5 ----- > 1 file changed, 5 deletions(-) > > diff --git a/kernel/time/hrtimer.c b/kernel/time/hrtimer.c > index cae9d04b5584..bdaf23356d4b 100644 > --- a/kernel/time/hrtimer.c > +++ b/kernel/time/hrtimer.c > @@ -650,11 +650,6 @@ static inline int __hrtimer_hres_active(struct hrtimer_cpu_base *cpu_base) > cpu_base->hres_active : 0; > } > > -static inline int hrtimer_hres_active(void) > -{ > - return __hrtimer_hres_active(this_cpu_ptr(&hrtimer_bases)); > -} > - > static void __hrtimer_reprogram(struct hrtimer_cpu_base *cpu_base, > struct hrtimer *next_timer, > ktime_t expires_next) Can you please rename __hrtimer_hres_active() to hrtimer_hres_active() and remove the old hrtimer_hres_active() function? Btw. you could add a Fixes: 82ccdf062a64 ("hrtimer: Remove unused function") as the warning was introduced by removing the last (unused) callsite __hrtimer_peek_ahead_timers(). Thanks, Anna-Maria