Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp34313lql; Sun, 10 Mar 2024 12:21:36 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXd5wSoTMjvqPdmy+SJSV2FCAA094jWJYEbwT2kltIUmHBJgRVN6h9+a6AMw9A4RTZh/3xzHY0WBe8iqiS/f0I4gDCFDoCpK+WjhDDPfA== X-Google-Smtp-Source: AGHT+IHmQlxdpDV18shruUOVVa7FTBsjYWU3BCaS0IxvlUGuWwYpCawYRK6EVULhbt04EmmbdHyK X-Received: by 2002:ac8:5c01:0:b0:42e:deb3:8cd4 with SMTP id i1-20020ac85c01000000b0042edeb38cd4mr6303042qti.24.1710098495793; Sun, 10 Mar 2024 12:21:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710098495; cv=pass; d=google.com; s=arc-20160816; b=YdA3V4ktEQECYm+mkwAtbFfJqQPWUb6h9mFTMCoPrDZSnczyA0rpYwv3HXquQVxB9A QHxkTiu6YuH8Q9Y+xLnoaRnn3eR6e8/H/12rqMzGslEefPj59ZkQoLicuTr8O1+PndRS enY/xrRJ5W+0CGaXKzNC9h4EFrA8mQMzMg+iM8b8bfvNN0sNmm80WxscgyyZRJRaRhEF 4SeFUX80uzEe3jVs1OdYxyj5863Bptnxvv0rnS+hmksnrKhiZGq4WO0Dq4Q6s4jtqvc4 V83k5QaVf7l3ijdhLZlWVJ305EWKyuitLfxl1I323CSlgU/IJqNrIn8RaPIA7wVA947l ZQyg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:content-language:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:accept-language :in-reply-to:references:message-id:date:thread-index:thread-topic :subject:cc:to:from; bh=70k3ELYwo8APY5Flhg9BYAtyoC9Ry466M+E2QAHKOjs=; fh=AO+owSncoNlh1Jvr8zpjDUcYxicLE+IW8FORZUqh/+8=; b=QTjr9+DxnVdDFucARbrwYunraJobWh1s+b63GeOnYqoeZeM72Pq3WRVamMCDRsQB/1 NAG0g3u3ktU9mVYt0f9wz/cJIAA5pPdupNxPHCGnh9K0uGHortaoxxPrY4qcUZmUIoO0 xXQRVrQJvKgLz28jQQUmj9ABxGkx/20D1vEwkqZoWedsWExESepXyZiRpnue/NnjyfwE BJv2TGCAgYTnXdtMnYL7G5Hzvl9Y6ZLg0GkuSIJ/ARcRHUfl9DLKKLE8byZfT0oQc8DY c4AP8OaNgOfGybH1aaYooGBc0DpjVtBLTzfEGrEXEex9domq+rd/x7NVc0F8Dub5nUaD 0Tww==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=aculab.com dmarc=pass fromdomain=aculab.com); spf=pass (google.com: domain of linux-kernel+bounces-98307-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-98307-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id m2-20020a05622a118200b0042ef1ad6717si4111997qtk.417.2024.03.10.12.21.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 10 Mar 2024 12:21:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-98307-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=aculab.com dmarc=pass fromdomain=aculab.com); spf=pass (google.com: domain of linux-kernel+bounces-98307-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-98307-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com 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 421E81C20AA7 for ; Sun, 10 Mar 2024 19:21:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5DF4739FE5; Sun, 10 Mar 2024 19:21:29 +0000 (UTC) Received: from eu-smtp-delivery-151.mimecast.com (eu-smtp-delivery-151.mimecast.com [185.58.86.151]) (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 0443A3065B for ; Sun, 10 Mar 2024 19:21:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.58.86.151 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710098488; cv=none; b=u+kh18LK9pjeRVeYkp9X3lQjJ0rZQSSxRDTLPKvU4KQ1HkD+SFokrDEJRBmHkNuad51dbqKLSJjT8ZDppROpWrOO9cmt+1rkNEZrFmspEIwpoi9+cNahYDhwvj0sDauRqVcUbfoKvyAiQIv9wP8N2pODupaRfUZjX0lGWQqLmbk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710098488; c=relaxed/simple; bh=70k3ELYwo8APY5Flhg9BYAtyoC9Ry466M+E2QAHKOjs=; h=From:To:CC:Subject:Date:Message-ID:References:In-Reply-To: MIME-Version:Content-Type; b=n6/GMbdq/2yOIGyUEEhznzNaRIyzJzDlkhucQKv/6BrDItYFnDi+vRza/jmmnYyd384SEPLcqM4Zz+G9WCIYEOOf83DYUpa/fCdahkmhc81albSStmEhHs6+OpJaDomD04NtmhqppQSQVRjMUgzvjS7kFVOeJUrEXPijXd9CPbw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=ACULAB.COM; spf=pass smtp.mailfrom=aculab.com; arc=none smtp.client-ip=185.58.86.151 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=ACULAB.COM Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=aculab.com Received: from AcuMS.aculab.com (156.67.243.121 [156.67.243.121]) by relay.mimecast.com with ESMTP with both STARTTLS and AUTH (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id uk-mta-129-0f0pknVrNz6uFqbPFuYfrw-1; Sun, 10 Mar 2024 19:21:22 +0000 X-MC-Unique: 0f0pknVrNz6uFqbPFuYfrw-1 Received: from AcuMS.Aculab.com (10.202.163.6) by AcuMS.aculab.com (10.202.163.6) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Sun, 10 Mar 2024 19:21:32 +0000 Received: from AcuMS.Aculab.com ([::1]) by AcuMS.aculab.com ([::1]) with mapi id 15.00.1497.048; Sun, 10 Mar 2024 19:21:32 +0000 From: David Laight To: 'Alexey Dobriyan' , Greg Kroah-Hartman CC: "Rafael J. Wysocki" , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH] sysfs: make sysfs_emit() return ssize_t Thread-Topic: [PATCH] sysfs: make sysfs_emit() return ssize_t Thread-Index: AQHacSGUwrSw/pXJ00e4g0Ogucny5LExWxcw Date: Sun, 10 Mar 2024 19:21:32 +0000 Message-ID: <333d84d215c44589840e18cec9108fb0@AcuMS.aculab.com> References: <33cd8f96-4b4f-4741-ac05-ef1bd267ce6b@p183> <2024030713-favorably-liking-2135@gregkh> In-Reply-To: Accept-Language: en-GB, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: aculab.com Content-Language: en-US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