Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp2217719rdb; Sun, 4 Feb 2024 22:05:28 -0800 (PST) X-Google-Smtp-Source: AGHT+IHRW8Se7hdZk0sSMcC6EqulbKbJPUZ/oq2XSAJOloyMlLUrMv7EP9S6Lm35GuSyS0OfLhgx X-Received: by 2002:a05:622a:20c:b0:42c:1083:df67 with SMTP id b12-20020a05622a020c00b0042c1083df67mr7548099qtx.6.1707113128476; Sun, 04 Feb 2024 22:05:28 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707113128; cv=pass; d=google.com; s=arc-20160816; b=Acd5H6p/4NdGGte1X0IGR7w2jNcPr7OKj/MGPuIKtU6PkhJ5FznazkysR0uSH2iZRZ fq+ZgTJS7uq3r0alpwLhvwRWX+YdswW/GZjgepBy/vFelyGDhSaicC30li+/Yu1/NuV6 6Kf3PNTvc8lpDkSqD1/y4hrFy+aJRuyhNyUiqvNr4IQ257aZJxnUEDSjSSRhetuuePom LefbPDpyi1HtDcJdvqYNqze02ZuHRj1hWqQCCEIpViy+vx/k5Q0vPtIYlVRFb7soBAgJ khJw0u1UShPBHQkNO0+70hGKcx1aT9HhTPUwYgDnPLj9y/efNVkgrNmviTcKaFV9UdLG OJtA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:feedback-id:dkim-signature:dkim-signature; bh=L96t1AozAoYK/Cnj9rCJdZC5N9mB5YiS8vFpPwYqvVk=; fh=9zGdSlNkGl28T3jLa0aTzStl1WLP4FH++x0shrerOo0=; b=VcnHZh3oW5eidUJaFLB24BRDKSfCHjVEPLMtiOwZMSBXKScAPOjP2PlrSQix3FjNRs Kd03uH+nZZIos8XvYpqvpOWD2FNh85b/A4JfizjcN4/72UK37okPyYnAJD5/vpCvMtNV q/tmo3q73xi3+tMk8z6fb/+LAN4lLF/Or/wI85ZdOQZqBFc3Yt4L6fcyZIjEpccULMo/ ZrdhUFQvlMzPPaZLs/nNtpeI4rih0pei40dvqhyq9qJbTaYnNwOkYuYNSqGi+CWa+mDa y5mAZQOIxIMVRbvHYf5GwzxqTsxDtDDqSXJdUGgb0JrCoI8/dNnxLk7xyZiocC5LPtF5 Zf3A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@sakamocchi.jp header.s=fm3 header.b=Wh9uleSd; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=j+aIWJi4; arc=pass (i=1 spf=pass spfdomain=sakamocchi.jp dkim=pass dkdomain=sakamocchi.jp dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=sakamocchi.jp); spf=pass (google.com: domain of linux-kernel+bounces-52065-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-52065-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sakamocchi.jp X-Forwarded-Encrypted: i=1; AJvYcCUsQFjW8k9JvQjFyVLORlSdCYHprej8/4vim3gBkhy1fFzsNuqjgmAq2R1AxDE4BfTYqEUB/BwoFB+PIYmQgY44JETly6C4QdVU4AjntA== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id v20-20020ac85794000000b0042c1bf1cd3bsi3013646qta.154.2024.02.04.22.05.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 Feb 2024 22:05:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-52065-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=@sakamocchi.jp header.s=fm3 header.b=Wh9uleSd; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=j+aIWJi4; arc=pass (i=1 spf=pass spfdomain=sakamocchi.jp dkim=pass dkdomain=sakamocchi.jp dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=sakamocchi.jp); spf=pass (google.com: domain of linux-kernel+bounces-52065-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-52065-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sakamocchi.jp 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 B42D41C209FA for ; Mon, 5 Feb 2024 06:05:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C1E4CBE6D; Mon, 5 Feb 2024 06:04:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sakamocchi.jp header.i=@sakamocchi.jp header.b="Wh9uleSd"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="j+aIWJi4" Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) (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 E7F94BE4B for ; Mon, 5 Feb 2024 06:04:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=66.111.4.26 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707113097; cv=none; b=XioIoBF7LZDqZIgLZ1Gdntzbv3UQYd88qXSQYMiSZQ+Ol2YT3u2byKqMQtTbacNNiFe3cjEfjVTuxZ+p+MkZ/wpRWaS6FxEzQt/6cVjLrB52etQ5IBAG8fhSyX63NgVlR2KqSlKRMdXKrqCpCLJNYjcWUcxgPm6E5GieN4JPjyw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707113097; c=relaxed/simple; bh=xwFTrIlrAls4xajJqJT9lIoJy/mgAuyVcs+oDEyeAus=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=qAhR047LNSWt0wNOmgOBLYddcukj1JsHXbGSpS0CHr2HT3piG4OWtGMRDPhNB5vQ5wGugfTtoQD/8C9h9yurikHKFYcO38h+hGJF38D4Du6gAx1r7Nktg3l1MNldrmnlBaOBnpHP9CzcUSV6LW4RwBSn2yRwTK1gTV+DZqu5pto= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sakamocchi.jp; spf=pass smtp.mailfrom=sakamocchi.jp; dkim=pass (2048-bit key) header.d=sakamocchi.jp header.i=@sakamocchi.jp header.b=Wh9uleSd; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=j+aIWJi4; arc=none smtp.client-ip=66.111.4.26 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sakamocchi.jp Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sakamocchi.jp Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id B954B5C00F7; Mon, 5 Feb 2024 01:04:53 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Mon, 05 Feb 2024 01:04:53 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sakamocchi.jp; h=cc:cc:content-transfer-encoding:content-type:date:date:from :from:in-reply-to:message-id:mime-version:reply-to:subject :subject:to:to; s=fm3; t=1707113093; x=1707199493; bh=L96t1AozAo YK/Cnj9rCJdZC5N9mB5YiS8vFpPwYqvVk=; b=Wh9uleSdER1WIq612o/QY7/9Y+ nKgd7R+/Nwwkln6Z0fmDCdBwjfa6ZwZTWo+yIPc5xgS8RJ03LI8H0Ua9Im5D/i5o +rxvchr9wGxPt8EMKz0IVHigC/ARgDaNHyBWIZEHMZ2z3ZL489OjaKDMABXUX+mJ YNcsAM8k/7bwSC+LxdWC79fhohOleUxEunV36gpzTVlp/+v4mcyU4XBBspq7iDKz mzzoiT5qnSIO+6W07v6yHjBrcXiL4vzr6uaXGkcyD1H86HqCzLCdobtfgeH2kP8+ 0K0IzphW/4CZbTyjLCqTIbG6UY9lpD4dc9LAnTj13DNN9ecq+47VheEMW9eA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:message-id:mime-version:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; t=1707113093; x=1707199493; bh=L96t1AozAoYK/Cnj9rCJdZC5N9mB 5YiS8vFpPwYqvVk=; b=j+aIWJi4T0LLCBeSzZaNjxHR5JfcsGUjEbNEqRy2YZDE mKfnGe7KPJGdMpnHOMg2AFbRnBMlp4+fxoYpVpw6VEZt7VnBMk2zYFSkbx0tgHoC WaJV6Ysut9+ESKjOyEW3gCJpEXaND0lPhjopUULjfv/PHAemw+8NZTeXP0uGawp2 frvFO7IkgrM0fdnnN7rnlawGXLw0ObZbexTSjeaC7ltSZJKdb9RkQU0vpcunbPn9 eQ1BF+eHYZZwYK6NxfbjgFY4qmHhRNK1ezRTxmitu7//uNkfhOCLN5ELGkq9T/js FMm5nDw2jr/DzvlIgUIihS2eREEBEt+cDN8zTy8vgA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrfeduledgleduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvfevufffkffoggfgsedtkeertd ertddtnecuhfhrohhmpefvrghkrghshhhiucfurghkrghmohhtohcuoehoqdhtrghkrghs hhhisehsrghkrghmohgttghhihdrjhhpqeenucggtffrrghtthgvrhhnpeeggfehleehje eileehveefkefhtdeffedtfeeghfekffetudevjeegkeevhfdvueenucffohhmrghinhep khgvrhhnvghlrdhorhhgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrg hilhhfrhhomhepohdqthgrkhgrshhhihesshgrkhgrmhhotggthhhirdhjph X-ME-Proxy: Feedback-ID: ie8e14432:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 5 Feb 2024 01:04:51 -0500 (EST) From: Takashi Sakamoto To: linux1394-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org Cc: Stephen Rothwell , kernel test robot Subject: [PATCH] firewire: core: fix build failure due to the caller of fw_csr_string() Date: Mon, 5 Feb 2024 15:04:48 +0900 Message-Id: <20240205060448.13881-1-o-takashi@sakamocchi.jp> X-Mailer: git-send-email 2.40.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit A commit 47dc55181dcb ("firewire: core: search descriptor leaf just after vendor directory entry in root directory") for v6.8-rc3 and a commit 67a5a58c0443 ("firewire: Kill unnecessary buf check in device_attribute.show") for v6.9 bring build failure in for-next tree due to the change of the name of local variable. This commit fixes it. Reported-by: Stephen Rothwell Closes: https://lore.kernel.org/lkml/20240202111602.6f6e2c1a@canb.auug.org.au/ Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202402022343.NkgsMITA-lkp@intel.com/ Signed-off-by: Takashi Sakamoto --- drivers/firewire/core-device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/firewire/core-device.c b/drivers/firewire/core-device.c index a802c6d4f4fd..c0976f6268d3 100644 --- a/drivers/firewire/core-device.c +++ b/drivers/firewire/core-device.c @@ -366,7 +366,7 @@ static ssize_t show_text_leaf(struct device *dev, // in the root directory follows to the directory entry for vendor ID // instead of the immediate value for vendor ID. result = fw_csr_string(directories[i], CSR_DIRECTORY | attr->key, buf, - bufsize); + PAGE_SIZE - 1); if (result >= 0) ret = result; } -- 2.40.1