Message ID | 20240227230431.1837717-12-alexandre.belloni@bootlin.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-84170-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp3019985dyb; Tue, 27 Feb 2024 15:16:38 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVoiA1vx7Qvaam66UKWWbUIP3m/rvzUOwrn/6H1BzJRU7yVP/T2lFheLkrBsB20+kvqVT4ZAofXRfC9fMPSlxm8EiLxPw== X-Google-Smtp-Source: AGHT+IFOg40qyxA6KxDQRngWaod5M7GAZaG6aM4Vms7VOrYjPkyDlCN4RWTUYR8ud3LnUYPsFR+E X-Received: by 2002:a17:906:b216:b0:a43:4335:cbbb with SMTP id p22-20020a170906b21600b00a434335cbbbmr5085926ejz.75.1709075798167; Tue, 27 Feb 2024 15:16:38 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709075798; cv=pass; d=google.com; s=arc-20160816; b=EwwfDu6NNehRkQt+ShN2Hc2Xfc3Gi0UPNRZVd+1x0nuQF5mDOgXtenrLzVrBZ4a80I qMBMk/XWc/s2R3csWzKe8fUrqmLIKPd4O8K5sJy6xvXYZSzqrZA5zZCrC3hXA7u9FgvG +KO16LFuR5bp5H/Og7AHSZvXl2KPsfmH/4zULCX28XIp2X8Q/mKkmtHKAon8K2weV1zl Y6JuVaYJMKEKFFd4RfFF7p7i7m1LwHtmqB2KHXcvhENTDOGgLLo2xRcjtQoDtnWVUZ5F +pfMu2YjHFIvbWQoGyhOQMHyP6+WKnOq+gKUVkuAi0FqADUrEsMLfYU6X33h68fs6jDm ZULA== 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:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=wcVFj58DWatdZCpW23XgyZzih45dzb/RtLzeIt09wSA=; fh=v+fQpqqloRxheg66y6v5BEIIh4tqlWdyRuynNr5XQWo=; b=RSez4B8XPtQHXsMe/Za87/LoCdLn1ydo3TaJw/6rhgiyxCZ8VQlvocZMkQke6Rw8uG TMiFfqv5eyIyClQiEFlbsK1/A97qQnIjg1RSxm7cOT6vMSXghGn0p5sZyQHbyeWQpNhm Ibe8CrENwIXM305w3b0vPQTcgJqm9EMFUNRqRlhOvjvy4roX8cIkbHMCFLijaTyQpkGx pkMywvvS7GSPlyuCeHWseWssI2/MMllNaCWcxYcssgBCt6Jk1MnkjHP9anna415hbzl7 Gec8pTmrOtUC6p3Bik48qo35rvFCyamyG7xhNmsU7ZpPPSOn5TTekrnzUAr2IIQanvop 2UZw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=otVC6l8S; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-84170-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-84170-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id hg4-20020a1709072cc400b00a43bf126e8bsi797939ejc.505.2024.02.27.15.16.37 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 15:16:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-84170-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=otVC6l8S; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-84170-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-84170-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.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 am.mirrors.kernel.org (Postfix) with ESMTPS id D249C1F2B444 for <ouuuleilei@gmail.com>; Tue, 27 Feb 2024 23:07:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E046759B57; Tue, 27 Feb 2024 23:05:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="otVC6l8S" Received: from relay9-d.mail.gandi.net (relay9-d.mail.gandi.net [217.70.183.199]) (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 842C656762; Tue, 27 Feb 2024 23:05:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.199 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709075112; cv=none; b=nGkJOX41UNK+g8bAWaldAX+fivSWYFM4eoDmmZBobEsKpICmUBuVZvHiu2rs9I5lXcRFmP2oDbL60afUtzK/eMeBuXL81scJ/g2v/7Fj+HYM1ABg9rmY915u7NUT3kXjYoafT7NbMt5aM0/OV65Z0NfldbEuPi7tjIZG6+bPTrE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709075112; c=relaxed/simple; bh=w97gAq5uciLvnevc4CCMhUzgcuwEpOO5fWctBUO7emo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=kk7kB4Hack0ZjjQcsm/Rg2dobvD2SvlGMHHkJ8+LlOiZkUwMvnFQ2HA0j0nQRynx+hkOtD4X6aH4G8527/XXIdkJK25EkCu+Y/6mh/kuW78jODhbvU1D69aM1gP2ZKzSFgZpDHiQ4BFstMFitzQ4vUzX8Ec3kp7UkCgiu4icDOM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=otVC6l8S; arc=none smtp.client-ip=217.70.183.199 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Received: by mail.gandi.net (Postfix) with ESMTPSA id 10E95FF806; Tue, 27 Feb 2024 23:05:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1709075108; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=wcVFj58DWatdZCpW23XgyZzih45dzb/RtLzeIt09wSA=; b=otVC6l8SzW1nAz68yxHvaEK+AT6fcQ+BCgD97fRa4PXi5QdvjoqJ3NaOuphLD5FBjA3bTg QwCAvDyfEWwS2JlGVYd+QNXKZGdxAwL5xkrs/LeaDzUjUslyhucFWjLP5irSJjTki/Mjd1 cxdzAf3jRcIKC0HINKtI6HSQwfy10X8PtwRThRYhMMfpZ+qV+P/GlT7U82ogRZdT7S5opG ox8zBHtLOgPYQ3Ed72PQarmPMOSDxB7WMbAlIYhlhdiNsZDQIBxOhG6Tx9IZXvW8S0Sa9W zB7PYjFppHX7+gq+pxkzHQlezmqNtErGXgNcydx+xQtlzkuYvHkjs3SPZbpRLw== From: alexandre.belloni@bootlin.com To: Alexandre Belloni <alexandre.belloni@bootlin.com> Cc: linux-rtc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 12/12] rtc: ds1511: drop inline/noinline hints Date: Wed, 28 Feb 2024 00:04:27 +0100 Message-ID: <20240227230431.1837717-12-alexandre.belloni@bootlin.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240227230431.1837717-1-alexandre.belloni@bootlin.com> References: <20240227230431.1837717-1-alexandre.belloni@bootlin.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-GND-Sasl: alexandre.belloni@bootlin.com X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1792095864080143492 X-GMAIL-MSGID: 1792095864080143492 |
Series |
[01/12] rtc: ds1511: drop useless checks
|
|
Commit Message
Alexandre Belloni
Feb. 27, 2024, 11:04 p.m. UTC
From: Alexandre Belloni <alexandre.belloni@bootlin.com> There is no reason to not let the compiler optimise those functions as it wants. Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> --- drivers/rtc/rtc-ds1511.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/rtc/rtc-ds1511.c b/drivers/rtc/rtc-ds1511.c index 39efd432e8ea..edb8d90812c5 100644 --- a/drivers/rtc/rtc-ds1511.c +++ b/drivers/rtc/rtc-ds1511.c @@ -71,17 +71,17 @@ static DEFINE_SPINLOCK(ds1511_lock); static __iomem char *ds1511_base; static u32 reg_spacing = 1; -static noinline void rtc_write(uint8_t val, uint32_t reg) +static void rtc_write(uint8_t val, uint32_t reg) { writeb(val, ds1511_base + (reg * reg_spacing)); } -static noinline uint8_t rtc_read(uint32_t reg) +static uint8_t rtc_read(uint32_t reg) { return readb(ds1511_base + (reg * reg_spacing)); } -static inline void rtc_disable_update(void) +static void rtc_disable_update(void) { rtc_write((rtc_read(DS1511_CONTROL_B) & ~DS1511_TE), DS1511_CONTROL_B); }