Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp2333315lqo; Mon, 20 May 2024 02:32:12 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUWKpEbgK0YZ3Hp4yfooH7gRD871RNDv1kax3QMUm5a6JQgbdPSZkF94aBmbdC+Ogd4fyuSqqrK2hlY+tkQqBY+wrSd0eK/WtPXLaFTzg== X-Google-Smtp-Source: AGHT+IFc4qSNy1brvH8RBJvQZGJ2eCTYxkmQ//UgBvpewlalQpSVIQdHAdmWazafvm6ZRS24f0S1 X-Received: by 2002:ac8:594b:0:b0:43e:3a88:7d26 with SMTP id d75a77b69052e-43e3a887e6dmr174245431cf.8.1716197532384; Mon, 20 May 2024 02:32:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716197532; cv=pass; d=google.com; s=arc-20160816; b=098edrXnjTHa71Mwv/FIgiHKb/J/4DL5mdDvcxaemI3qKbBsjZer23vTuUyd2Yccsg sL1+ACJAEC2FK+y6mnwK3qBsYP34e8tosBgoUiWli+1tbzUuRuKl1Je9OW9AS5JC+6X3 vxiN7WLlc5UWxNB/OulTURZUY7YC1xdI/NEG8eesE0anyxVFwoGCsHKf2AGAUljQwO0D yCOVJflVBa0UR6/HemqVjFBB9ezrE1ii9UjHWCC6mPsBZUrRO4VQT4dIKybZ7REsDaFI hLuk16385uEj9KyTj5Ua73AQWXFRWaQv5v0xOeMgRdoaJN2V94lG5zqLAXn0brG/XI4E +u+A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=gXcTr17OnY8F+y7pmTPTBCYGtlM1VN1xAJVrjdqU4FQ=; fh=E1h/l/6B/51YkygQaXiBo6X8PUC/r6yUn8k+7hKl3Bk=; b=m3Wr67Omp2hJ3KQhLPMpE+DCGxUCKLCtB9h/T/KzZH3T0PaY24mVOlvRVIFuYOlwxZ hRMUgxzJcwCvA401cj+6z6MXKCgTcma3XzUtnfm7AYk+aZ5v0H9DyVMWuyL4IAqjFPia 25R/wpZ1iTwwiVECgQwK/bw46T+HuVNrJZ6lX040lP6LE+O561VVWk1FHkggVM+22/LM wVIuNx112jclgUStZyULngJy8wO7X0NjazkkyCl+umdc8gKM9t9P1kPHdlHjsLEsatYq AEMqogJts7Qe6p9pToCkLVYPify3jPe7ZksGMNriQ3ZOe8P1tWd+qT0ZzAnK0WX9LtJ6 ttOQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mdwplcUz; 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-183540-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-183540-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. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d75a77b69052e-43e214b5da6si166321811cf.542.2024.05.20.02.32.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 May 2024 02:32:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-183540-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mdwplcUz; 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-183540-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-183540-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 4A3951C2140E for ; Mon, 20 May 2024 09:32:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1783B224F2; Mon, 20 May 2024 09:32:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="mdwplcUz" Received: from mail-pl1-f182.google.com (mail-pl1-f182.google.com [209.85.214.182]) (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 D69CE1B27D for ; Mon, 20 May 2024 09:31:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716197520; cv=none; b=W9TQmH2fZNFGS6pXlfabic2X8ihcWIhI9IlUJxHNm0V7aqWZ6hATDk088Dn6e1oL1ZBbgqH02mImsYKIuCthknR7j9lDz9+ZAOrCDYCq5pjT2uzIEakvicYyegkxG0R7I4hFdA3S78y2XIUebfJgmrvdnSzPn2qwva60HAZ+BiQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716197520; c=relaxed/simple; bh=fAwbFrhZucuUROZuu6MGO86O8/hvc7iTiETnrY7aFhc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=jDgArU6HqRY3Gd1hnQZzTObE13z1KZPvP1xeSx2GTOrlxZt7LkaxAwX/c1ESkrU9sQwbS2OpbTvzHtWad24lZFwqdQ+vUiUiXi3kGp9001LMpoJIaMfBfAMRYqcZDUd2Ovkpe0FLEwCheJX4igIdYLLhmhhmqJsWPJiLu3CkqHQ= 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=mdwplcUz; arc=none smtp.client-ip=209.85.214.182 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-pl1-f182.google.com with SMTP id d9443c01a7336-1f2ecea41deso59460895ad.1 for ; Mon, 20 May 2024 02:31:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1716197518; x=1716802318; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=gXcTr17OnY8F+y7pmTPTBCYGtlM1VN1xAJVrjdqU4FQ=; b=mdwplcUzhjzfcshi8DefU5V6JxPFbVR29v/II0Yag5Xn0aBEQX0xTs8XE2OAJEpRrs vSmmYr7NxNBs8CkLQFQqnS1aylkznKnHiL/LuwTLoRlGHCjY9BGPG1VlLdEJO++cZwsS fYYfzm6KxtgRL80o0Ioc4nnUdVsYKjTVoMt2QeOxwT8BULP2nW4J0H4DpEzblrVJpJ6l BV2oZsnGknsx1s0VrLfIBxOekGntydFvHZxfLjEszKi/CwxnGRuzPr5ap1cQcj0+MLIq /WgxoOEW+swmatM3A9J7XxOHnd/G8gs1hppWjFY1EE633eLRPrE88jYdlTgpB83H255y AeEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716197518; x=1716802318; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=gXcTr17OnY8F+y7pmTPTBCYGtlM1VN1xAJVrjdqU4FQ=; b=dA/WR23tRs6EUU6mitjNqkz0D+QGlZnDsJjJEchm0hMq93/r2ZYb6hLHfIr+EiJzUP hD9V4uzwFNvHMmRqZxbiN1ETBa1F+EYkxq510MpjFMDBQ6aa4yOKcif9MjEYLCfv7Wea bgG0qO5vEbeAsyc+XQiehAKTXeERiu3EFQm/XPcIrvWNrM/yJWf3npxFMJRTh56NFu0c iLPp17afe0GvZy4YBUcEgUWinsJWmJ9m+k9HxJ9jZrveQcJzGGwYJAW9U/c8wYm80cSv IWeWjDa9aZJ0hUZTOPF4V+XULeeQHOKlqgzgz9glc8WFH0E4J78tNKXog7eWnkNVMFcC glRA== X-Forwarded-Encrypted: i=1; AJvYcCUQ1Sm/jN/4cvXDqD1GNzZ0rUx4B/kkEN5zTdnTyi1GgjTxWbKagVk2AxKDSmsan6MbzJd7p4f5csu/cG4RGkyX5QK5ObsjgfA9G9UA X-Gm-Message-State: AOJu0YwROKF/tUw0S4B1f2aAy8JxFN0LUtd/6wFHidmQsy/BMqu9KQgP GluKrptbspdzpYm7WHWATzZV9lZRpBBShHj391wZTAWJEm2I98XG7qTRVNGtcMBmYhLyg24VXOo 5 X-Received: by 2002:a17:902:c40b:b0:1e8:6614:51cc with SMTP id d9443c01a7336-1ef43d0acb6mr329578705ad.5.1716197518171; Mon, 20 May 2024 02:31:58 -0700 (PDT) Received: from localhost ([122.172.82.13]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1ef0c15d516sm199167955ad.274.2024.05.20.02.31.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 May 2024 02:31:57 -0700 (PDT) Date: Mon, 20 May 2024 15:01:55 +0530 From: Viresh Kumar To: Markus Elfring Cc: Javier Carrasco , linux-sunxi@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org, kernel-janitors@vger.kernel.org, LKML , Andre Przywara , Chen-Yu Tsai , Jernej Skrabec , Jonathan Cameron , Peter Zijlstra , "Rafael J. Wysocki" , Samuel Holland , Yangtao Li Subject: Re: [PATCH 2/2] cpufreq: sun50i: replace of_node_put() with automatic cleanup handler Message-ID: <20240520093155.bn4m7lpvkagopxve@vireshk-i7> References: <20240520083522.vvga3aqjg4w3adkj@vireshk-i7> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On 20-05-24, 11:28, Markus Elfring wrote: > … > > > > +++ b/drivers/cpufreq/sun50i-cpufreq-nvmem.c > > > > @@ -131,14 +131,14 @@ static const struct of_device_id cpu_opp_match_list[] = { > > > > static bool dt_has_supported_hw(void) > > > > { > > > > bool has_opp_supported_hw = false; > > > > - struct device_node *np; > > > > struct device *cpu_dev; > > > > > > > > cpu_dev = get_cpu_device(0); > > > > if (!cpu_dev) > > > > return false; > > > > > > > > - np = dev_pm_opp_of_get_opp_desc_node(cpu_dev); > > > > + struct device_node *np __free(device_node) = > > > > + dev_pm_opp_of_get_opp_desc_node(cpu_dev); > > > > Won't that result in build warning, mixed code and definitions now ? > > I suggest to take another look at a corresponding information source. > > [PATCH v3 04/57] kbuild: Drop -Wdeclaration-after-statement > https://lore.kernel.org/all/20230612093537.693926033@infradead.org/ Ah, I wasn't aware of this one. > See also: > https://gcc.gnu.org/onlinedocs/gcc-13.2.0/gcc/Warning-Options.html#index-Wdeclaration-after-statement > > > Would you like to stress a scope reduction for the affected local variable > by adding any curly brackets? No, it looks fine. -- viresh