Received: by 2002:a05:7412:8d11:b0:fa:4934:9f with SMTP id bj17csp503233rdb; Mon, 15 Jan 2024 04:36:03 -0800 (PST) X-Google-Smtp-Source: AGHT+IGe5yTKd5l47upYZ4rxPQqGkcNXl4Y9XlDs9ETN4dBx74ZKHgSlFE15is9We9MSs+tY0Mio X-Received: by 2002:a05:6e02:12ed:b0:360:7a2a:b975 with SMTP id l13-20020a056e0212ed00b003607a2ab975mr8764435iln.128.1705322163167; Mon, 15 Jan 2024 04:36:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705322163; cv=none; d=google.com; s=arc-20160816; b=nlQMteMbzZlWk+2/vCN34ABCFu4kdbaV3vpLqVKk54l5zDT3AhIqZ3hrm5ihsrzQ40 jZGltwnDDVrB++6knSrunW+LpNJaaAyXO3TRK66/PGJNs+4JfacMahFYZh7LbdxFTemP pgjQuOgWAe3FIerUh3z0CN9noeE4cY5N48O4cNH0+AaKFa8FNLdnwv4WtjFrw5+MmsRZ DDkbre38p2DEhvw2Vm3WC3o4pDVin9ws5+YGrBBV+0VszXMqZl0olNlo+3RYIWy8FLRb GtXqsQpi4k053AMM+0WHLRW0tYGxyrMTdZ7W05VocAe+bBjqVS9CIDY4D3qAzVwoHjfD xWBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=efarK4gFQZ8bwS9F5nD0i6scJL94FERv5LFmfFlbrEM=; fh=r0YAUUefHMnE06kl3k5a1RwMJlxgs75tGi/dJJyL868=; b=Bi3BUmb1AFG+yoIxxX0SHPm0zBQ3Aq1y/ZYcXf9Aod0pwifo4WDdLfnc7lQzFoONub OPgK2ZoMNNcsJvOq+Y0EMyQhEruM8u8U0s9AhbmVYa3jU0R3HiQaQ25nesHkLZl1eW+B PDnC68+oW34DR2T90l1t89NRUTdUNqg1wLCt44f1+VXfcRTeQPF7iOSnOvhs4PJ72Naz OJbJrcGLF3Kagry3QQAt5Q6HlTyl1lerjdgHoWyxecM3+hNmL2rb0rxQ3sEytBw4GT7c J52+gV3POHZL2YhtJGIto8eJelgkj0hmj8fP7Qw46ZkXNvWNZ9R/iipuFuJRzKydRsQ3 9ZQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=e66828PM; spf=pass (google.com: domain of linux-kernel+bounces-25967-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-25967-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.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 b14-20020a63d30e000000b005bf77518dc6si8799577pgg.286.2024.01.15.04.36.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Jan 2024 04:36:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-25967-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=@kernel.org header.s=k20201202 header.b=e66828PM; spf=pass (google.com: domain of linux-kernel+bounces-25967-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-25967-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 sy.mirrors.kernel.org (Postfix) with ESMTPS id EDCD2B21437 for ; Mon, 15 Jan 2024 12:35:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D480515AF7; Mon, 15 Jan 2024 12:35:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="e66828PM" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 049E413AD4; Mon, 15 Jan 2024 12:35:47 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 39426C433F1; Mon, 15 Jan 2024 12:35:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1705322147; bh=ka2hi/uM2nE/0NKw+Ue3UWnzr5acORYb/NeWIN/2f+U=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=e66828PMRqC5XrkvIVrAGDYDGKxgNZx3pXLiUaFI9j1huy3xJx8e5QFnkEaWSaQay gaiO3lsWdmcombfowkdDy6EIOb0ZZEkqO3XmRygRhb8wlFJg5ALtf6BjKtc0nHNbiy h280O2Zgtyw2IfyGoaAsFh3JcZ1e+Mt4RqC5aIdvvRj6Ur2FNwKkWgUUkskgbrq7lp K32x/Ax1rs0eTENdQKFQhd7lEFlDekezv29MQ+Sp6p4p+NJCoiCdDPMOuyNG3eZjKg i/KGkyIaieHkHeKyOSJbLMID9cJwtWkTPdb5VXghRrVSrpX/8XrrbPenD8uEu8WZL1 u3ScKn33GpW5A== Message-ID: Date: Mon, 15 Jan 2024 14:35:43 +0200 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 1/1] mfd: omap-usb-host: Increase size of buffer to include all possible values Content-Language: en-US To: Lee Jones Cc: linux-kernel@vger.kernel.org, Tony Lindgren , Keshava Munegowda , linux-omap@vger.kernel.org References: <20240111163949.1976778-1-lee@kernel.org> From: Roger Quadros In-Reply-To: <20240111163949.1976778-1-lee@kernel.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 11/01/2024 18:39, Lee Jones wrote: > Avoid these nasty W=1 errors: > > drivers/mfd/omap-usb-host.c: In function ‘usbhs_omap_probe’: > drivers/mfd/omap-usb-host.c:706:54: error: ‘_clk’ directive output may be truncated writing 4 bytes into a region of size between 1 and 11 [-Werror=format-truncation=] > drivers/mfd/omap-usb-host.c:705:17: note: ‘snprintf’ output between 24 and 34 bytes into a destination of size 30 > drivers/mfd/omap-usb-host.c:721:56: error: ‘%d’ directive output may be truncated writing between 1 and 11 bytes into a region of size 8 [-Werror=format-truncation=] > drivers/mfd/omap-usb-host.c:721:33: note: directive argument in the range [-2147483640, 2147483647] > drivers/mfd/omap-usb-host.c:720:17: note: ‘snprintf’ output between 28 and 38 bytes into a destination of size 30 > drivers/mfd/omap-usb-host.c:731:55: error: ‘%d’ directive output may be truncated writing between 1 and 11 bytes into a region of size 9 [-Werror=format-truncation=] > drivers/mfd/omap-usb-host.c:731:33: note: directive argument in the range [-2147483640, 2147483647] > drivers/mfd/omap-usb-host.c:730:17: note: ‘snprintf’ output between 27 and 37 bytes into a destination of size 30 > > Cc: Tony Lindgren > Cc: Keshava Munegowda > Cc: Roger Quadros > Cc: linux-omap@vger.kernel.org > Signed-off-by: Lee Jones Reviewed-by: Roger Quadros