Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp1762594lqg; Mon, 4 Mar 2024 03:06:13 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUoK0kREuuIHj1ZfT/c9Kn4WB2H0GHmpsbY+nGYfUYTIgyFgTdYD8PP1ouoPsmOxRcL7GwDzwsNJDLP831e9EBaLCFe0kMEXNSDMKVpFA== X-Google-Smtp-Source: AGHT+IEnBrIMW1AZ0B08g44gAB+kSaq8tqM89Y7huqPTZUeLAf3FaAsXlB5IUIPuoKOb1PRovaIO X-Received: by 2002:a05:6a00:2289:b0:6e4:d519:4681 with SMTP id f9-20020a056a00228900b006e4d5194681mr8433765pfe.11.1709550373533; Mon, 04 Mar 2024 03:06:13 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709550373; cv=pass; d=google.com; s=arc-20160816; b=YmI2HlMEu6qKdzfG95FYkuOvngIMjLbT1iw0Gff9TKfee1s7CvKK2Db2uEzdGtR05B 1xayjOEJHTkzLmIZyz/Evx0mxacqPAFyvvwxH17jOGkMM426r9n4i7V7czp+wA9zbaqd dyh5gnPcL6UqwtZxLXzWWrC8OwkMQB/M6W896cTzXwPoBhThRZdnjTLkArtH8yFCjsR0 IODuetqc77omiSmNbvnDTQDa4C2+COjJ8RTqRwsdobkFbV85rL80PGhMNZUKNY6Ss0fj DzD4PKaqD4UM0VFetbvCzIkVzUwFu0sdQlVPwm6nabreYbvyEkoFja18JiRUmob6g8qt FBTA== 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=dMoA5iWDNFyiJx9tRtvnvsvxhpL7jN9qbbKy50/eZLA=; fh=UOM+9it+FyS5mzZZGqyWMfmDBgp1qyl3LpmDPTEP2ZY=; b=ANNpEq4pX/eP1pJ8tHMIJoaccCQaNGarAvpLgjJQijKRjWCJ5f+cQhBsnwMWarOQUN HPzk6NBbhyhcdoncWB1NLO3OOQATsMA6KV8pm/ObxRfZAt7p/0azqQMp0r1LoQ0yZxRG B7hQrnJT4Watwvz/OsDLtOLqFGHowIFt3LY4kjyK6gBw8ULtqYjUuyLbf1fy+KHpq+XB rundQYJBp2X2QIsNyPONLkXqKmz8O+t6whozJNTM7exX4f2ZAyZ07z1LYkSq/UMMb96/ OzGc9mDwRkJ27bZWJ1lvDcKvVCBU8OFDZyc8lqyaXoLSgfb7QVmvkmHFgz2xVa1l1TaS NICg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=O2j2Mqz+; 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-90466-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-90466-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id b5-20020a6567c5000000b005dc6fa552eesi8112103pgs.816.2024.03.04.03.06.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 03:06:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-90466-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=O2j2Mqz+; 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-90466-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-90466-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 721DEB24218 for ; Mon, 4 Mar 2024 10:58:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5AF7A381D0; Mon, 4 Mar 2024 10:58:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="O2j2Mqz+" Received: from mail-pg1-f178.google.com (mail-pg1-f178.google.com [209.85.215.178]) (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 30005374F7 for ; Mon, 4 Mar 2024 10:58:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.178 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709549905; cv=none; b=nfHh/xMXMa7805pDuFmnljLxs0WgVy8K3Au5LPZZTvMcteFwXhMYUnsKZWEsGW4wcFv39eyps0nAGvBVGj/SNaxnN3vLdxlHOeSGWLt65tRscrRNsVK5tBq6hrgZRsO6WSPM9By9XfUtJ4CcLlE0b6YCJxK2StlcXTknBTovONU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709549905; c=relaxed/simple; bh=SU0P+6mERyVFW+8OS0nJ5FDl/7jXIMmV2cJFkItJc+k=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=jKE2yOD8BIImoTcCo+j1hR3HY+pSIrRw99TwNM+eUWfskObVlholuj18kiB6bEoaruYu/dmR14xQWiyZ4TpyvCMB1l+I35sETpsvt81XT2c4FU7lc6PCfcGnfxGZ2OerqHfzMNdTJf79D8PA9aVMYZ19Fq3hKU9Xn6HBpjMaSbY= 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=O2j2Mqz+; arc=none smtp.client-ip=209.85.215.178 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-pg1-f178.google.com with SMTP id 41be03b00d2f7-5dbcfa0eb5dso4054833a12.3 for ; Mon, 04 Mar 2024 02:58:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1709549903; x=1710154703; 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=dMoA5iWDNFyiJx9tRtvnvsvxhpL7jN9qbbKy50/eZLA=; b=O2j2Mqz+gWAFAN3ZWJRE1+ItIdtpJ9ZlC3TCt64xuav+2HVEpd/+5xZZ6ywTEsQtLQ N+kpynj/NgFIHtzmEAgHSYAV+gbbqyvVqQoudm8H6/6e9+ldX/GKLdflnKcC4hm7dKDm xHW/sBtoZOU+C9z62t0PvPAXtHb9M8ef+9YhxhkzmZTxB67kAY048kvyEjeu3MyRyL4d mZRoPvYkMA0pmBKbloEdRAAtj+nPJb+wmrf76pd2exPmOet7vU00bxQD3ciRlM8IVTfk CCYSYEaEyuto1rzUuDYhjDJvJdnsvvR4IRiiuZIvPu308uAgDL8XpYyiRdtpd4EChLnS MuEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709549903; x=1710154703; 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=dMoA5iWDNFyiJx9tRtvnvsvxhpL7jN9qbbKy50/eZLA=; b=Q0i+TP6DJQrNjoQNNvSkoaSnKw0VspTGkKKP80kyHWaOW1KrjkD9m8U8OtaRcfPqrv 8uN3VI+9oWEWJAfVfmDXLyJE+Q6iCynvETIT30RVCaAvoRwXj5G6Ol7uiK3qxAROgQGq SKjq5a4139c5W9/24ZS/+kmqamzVo9LkPua2CGVvGlqxgGOWfTwnDPBoOjXOVQcQI2eq M/+xaVKTA7oRuC0UvuZOgPwkEF6zfcqdiufxSNz2sukUpqL57T0rm4A3ZerLlX2DW/Bw iq+kg1vZC9imBoSJpvxWKmgaNOOqzyRheopIZ51NH+OJrjuZ7P9SXRrTk+RbwxRvaqGe GFTw== X-Forwarded-Encrypted: i=1; AJvYcCXVSTrLNzBnqaMEpp7a9ghIx3b2QBXlbQi9Kbs8Dnbyd1cn0oO1BfowT93daJBxDpRko/7lJETtMBJWcNj4hUuakxdcfuPrD5bVaBzU X-Gm-Message-State: AOJu0YynPcvtExa5HZ4i+SuPZZ7cwQrS89VSmAK19tDE8MiQVS141TWI vE87gVkLI043Ck6uz0tV31y6sJe7Z3LWUuzCpbvvdkJCoxUnc0ortXUIeqZXz4s= X-Received: by 2002:a05:6a20:4308:b0:1a1:4b74:1102 with SMTP id h8-20020a056a20430800b001a14b741102mr3009164pzk.16.1709549903528; Mon, 04 Mar 2024 02:58:23 -0800 (PST) Received: from localhost ([122.172.85.206]) by smtp.gmail.com with ESMTPSA id z18-20020a170903019200b001d8be6d1ec4sm8198202plg.39.2024.03.04.02.58.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 02:58:23 -0800 (PST) Date: Mon, 4 Mar 2024 16:28:20 +0530 From: Viresh Kumar To: Dhruva Gole Cc: Viresh Kumar , Nishanth Menon , Stephen Boyd , linux-pm@vger.kernel.org, Vincent Guittot , "Rafael J. Wysocki" , kernel test robot , linux-kernel@vger.kernel.org Subject: Re: [PATCH] OPP: debugfs: Fix warning with W=1 builds Message-ID: <20240304105820.urasbqh7gtiwt2o3@vireshk-i7> References: <50a1a0f23efdc261844a306f5e611051843b4e52.1709536847.git.viresh.kumar@linaro.org> 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: On 04-03-24, 13:12, Dhruva Gole wrote: > I'd rather we use malloc The problem is that we don't know the length of the string here and we don't want to hardcode the number of clks, regulators, etc. > or else change the limits of the > "rate_hz_%d" to "rate_hz_%4d" or how many ever digits makes sense. That will not work I am afraid. This works as you intend to for %s, but not for %d. With %Nd, N only signifies the minimum space the value will take. Let me make it better anyway, will try something. -- viresh