Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp876390lqd; Wed, 24 Apr 2024 22:07:35 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXZe31VKk1q+SvGpI6cwOKBsHQ6Hxg4cC8rycNdcoE6a3TPVuSiZzDrqsIL+HnbsbZoveRmJLoZdjbNJML+Fc3kz0a45SMr8cKBdGJPRQ== X-Google-Smtp-Source: AGHT+IGZ9dQOPJPvptBCJ3TWULpjTDzvJ3J6Cez3kM44pFGaAeBn59oTskvTscuws6f79lGZ091x X-Received: by 2002:a05:620a:29c3:b0:790:9790:fba1 with SMTP id s3-20020a05620a29c300b007909790fba1mr2414780qkp.33.1714021655221; Wed, 24 Apr 2024 22:07:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714021655; cv=pass; d=google.com; s=arc-20160816; b=a2+2p64jjTtAp3zBM/LYiVL3alzNgtcxmMBIvprye801w6sCu06rcsLrx+inVDrv1C X3fgtFUUSzXhOM/T1uQbaZbNlxksIgujkMmZB3PTDEO1ot48U0XPEaXQ7HAmz+Wa2d+P CPnQKXaENw/5FZsXsfqJZjjG4opGld4xas5Pyx2in5PUcjzLxdFMocNP3kz3kBmlV9Wy 4hMt16wXEEMHvRxHBge9t6CQqRyDIbYYwCyXqvyya89Dn/h/dm6UpUSqDcBig9Tb/pbH 5z+NM2xVO59a6vSu18Ls8o0VK+G8e60uRF/ZknFqV3f6jmxpSsgNamZ6z9diTLNWngPU PCxg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=J1QZb4MudunGoT1d0CEZNxbpWlJt6A7q5DEKaxpPxYs=; fh=VLK/DAg3fvvC0RcCtsgDLrKN5IHVwVZRcKyjgGN1fvI=; b=CRZZ0LO5NgKQdNEnPHNvx44YGGlN47+uYL6XtTMr0E91VzQu/P+AWvQgehDA8XpK8N 7fIHY/960lbe9SrGsut3Q20NEQXxGaeaESACRw/hTCA1Ntjh4fTK4TgLOuUuH8qK70Df DfXqMSZOurA5hg7/0v/OHuUWMkebcAAEPM6CoiemzWx0YAQT6cbN/b85lKJ0lmW2mIDo 8E55Yt9wSzbESXqRdyR84KmuPDAy5HCER9YTcLPFLe+K4v7yW0zpDhNwISOKcrNyCHn2 pQdoEJ/LNds0DqG9oS3JaWcBClQrC+jV6wdDeLZ/Gr0efpqBgY0i8qMnsLz/DuFWaxvJ AHEg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HSv+OnR7; 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-158011-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-158011-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 h19-20020a05620a13f300b00790979645b4si1343758qkl.346.2024.04.24.22.07.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Apr 2024 22:07:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-158011-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=HSv+OnR7; 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-158011-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-158011-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 ED3791C215FE for ; Thu, 25 Apr 2024 05:07:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 60F2C3A1BB; Thu, 25 Apr 2024 05:07:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="HSv+OnR7" Received: from mail-pf1-f176.google.com (mail-pf1-f176.google.com [209.85.210.176]) (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 6AE4539AF0 for ; Thu, 25 Apr 2024 05:07:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.176 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714021647; cv=none; b=Xz5r1DmKANYtaNnw334q8dofobLnXoy7a3NBrV+yjECb5COkC0jKi0qy+ENUXBsatrMreW0KtpqC2iQUMiEGEc0p5173pBKXWMeJ30eFfYldCJn1phSzH9u0G5nclqKVa5pPPIdHqRb9rBR3SPKy1bplnK/pv3BQqvBWvvCy6Xk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714021647; c=relaxed/simple; bh=Ncm25OorSfz9ZnjTA4O3Y7gRy0DGBERjo58g7YZCcmA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=m3j+th/eGZXF8zW4UHKv+01/rH4P3gLG/uYlvfWn4Sjak2lxlHZ0yn4m52W/L02jLDpRPTYbKLnnAt4jV0tUqm+pGjmMU0yBPq30VwXH+C7xwd3+znjM5ziq8OpaFEu0JZ7cOpHSqt2/TJMTtQ4+Rerl/x3znxcttBLNAP7Zwv8= 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=HSv+OnR7; arc=none smtp.client-ip=209.85.210.176 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-pf1-f176.google.com with SMTP id d2e1a72fcca58-6f28bb6d747so544123b3a.3 for ; Wed, 24 Apr 2024 22:07:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1714021644; x=1714626444; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=J1QZb4MudunGoT1d0CEZNxbpWlJt6A7q5DEKaxpPxYs=; b=HSv+OnR7EEy3RGOUvgS8KFYsug0vpc5b5XAXoB3//KCXCPp8VsDrSh0rFn4ZmCOwpj FfQW5QU3pQCIbBPL/jF5Z49t/qlX71WUMoZqHGQZeHDiv0l5/6MJV8f51eOgLqjS0eNR d0TFLDJa8bGH50ssB4LcU+uhMXcE8bQH/HlBQia6cUIS+qjRoMLVfz0qB0PlEe/w6bme 8yN4eUqhewhPoGMc1OH1AEkPAzc3246v/fYE9y5MUre6GThThtR6S7g1VQRKsTrmAPxN M2yrvX6H/EEY6beKea7XCQmqHHQ8BsyWEMDfb+frxaFdcfXdWqts1gVb+aA9hFtLNnga Swvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714021644; x=1714626444; h=in-reply-to: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=J1QZb4MudunGoT1d0CEZNxbpWlJt6A7q5DEKaxpPxYs=; b=wcDOT+i+HrCJ9N0mdNLerHak74vukRLJbql90Lm90GA356NqwDZFwMl69hgP/pjtRA WVPSHlucI4UWiuHMkPhka7+fXewAHaBHjHRkTV2XADvRnWQeH+BQDaMttjYihvISomvL ejQ9WodYO1SX7dEzdrqAB+YzegjMQTjJvLE7neUqKdToYjPT1DS0ZcgtPpGMkjYA74Yh 7I0n30K3KY1ZjsdvKfrhB/Dm8AAHoxggw1OLViIZWrriTM3C9KuYTt3PXsgKRv7OZqDz 1C59m9gmBpt5RiTiRySxluqq68HHzM0cPwYZ22No7CQ0NFi9DIEm1bij8oMRzczLvKSG CIzg== X-Forwarded-Encrypted: i=1; AJvYcCUu462LdZymuBbUEc2REsRM6Kamx/PkjUTazTNKTGEtGzZJZVFbdf/H84zPI5YpyV9JX2cdT2GVwUKZNo6yKmemh07h7nP1nOi97Uhq X-Gm-Message-State: AOJu0Yz2lrDpSMYiwnCMl+jn3lRRmWdwiEHiPC5UaxEZkEGln5TUzjF9 WPIB3Q6d3Xrv0stjpcBraaoDPm3WkpOMtKoN0MTO1bM46j0Ml4oFMFvvOUwAnl8= X-Received: by 2002:a05:6a20:da81:b0:1ac:efbd:dc46 with SMTP id iy1-20020a056a20da8100b001acefbddc46mr5597081pzb.2.1714021644464; Wed, 24 Apr 2024 22:07:24 -0700 (PDT) Received: from localhost ([122.172.87.52]) by smtp.gmail.com with ESMTPSA id j9-20020a170903024900b001e8d180766dsm10760282plh.278.2024.04.24.22.07.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Apr 2024 22:07:23 -0700 (PDT) Date: Thu, 25 Apr 2024 10:37:21 +0530 From: Viresh Kumar To: Portia Stephens Cc: mmayer@broadcom.com, bcm-kernel-feedback-list@broadcom.com, rafael@kernel.org, florian.fainelli@broadcom.com, abelova@astralinux.ru, linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, stephensportia@gmail.com Subject: Re: [PATCH] cpufreq: brcmstb-avs-cpufreq: ISO C90 forbids mixed declarations Message-ID: <20240425050721.vks2bq7gqwl2gfpe@vireshk-i7> References: <20240424050220.889814-1-portia.stephens@canonical.com> 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=us-ascii Content-Disposition: inline In-Reply-To: <20240424050220.889814-1-portia.stephens@canonical.com> On 24-04-24, 15:02, Portia Stephens wrote: > There is a compile warning because a NULL pointer check was added before > a struct was declared. This moves the NULL pointer check to after the > struct is delcared and moves the struct assignment to after the NULL declared > pointer check. > > Fixes: f661017e6d32 ("cpufreq: brcmstb-avs-cpufreq: add check for cpufreq_cpu_get's return value") > > Signed-off-by: Portia Stephens > --- > drivers/cpufreq/brcmstb-avs-cpufreq.c | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) Applied. Thanks. -- viresh