Message ID | 20231113023122.1185407-1-samuel.holland@sifive.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b909:0:b0:403:3b70:6f57 with SMTP id t9csp962437vqg; Sun, 12 Nov 2023 18:31:54 -0800 (PST) X-Google-Smtp-Source: AGHT+IGl2s4BhoGmETFrY8WupAiCsm7pRJZIyJHnkc5Tp9X0+PTBCj82qst5JBqtUh5cBorh9ujq X-Received: by 2002:a05:6a20:3ca6:b0:17b:5cbb:b874 with SMTP id b38-20020a056a203ca600b0017b5cbbb874mr12864726pzj.15.1699842713806; Sun, 12 Nov 2023 18:31:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699842713; cv=none; d=google.com; s=arc-20160816; b=TFZmti8xqvqMaKxwORhp4KPAxOgxennXj/M3R2RHsro/M/+v60sgSLIpr84I2zaMu/ pmKmMWOOXdoystutTIlPR9y6MEaiJ2D31EsDFWZ9RESEo0Y9QC0OhpgPZWOugVjWH/w1 yLjXFWraT3y9KxFJTtty6gxAb0OPOL3QAfFOnrhaG8hk8KdULPT+g4FSdYdefLpTnGG5 hhyuwbPe9C4MAcU6xmWgSrdIaWBv3q4bL8ATUVoPiEAaov5NmBKY/hnaRYLdOGeSGTcU C5QkY9VymGHljr9zPIwkj0tIHC83H/oQlkQLYo3plEs5L35XbyGBDJVsDrPyWMrmhKXt LsbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=sd10hTgpNqYujYyn3UZDz1YnF+lDmSTrk9YJNSbPP8c=; fh=SY2cK8hzRxobq0kaA5iS4tTKOPJHnyykKzOE60Paz6E=; b=NgM6DREhKOGoBr237R8uJiCpi4mQ7dm2FjneqtcrVpk1g/sYviLcv/f3jJVETRqtut X5qYm6G2D56J1RtoIq5yI1p98Or0NmifJZgFaoKi2uGfvhTEesFxwlrz+8lrw2VMnqeP 6ClDWqTHQdWSmbH5OAxcaF325BwKY2xTzK5fr79RUQcoVK6RwRDidaEpu1jwc8IHdTKd Cu9AdYQnWtYNoJ8CC4ADAkqGFcs5bCY+iT3HwN5rh0l8UH+cb9SVUzjIl/ZvZwkobvuw dy81b8wpuzQ2FQf05PrYzsDYLMDQhQXPfPsB9VKbq7BCusSv3QdEBRwXpy/2jv9xDj+A zoZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=Cjcdcvmj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=sifive.com Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id u63-20020a638542000000b00565e0624182si4811800pgd.404.2023.11.12.18.31.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 Nov 2023 18:31:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=Cjcdcvmj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=sifive.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 62E3A8077598; Sun, 12 Nov 2023 18:31:37 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232879AbjKMCba (ORCPT <rfc822;lhua1029@gmail.com> + 30 others); Sun, 12 Nov 2023 21:31:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34014 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232584AbjKMCb2 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sun, 12 Nov 2023 21:31:28 -0500 Received: from mail-pl1-x634.google.com (mail-pl1-x634.google.com [IPv6:2607:f8b0:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A5C4410C for <linux-kernel@vger.kernel.org>; Sun, 12 Nov 2023 18:31:25 -0800 (PST) Received: by mail-pl1-x634.google.com with SMTP id d9443c01a7336-1cc30bf9e22so29534125ad.1 for <linux-kernel@vger.kernel.org>; Sun, 12 Nov 2023 18:31:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; t=1699842685; x=1700447485; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=sd10hTgpNqYujYyn3UZDz1YnF+lDmSTrk9YJNSbPP8c=; b=CjcdcvmjGOEtaLjZu8WsRNJIIP/ADVPq0Tklm+q3GiHI382L81t9yXBVFtYMfBdNcq z+puoccTIGoiijIMkthzVo+UJI9gSY/JjlQQguhuWEObFvU9dO/AagTuHzvLc8iDGodq p9LaKw0bQUMyJFlafLe3C7uMGP4v/RvAmwFDGpS3SCELInCYxcK7Okoirb3MQ/kdQY22 owAK6UrwyGa1f0Zg4VgBnvg/QA2Th//hr3wJ6rfx7f3WhRYSz9N5kjDc3EMF3ye/RXU4 VVcEu7iDXnkeGu7a5y8A3GYSZYMs4cLNN0+08/cCTPNex68DONInF/JNGtTux4uBQum9 6nTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699842685; x=1700447485; 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=sd10hTgpNqYujYyn3UZDz1YnF+lDmSTrk9YJNSbPP8c=; b=Y1T7a3T2tO09bvLbYN64BvhHz5sJMWD+SHg5lZdn0vurU1vGPF8bGqEWR0y55wQAFL XmeyTr4ErWqs43WIF4ipzkniS9GyEoTZ1UjfmdEXL/V9/ao6ROPhWF9uMXPKzJLUo+G+ omNktyPg6wgo+Ksvi9SiVgYGT4rmWP6zXGqdSHgCLHh9qQCQO2iLI4MVLL6rW++CKXMv w5XaG6L3gjBuebRbI9ImOmQeo+3AEtBoITje+iPsR1RCRvzU6baQJvaMaAYE+3QUXPjQ ueXr36E72MBXp1E/5pL0MdmLbD1xzVJtCHTERJfYtb8LfvQ05d46yeeD9qGZW/Mf6OtK XQlg== X-Gm-Message-State: AOJu0YxLiZUWl3CS0gofIa/vxEfsu4HybqqFXCWXbnGReC+/coUwx5Jk 56CrTsSxD2Nmn4gGoupMY9WrgQ== X-Received: by 2002:a17:903:32c9:b0:1cc:332f:9e4b with SMTP id i9-20020a17090332c900b001cc332f9e4bmr8122899plr.1.1699842684834; Sun, 12 Nov 2023 18:31:24 -0800 (PST) Received: from sw06.internal.sifive.com ([4.53.31.132]) by smtp.gmail.com with ESMTPSA id ji19-20020a170903325300b001c9c5a1b477sm3143643plb.169.2023.11.12.18.31.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 Nov 2023 18:31:24 -0800 (PST) From: Samuel Holland <samuel.holland@sifive.com> To: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: Samuel Holland <samuel.holland@sifive.com>, Jiri Slaby <jirislaby@kernel.org>, John Ogness <john.ogness@linutronix.de>, Nick Hu <nick.hu@sifive.com>, Palmer Dabbelt <palmer@dabbelt.com>, Paul Walmsley <paul.walmsley@sifive.com>, Ruan Jinjie <ruanjinjie@huawei.com>, Thomas Gleixner <tglx@linutronix.de>, Yangtao Li <frank.li@vivo.com>, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-serial@vger.kernel.org Subject: [PATCH] serial: sifive: Declare PM operations as static Date: Sun, 12 Nov 2023 18:31:19 -0800 Message-ID: <20231113023122.1185407-1-samuel.holland@sifive.com> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Sun, 12 Nov 2023 18:31:37 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1782414273256877964 X-GMAIL-MSGID: 1782414273256877964 |
Series |
serial: sifive: Declare PM operations as static
|
|
Commit Message
Samuel Holland
Nov. 13, 2023, 2:31 a.m. UTC
They are only used within this file, so they should have static linkage.
Signed-off-by: Samuel Holland <samuel.holland@sifive.com>
---
drivers/tty/serial/sifive.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/tty/serial/sifive.c b/drivers/tty/serial/sifive.c index b296e57a9dee..3babc6c3a527 100644 --- a/drivers/tty/serial/sifive.c +++ b/drivers/tty/serial/sifive.c @@ -1033,8 +1033,8 @@ static int sifive_serial_resume(struct device *dev) return uart_resume_port(&sifive_serial_uart_driver, &ssp->port); } -DEFINE_SIMPLE_DEV_PM_OPS(sifive_uart_pm_ops, sifive_serial_suspend, - sifive_serial_resume); +static DEFINE_SIMPLE_DEV_PM_OPS(sifive_uart_pm_ops, sifive_serial_suspend, + sifive_serial_resume); static const struct of_device_id sifive_serial_of_match[] = { { .compatible = "sifive,fu540-c000-uart0" },