Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp3966873ybl; Mon, 12 Aug 2019 09:12:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqwNOIIvK41X0Npj080O7WudqOxl+3+8f/5Dw1LL+pGZZLJPPY6ge1LqgHsari9EsY3L5AZt X-Received: by 2002:a17:902:760e:: with SMTP id k14mr14690572pll.161.1565626360568; Mon, 12 Aug 2019 09:12:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565626360; cv=none; d=google.com; s=arc-20160816; b=e2rWXQeMPwQPnqMhsLWQSy95mfXhU+zHjtG4pZE0YKyVsnp3YdV2EIMXG8nyleqiy+ UrgvsMgjjdaZRblPigfjjCkBkhNmdQ7dhU4/OPXZO6wEmCNAjWRPDxMZ65ab7pxqJazb MlLX/wKGy5NZSDRx303aZOh0OqkDhwthiSPm96D1SjJADCChE+hL1tkZk8/rKWxqTF/R ki5gftgP62F3m/UqYRR5V5UoyfgPzNcoAISf9jIQncSEuf53CTqC9zXPtjZhOA0tlzix 9J5OT3JHTRrnstsPbTdGYlcgoxlW59al7rlBowgilbrpckItWMQo7+q0VczHOOZPBuN9 RhOw== 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:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=acc3WF35LR8BXEDMGJ13kNusezGrO1SutQPhnhxeBCw=; b=JT+O936kSPupUCqVxOh4Jsk0KHINVn15pfb6ghjeITZOgzMWk9lNJ8T6s4Qt5HBNWs nL6LQalZp/461PXmGtnKqKv4TsaL4hVzyqL0O9wyyRPSjPUhEaLv6wKsu0lpE2f5qvor v9kyspIT47fcNzfhA04PQIG+ANDBq0TBD1FcrW8SCOdQcL+CWKMRcvBR0A6Thy0g9XU7 KDOyLOlgk0oMhOhZGK6L9PbQJpUidHC2elQBMYnNX8+CyNsw5k21jgVv5LZvNbeVniip PgR2QNoZSlqQZkn8F/bCtn6zu4FZ5t7m0KAJJVeZ1UATZfKWgY0dyfyuRdsfUlgqbRMZ QRZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=eWv3m7Kc; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o8si63077950pgj.239.2019.08.12.09.12.23; Mon, 12 Aug 2019 09:12:40 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=eWv3m7Kc; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726743AbfHLQLq (ORCPT + 99 others); Mon, 12 Aug 2019 12:11:46 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:40012 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725901AbfHLQLq (ORCPT ); Mon, 12 Aug 2019 12:11:46 -0400 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:MIME-Version:References:In-Reply-To:Message-ID:Subject:Cc:To: From:Date:Sender:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=acc3WF35LR8BXEDMGJ13kNusezGrO1SutQPhnhxeBCw=; b=eWv3m7KcDGlqFNO3Yad5F/wta m7r6ZVcp6p6MSp20w6n8sMza+rI0sCCtzdzvaJ3TzrPH21tYKbUNwBRcoKYULQcpISRzRUw85wPWX PsDY+oNVtbEx/9pBa5rePj62z8keperADcjWaAvzkFnSsKY345OTrNIthz+2TUHzE5cOWR1nQL9pV lY8CrO1+2H7TfGMCYSXJaR56QaxhZx/+FDrHEe8+SXzPddYMWzy1qxH9jq45Zx0MJpd8nC7dAwgyl OP15PscPVMaZDv5PNPv33OCBIwPjsr/wUnwyfOFDKXWPo1I8DXPQZSi7T8L6pC6oze7JjUqqSr4Dh I0o92n8GQ==; Received: from [179.182.166.35] (helo=coco.lan) by bombadil.infradead.org with esmtpsa (Exim 4.92 #3 (Red Hat Linux)) id 1hxCv9-0005tS-LL; Mon, 12 Aug 2019 16:11:43 +0000 Date: Mon, 12 Aug 2019 13:11:37 -0300 From: Mauro Carvalho Chehab To: Jonathan =?UTF-8?B?TmV1c2Now6RmZXI=?= Cc: linux-doc@vger.kernel.org, Jonathan Corbet , Alexei Starovoitov , Daniel Borkmann , "David S. Miller" , Jakub Kicinski , Jesper Dangaard Brouer , John Fastabend , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, xdp-newbies@vger.kernel.org, bpf@vger.kernel.org Subject: Re: [PATCH v2 2/2] Documentation: sphinx: Don't parse socket() as identifier reference Message-ID: <20190812131137.74a4ddf3@coco.lan> In-Reply-To: <20190812160708.32172-2-j.neuschaefer@gmx.net> References: <20190812160708.32172-1-j.neuschaefer@gmx.net> <20190812160708.32172-2-j.neuschaefer@gmx.net> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Mon, 12 Aug 2019 18:07:05 +0200 Jonathan Neusch=C3=A4fer escreveu: > With the introduction of Documentation/sphinx/automarkup.py, socket() is > parsed as a reference to the in-kernel definition of socket. Sphinx then > decides that struct socket is a good match, which is usually not > intended, when the syscall is meant instead. This was observed in > Documentation/networking/af_xdp.rst. >=20 > Prevent socket() from being misinterpreted by adding it to the Skipfuncs > list in automarkup.py. >=20 > Signed-off-by: Jonathan Neusch=C3=A4fer > --- >=20 > v2: > - block socket() in Documentation/sphinx/automarkup.py, as suggested by > Jonathan Corbet >=20 > v1: > - https://lore.kernel.org/lkml/20190810121738.19587-1-j.neuschaefer@gmx.n= et/ > --- > Documentation/sphinx/automarkup.py | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) >=20 > diff --git a/Documentation/sphinx/automarkup.py b/Documentation/sphinx/au= tomarkup.py > index a8798369e8f7..5b6119ff69f4 100644 > --- a/Documentation/sphinx/automarkup.py > +++ b/Documentation/sphinx/automarkup.py > @@ -26,7 +26,8 @@ RE_function =3D re.compile(r'([\w_][\w\d_]+\(\))') > # just don't even try with these names. > # > Skipfuncs =3D [ 'open', 'close', 'read', 'write', 'fcntl', 'mmap', > - 'select', 'poll', 'fork', 'execve', 'clone', 'ioctl'] > + 'select', 'poll', 'fork', 'execve', 'clone', 'ioctl', > + 'socket' ] Both patches sound OK on my eyes. Yet, I would just fold them into a single one. In any case: Reviewed-by: Mauro Carvalho Chehab >=20 > # > # Find all occurrences of function() and try to replace them with > -- > 2.20.1 >=20 Thanks, Mauro