From patchwork Thu May 2 23:30:15 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Boyd X-Patchwork-Id: 13652199 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 573B6C4345F for ; Thu, 2 May 2024 23:30:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=40fJJbWt8trz/Y664osmSM+Oaid++jlgZZZ0Q8nKEtk=; b=4udlk6nAzAWCiU mDN84rSV3pHVw/CuBtrlC7sPiKUWGbOMphQLoWLL8Fvhf1gzJVrDnZHGrpbOBauRuHBNNqzauyR01 aYi2V8bydHe1//TYxxvkiTZsduiTAsYCIEzJokIecgla4PTu2gSh02mtmrTAsUAEb7ALoTkoqVvNA qkmnHC6kilYxDr1DtYn3O6K3xJfYFbTMSm7SiKo8VdtFwuQrD4HU9RZ8RxmVW8POoA3uQYNGmQx58 E28Llga6hqKAkKD/jUzsaD2cKtAdyX3lEBWJ7ZPlX9wZxPOY/QW1nHpmsGBh4XX5MmoHqaQrXIcqN I8emgWXZZe+jBFt3HegA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s2fsg-0000000EHKI-0Hnu; Thu, 02 May 2024 23:30:26 +0000 Received: from mail-pg1-x52b.google.com ([2607:f8b0:4864:20::52b]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s2fsc-0000000EHJK-1qag for linux-arm-kernel@lists.infradead.org; Thu, 02 May 2024 23:30:24 +0000 Received: by mail-pg1-x52b.google.com with SMTP id 41be03b00d2f7-613a6bb2947so3633931a12.3 for ; Thu, 02 May 2024 16:30:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1714692619; x=1715297419; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=4aHlRU+lYNz9FFM2hjk7x/6oGNEaOSMbIgLXm8XygnI=; b=I2LewS8uj/xiT2fqVtTwRYFEeA/kMzMQ/e7U2mo9Wjat0/jOtSKRMFRRvz9dkxOP/M Le5a3wFoquhTJeJSO2Z4o2P2qGva9T+lewDiB68YaAeL3w3bZvhO/VRlAUY79VHGk3NN Pq3ogxNZgYLjqk/7z0ErGZEmNI8BYxbzhZnNU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714692619; x=1715297419; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=4aHlRU+lYNz9FFM2hjk7x/6oGNEaOSMbIgLXm8XygnI=; b=bHGzIFNg6MvBSk6qVpidINZsv7ZAAwO73gG2bfllm0v1iuJJomF74gkyC2w98zc7w0 DhBOc98B97/F8eyhPzkMgEt6GR0X70eeOt3eJKd0cbFAVNo2Wr8HYdxDH+uZLG4ClDKP M7Jcc5J+moNlZ/8rM0PWhCf6vLiTxGci5XlSU+svSg7fK6ueSq8PpcBk3fl6NWVHbetx WMif0wHjhq+6ocptbXlK56xCtTHpmYmV6i8Z6m1+Gy66IHuJweaTjty5M0RLL36pSYjh wQ1uFmNOdfUcLmboXg6yLcP1hRUT3ceeRI0LZA2Ezsc2V0jV8ZWXfuNNj8N2SBpYkHDY EmyA== X-Forwarded-Encrypted: i=1; AJvYcCVtfrIn1RDB5cT5C96OsibzvCWh6WmUlVdaFgmQKGW4d7j3i6JOU0TeJEdnNGlv0JFQHD4+3LnJSpE54B3vh6WxZK8fJzbz1kr+Dcnwwrmr6gYCLLU= X-Gm-Message-State: AOJu0YzTbflsmcg4bO70xMfcJq0xEE1u8ZnCFTROyblObN7DcV7DOJEr jmjBioVCtV3sTAx8VUS+I5FcyCrO4ZJaI4OJHTEMQx2FQFe5wSRg4Ki+/qIm8g== X-Google-Smtp-Source: AGHT+IHKrfn8+eXI8IWJ2Tfq/Z+DpLDHoUndaSRPdcyF4wNGAdIV5FDxV8ykztx/38ibgvf4U9YTJw== X-Received: by 2002:a05:6a21:329e:b0:1a9:fe63:90f0 with SMTP id yt30-20020a056a21329e00b001a9fe6390f0mr1553336pzb.53.1714692618977; Thu, 02 May 2024 16:30:18 -0700 (PDT) Received: from localhost (4.198.125.34.bc.googleusercontent.com. [34.125.198.4]) by smtp.gmail.com with UTF8SMTPSA id j4-20020a056a00130400b006ed2709ada6sm1825666pfu.65.2024.05.02.16.30.18 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 02 May 2024 16:30:18 -0700 (PDT) From: Stephen Boyd To: Daniel Lezcano , Thomas Gleixner Cc: linux-kernel@vger.kernel.org, patches@lists.linux.dev, linux-arm-kernel@lists.infradead.org, Jisheng Zhang , Ionela Voinescu , Marc Zyngier , Mark Rutland Subject: [PATCH] clocksource/drivers/arm_arch_timer: Mark validate_timer_rate() init Date: Thu, 2 May 2024 16:30:15 -0700 Message-ID: <20240502233017.419365-1-swboyd@chromium.org> X-Mailer: git-send-email 2.45.0.rc1.225.g2a3ae87e7f-goog MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240502_163022_538162_56E87A48 X-CRM114-Status: GOOD ( 12.68 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add the __init marking to validate_timer_rate() so that it gets discarded after init. $ ./scripts/bloat-o-meter vmlinux.before vmlinux.after add/remove: 0/0 grow/shrink: 0/1 up/down: 0/-8 (-8) Function old new delta arch_timer_register 1724 1716 -8 Total: Before=69177808, After=69177800, chg -0.00% Cc: Jisheng Zhang Cc: Ionela Voinescu Cc: Marc Zyngier Cc: Mark Rutland Signed-off-by: Stephen Boyd --- drivers/clocksource/arm_arch_timer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) base-commit: 4cece764965020c22cff7665b18a012006359095 diff --git a/drivers/clocksource/arm_arch_timer.c b/drivers/clocksource/arm_arch_timer.c index 8d4a52056684..9c4a4af25d2c 100644 --- a/drivers/clocksource/arm_arch_timer.c +++ b/drivers/clocksource/arm_arch_timer.c @@ -1045,7 +1045,7 @@ static int arch_timer_starting_cpu(unsigned int cpu) return 0; } -static int validate_timer_rate(void) +static int __init validate_timer_rate(void) { if (!arch_timer_rate) return -EINVAL;