From patchwork Sun Jan 28 16:13:55 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ricardo Ribalda X-Patchwork-Id: 13534525 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 B2037C47DA9 for ; Sun, 28 Jan 2024 16:14:19 +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:Cc:To:MIME-Version:Message-Id:Date: Subject: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=1AgSrMxW9JMpHgclRdCj3Mqfblo2lMXSdxAk5pThV94=; b=UKpl2d2JgG629B PRIQqLoAA9T0D1MTCLGkbEp5guUAgGyoTXAiPpzZ5FvCekiJsLVXeOzNTJse7bfE4JQMiYgGc8CJw YdqJc9Vad59r4G9MXx72cUHZp9HNR0C4H5q9YMfjwNdBn62zlT7k5w0zxFXLNNra8IctglfdbvnuY FfP0nAqyonLdF6Y819monJbp4U7Z5C6JRCkPQfF/EXmYg1mjgcb9VmEA/YeJqzNOPR99VccKG4wLH xtuUgq2RtI/O/lE/971z4ioE1cocaydlAC8Im5gJM4sy4Qtzdmj34sUy6nuPzz2Uabs3aQvCjuMeF 5W5lzerFf8dCKrpNIOjg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rU7nM-00000009qHm-18Rd; Sun, 28 Jan 2024 16:14:08 +0000 Received: from mail-qv1-xf32.google.com ([2607:f8b0:4864:20::f32]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rU7nI-00000009qEs-0V8Z for linux-arm-kernel@lists.infradead.org; Sun, 28 Jan 2024 16:14:06 +0000 Received: by mail-qv1-xf32.google.com with SMTP id 6a1803df08f44-6860ff3951aso15906126d6.1 for ; Sun, 28 Jan 2024 08:14:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1706458443; x=1707063243; darn=lists.infradead.org; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=4bSToxy5CAGcJZTlMmZs/1RykWirU/TWtFNPtD7p0tY=; b=ltvGUZlkBAIADDZzDQrr/j11Z9gSZXrzgu+mkgwZvd1vIEIA/uT9PV9sd9QNb9FdPU 4pEugBaF/5RBNErMaQX/Gq9KQzLIaUTXbrbvhW1ptjeXswwmQyictmtUqz7MGxm9oZtr X5TMUugmUPhq7iBxCnoHX51vLAg8CjrDOLnNE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706458443; x=1707063243; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=4bSToxy5CAGcJZTlMmZs/1RykWirU/TWtFNPtD7p0tY=; b=gtPiWzL941eh/WzDDhD1cjge9PLyEGpzRqaSpYq343Ep/wA/eomTgoMDE2Gor0Afl2 8xxSTO802Q+NvcNJGlDAQBGM0j+qi5UrxInaZvzrziw/qLabEDKwOjgL0Ea9k7WbW9cp l+sP3M/tmLhinWIoByCYYn6+EFmRF1F5DiR18UbL1SOMFSeU7hUi8sa9zHTLF2WwHfUD VcYXIEIDXAMMfzNC2FF3wLLXGXjGArswl8uXIVKSX3CsMeKQormIgIJT+Pk8CG8bIrYg Q5YqBAOSh3kzjdpcRyfRKCWQort6pIV8+ONCTi3py0yHR3Ic/1d9YQJAN505vEliFGD1 7fAQ== X-Gm-Message-State: AOJu0YxzguW4Dev/WacQ3Esj5DFKcLUJ8gUUI8+P90u2EynvzryPX3b2 mMTpNrvXhVdOKiMKkpC7+nhuwnkkB4sUxCpZJ3qmkyxxVvPf3OEKAnt/wiF3ZHJpQyL6EdTwzzg QGA== X-Google-Smtp-Source: AGHT+IGPj/bWw10peow8+ThqZ4AksGoB8+fhu6FGjZno0b2aG69izlBUsWRzjFmhWV39AxgNwh/u1Q== X-Received: by 2002:a05:6214:301e:b0:685:f795:dfc2 with SMTP id ke30-20020a056214301e00b00685f795dfc2mr4607832qvb.86.1706458442616; Sun, 28 Jan 2024 08:14:02 -0800 (PST) Received: from denia.c.googlers.com (240.157.150.34.bc.googleusercontent.com. [34.150.157.240]) by smtp.gmail.com with ESMTPSA id dz11-20020ad4588b000000b0068c493426edsm566640qvb.104.2024.01.28.08.14.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Jan 2024 08:14:02 -0800 (PST) From: Ricardo Ribalda Subject: [PATCH 0/2] media: Fix build warnings with gcc-11 Date: Sun, 28 Jan 2024 16:13:55 +0000 Message-Id: <20240128-gcc-11-warnings-v1-0-52bbdf492049@chromium.org> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAEN9tmUC/x3MQQqAIBBA0avErBtwJMG6SrQQHW02FgoVhHdPW r7F/y9ULsIVluGFwpdUOXIHjQP43eXEKKEbtNKTIm0xeY9EeLuSJaeKZIIzUc/Wmgi9OgtHef7 jurX2AWVPfVxhAAAA To: Laurent Pinchart , Mauro Carvalho Chehab , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team Cc: linux-media@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Ricardo Ribalda X-Mailer: b4 0.12.3 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240128_081404_400290_BBEF6C91 X-CRM114-Status: UNSURE ( 7.95 ) X-CRM114-Notice: Please train this message. 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 gcc-11 throws some warnings, most of them are false positive... but with a simple refactor the code looks nicer and the warnings are gone. Signed-off-by: Ricardo Ribalda --- Ricardo Ribalda (2): media: nxp: imx8-isi: Factor out a variable media: usb: s2255: Refactor s2255_get_fx2fw drivers/media/platform/nxp/imx8-isi/imx8-isi-hw.c | 8 +++----- drivers/media/usb/s2255/s2255drv.c | 7 ++++--- 2 files changed, 7 insertions(+), 8 deletions(-) --- base-commit: 615d300648869c774bd1fe54b4627bb0c20faed4 change-id: 20240128-gcc-11-warnings-15da5f29885f Best regards,