Received: by 2002:a05:7208:13ce:b0:7f:395a:35b6 with SMTP id r14csp147840rbe; Wed, 28 Feb 2024 15:27:06 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXaJmlZcOHjtHkKUklhQ4o3ZruhRnULtfu0hlAz22BhNp6CAwtDY9V3IY5GtkosMKyDCrWaVmHtKFs16BKZgbtr9pikxmiVuLvBIQFe6A== X-Google-Smtp-Source: AGHT+IFo50iDwDDITfhT4nvcy2JUI6hkYdZwUDvz4xGMvtpAwI/tZVcRB0Q1toqaq02e0RvWLWt5 X-Received: by 2002:a05:620a:4e1:b0:787:8115:23f4 with SMTP id b1-20020a05620a04e100b00787811523f4mr576703qkh.61.1709162826705; Wed, 28 Feb 2024 15:27:06 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709162826; cv=pass; d=google.com; s=arc-20160816; b=btFgeArsq5KvwpNnDDcmiFo3+5KdWKFsD9DA2KF6ZY5+/9L7Uxo3I58ETfxQsnwkKv 4LVcxgZS8mSrZM7vJy9V4rh9LRHaj9f99Wrx3oUG7OeVRTFN9QC3YWxNHEq3Ok8QCiBK Uvbi7D2LAZ/dQj0NBZ6efbg4C+/mHKp6kHKFL+OyCe2mTSehCdsWeKajVtKcmlBbr9F+ mTp45+yyfj7FzSHyVfsFHu85PkpcoC4zNpwdOg3eu19D7w7QLcR8er39+NgOxcwPe06g zgV3q29BdLOUtZYarY3dyd7nIoOEIdeZVC4GyCWuZROnPWy42ucOX2Vggpw35TYrvTmh YSlA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=7eYiCisy9EvDzPpdsA8EnqFrzrb2WGQGdFzfYxWz3OE=; fh=TPq/iw7bMK64bBp8/Im2sPBwOZI9F9Rlr7pTIG+Z92w=; b=UYgvnrW4gHNp+8zsLz0IRFrMBtrdyrINVSLuH1WIG9t8hklQTGkwUiRo9j02wdvcyG STAv60WmrbwYcA5T54SokFeGJaKUfyj8ovIgnhGcl8V80pb1AL8m4ZG2EsDf7ph/jT30 8P9Rz3P14wInPMsnbSt16xpvbsj0/xHLga/ACKW4pypnTLeWJU8O0H+V9v+wiuMfrbfi vBwvgCSus6Zq3DxHGYzj1t+1w/FFEaEyyKUpiXU0YW0LN1dJ7NrIkSkyKDs/JlEi2/dc qs0RnUXmgdlPJjoMpKLkIxblQHNfXTZB86V5zdnXNyK4N1ikj9QtgkXgkbhVPfzF7+tK CKuA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=K7HSEoza; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-85846-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-85846-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id c14-20020ae9e20e000000b00787caf28a62si215468qkc.272.2024.02.28.15.27.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Feb 2024 15:27:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-85846-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=K7HSEoza; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-85846-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-85846-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 6C8031C226B2 for ; Wed, 28 Feb 2024 23:27:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 99AF270045; Wed, 28 Feb 2024 23:26:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="K7HSEoza" Received: from mail-lf1-f49.google.com (mail-lf1-f49.google.com [209.85.167.49]) (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 0ECE913D314 for ; Wed, 28 Feb 2024 23:26:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709162818; cv=none; b=ubNTVh1o6QMs8SgQdU4VJJRBTvdpfgsvpDnHqqo1grPnFjs5lDlwmXaDMjAM/fTqusl8sDOfrDiXb3o9AfJ+rG2uJmXmvhVnpcO/wNwoZ2j2UBWpKqROlvfRiKCJQJOITk7MrgDnnjfsCo0V3SBqeV98IGTwHrfWO5MC9boq+YA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709162818; c=relaxed/simple; bh=8FTj6Koa44+7wIfYWJIPoAle8PfST8SPtRF2sQxL16I=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=mcHGsgNS9dgc596VNBxM2YGyz0ingSgPe7iq/MkQ7QBUb4aeTLsgcuHVnKYtKlHfeh8441XCoFvkZSF0AFkxsS2XTUVOqbrHZkA1Yi7U5jzxeqTiqbKUoQzWGxrUZVpYb8EDPaSK9KrxiacIgPUBm9Mz685TbLzytpNKHMD8gPM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=K7HSEoza; arc=none smtp.client-ip=209.85.167.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-lf1-f49.google.com with SMTP id 2adb3069b0e04-512e4f4e463so170881e87.1 for ; Wed, 28 Feb 2024 15:26:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1709162815; x=1709767615; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=7eYiCisy9EvDzPpdsA8EnqFrzrb2WGQGdFzfYxWz3OE=; b=K7HSEoza7DCdIqrcWgXXP62YbQCQYuMTXvgq7CHcNaOta4aWB5IYuuPC4ZTd00TQIC dDRItLh2fANircRuUuzCH1UrwlY9WjWUkYNIifpwhQpZaSCv3QvyOjOFE9UCNApaduLt CdW+mGt3xCIKGv0rTlSKBJBDIehivzbzwHRLyo4oebRX1cs49wR2n6HOLU4FkmyciG6z 1TUR+xNX++n69zJfmA2NwhWLV8fJkRy8wmSK/Feeme5DN6K0hzbi73TfyBdqJLngT4yn FhMoJWm4kvhic9OJBIgQUnC7VIrKHWDadTbXx+K1t2jyR42CznPlLgT0h+P8q7ZmuyiL VHrg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709162815; x=1709767615; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=7eYiCisy9EvDzPpdsA8EnqFrzrb2WGQGdFzfYxWz3OE=; b=Acrkp3hNO0XENie20RT1FqhHhze+IhZemdJj8i+ktWTgRsRRvQUeLzPdkbzeGe23Te sYLywA0v3pZOsoV3p/SQT9JUiGyYWIacas/I14Sl7DVrSUj/BIJ8Uan61oI8LuZI/SlG NUfo+N/ws3v/2vpP6UHQeTWCwSfKEsI3O0zAu2ZDHKskEtcSqtJ82n2aSeU7Ady0GUCV 7pCjHVdEo/4drWgFuzaxwJLrcpFqXdUs0aeojHCDjHUfiW5O3xLM6cnf7Mc/3eI92SNr joDN4tjMpTG/JEJhq3IP1m2u7O8h18OROsd7qkvEWiZeRJwnDEaofOwALOw60HYJ+Tu3 a+6w== X-Gm-Message-State: AOJu0YwLSA81FQ5RjexOoOy71G6SWIQUcy8b1IlEWM09jIYS0cw5keOr NxxrmYFREqKJLDleOC48sZHov+BDdtZuQ7JfzTzGFvrR9Ge4/V/2RP7Hg8pMg/g= X-Received: by 2002:a05:6512:34d3:b0:512:f6a0:1311 with SMTP id w19-20020a05651234d300b00512f6a01311mr236650lfr.47.1709162815082; Wed, 28 Feb 2024 15:26:55 -0800 (PST) Received: from [172.30.205.146] (UNUSED.212-182-62-129.lubman.net.pl. [212.182.62.129]) by smtp.gmail.com with ESMTPSA id j10-20020a056512028a00b00512dec300dcsm28686lfp.2.2024.02.28.15.26.51 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 28 Feb 2024 15:26:54 -0800 (PST) Message-ID: Date: Thu, 29 Feb 2024 00:26:49 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] soc: qcom: pmic_glink_altmode: Use common error handling code in pmic_glink_altmode_probe() To: Markus Elfring , linux-arm-msm@vger.kernel.org, kernel-janitors@vger.kernel.org, Bjorn Andersson , Dmitry Baryshkov , Johan Hovold Cc: LKML , freedreno@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-phy@lists.infradead.org, Abhinav Kumar , Andrzej Hajda , Daniel Vetter , David Airlie , Jernej Skrabec , Jonas Karlman , Kishon Vijay Abraham I , Kuogee Hsieh , Laurent Pinchart , Maarten Lankhorst , Maxime Ripard , Neil Armstrong , Rob Clark , Robert Foss , Thomas Zimmermann , Peter Zijlstra References: <29b63eb4-2342-4ca8-a313-5de2a6ec6a83@web.de> Content-Language: en-US From: Konrad Dybcio In-Reply-To: <29b63eb4-2342-4ca8-a313-5de2a6ec6a83@web.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 2/28/24 19:05, Markus Elfring wrote: > From: Markus Elfring > Date: Wed, 28 Feb 2024 18:45:13 +0100 > > Add a jump target so that a bit of exception handling can be better reused > at the end of this function implementation. > > This issue was transformed by using the Coccinelle software. > > Signed-off-by: Markus Elfring > --- (+CC Peter) Hmm.. this looks very similar to the problem that __free solves with .. I know no better, but wouldn't the same mechanism, down to the usage of DEFINE_FREE work fine for _put-like functions? Konrad