From mboxrd@z Thu Jan 1 00:00:00 1970 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 67F2CECAAA1 for ; Tue, 30 Aug 2022 11:00:43 +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:MIME-Version:Message-ID:Date:References :In-Reply-To:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=m2dnJ/JQHOnRfEDTyJ/PmbRnN1aQb8JRabT8mHKBGyk=; b=ugLNjWTRro2EyI sccqbMHjc8x+ijEAb16xZ8z0lhLD7LDt7GbUa5Mbre6HxGdv0Qlnrn1v9e8lwagOibrMa2xYUehud 9g0G+OjDvNldpBfX2hULMRnBiRiiVJ76ljyVP3/GAE7jfyQOuuwTJJAvzhOi4IjMxdG7QDek9even aUxiSnTnM69lnXXwDFmW4bVEScDctLvcbjgIoBmI3aj7coCjAfMVOjxX1hQEyJzAIyPfseVvrTKxO A/Rk5+6FklFfU5juoNwUPuEwYjNOFG3fa7mHMh0Nnb17PAQmh2BUUA9B0+uXIaQ8DAMBbUE5WwfFb 4V6ZeRLSyD7mmsnIUsJQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oSypa-00GIKT-SC; Tue, 30 Aug 2022 10:50:54 +0000 Received: from mga14.intel.com ([192.55.52.115]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oSyiN-00GFoy-Dy for linux-arm-kernel@lists.infradead.org; Tue, 30 Aug 2022 10:43:30 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1661856207; x=1693392207; h=from:to:cc:subject:in-reply-to:references:date: message-id:mime-version; bh=1JuE3MlMyluva+oTcotxIb88e/kWe/AXbzFxNtVjZ48=; b=g6nIWyvyHyqwpIFY31hW8o2kK6Kxttpagr/ftFaG/IL+RgIBvZ9CxNv4 1rHL49yq16oc7gJ4aVtHEtuEt+PdLimtpL61iuzVAZr0F12b/MITV00uC ZfJA7XcbPW4sx9cfuB35wQrnWfsyKloKknO/xVEJ5kE6BFCA6SxcUqnbJ mQV6EZ2ptNytjqQbO49vxQ04aM0U9z9L4KTpUOlB/+m4xSC4cTuFjAD8O 0RBlNOofLQWQ+g8YMLREKCVZCaWJw5WAanogOVidzQ/jZd5PxVs+14gfS cK/KClayiwP746mTtubJI5+hSILctIYJp+oc2j/UWLFGGVMB6rHLyVFq6 Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10454"; a="295143525" X-IronPort-AV: E=Sophos;i="5.93,274,1654585200"; d="scan'208";a="295143525" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Aug 2022 03:43:23 -0700 X-IronPort-AV: E=Sophos;i="5.93,274,1654585200"; d="scan'208";a="672807662" Received: from amrabet-mobl.ger.corp.intel.com (HELO localhost) ([10.252.41.211]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Aug 2022 03:43:15 -0700 From: Jani Nikula To: Geert Uytterhoeven , Maxime Ripard Cc: Maxime Ripard , Ben Skeggs , David Airlie , Chen-Yu Tsai , Thomas Zimmermann , Lyude Paul , Philipp Zabel , Maarten Lankhorst , Rodrigo Vivi , Tvrtko Ursulin , Jernej Skrabec , Samuel Holland , Karol Herbst , Noralf =?utf-8?Q?Tr=C3=B8nnes?= , Emma Anholt , Daniel Vetter , Joonas Lahtinen , Hans de Goede , Linux ARM , Phil Elwell , Intel Graphics Development , Dave Stevenson , DRI Development , Dom Cobley , Linux Kernel Mailing List , Nouveau Dev , linux-sunxi@lists.linux.dev, Mateusz Kwiatkowski Subject: Re: [PATCH v2 14/41] drm/modes: Move named modes parsing to a separate function In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo References: <20220728-rpi-analog-tv-properties-v2-0-459522d653a7@cerno.tech> <20220728-rpi-analog-tv-properties-v2-14-459522d653a7@cerno.tech> Date: Tue, 30 Aug 2022 13:43:07 +0300 Message-ID: <87czcidnb8.fsf@intel.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220830_034327_593936_01393E56 X-CRM114-Status: GOOD ( 10.71 ) 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Tue, 30 Aug 2022, Geert Uytterhoeven wrote: > On Mon, Aug 29, 2022 at 3:13 PM Maxime Ripard wrote: >> +#define STR_STRICT_EQ(str, len, cmp) \ >> + ((strlen(cmp) == len) && !strncmp(str, cmp, len)) > > This is not part of the move, but newly added. The same construct is also duplicated elsewhere in the series, and I kept being confused by it. The above is precisely the same as: str_has_prefix(str, cmp) == len Which is more intuitive and available in string.h instead of being a local duplicate. BR, Jani. -- Jani Nikula, Intel Open Source Graphics Center _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel