Message ID | 20241115-converge-secs-to-jiffies-v2-16-911fb7595e79@linux.microsoft.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 95359D68BD8 for <linux-mm@archiver.kernel.org>; Fri, 15 Nov 2024 21:27:20 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 5A9E28D0011; Fri, 15 Nov 2024 16:26:52 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 52E7F8D0013; Fri, 15 Nov 2024 16:26:52 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 2BDC88D0011; Fri, 15 Nov 2024 16:26:52 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id F364E8D0013 for <linux-mm@kvack.org>; Fri, 15 Nov 2024 16:26:51 -0500 (EST) Received: from smtpin01.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id A2BA5C015B for <linux-mm@kvack.org>; Fri, 15 Nov 2024 21:26:51 +0000 (UTC) X-FDA: 82789611870.01.3B47E67 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by imf12.hostedemail.com (Postfix) with ESMTP id 40D824001B for <linux-mm@kvack.org>; Fri, 15 Nov 2024 21:26:29 +0000 (UTC) Authentication-Results: imf12.hostedemail.com; dkim=pass header.d=linux.microsoft.com header.s=default header.b=oGb2YPV5; dmarc=pass (policy=none) header.from=linux.microsoft.com; spf=pass (imf12.hostedemail.com: domain of eahariha@linux.microsoft.com designates 13.77.154.182 as permitted sender) smtp.mailfrom=eahariha@linux.microsoft.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1731705830; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=DTjXQ8JEnxKHPkRfiey8gv8xkSCkh1L+oMakOx6bumQ=; b=sVaQhoGjnFZS+iRAtbgpVpNdz8Uevmm5Ovpg6Tw25Mtf19swWSP7jHKK4bPsFUml6FFb3n NeN1PBvDrVy+OkBvN308gONdeihaCtlEFl8CVWLA49FlEZb+TrRdRSnrHgL5JLUr2kKJ4H yjzlZjI+KEtxIyv0WeyWui1vFxdvWTo= ARC-Authentication-Results: i=1; imf12.hostedemail.com; dkim=pass header.d=linux.microsoft.com header.s=default header.b=oGb2YPV5; dmarc=pass (policy=none) header.from=linux.microsoft.com; spf=pass (imf12.hostedemail.com: domain of eahariha@linux.microsoft.com designates 13.77.154.182 as permitted sender) smtp.mailfrom=eahariha@linux.microsoft.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1731705830; a=rsa-sha256; cv=none; b=jXr8IV0j23qRip5dViGPY8XJAqFFnT/MJRcvr7TLmDfp5OcyF5zWXI8JMtQIjKh7JHEXKU G/HfffOxcBaVPqf7Ch+FgQ+ULPhMhjP6031UhU7w97SzEULNyy8yfZgXPPcmHoq1OkqiyC npJxqZAEgR0FkMgE9mGaECku3VsriL8= Received: from eahariha-devbox.internal.cloudapp.net (unknown [40.91.112.99]) by linux.microsoft.com (Postfix) with ESMTPSA id A9C08238AF4D; Fri, 15 Nov 2024 13:26:44 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com A9C08238AF4D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1731706004; bh=DTjXQ8JEnxKHPkRfiey8gv8xkSCkh1L+oMakOx6bumQ=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=oGb2YPV5HdUkrLc8aXXGxz7j6fdC94ISGz/3Z3JDkeGMzqfQOdm/os+DxRfbZJSZm Sm8lyg5zbYiuzLJMaRkj7E/23RBdauVbVu8dNvl0Gp3UJGc2WZ7231aTsociCQa1Qd Z6HMNGoW3/gYR/l/pPCt55x0CtSvKcJxm9RO1wp8= From: Easwar Hariharan <eahariha@linux.microsoft.com> Date: Fri, 15 Nov 2024 21:26:33 +0000 Subject: [PATCH v2 16/21] Bluetooth: MGMT: Convert timeouts to secs_to_jiffies() MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20241115-converge-secs-to-jiffies-v2-16-911fb7595e79@linux.microsoft.com> References: <20241115-converge-secs-to-jiffies-v2-0-911fb7595e79@linux.microsoft.com> In-Reply-To: <20241115-converge-secs-to-jiffies-v2-0-911fb7595e79@linux.microsoft.com> To: Pablo Neira Ayuso <pablo@netfilter.org>, Jozsef Kadlecsik <kadlec@netfilter.org>, "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@google.com>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Simon Horman <horms@kernel.org>, Julia Lawall <Julia.Lawall@inria.fr>, Nicolas Palix <nicolas.palix@imag.fr>, Daniel Mack <daniel@zonque.org>, Haojian Zhuang <haojian.zhuang@gmail.com>, Robert Jarzmik <robert.jarzmik@free.fr>, Russell King <linux@armlinux.org.uk>, Heiko Carstens <hca@linux.ibm.com>, Vasily Gorbik <gor@linux.ibm.com>, Alexander Gordeev <agordeev@linux.ibm.com>, Christian Borntraeger <borntraeger@linux.ibm.com>, Sven Schnelle <svens@linux.ibm.com>, Ofir Bitton <obitton@habana.ai>, Oded Gabbay <ogabbay@kernel.org>, Lucas De Marchi <lucas.demarchi@intel.com>, =?utf-8?q?Thomas_Hellstr=C3=B6?= =?utf-8?q?m?= <thomas.hellstrom@linux.intel.com>, Rodrigo Vivi <rodrigo.vivi@intel.com>, Maarten Lankhorst <maarten.lankhorst@linux.intel.com>, Maxime Ripard <mripard@kernel.org>, Thomas Zimmermann <tzimmermann@suse.de>, David Airlie <airlied@gmail.com>, Simona Vetter <simona@ffwll.ch>, Jeroen de Borst <jeroendb@google.com>, Praveen Kaligineedi <pkaligineedi@google.com>, Shailend Chand <shailend@google.com>, Andrew Lunn <andrew+netdev@lunn.ch>, James Smart <james.smart@broadcom.com>, Dick Kennedy <dick.kennedy@broadcom.com>, "James E.J. Bottomley" <James.Bottomley@HansenPartnership.com>, "Martin K. Petersen" <martin.petersen@oracle.com>, =?utf-8?q?Roger_Pau_Mon?= =?utf-8?q?n=C3=A9?= <roger.pau@citrix.com>, Jens Axboe <axboe@kernel.dk>, Kalle Valo <kvalo@kernel.org>, Jeff Johnson <jjohnson@kernel.org>, Catalin Marinas <catalin.marinas@arm.com>, Andrew Morton <akpm@linux-foundation.org>, Jack Wang <jinpu.wang@cloud.ionos.com>, Marcel Holtmann <marcel@holtmann.org>, Johan Hedberg <johan.hedberg@gmail.com>, Luiz Augusto von Dentz <luiz.dentz@gmail.com>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, Florian Fainelli <florian.fainelli@broadcom.com>, Ray Jui <rjui@broadcom.com>, Scott Branden <sbranden@broadcom.com>, Broadcom internal kernel review list <bcm-kernel-feedback-list@broadcom.com>, Xiubo Li <xiubli@redhat.com>, Ilya Dryomov <idryomov@gmail.com>, Josh Poimboeuf <jpoimboe@kernel.org>, Jiri Kosina <jikos@kernel.org>, Miroslav Benes <mbenes@suse.cz>, Petr Mladek <pmladek@suse.com>, Joe Lawrence <joe.lawrence@redhat.com>, Jaroslav Kysela <perex@perex.cz>, Takashi Iwai <tiwai@suse.com>, Lucas Stach <l.stach@pengutronix.de>, Russell King <linux+etnaviv@armlinux.org.uk>, Christian Gmeiner <christian.gmeiner@gmail.com>, Louis Peens <louis.peens@corigine.com>, Michael Ellerman <mpe@ellerman.id.au>, Nicholas Piggin <npiggin@gmail.com>, Christophe Leroy <christophe.leroy@csgroup.eu>, Naveen N Rao <naveen@kernel.org>, Madhavan Srinivasan <maddy@linux.ibm.com> Cc: netfilter-devel@vger.kernel.org, coreteam@netfilter.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, cocci@inria.fr, linux-arm-kernel@lists.infradead.org, linux-s390@vger.kernel.org, dri-devel@lists.freedesktop.org, intel-xe@lists.freedesktop.org, linux-scsi@vger.kernel.org, xen-devel@lists.xenproject.org, linux-block@vger.kernel.org, linux-wireless@vger.kernel.org, ath11k@lists.infradead.org, linux-mm@kvack.org, linux-bluetooth@vger.kernel.org, linux-staging@lists.linux.dev, linux-rpi-kernel@lists.infradead.org, ceph-devel@vger.kernel.org, live-patching@vger.kernel.org, linux-sound@vger.kernel.org, etnaviv@lists.freedesktop.org, oss-drivers@corigine.com, linuxppc-dev@lists.ozlabs.org, Anna-Maria Behnsen <anna-maria@linutronix.de>, Easwar Hariharan <eahariha@linux.microsoft.com> X-Mailer: b4 0.14.2 X-Rspamd-Server: rspam04 X-Rspamd-Queue-Id: 40D824001B X-Stat-Signature: 1bphkncgimu5o3wh7wo7e3up7kph8uyn X-Rspam-User: X-HE-Tag: 1731705989-778023 X-HE-Meta: U2FsdGVkX18fNdT0M/bKNPOj2VVi41VjnOkCX2wLYeRGKW4IP9kHb/bpU9lOKKfzSAfTz2ylgoL/f2D3RlC6XJrgLKK+1hVR9HQVkUxZ561KihawHo2m0w2sY2vAdL1zvhFPtwBCE5OHNPJOsYS86OnkwM5r9pn/G53YuZXeeaH6jU6fJmOitzft6veNDfi1wJY8G9ezVOG7CQ0hWZoxsYoRuDNdT6t6wiN/g3lpyzbkFAUPLMwVQpNQv97qxrwKFbI+1sl4fYMSILajRAZrSQade0Y2LKlwtJz7F4p3Y2g13ie5LNJBBaJv/AtYWlzUwtfkvuoiuzK6oBEpfYs1IyTohaTcAFOMQ/6Em6+aR8IMdew1gtzU4q/e+kA9X19m8HKyQTT5IysuSPXw4S+Uv4gV19EqPKu7OA39OljVk0xnsqx+0EDxY+186PpvdP+SJM9VSy2V+qN/9njclJIdQl1Hcgph0VNH6G5iHiQ/PACG3Lc+Un7mKjYpnflUyr0ciljTHfSURmpYe4Q0ajapPr6BhMi27o6kk/7D5jGE2NhB/torcvKqXb/PfgdJ+tdgii2GEJQA1DxMODyhywON1uN/plLi2pNZ4HEERfm30ezm6rwNtJj0IkD8gpZXwbDPywfs4atjaHJhndvWF8GOFMbc0DMazYLBzRMpDdgmT8J5YsRUe56hEzfObXSd96XJFNL+byOhIs9UZHBMmRFXQ7rVwLUEvnlSoppu9X2Tm10mr/tasakjIOT7Tfpq0Sg0DlSH+E0Mk3sCrEI9OZmiaRC2CNaH1PLCxo11JXa/HOhqhEq7AXglg5zqlctPSjMtYAFrgIRXTUEwGfE6bSTekqeV2wbUw2tJSKQ/vna7mrcA80FZycb78IhKDmjyMu72OTC6E4/uYI0SCLO+tJAHefpdeDFkoirqSaEdPLeesTone/fm2CRraFY6A3ir5byEjaxM27aW/VV+EbvQqvZ 54jTYCmt CKZsgqXBHmIAlToQsh2jgao2Rh12kXl6CWLZLwpUiChCJSBdookVDHf2TgylSpWGIj+otdnxApK4Fvg5bbEpYIb+32KmPYIj2XKsQRiQkjWbv/Z+KmtfYtnCreQuKdwAVpZjwE3rGxhBWRnS3d5J1YXT2Q0wc39xzlVZkzlmfHKkHTe3rgDY/Kw7+aVaPsJsWSEQGRbClJQAVPYDr2FFNR0YL3HuBSSybdq+os3aDhLzt8fzPwTT8/R4s/9WDluNvx0deQS20NHJHkA3qVjRb3TVjD0jIxROLep8pHL3dDX05fGRkqX9PoDfmQBgja90AfnRMgZnAy1GQCelzaB3Hluqxyrrse/gVp4ot3tvA1f6iTtK68q69KwJptzO9Ss51U7W9X36yT0X90ZO5xhUA5/4LZImPUcvnDprir44NaQ4RiXcWn8k4a212nOuleaCN5W/X X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
Converge on using secs_to_jiffies()
|
expand
|
diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c index a429661b676a83ec2d34ed7e228195f39a153f9f..ca89c26d04ec64869e6b99de099d343f4c548ce5 100644 --- a/net/bluetooth/mgmt.c +++ b/net/bluetooth/mgmt.c @@ -209,7 +209,7 @@ static const u16 mgmt_untrusted_events[] = { MGMT_EV_EXP_FEATURE_CHANGED, }; -#define CACHE_TIMEOUT msecs_to_jiffies(2 * 1000) +#define CACHE_TIMEOUT secs_to_jiffies(2) #define ZERO_KEY "\x00\x00\x00\x00\x00\x00\x00\x00" \ "\x00\x00\x00\x00\x00\x00\x00\x00"
Changes made with the following Coccinelle rules: @@ constant C; @@ - msecs_to_jiffies(C * 1000) + secs_to_jiffies(C) @@ constant C; @@ - msecs_to_jiffies(C * MSEC_PER_SEC) + secs_to_jiffies(C) Signed-off-by: Easwar Hariharan <eahariha@linux.microsoft.com> --- net/bluetooth/mgmt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)