Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp4581906pxk; Wed, 30 Sep 2020 06:47:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwdEM4X2DUqQBTMz/AGpUQK2IrdgcQBOy0wrvswyOPWTRsDRiSvsuq4MOxLXJt3GyaBbHws X-Received: by 2002:a17:907:2456:: with SMTP id yw22mr2793591ejb.337.1601473656203; Wed, 30 Sep 2020 06:47:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601473656; cv=none; d=google.com; s=arc-20160816; b=MPf1Wx8arCFFS+2iZb+WdbasCv9iJJu8EN/ufOezsSp0Y8I7O8YCG6h7idQsJwPPY9 BC0GzlwS6DlCW21HHczuaytJ7PT/sjCN5cbIVt6WxJooWwxycRSkdgp0QaCzbmvYZ8zM sBp5cJo1hk1nUIE59EtNBWwCOdok08E+qp9EyHuKEOzRArThm9veK01kb2626viHuhXL Bv9TZZ6Rw3KK6F774GT4y87lAXLB67WSEPAagg4M/hnzAtDOcIRvl/45pQBYiFRqMXIC qT44GzPhWcjvVCC0d+cMUJADh1T1pE//hVwKexFboWnBdTNUT0gzQ02ApIbEpHE3B/xD 9Zdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=wjf6DBiIFqDQiqOkcYkAGLBIM3EBER+gJuTdkwi9fo8=; b=KLzO2WbCi5DCj7Hy0xZ7xuBlXwQb/Vjx9P33MlTCEmI/Es+acX2O9q+E7qtJQDtVgX 8DeOBr+NjQTsPpGR7G+C1e6TcQsqrvzrvh/G1+cJhGvsw98cNH3mHMnwz5t+j/7pvaWn rxIYC4P12uF4arxsKAmVaFWegnZhl+k9IonjlFQzQksVSzt7ECnBqIa8oiqQ97ibcr3P KE2RtKMo77GMaAlrQydjKv5+iOvClILBumcYe7+U5IWhyZ3HRiIp1Lv+77qKZboj9LuP VdgTngijDyvO+wMEc/2QTf2glFK7qrM5s9r6tqbkIlI2w+LGkzidYSDZWTZ9dQUjvObZ ht4w== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j4si1020001eds.475.2020.09.30.06.47.12; Wed, 30 Sep 2020 06:47:36 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730188AbgI3Nnp (ORCPT + 99 others); Wed, 30 Sep 2020 09:43:45 -0400 Received: from foss.arm.com ([217.140.110.172]:36532 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728235AbgI3Nno (ORCPT ); Wed, 30 Sep 2020 09:43:44 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id C4DE430E; Wed, 30 Sep 2020 06:43:43 -0700 (PDT) Received: from [10.37.12.68] (unknown [10.37.12.68]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id E67053F6CF; Wed, 30 Sep 2020 06:43:41 -0700 (PDT) Subject: Re: [PATCH v4 18/52] math64.h: kernel-docs: Convert some markups into normal comments To: Mauro Carvalho Chehab , Linux Doc Mailing List , Jonathan Corbet Cc: "Peter Zijlstra (Intel)" , Chunyan Zhang , Oleg Nesterov , Thomas Gleixner , linux-kernel@vger.kernel.org References: <97e7afe71713d70c2399a7277a114c071e54a8e0.1601467849.git.mchehab+huawei@kernel.org> From: Vincenzo Frascino Message-ID: <31fd707b-7122-21bc-2656-d4fc5f50a7ac@arm.com> Date: Wed, 30 Sep 2020 14:46:16 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <97e7afe71713d70c2399a7277a114c071e54a8e0.1601467849.git.mchehab+huawei@kernel.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/30/20 2:24 PM, Mauro Carvalho Chehab wrote: > There are several functions at math64.h that are also > defined at div64.c. As both are included at kernel-api.rst, > Sphinx 3.x complains about symbol duplication: > > ./lib/math/div64.c:73: WARNING: Duplicate C declaration, also defined in 'core-api/kernel-api'. > Declaration is 'div_s64_rem'. > ./lib/math/div64.c:104: WARNING: Duplicate C declaration, also defined in 'core-api/kernel-api'. > Declaration is 'div64_u64_rem'. > ./lib/math/div64.c:144: WARNING: Duplicate C declaration, also defined in 'core-api/kernel-api'. > Declaration is 'div64_u64'. > ./lib/math/div64.c:172: WARNING: Duplicate C declaration, also defined in 'core-api/kernel-api'. > Declaration is 'div64_s64'. > > In order to avoid Sphinx warnings about duplication, change the kernel-doc > markups to just comments at math64.h. > Reviewed-by: Vincenzo Frascino > Signed-off-by: Mauro Carvalho Chehab > --- > include/linux/math64.h | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/include/linux/math64.h b/include/linux/math64.h > index 3381d9e33c4e..66deb1fdc2ef 100644 > --- a/include/linux/math64.h > +++ b/include/linux/math64.h > @@ -28,7 +28,7 @@ static inline u64 div_u64_rem(u64 dividend, u32 divisor, u32 *remainder) > return dividend / divisor; > } > > -/** > +/* > * div_s64_rem - signed 64bit divide with 32bit divisor with remainder > * @dividend: signed 64bit dividend > * @divisor: signed 32bit divisor > @@ -42,7 +42,7 @@ static inline s64 div_s64_rem(s64 dividend, s32 divisor, s32 *remainder) > return dividend / divisor; > } > > -/** > +/* > * div64_u64_rem - unsigned 64bit divide with 64bit divisor and remainder > * @dividend: unsigned 64bit dividend > * @divisor: unsigned 64bit divisor > @@ -56,7 +56,7 @@ static inline u64 div64_u64_rem(u64 dividend, u64 divisor, u64 *remainder) > return dividend / divisor; > } > > -/** > +/* > * div64_u64 - unsigned 64bit divide with 64bit divisor > * @dividend: unsigned 64bit dividend > * @divisor: unsigned 64bit divisor > @@ -68,7 +68,7 @@ static inline u64 div64_u64(u64 dividend, u64 divisor) > return dividend / divisor; > } > > -/** > +/* > * div64_s64 - signed 64bit divide with 64bit divisor > * @dividend: signed 64bit dividend > * @divisor: signed 64bit divisor > -- Regards, Vincenzo