From patchwork Sun Jun 4 12:26:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Cercueil X-Patchwork-Id: 102985 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp2113858vqr; Sun, 4 Jun 2023 05:29:04 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5Uct/4Z/AMbSDCpxYwY6i8i0K2ns4mtb4k5Ab+W4ScXeoaWN1guhXna+wcdJv9L4yLxJhY X-Received: by 2002:a17:90a:9201:b0:255:cddf:a0c8 with SMTP id m1-20020a17090a920100b00255cddfa0c8mr4507848pjo.41.1685881744511; Sun, 04 Jun 2023 05:29:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685881744; cv=none; d=google.com; s=arc-20160816; b=yGFqqyvj+vjikSrhKvmcGFg6ZBB24o042EaEzdnkOiy5Y4TYf/iqzCLWur5KgQzYK5 QoQrWbK/jeK7aO0OEaB1OW/seDqgy+SYI/hDDqCHYUGjAHLqEFyO7AcfGC6lzk2Bg1mK s6GuWETHKmGP9IFeatWRgoiGF/Z1/Jxb1NALcYGboX+oril70QYVWrdN890JCAWOCZTN wHU990lKpZWjAPBvbBKUL9o/3sNQl0gaFQbx6AEDZSW4hBCIbmPryjbrTWOb8IcLw7hV GdLS5ucgjcs299sq+Cj81m3uWrYTFlGL4KuitU2PqbiHOeRY7uJQTAZk180SLpEnYe4K 7/Ow== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=4bJflcJlGAugVDPpSX1OH5WDNgjOC+VFuKrhAQwMRcU=; b=Bli8wRWY5hZDp39LrBpm/hK591hfEzlAffCgDYzH6jLyhEBpRp8KaVihw8m2jttA/p X1nsJzmFlVB7s+mn2Tq2LvKASG43dtSbZ8GP5N36v3Z1nvctQyZM+wlzC174XZhPwGv2 G0YV7oGyVyj0Eieaf8ijuoLi2y/8cU4RTfm1/TKIm5kZ6i4rWa1yvID33/ax3WMsXIVG iGZ+HV7ugTl/F8w4S4MgvxeCh3V3Y+9oXgPY+sCYqOHgHpHoIUkdw9aDiTSRpjXsmpN2 GuXCWCkURLDgA/GshQj3kIeSpHMQa0ooijdbvyrwasIQ6jvHevkP44yAwyKV6c/nvV5R 1b/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@crapouillou.net header.s=mail header.b=JqvH8eUi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h23-20020a17090aea9700b0025357108059si5842997pjz.44.2023.06.04.05.28.50; Sun, 04 Jun 2023 05:29:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@crapouillou.net header.s=mail header.b=JqvH8eUi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230478AbjFDM1R (ORCPT + 99 others); Sun, 4 Jun 2023 08:27:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48724 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230487AbjFDM1O (ORCPT ); Sun, 4 Jun 2023 08:27:14 -0400 Received: from aposti.net (aposti.net [89.234.176.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AEA0FB5; Sun, 4 Jun 2023 05:27:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=crapouillou.net; s=mail; t=1685881625; 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=4bJflcJlGAugVDPpSX1OH5WDNgjOC+VFuKrhAQwMRcU=; b=JqvH8eUiOElpSqMVcgKMQrKSuZSdvWmTf88YMdix3ODjmaEnQe2d/9wmdCLfDRGNWbKAAF si2Z+ZxJfZT98oDJjyFYkqTKJHuAkcwtQ0sIA4xiBfRQHcfP2HVG/8zk4qbZduFCTqAxpC 12jioFl0IDKozCSfZvDSrhQOnabGerc= From: Paul Cercueil To: Thomas Bogendoerfer Cc: Paul Burton , Siarhei Volkau , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, list@opendingux.net, Paul Cercueil Subject: [PATCH 2/4] mips: ingenic: Remove useless __maybe_unused Date: Sun, 4 Jun 2023 14:26:53 +0200 Message-Id: <20230604122655.69698-2-paul@crapouillou.net> In-Reply-To: <20230604122655.69698-1-paul@crapouillou.net> References: <20230604122655.69698-1-paul@crapouillou.net> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1767775136487259516?= X-GMAIL-MSGID: =?utf-8?q?1767775136487259516?= These flags are useless in this case as the code referencing these data structures is always seen by the compiler (and not behind #ifdef guards). Signed-off-by: Paul Cercueil --- arch/mips/generic/board-ingenic.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/mips/generic/board-ingenic.c b/arch/mips/generic/board-ingenic.c index c422bbc890ed..7a4fce06875d 100644 --- a/arch/mips/generic/board-ingenic.c +++ b/arch/mips/generic/board-ingenic.c @@ -117,14 +117,14 @@ static void ingenic_halt(void) ingenic_wait_instr(); } -static int __maybe_unused ingenic_pm_enter(suspend_state_t state) +static int ingenic_pm_enter(suspend_state_t state) { ingenic_wait_instr(); return 0; } -static const struct platform_suspend_ops ingenic_pm_ops __maybe_unused = { +static const struct platform_suspend_ops ingenic_pm_ops = { .valid = suspend_valid_only_mem, .enter = ingenic_pm_enter, };