Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp892376ybz; Wed, 22 Apr 2020 09:46:47 -0700 (PDT) X-Google-Smtp-Source: APiQypK2r6H/mOQWfIdXn+3n3gCOvCovEfX42JIFaHBwnohFulqzU4o2OrUhmH+OEpkMjVAOmMiG X-Received: by 2002:a17:906:5051:: with SMTP id e17mr25857839ejk.142.1587574007446; Wed, 22 Apr 2020 09:46:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587574007; cv=none; d=google.com; s=arc-20160816; b=Im9eDps1wn0D6dhdQ+tbH8t8Ytse95JcEt9ZB7FOg9HDbkD29Zd7U/vbu1JnrNnwDR EwP4Yt+gTfeA9GviTbK629gGqe1fU7IGXyx3fvWknIuUwdPIdQO5FuOIe+Eo8Q8d2fSd YvotH4b56EWPcyAWwNs+xHNwtKN5TlSMCc+BEMzSLrQnIJiuL3vCvudqIHLY4rU9ufvn QtodoPmaR1eaastnp0SenYus/aq1D7EKNQsMEE4h1cl75DHezT1/vR/7NxCf15rPOy3I Tm/dhvG1L5pJMxds5VNupKp1sFrkPtiVu1ATBAb16hHmcGWVdw+YJL4webC7yDUSiBDP DMlQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=QrOT19ZBwGb45jWLFj76OzHtPNsa1vHjv1F1pWQrc8k=; b=p63ejvKRLbAFLPBiQULH5ekN+WUbr5OTLP8zOSm2wXZxWSKT2OoJJOK1STc29xoT8U pLRuJ5Ksq4ICWwneCoxI3mQPbjmHNWHHsSAtJtEV5sItLg4PEEs6oMOUpsmWOdpqnAQY YWpHCkYP60Mv8i8gSgGa1MvqE8sNn6CzMbOCYT9uhywikPFRBlkfG1JZN4gn5vtwqzwp rMKSI/XCZHRH6qciEYZx3xKM2ogl5HUtsq9wyPdV2G8qL+BwkcOmcOyXa/xJMv+zNXqW paYP7k9leh/qMw+D/Z029h7zrokdAND6/sP+HOQL3q3eF5WMi/EJxrjAPSzdeyHdPJCa 7hsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=VL29IIAv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j23si3607252ejm.361.2020.04.22.09.46.22; Wed, 22 Apr 2020 09:46:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=VL29IIAv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726685AbgDVQm5 (ORCPT + 99 others); Wed, 22 Apr 2020 12:42:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38302 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726154AbgDVQm5 (ORCPT ); Wed, 22 Apr 2020 12:42:57 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8CD1CC03C1A9; Wed, 22 Apr 2020 09:42:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To: Subject:Sender:Reply-To:Content-ID:Content-Description; bh=QrOT19ZBwGb45jWLFj76OzHtPNsa1vHjv1F1pWQrc8k=; b=VL29IIAvz3o+pIOic+M/ERYU0q EVI7jhensQnBa/i3Cl+yBEjQM+pug+vJ63mFgTybIr3L24mfuh424niWhU75TZRa0vSGtw3hiHoFH SPTVUAJoXqp2HCEleBZAVTgVInlqvAulYNK1Tqhk5FoTSxddTtxrmLALx6Yze6ctKuHwFP4QMjLRs +zioDDI0XAaQ6eXVAEXUANy2YamaKd0bJHu2mFs9es1hdPeVAJXIwHpu5NNc4eeTZL4VYbfZ+3Ifz +AL84IlMjDG1B2vxhXGfX3tXREdXLwsgXZPjZKdfrQ4ort/wdga8pMgM2un27ePOxkXJDSJE1j+BF +Okd6D7A==; Received: from [2601:1c0:6280:3f0::19c2] by bombadil.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1jRISf-0007OW-3J; Wed, 22 Apr 2020 16:42:57 +0000 Subject: Re: [PATCH] io: correct documentation mismatches for io memcpy To: Wang Wenhu , arnd@arndb.de, linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org Cc: kernel@vivo.com References: <20200422092905.39529-1-wenhu.wang@vivo.com> From: Randy Dunlap Message-ID: <4b0a80ed-a639-c8c0-e6c3-01ba3266b7de@infradead.org> Date: Wed, 22 Apr 2020 09:42:56 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <20200422092905.39529-1-wenhu.wang@vivo.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi-- 2 small nits: please see below. On 4/22/20 2:29 AM, Wang Wenhu wrote: > Minor mismatches exist between funtion documentations and parameter > definitions. > > Function definition lines are as following: > static inline void memcpy_fromio(void *buffer, > const volatile void __iomem *addr, > size_t size) > > static inline void memcpy_toio(volatile void __iomem *addr, const void *buffer, > size_t size) > > Signed-off-by: Wang Wenhu > --- > include/asm-generic/io.h | 12 ++++++------ > 1 file changed, 6 insertions(+), 6 deletions(-) > > diff --git a/include/asm-generic/io.h b/include/asm-generic/io.h > index d39ac997dda8..63131ec4857f 100644 > --- a/include/asm-generic/io.h > +++ b/include/asm-generic/io.h > @@ -1067,9 +1067,9 @@ static inline void memset_io(volatile void __iomem *addr, int value, > #define memcpy_fromio memcpy_fromio > /** > * memcpy_fromio Copy a block of data from I/O memory This needs a dash ('-') between the function name & its description. > - * @dst: The (RAM) destination for the copy > - * @src: The (I/O memory) source for the data > - * @count: The number of bytes to copy > + * @buffer: The (RAM) destination for the copy > + * @addr: The (I/O memory) source for the data > + * @size: The number of bytes to copy > * > * Copy a block of data from I/O memory. > */ > @@ -1085,9 +1085,9 @@ static inline void memcpy_fromio(void *buffer, > #define memcpy_toio memcpy_toio > /** > * memcpy_toio Copy a block of data into I/O memory Same here. > - * @dst: The (I/O memory) destination for the copy > - * @src: The (RAM) source for the data > - * @count: The number of bytes to copy > + * @addr: The (I/O memory) destination for the copy > + * @buffer: The (RAM) source for the data > + * @size: The number of bytes to copy > * > * Copy a block of data to I/O memory. > */ > If you would fix the above, you can also add: Reviewed-by: Randy Dunlap thanks. -- ~Randy