Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp516505rwb; Wed, 7 Dec 2022 01:18:29 -0800 (PST) X-Google-Smtp-Source: AA0mqf61Hc3vBuYvrbkyMvPf21GljxeHn7Le9N1O25Jr8ML4OlnTqEunZ0FX2uJ1xZy4ePHB7VSR X-Received: by 2002:a17:902:9a47:b0:189:acf9:87af with SMTP id x7-20020a1709029a4700b00189acf987afmr32632908plv.160.1670404709201; Wed, 07 Dec 2022 01:18:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670404709; cv=none; d=google.com; s=arc-20160816; b=zy6gUqyI6FTnNxHuwo80VjkwRz69dxNEuZUCkQYhK9fPh8SwDfoKy6RE8MJErM3D5D ogi9ooJSq81l3VggWGuEArEg82+PBEV+T2YMukVJpKu8EKOT3gchGSijJ4SxnX6Uoakp GI9vZGLumdbwlmJX+MNgeRS2w4/pxEUNjdI2mnVBFWuuERFf7UH4Iv1cPW8ihML376iu 2iJ0m71c2JZkP4A0glSd3fETIX7zJwlFk6JOK0YDRLiIJr909GpUqWb6UNBk6Dz9J74q Oa0UZjxHmZLy2sxIdanYRqU6TKXRadRM/3xg+MALYEp0U2m+tNWzlSdjfPTvo4PRVFnh fhzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version:date :message-id:subject:references:in-reply-to:cc:to:from:dkim-signature; bh=SvEYEAhwmyxnvnESTjLXjpewZx+f2ewDe0B36+KMQx4=; b=f5GIZCzigyPp0ux9W7qFj9kwwh5ca7bwpJwrKQPv8u5tjUYpIMXhhhI+DIgsQWUm8n HHphyeGICbEzyc3ZPVsXGYjLjpPb+rjPTXiUa1O0/iZVfOX/2+PfHX9ku0ANEo3iXPw1 ZL8VfF70ScwCNmK9pe1FvHfrrKuCZqd768nydB1VW510YdIQM+s7IkgVFgz8zzbwZFHm oF3sjqHH9pLp6vQKtYX0/+ZKgq1pF+ThpfONMZWFmEPJDm39x4Agxm7Dt9b9/qsQZIW+ 2+c3DC4bShSDQ6shlnFspwwUkYLFzk/DB4PtYXrZ+XEt1Yeeqq8uSzHgl3UvjkLUzvCH SR5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=o9UOxYYA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n3-20020a638f03000000b004769f0faab8si19716582pgd.740.2022.12.07.01.18.18; Wed, 07 Dec 2022 01:18:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=o9UOxYYA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229543AbiLGJIa (ORCPT + 76 others); Wed, 7 Dec 2022 04:08:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55824 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229886AbiLGJIZ (ORCPT ); Wed, 7 Dec 2022 04:08:25 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D6E27DF47; Wed, 7 Dec 2022 01:08:22 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 6638AB81B93; Wed, 7 Dec 2022 09:08:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A4260C433C1; Wed, 7 Dec 2022 09:08:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1670404100; bh=l3Fy7l4PaPataLrwAEdkLE+y3KJgvPKF6NwZXOQZYW4=; h=From:To:Cc:In-Reply-To:References:Subject:Date:From; b=o9UOxYYAZ+vwIc2FBXalSEObR0fGHixK2IHNbHXHFoJv4FkES0abhUo3Hx42bmfTB 1RcbDbdpzByx0NAO7k41Zz6jZV+aUgpI0J/ROYjOARCiOA0T48ytFybylrgNOFLyLt OS5NVIJI7tGKDPVwyqK+ZE/oTHcVNIwhomKpNK2iGt1E9v0ppk8pEkwzxXZb7vLa2O FJ5XB/8pnUnqkz3lmBeyxEjqV54KDc0Q62qHbL7kg8mpoqoYm1ZWo5FlS7+th4XkiH 4kJ8ciGSMsJUQJKbdbHMCIXIFhaWourniHpdhus8QBKBdG2dFvqATh1GbxtnTEpW1E ygYniSDhxw6+A== From: Leon Romanovsky To: ye.xingchen@zte.com.cn Cc: linux-kernel@vger.kernel.org, linux-rdma@vger.kernel.org, jgg@ziepe.ca, dennis.dalessandro@cornelisnetworks.com In-Reply-To: <202212071632188074249@zte.com.cn> References: <202212071632188074249@zte.com.cn> Subject: Re: [PATCH] RDMA/hfi1: use sysfs_emit() to instead of scnprintf() Message-Id: <167040409627.420496.10658092656332497802.b4-ty@kernel.org> Date: Wed, 07 Dec 2022 11:08:16 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Mailer: b4 0.11.0-dev-87e0e X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 7 Dec 2022 16:32:18 +0800 (CST), ye.xingchen@zte.com.cn wrote: > From: ye xingchen > > Follow the advice of the Documentation/filesystems/sysfs.rst and show() > should only use sysfs_emit() or sysfs_emit_at() when formatting the > value to be returned to user space. > > > [...] Applied, thanks! [1/1] RDMA/hfi1: use sysfs_emit() to instead of scnprintf() https://git.kernel.org/rdma/rdma/c/d074f0aebde564 Best regards, -- Leon Romanovsky