Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 83E87318124 for ; Wed, 18 Feb 2026 08:34:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.17 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771403646; cv=none; b=Pqki4vKUVQZro5s6qM3lwwlvDlivaOVM73AB+XexfWi7j1KZx5ZBrX8BEmxqaQPJ+kiBJo4tA8hZKpl2y0VTcsPyCvoZ+dMI3FnpbgG5VzAtLANmigz4UzanvSKZ5nbZaSVynKT/rf1QcfPVXLOpupasL5v6NqssOr5HbSdD9KE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771403646; c=relaxed/simple; bh=b4jaEx8LM3whbA6RpLkuiAAIIQ9HnMyEhJX46Fgycu4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Y51Hm1d7j/xdEoVr+QP8Qe/5ZlB67sXlAkIihLyhk+Km1IVf0MAtn4bIVt88xbwFf4HIiPghdFAqd1SMolQDnqgmOlkrWsHGS+N4MLcMvYxCOMvxozJezNTp0+a7VyPsEX9EoNXrSb2QnjCckBTQUNqEy9qGzrf3Joaa82W6qVk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=pass smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=dFjuwgaA; arc=none smtp.client-ip=192.198.163.17 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="dFjuwgaA" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1771403645; x=1802939645; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=b4jaEx8LM3whbA6RpLkuiAAIIQ9HnMyEhJX46Fgycu4=; b=dFjuwgaA8Qa4XBklx8EZKEV1c+Sd3W0klHXJIpH29HwIdR6x8bHOjhNJ Bj8DTTR+C1n/20QUN89zNx1xywYCiT14VsUCfcnZ1SugI2zuZzGRsMTNn RcuqG3AmteVWk6vjeb2Bj6hdHWQ6hAN1FMXJ5BfQAHUqOqQscHKC1se7e ty3JzMDZaOkEgOIF5RIKsCWuWbL62K9h4MN9eGTOeQ6Ek1GRt+Wv9RV5A tOmJEGbvUj0LFAitRjS1L+6OGzVBomoywy38NEAxnomtCy3WtQprb1rlF 1Q+jPp0ZeSo5IzKzZ5c/FfwMFNQZg2mHAz0Yelfn3XMhx0GTtIM+L1YOx w==; X-CSE-ConnectionGUID: Bak5fEyfShGh4dr3PEbppA== X-CSE-MsgGUID: KUOwK+SBSdWpi1fuEcw9Gg== X-IronPort-AV: E=McAfee;i="6800,10657,11704"; a="72391229" X-IronPort-AV: E=Sophos;i="6.21,297,1763452800"; d="scan'208";a="72391229" Received: from fmviesa002.fm.intel.com ([10.60.135.142]) by fmvoesa111.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Feb 2026 00:34:03 -0800 X-CSE-ConnectionGUID: B7KuBKTuTByP67oK/fbalA== X-CSE-MsgGUID: TucVHcSUQmOvllAnAATt3g== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.21,297,1763452800"; d="scan'208";a="237133557" Received: from smoticic-mobl1.ger.corp.intel.com (HELO kekkonen.fi.intel.com) ([10.245.244.5]) by fmviesa002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Feb 2026 00:34:01 -0800 Received: from punajuuri.localdomain (unknown [192.168.240.130]) by kekkonen.fi.intel.com (Postfix) with ESMTP id D2B41121D37; Wed, 18 Feb 2026 10:34:24 +0200 (EET) Received: from sailus by punajuuri.localdomain with local (Exim 4.98.2) (envelope-from ) id 1vsd0q-0000000ACos-2u0W; Wed, 18 Feb 2026 10:34:24 +0200 Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo From: Sakari Ailus To: linux-media@vger.kernel.org Cc: Jacopo Mondi , Mehdi Djait , Tomi Valkeinen , laurent.pinchart@ideasonboard.com Subject: [raw2rgbpnm PATCH v3 1/3] Add explicit switch fallthrough notation Date: Wed, 18 Feb 2026 10:34:22 +0200 Message-ID: <20260218083424.2432541-2-sakari.ailus@linux.intel.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260218083424.2432541-1-sakari.ailus@linux.intel.com> References: <20260218083424.2432541-1-sakari.ailus@linux.intel.com> Precedence: bulk X-Mailing-List: linux-media@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Use __attribute__((fallthrough)) instead of a comment this is taking place, to make modern GCC happy. Signed-off-by: Sakari Ailus --- raw2rgbpnm.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/raw2rgbpnm.c b/raw2rgbpnm.c index baeb8efc863a..5df3ff7ab31d 100644 --- a/raw2rgbpnm.c +++ b/raw2rgbpnm.c @@ -362,7 +362,7 @@ static void raw_to_rgb(const struct format_info *info, case V4L2_PIX_FMT_NV21: color_pos = 0; - /* fallthrough */ + __attribute__((fallthrough)); case V4L2_PIX_FMT_NV12: src_luma = src; src_chroma = &src[src_width * src_height]; @@ -576,7 +576,7 @@ static void raw_to_rgb(const struct format_info *info, case V4L2_PIX_FMT_SRGGB10: if (raw_layout_to_grbg(info, src, src_width, src_height, src_stride)) error("Can't convert RAW layout to GRBG"); - /* fallthrough */ + __attribute__((fallthrough)); case V4L2_PIX_FMT_SGRBG16: case V4L2_PIX_FMT_SGRBG14: case V4L2_PIX_FMT_SGRBG12: @@ -620,7 +620,7 @@ static void raw_to_rgb(const struct format_info *info, case V4L2_PIX_FMT_SRGGB8: if (raw_layout_to_grbg(info, src, src_width, src_height, src_stride)) error("Can't convert RAW layout to GRBG"); - /* fallthrough */ + __attribute__((fallthrough)); case V4L2_PIX_FMT_SGRBG8: buf = malloc(src_width * src_height * 3); if (buf==NULL) error("out of memory"); @@ -688,7 +688,7 @@ static void raw_to_rgb(const struct format_info *info, case V4L2_PIX_FMT_BGR24: swaprb = !swaprb; - /* fallthrough */ + __attribute__((fallthrough)); case V4L2_PIX_FMT_RGB24: for (src_y = 0, dst_y = 0; dst_y < src_height; src_y++, dst_y++) { for (src_x = 0, dst_x = 0; dst_x < src_width; ) { -- 2.47.3