From patchwork Fri Apr 28 15:21:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Palmer Dabbelt X-Patchwork-Id: 13226559 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 134E7C77B7E for ; Fri, 28 Apr 2023 15:23:08 +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:To:From:Cc:MIME-Version:References: In-Reply-To:Message-Id:Date:Subject:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=WJN1apKCNyMZ8WvMHyFsQl7+QE0soEp95lHDoSgs9AA=; b=dcvoe9IBA6eSY+ 8HMW2Bo8uD4bkQbmiMD4myZZ5UkD9DzErDPSLYsb36vEngprqg4KsTJbTK77Xfclwnsi2I6NX+3Ot UTIgwkU/TpAPP3nhleM22e2cDzrcTvEqyo7IVq6qAdUscoLQpV9Dq5pORVjBQWP9LvUCU8yn9QmrV HXOAwmUUEPdnAkdNWPqq8KN/4N0zfc7moyi/cWtb/aCIUUE9cuUJGAzEzTa9nDJYSR3tuFxVq5ZFT Y+iBFcZp2FkDqE2op5p3bGABTQr+BqBYIjWmHqua8bKYxwPJwlfG4RWGVGhVQ1qxK6kHyoxg6BjSd 2VybetetzBHraASDA8Gw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1psPvM-00B5sF-1m; Fri, 28 Apr 2023 15:22:16 +0000 Received: from mail-pf1-x430.google.com ([2607:f8b0:4864:20::430]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1psPvD-00B5me-27 for linux-arm-kernel@lists.infradead.org; Fri, 28 Apr 2023 15:22:08 +0000 Received: by mail-pf1-x430.google.com with SMTP id d2e1a72fcca58-63b5c4c76aaso87008b3a.2 for ; Fri, 28 Apr 2023 08:22:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20221208.gappssmtp.com; s=20221208; t=1682695324; x=1685287324; h=to:from:cc:content-transfer-encoding:mime-version:references :in-reply-to:message-id:date:subject:from:to:cc:subject:date :message-id:reply-to; bh=E/dZSqOQ8xKsHjj0RW9/HAxmmL3kEAjfoEclPmIfeD4=; b=MhRrFAJGxtQ17F8KaKtDs1zQLGGbwFbLblYgD63yL8hZm7JOPfAkJyNK5sUh2C5u55 vsjUwj3Vtc3CHRAKXo8+y6VLV3KUmEBx2vyGrHSXTGtkeLIX974eMZ4zJw7oIx3/lw7M Sfxu2z4JgoyFDW2sRMQhXdkGODTL+0EXRXEtPliK0iFBKYLd7Wsf9y6dWDuyQfnL0tu0 bu27KG/U8M9JEMeIpZmgxcRXuXQhyaP1c2b1w6aoIYCrfiz1cZxQle6Z/i4H6jfMfN6a vsAlOqlyQDTgsnaq3Bk9Dam4CLddfOdnroJzZf0oBjbIQX3nzFYkAbhPlBGnlTJQo5sh ygFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682695324; x=1685287324; h=to:from:cc:content-transfer-encoding:mime-version:references :in-reply-to:message-id:date:subject:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=E/dZSqOQ8xKsHjj0RW9/HAxmmL3kEAjfoEclPmIfeD4=; b=TxKc1ZM451TsE4cfu1YiabBUoNlwtigLaVX90cJ9hOmT20CJy09WQFxAFxqXC/jVzm qqoA3vX7efS6uJDIkqPlT/M7WRYWX+6ifobIRaCZdxrH9y1pmtiBL/UGuMi7Az3p3cMX iVox4aukapQf0TaFQf93IL3SEYTRgVCfc4iMRbDhoQD9qaM4WAv7vCo1Fo2UqKTcUfm/ p9P4HAiZ0DBSPDAcVwM/WJB2WgJSIiyFfRgoEfA/L3xYfMiskCk6uw+XiZK7WhGRtUoy gRHFTgD9bBJTJIcy6FCBIWXpRR1vefc6Kb0+4We937efWfWxC4HaHlAN3LeBjLvc+FKJ UYWg== X-Gm-Message-State: AC+VfDykn1MbLKghFf2KcguJ+klp4u144hSWKauOrck7Vk7d9Hq7pXQv 6fWj/Tdmp47qaxf3D2lOyQKRvRtQMJ+X1aGWDMQ= X-Google-Smtp-Source: ACHHUZ6vvPIyv/g8B5tecu9r7NgX/Jpujj6sBadbgOknEsVGEL71WM3NRbfptKFrNrtPGiKod+BZYQ== X-Received: by 2002:a05:6a20:3ca6:b0:ef:a31b:af90 with SMTP id b38-20020a056a203ca600b000efa31baf90mr7027045pzj.28.1682695324579; Fri, 28 Apr 2023 08:22:04 -0700 (PDT) Received: from localhost ([135.180.227.0]) by smtp.gmail.com with ESMTPSA id y9-20020a63e249000000b0051b36aee4f6sm13346594pgj.83.2023.04.28.08.22.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Apr 2023 08:22:04 -0700 (PDT) Subject: [PATCH 1/2] media: nxp: imx8-isi: Fix unusued function warnings Date: Fri, 28 Apr 2023 08:21:55 -0700 Message-Id: <20230428152156.22840-2-palmer@rivosinc.com> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230428152156.22840-1-palmer@rivosinc.com> References: <20230428152156.22840-1-palmer@rivosinc.com> MIME-Version: 1.0 Cc: laurent.pinchart@ideasonboard.com, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, linux-media@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux@rivosinc.com, Palmer Dabbelt From: Palmer Dabbelt To: mchehab@kernel.org X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230428_082207_695434_060A6FE2 X-CRM114-Status: GOOD ( 13.01 ) 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 From: Palmer Dabbelt I just stumbled into these when trying to test against Linus' master. Signed-off-by: Palmer Dabbelt --- drivers/media/platform/nxp/imx8-isi/imx8-isi-core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/platform/nxp/imx8-isi/imx8-isi-core.c b/drivers/media/platform/nxp/imx8-isi/imx8-isi-core.c index 238521622b75..01a24ee8b5a1 100644 --- a/drivers/media/platform/nxp/imx8-isi/imx8-isi-core.c +++ b/drivers/media/platform/nxp/imx8-isi/imx8-isi-core.c @@ -311,7 +311,7 @@ static const struct mxc_isi_plat_data mxc_imx8mp_data = { * Power management */ -static int mxc_isi_pm_suspend(struct device *dev) +static int __maybe_unused mxc_isi_pm_suspend(struct device *dev) { struct mxc_isi_dev *isi = dev_get_drvdata(dev); unsigned int i; @@ -325,7 +325,7 @@ static int mxc_isi_pm_suspend(struct device *dev) return pm_runtime_force_suspend(dev); } -static int mxc_isi_pm_resume(struct device *dev) +static int __maybe_unused mxc_isi_pm_resume(struct device *dev) { struct mxc_isi_dev *isi = dev_get_drvdata(dev); unsigned int i;