Received: by 2002:a05:7412:7c14:b0:fa:6e18:a558 with SMTP id ii20csp201081rdb; Mon, 22 Jan 2024 00:57:44 -0800 (PST) X-Google-Smtp-Source: AGHT+IFOhtiY2KrJQKs2i4dRba1DVPlSV56YsNqdjTp4yxQ003WJpkdlyLmj1+PRuLEx7/0ihlEv X-Received: by 2002:a05:622a:510:b0:42a:3237:3105 with SMTP id l16-20020a05622a051000b0042a32373105mr3003487qtx.32.1705913864054; Mon, 22 Jan 2024 00:57:44 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705913864; cv=pass; d=google.com; s=arc-20160816; b=mbOy6JBXDrNqfBlmZKOBNMQV81muqc0F1SQqdjqlittOIVPEirwM8eePE+i5wzugfp R2BA6n20bxcxph3ud6bsY4rFc5e3V6jnCmYRSBmVTbdE1JUsp8kktyy84pNpoaj8dIPA JM3NFX/uOiXvVeRJxxjBayYwY+TmBPS6lzeewdFFRsWZ441rCn85jZ/7CKG5H9IPUn2u F30hoFuLB/qS7AC+XHEl9Fa9UGgRVTCanR27qxNUlNKJUlbLXdiKVGWcNhtUpubAny5C M+kmMMrLGhBdToGzgIDquShI4CXZ/hwsYKzpLDUBlxwvExseoma1Gg1ic1VaZRkWtZgq hhnA== 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:mail-followup-to :message-id:subject:cc:to:from:date:feedback-id:dkim-signature :dkim-signature; bh=jCJhY/hrZos2QYaYx0pzY9ipp8ub1zvgZRZtgPKnZP0=; fh=iSjzKH8VWbsTG+4w1wzWQbrkiiKtaEYaDIOJ/cEkMqM=; b=EazYso4PWvReJZGrvinqfeDLQGSHBjMJUeMUPztMvzmj6vhhmYlRSV61t4Sy3lCepW NxILDSjOwQGuW42613z4aUetXvZTwApPagwOLyMeovaRr01ImmPD3+dIN/Y4G3b4mRn6 ftgS68wXBVSjH3ic172NlS/Z7hz9PQSSBMfgaP6dxkcczQ3rxP78FtGYVJSQk3JqueHP xZ5+RwOgkBPDklZsgjDGZCUer8tV6ZhYPrcOkCqc9G+mLXUwgIh7B9B7sM948yz2hhfK Z2IwE94zT9ncKyntBSYyaY79/WoEU6oT5FAgmvEpPa8fSkoOT9uS+JgPpsap4qtSiBTO 85Vw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@sakamocchi.jp header.s=fm3 header.b=gsJo3Nwd; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=X7tayABS; 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-32575-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-32575-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sakamocchi.jp Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id v31-20020a05622a189f00b0042a283a1a80si5201380qtc.558.2024.01.22.00.57.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 00:57:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-32575-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=@sakamocchi.jp header.s=fm3 header.b=gsJo3Nwd; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=X7tayABS; 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-32575-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-32575-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 772A31C23BCA for ; Mon, 22 Jan 2024 08:57:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5481A39AD1; Mon, 22 Jan 2024 08:56:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sakamocchi.jp header.i=@sakamocchi.jp header.b="gsJo3Nwd"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="X7tayABS" Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) (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 D226839846 for ; Mon, 22 Jan 2024 08:56:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=66.111.4.28 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705913772; cv=none; b=P8sYZ0Ceua0y2f40NPkfEedGQfO5hDtmCFD/CviXuk8/9oBf99xRooCwiKCZXJ7Qj6oh3mFC6FBdnEMJJ3o9sX2St8JZg2FxSijqwGRd/xGaxHxJYSK39v/jlU9uFGeHqqpdLM4VYNlsR4HI6nyfEje+pzoK9i5DiiikmfHTmO4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705913772; c=relaxed/simple; bh=3T9d+RtQGIM1ZlAxzmHkJ6LgiUDsgnVKGAE3HtZKsCk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=V7yrj6SfN5TuCzN/mFu2NzeP10khIcp/TnwGtEwHVGPsVcWqefqirk+dmCyLadhYtKXmSphn6i/XsUAIdej57mMAlc5n3n3wQi8qJlKrA01RQPXgt9UraKxDBTqPtemGXOBLjMtTrsd6QRXfVit+UlJLXNMeftSXPNaJ6MyPLz4= 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=gsJo3Nwd; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=X7tayABS; arc=none smtp.client-ip=66.111.4.28 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 compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id B99D95C015E; Mon, 22 Jan 2024 03:56:08 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Mon, 22 Jan 2024 03:56:08 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sakamocchi.jp; h=cc:cc:content-type:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to; s=fm3; t=1705913768; x= 1706000168; bh=jCJhY/hrZos2QYaYx0pzY9ipp8ub1zvgZRZtgPKnZP0=; b=g sJo3NwdEGK6StViwC6qt4KIfFhNyRxLTmMK5jS3fE352NSuXvPhk5fQlHljFZQQx PgxmK7FM2gJmtDLlKnrJMAVF+b+ilvMCP52LfLKqpvaQPNjF9Pjt9t8y1DscNOG/ vcPxHc9HpPXA1SBry3XXWjb+HIkeL4bULWwch8IVFNKBAyBDlUpi3MW4xOsD3KlD WQ1jRrvehM0Ao0V4Sn5lfoXIOYqkmujlDOEY1pTi3nRuSa1Gr5gpN7jF0kAbWW6b TPUnU3LaGo3hXXyvkXYdnZff2G7ofwUGh4r755Ic8SP4SSKdNNTpNiFd1t1sBQTj 1nHo7sRAguF+bq+ICR/KQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; t=1705913768; x=1706000168; bh=jCJhY/hrZos2QYaYx0pzY9ipp8ub 1zvgZRZtgPKnZP0=; b=X7tayABSceUPXuyz+7cCq9HgUKF4BbiNGIuk4+GgLel3 StsY2tDKcueIK+c/ptQHgmVYba3PhvXW/rPOPzNuRJZp/TlUJB7nKhjvPaPibDsF fesWAQ4DUNg3IgNBsd9Iv+VjLoXS3w+fB+v4tHcnsS6HIkVwQV2TCBzcFO+7X/YS nzhpKtD1donAGQnu9d6k6wMWfpqFPMiCmz5mdI/tkGST5IvdZ5mkId/kMXdRye2N V3R1kz/q4u90ymlHWFM0W95zX3pi9Bh7my36v+ZjB+X+BQY0geQa544J2/EU+anz TE8+OOwr1TtGnRSAYAtxghcXtrxfmkzu3mryxifj+Q== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrvdekhedguddvgecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpeffhffvvefukfhfgggtuggjsehttdertddttddvnecuhfhrohhmpefvrghk rghshhhiucfurghkrghmohhtohcuoehoqdhtrghkrghshhhisehsrghkrghmohgttghhih drjhhpqeenucggtffrrghtthgvrhhnpeehhffhteetgfekvdeiueffveevueeftdelhfej ieeitedvleeftdfgfeeuudekueenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmh epmhgrihhlfhhrohhmpehoqdhtrghkrghshhhisehsrghkrghmohgttghhihdrjhhp X-ME-Proxy: Feedback-ID: ie8e14432:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 22 Jan 2024 03:56:07 -0500 (EST) Date: Mon, 22 Jan 2024 17:56:04 +0900 From: Takashi Sakamoto To: Li Zhijian Cc: linux-kernel@vger.kernel.org, linux1394-devel@lists.sourceforge.net Subject: Re: [PATCH 1/2] firewire: Kill unnecessary buf check in device_attribute.show Message-ID: <20240122085604.GA254251@workstation.local> Mail-Followup-To: Li Zhijian , linux-kernel@vger.kernel.org, linux1394-devel@lists.sourceforge.net References: <20240122053942.80648-1-lizhijian@fujitsu.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: <20240122053942.80648-1-lizhijian@fujitsu.com> Hi, On Mon, Jan 22, 2024 at 01:39:41PM +0800, Li Zhijian wrote: > Per Documentation/filesystems/sysfs.rst: > > sysfs allocates a buffer of size (PAGE_SIZE) and passes it to the > > method. > > So we can kill the unnecessary buf check safely. > > Signed-off-by: Li Zhijian > --- > drivers/firewire/core-device.c | 14 +++----------- > 1 file changed, 3 insertions(+), 11 deletions(-) Applied both patches to linux-next branch, since they are not so-urgent fixes. Thanks Takashi Sakamoto