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: 19552 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2087:b0:106:209c:c626 with SMTP id gs7csp123563dyb; Sun, 28 Jan 2024 08:31:41 -0800 (PST) X-Google-Smtp-Source: AGHT+IE/3/PjNbjEvn64q3Ya9CERae7wk+n1vQmvvkbHrvL7P3I7U4xE5zFjs7R5RA2L6L7LS9GO X-Received: by 2002:a05:690c:3387:b0:5f8:c3a:6989 with SMTP id fl7-20020a05690c338700b005f80c3a6989mr2220210ywb.34.1706459501752; Sun, 28 Jan 2024 08:31:41 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706459501; cv=pass; d=google.com; s=arc-20160816; b=JVKOrqhxu+amkgt1Ow4tYYWKkpMerr6pErkDv+43HYy1eeR8ZhM8duYm1l2W4KZuEF Tw4S3r95v+tzlX2KOivwCnhXQ3lVCMu66oAFRUCp44zW1nHPSr7UK1ro7aoStyDy7WGM 1KkEz44lxdIbuhB6+/jwOXDajQxjOl+8hN1/XoNxXbG6BG/CFm7lh/eYRN/DT3c+U5Pr nkrJZyIagZruAzWW3vGTj9WA+XpdRdCPKNFNJDn0LjVhDyq1IiQnfB7CAIFBWGuURusu 8Sm028KvdKzyl8xLBlssXkPpl28eed5AMQc8WXvHK/LoC1Is3SA7dNIuRhsLTNTRh/R8 KD1w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:from :dkim-signature; bh=4bSToxy5CAGcJZTlMmZs/1RykWirU/TWtFNPtD7p0tY=; fh=ljVHq+D4ZXSgLZ1bvOslChsAjmBfDd8vnPBx+pJzkLw=; b=0dTF+x9eT7Vh8cWcto4rW0thwJzt2maHqIAXvpY0yJdii++lM+GfJfq1nrjRKzwktq W90SLdX8OEQJdy/8hy2eJaN+lkaXcSbvjkDRXcfLXr8ioIzInQalUOoGmoDURnQMDCBD Q+fcpFFXg7SkqoJ+iIfdO5JbnoCrlqo6IYlTxcNN2WMwFCIzS2rHpqNsWmkql8MtRzSf GIIIBxISa9QRkd9qRkeGCrJjDjLyLSIPMGoKrvaWAN4tpxQauptrRmuhIF484JyOnmIE FHzfinxy0zK0dnjwm3jPLHcU9Nx2n+FqMg3n1dMZds3RJtze5X2vGPZCEsI7q60EF1v1 00DQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=O64EN5E0; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-41750-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-41750-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id i132-20020a636d8a000000b005d74823c24fsi4369313pgc.440.2024.01.28.08.31.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Jan 2024 08:31:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-41750-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=O64EN5E0; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-41750-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-41750-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 64867B20B85 for ; Sun, 28 Jan 2024 16:30:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 46784679E0; Sun, 28 Jan 2024 16:14:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="O64EN5E0" Received: from mail-qv1-f52.google.com (mail-qv1-f52.google.com [209.85.219.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C6FC9664AA for ; Sun, 28 Jan 2024 16:14:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.52 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706458446; cv=none; b=BznbUERlmnMlgsDE1FcZwmpSnE8aWaf1y0x1D4RWye0JMD1klfMLf8Q2CB+HiXbCw99zhMu/JAtLxHCfU7eXoI35C8S7xPo3M3ODg+VkovR6hOzjBjg7jIbnYqhNm4vlKen9CAPyMu+wwWZo2G9ayeYCwVszWDH/qLUZV9jibSc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706458446; c=relaxed/simple; bh=SvazET5cvoizwnCav2UmC+F26NoJafLS2DPv3VLtt5g=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=VfMTHjaWsyrCsLHganEhun9RNNtYvE4A3XCb4KUJ1YdtSj8BJpIWGKVuzF3difoOkwTJOeM/3L26QkKNxt+IIxxJiAOGhbvmhOMy6YOt+jx7z/qTZbV+12S5u34fMlrwimJgvGbLpjCc5x3nM3OoeZIOeWd3iqbpOZCvaqnEzlo= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=O64EN5E0; arc=none smtp.client-ip=209.85.219.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Received: by mail-qv1-f52.google.com with SMTP id 6a1803df08f44-6860ff3951aso15906136d6.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=vger.kernel.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=O64EN5E0rBu5u4XKgHNHHAbLjI0PydCqWCdlY+Ny7MjoSSNRA9M4mwWWTNgtUABPe0 eUNOmuXrxg/Lkk2WCkI9KnV8kPS8YlaY4seik0pRlu2ejGEj++T8DKKWP7rl5bGBE6e7 QulReKcKmtGSBgMG7fCMGvrIxfLo2VVXxsrDY= 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=samOPZBPuZiPzw9PVhTNRE9P6aB2Xug7Gdb+o/qLBqDoYmO2HomorxhwUDxPv+GaxO eI567uW17qv808XuSTtHrnAUHo2/6acRwh9v2M894GNmePOG6U9XpuFA1vETImMPNu81 0WFtRTQxxJmMa5JOFrhWAB6GN2v6pDDj/eUv+eSVqik+KVCmZxdZn9G3VA2em/+mid42 JaeHXvC6pN9zsnDYFsnxh8Z8joIir88s+K2NJBcP0W3Rki87tN5/KxfFeiUwfNyxI8NR EdVvJ0foVgR/iKmULAnw3KOgW0igquR5awWyc3KoMywcWwhFAB2h+N0abdAOYVPMoUTK HPbQ== X-Gm-Message-State: AOJu0YwFYZqbHrDFfZnk+UhgCjBFPY97OofM+DbCcgyKgfbwFid8CIJ7 pXQfQXrdgpxtNKH/V97YXD8OQjL2cbdLMkcYSxNhFGSDFvXmWdjY8NXtxZ0zyA== 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> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789352478438322019 X-GMAIL-MSGID: 1789352478438322019 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,