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; From patchwork Fri Apr 28 15:21:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Palmer Dabbelt X-Patchwork-Id: 13226558 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 A3743C77B61 for ; Fri, 28 Apr 2023 15:23:04 +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=e/G2mOBaVtutVlwiEOiGOp5jQfgjLhsr9chzOsGNb8U=; b=ujnzy+JzmBGkKu U3421jAhuTGNBurvrz88pG7IWGWVEDYp13E56FRmEJ/b5Hv6jARZ37pCpDXVtVTMKN+rIi11cZkME 9k91Eu/Ri4OtEnK477aF3LQTgPVE+kArAIC2THt6PJOSuTwyZGUduYUfNuN4C/VHXQuqO3SQkOA2W 8MUUUhGcx0V+qCokDKOB/O+/BVVNdwsw5heD3NBrQHGk6+9aVh5VWMBTXptUdMuhUmfc8ibrlvqnL a1xa+s49yLZMBq6Gnu2HyzF6bX4StW4ZxdiAHk0C6meTOra6X9PLq9OjV0atKObeaiu5mkg5E85/C 5nxK3cLb+MCH46PBeTVw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1psPvN-00B5se-1o; Fri, 28 Apr 2023 15:22:17 +0000 Received: from mail-pf1-x42e.google.com ([2607:f8b0:4864:20::42e]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1psPvE-00B5mt-2J for linux-arm-kernel@lists.infradead.org; Fri, 28 Apr 2023 15:22:10 +0000 Received: by mail-pf1-x42e.google.com with SMTP id d2e1a72fcca58-63b7588005fso113676b3a.0 for ; Fri, 28 Apr 2023 08:22:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20221208.gappssmtp.com; s=20221208; t=1682695326; x=1685287326; 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=caI/sHVT/dTUUx0xQxA5OglgAof96u9NCT1oMhdGQaE=; b=5APyf6IaypaSkGY423y9+DPeUGw/pS9mWf0RNl9FSvjT5eY85AYkO0vuEqmn6+PbmB N44kIwjbQ/iJ3XG5KBfY/LnO2US7f4zTavypYXXn9iRDiPebS974vKgT2dkFbOZRnNV2 SgxItQl1WSkuiGfgmvDeA8PbqkTVxNWdj4FyWwl0ydTHjBB/D4Yh6AAiO14AliS8XH9p RioJwh/qeYHLjwuzxktLhAUDByYqkZtPycybZWffcNAzgGYOuLDdYGV1+xi6sNnMrBlt HNpaTK84O8G89QTEB9PHpBImcwtHus94gCZqcqLV3sAyGDvrYKQN0g0yuCbNKD+ZJGoc RASw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682695326; x=1685287326; 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=caI/sHVT/dTUUx0xQxA5OglgAof96u9NCT1oMhdGQaE=; b=UGgjEpHwYQf6Gp9QzmKB1zjYrIDfwO5esH5O57DlgRlR/lGFJ26hzxH6fx7Ws6Sj4o p4RZ4Ec5SuzAakezhROZWlQOxVTHt5NkcFgYW2nrTq0lmZ53jm0tCNrds2EPWn13+XLD lt5EIX5QC7bS3lo/gjEUHw4/ClEnxwhsIrp5KJi3jugVqvP5dTlj2flticuWSstlVTUW l6eeOi6jvk/yoBlGRWR9LbNmDdnwS7LQiguMO9p6rBdMEqY8+/YZvLLP/UCXGmqpXmlX SgtmGl4eA5FEH/nIyiPZSMlH1oLHtO4tkCa0fST4iHKlKxqT1kEg/n0Y2C931k4ACPT4 KhqA== X-Gm-Message-State: AC+VfDz1mwGEvwCiZvc1RxHsdvPaMDovVgyAWg43nogeIKyPtxuoSABa ZyyFAw2dnt/IDMeCjeLvNehNhw== X-Google-Smtp-Source: ACHHUZ6/efZ/rcgv/8VUwngpwdMqOcBS3udtbsJyGQSkIuylo0aBwAi2TntMSWjNfbB8F8WaVCH7sA== X-Received: by 2002:a05:6a20:12c4:b0:f3:3ab1:e34a with SMTP id v4-20020a056a2012c400b000f33ab1e34amr7546009pzg.29.1682695325779; Fri, 28 Apr 2023 08:22:05 -0700 (PDT) Received: from localhost ([135.180.227.0]) by smtp.gmail.com with ESMTPSA id y7-20020a056a00190700b0063f1430dd57sm13135014pfi.49.2023.04.28.08.22.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Apr 2023 08:22:05 -0700 (PDT) Subject: [PATCH 2/2] media: nxp: imx8-isi: Fix undefined config warnings Date: Fri, 28 Apr 2023 08:21:56 -0700 Message-Id: <20230428152156.22840-3-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_082208_765677_B7A2CCFC X-CRM114-Status: GOOD ( 11.23 ) 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 These show up as warnings related to the implicit 0 for undefined macros. Signed-off-by: Palmer Dabbelt --- drivers/media/platform/nxp/imx8-isi/imx8-isi-hw.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/media/platform/nxp/imx8-isi/imx8-isi-hw.c b/drivers/media/platform/nxp/imx8-isi/imx8-isi-hw.c index db538f3d88ec..6d3417bf72cf 100644 --- a/drivers/media/platform/nxp/imx8-isi/imx8-isi-hw.c +++ b/drivers/media/platform/nxp/imx8-isi/imx8-isi-hw.c @@ -30,7 +30,7 @@ static inline void mxc_isi_write(struct mxc_isi_pipe *pipe, u32 reg, u32 val) void mxc_isi_channel_set_inbuf(struct mxc_isi_pipe *pipe, dma_addr_t dma_addr) { mxc_isi_write(pipe, CHNL_IN_BUF_ADDR, dma_addr); -#if CONFIG_ARCH_DMA_ADDR_T_64BIT +#if defined(CONFIG_ARCH_DMA_ADDR_T_64BIT) if (pipe->isi->pdata->has_36bit_dma) mxc_isi_write(pipe, CHNL_IN_BUF_XTND_ADDR, dma_addr >> 32); #endif @@ -48,7 +48,7 @@ void mxc_isi_channel_set_outbuf(struct mxc_isi_pipe *pipe, mxc_isi_write(pipe, CHNL_OUT_BUF1_ADDR_Y, dma_addrs[0]); mxc_isi_write(pipe, CHNL_OUT_BUF1_ADDR_U, dma_addrs[1]); mxc_isi_write(pipe, CHNL_OUT_BUF1_ADDR_V, dma_addrs[2]); -#if CONFIG_ARCH_DMA_ADDR_T_64BIT +#if defined(CONFIG_ARCH_DMA_ADDR_T_64BIT) if (pipe->isi->pdata->has_36bit_dma) { mxc_isi_write(pipe, CHNL_Y_BUF1_XTND_ADDR, dma_addrs[0] >> 32); @@ -63,7 +63,7 @@ void mxc_isi_channel_set_outbuf(struct mxc_isi_pipe *pipe, mxc_isi_write(pipe, CHNL_OUT_BUF2_ADDR_Y, dma_addrs[0]); mxc_isi_write(pipe, CHNL_OUT_BUF2_ADDR_U, dma_addrs[1]); mxc_isi_write(pipe, CHNL_OUT_BUF2_ADDR_V, dma_addrs[2]); -#if CONFIG_ARCH_DMA_ADDR_T_64BIT +#if defined(CONFIG_ARCH_DMA_ADDR_T_64BIT) if (pipe->isi->pdata->has_36bit_dma) { mxc_isi_write(pipe, CHNL_Y_BUF2_XTND_ADDR, dma_addrs[0] >> 32);