Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp2065165lqt; Sun, 21 Apr 2024 23:28:18 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXQkcV1nMJrflTLcQhO7/ubmhkfhd1Pry1PjBhYokFTDS/w5jPf8UF3jlmm0BhddLftSvKUPsyKD4OX4D79KeLyMRRrAGLEk6lcfjM8UQ== X-Google-Smtp-Source: AGHT+IGIRS8lB95NHDEX7fWPcsebEXxgylo6rY5qdI8C7LfM1FsHe3MOvSPDYWBJSbF3dwvDtek9 X-Received: by 2002:a05:622a:3d0:b0:437:ae67:69b7 with SMTP id k16-20020a05622a03d000b00437ae6769b7mr10647574qtx.58.1713767297963; Sun, 21 Apr 2024 23:28:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713767297; cv=pass; d=google.com; s=arc-20160816; b=pigOHkRO0xIxEnLYIaaYi9r73IT62Evy9ipSXdQo7nvt0vk5c3pmnQ0Pz9YmrKtu79 Mb23cXdYeQY7idgI+xpzHyUHxMWHX7xAOQOTsoYRkvaFhndVU8BY9T5Iy1Ep4EXkWvpO dknoBQxziQyLFCR2Qgf5DT+UHhgJQ+w5NB0TmWoCX7sFUwrJNURjw/SO9LGRq7S4B83c FuhfIaQdv4HMNmUZZEDvbkGGPQYowlsl757Cgd862SBufpQsEox3h+K2u+vJSKl+mAUA 1pZjcHyqw/w8XZyenvN6hUJVSj7kyEKPDRM8Ne/kFiOANuH8me0F180EfXNlRuShmrzN g64g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :reply-to:in-reply-to:references:mime-version:list-unsubscribe :list-subscribe:list-id:precedence; bh=3nJxs6KDCzEvXDgS/hhsIWpVpzHE7gksU4iMi6yQ1hk=; fh=lW9d1hW7ZBjKo7/xU4pQLGOEcj3/rtgh66DaiRHcmRI=; b=wwrI/qVYJuFaZ4QhrRpGsTWH6AEPa497gAdaazxulFs3NCkbDryt/NQz2ugj1tV8LR 7VYU8ScsObuI7MbvMd7sfDke31kdpVsA6MWBa5/KM7VM4GqbyfyTtG9rFxmG1q8wyXVP RFKNjmYAPoCLIEu8oBPrjb3J9gCD3vG11UvQjKx7dPucMT58Epg1UEaiZG/gRuiZSwzL G2+XbjpV60TZ6x3nTKwbh48VdBWLVbeuoLZpVPbg27U+FfX8uT+zxwrtLW2j3J0SvSe/ B30AhYu7BhWsKtgcm5O1eIPrX+ZkuUAX0nbwrW0EAqXpI6vyDsCimcZD4gQ/AlgK8ZWB YNHA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-152785-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-152785-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id y6-20020a05622a120600b004365142e0f7si9672734qtx.385.2024.04.21.23.28.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Apr 2024 23:28:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-152785-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; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-152785-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-152785-linux.lists.archive=gmail.com@vger.kernel.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 4DB121C21E42 for ; Mon, 22 Apr 2024 06:28:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 25FA23FB9A; Mon, 22 Apr 2024 06:28:07 +0000 (UTC) Received: from mail-lf1-f44.google.com (mail-lf1-f44.google.com [209.85.167.44]) (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 77E642BAEB; Mon, 22 Apr 2024 06:28:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.44 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713767286; cv=none; b=OvOMs0KMz/+k/1tPVNNCDgDLmXtdV8n46Pk7EPmLDu9yYQw9gr3lzIyyLfNRahGY5nhe444G1qmWyaewpbDF15PDH5S3N4ScBA/fyFSfo9SW0YRo6Zcm9OxYQWMqJIzp8z8JE0i2NnPKRZPNpOroRlQmsC1q/jC06MEtzUv6DxA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713767286; c=relaxed/simple; bh=3nJxs6KDCzEvXDgS/hhsIWpVpzHE7gksU4iMi6yQ1hk=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=t4dmNAmKlgGzuQZI79cM6ihlASdbOpVg16IJvQpNX3+colh8IU46OCkNU6pci+AbLvpOTv5GJ9saxNqJV5+NP0VKz1J2+iyRobJQpXH18a3TMcSZrObiAGRnGOwI+9fHidYKPtulmaa84i54/xDY1Ks9wZgm7BZDp/BcLGieWao= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=csie.org; spf=pass smtp.mailfrom=gmail.com; arc=none smtp.client-ip=209.85.167.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=csie.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-lf1-f44.google.com with SMTP id 2adb3069b0e04-51aff651083so1362089e87.0; Sun, 21 Apr 2024 23:28:04 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713767282; x=1714372082; h=content-transfer-encoding:cc:to:subject:message-id:date:from :reply-to:in-reply-to:references:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=3nJxs6KDCzEvXDgS/hhsIWpVpzHE7gksU4iMi6yQ1hk=; b=MLVhyW+t5RuTPk8rdyC4iVp8KCnZRE3eIHbG0dCEkel4H/RiLh0IUggs17xUVnmwsg UF0Szpwjc2JLCz9+vePot4p6UsAOnODQMPGp/RvNRj65XJcBevzr3Y4lPueGMOyT2516 k1PyJi2OAWU4Ztn5P30ifZe/kprSLpJJ5E1SgS6VyPh86Sxjc8lQVhKTKe/KHyL9qDqk fwE7TgL9Qm6y8TaJAyrPNM69Mve3G/xYQpsEEOl4T+7Bv+9b2Av4RyV1aScEfoEQUyWq 6fo/OqKyFor6SxpjfkA6g6CxIBAdIXu5nBvZsEcSOubPMoZ3yrwPso0yz32SohQsdcXq vTqQ== X-Forwarded-Encrypted: i=1; AJvYcCXqOkrdZ6RGJQimd8xlem3EJ5tcbW7/hC4JHwQoP4LYSW9AtlFy/hAQnmJVW56K4PmMb4ZnnTS21SHthalBe4ZCwBn9tP+TBr+4m45MLU9/ZFLAgCU+Eew12umcD+MD3Xzl7RBelW0= X-Gm-Message-State: AOJu0Yx49Zj8SCC94daFSY8KCQNGQ6/Y2IBYwD3S7UPMCsCkz4zg6Lxi ST0dSb+KjY+acXGEKwu0l3+QrOhVfUayGy8zLyCxilPZA2EMp9IDZ/y+UVJcQ+Y= X-Received: by 2002:a2e:988c:0:b0:2dc:d7a6:1e53 with SMTP id b12-20020a2e988c000000b002dcd7a61e53mr5225067ljj.18.1713767281985; Sun, 21 Apr 2024 23:28:01 -0700 (PDT) Received: from mail-lj1-f180.google.com (mail-lj1-f180.google.com. [209.85.208.180]) by smtp.gmail.com with ESMTPSA id w25-20020a2e9599000000b002d9fd8b0670sm1379958ljh.123.2024.04.21.23.28.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 21 Apr 2024 23:28:01 -0700 (PDT) Received: by mail-lj1-f180.google.com with SMTP id 38308e7fff4ca-2d895e2c6efso60507361fa.0; Sun, 21 Apr 2024 23:28:01 -0700 (PDT) X-Forwarded-Encrypted: i=1; AJvYcCUh1g9yP3eRttwc3gRzkeLno00F7C498HUgTq0yFaa81DEebeNDO4R/O+0husHxhYyGE40ADkbaamiF1+4WxaUxkfGTiBVovKa03KE4cA/ACa/V9gbuRAiXaJ4vcQExhb1UG10MyN0= X-Received: by 2002:a05:651c:608:b0:2dd:97e:3481 with SMTP id k8-20020a05651c060800b002dd097e3481mr3120608lje.51.1713767281436; Sun, 21 Apr 2024 23:28:01 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <285de20a187f3e4baeb28f639b5bf55e914a3821.1713756666.git.viresh.kumar@linaro.org> In-Reply-To: <285de20a187f3e4baeb28f639b5bf55e914a3821.1713756666.git.viresh.kumar@linaro.org> Reply-To: wens@csie.org From: Chen-Yu Tsai Date: Sun, 21 Apr 2024 23:27:50 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] cpufreq: sun50i: Fix build warning around snprint() To: Viresh Kumar Cc: "Rafael J. Wysocki" , Yangtao Li , Jernej Skrabec , Samuel Holland , linux-pm@vger.kernel.org, Vincent Guittot , kernel test robot , linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sun, Apr 21, 2024 at 8:31=E2=80=AFPM Viresh Kumar wrote: > > The Sun50i driver generates a warning with W=3D1: > > warning: '%d' directive output may be truncated writing between 1 and 10 = bytes into a region of size 2 [-Wformat-truncation=3D] > > Fix it by allocating a big enough array to print an integer. > > Reported-by: kernel test robot > Closes: https://lore.kernel.org/oe-kbuild-all/202404191715.LDwMm2gP-lkp@i= ntel.com/ > Signed-off-by: Viresh Kumar Acked-by: Chen-Yu Tsai