Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp3490706pxv; Mon, 26 Jul 2021 05:29:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx17sI+K4mCUWIiSUoYxxoFj4JLDwM8ADoSKLkP3gDmy2aiBsfzImvXRUSCorpaPqjlISYW X-Received: by 2002:a05:6638:c58:: with SMTP id g24mr16290355jal.63.1627302582908; Mon, 26 Jul 2021 05:29:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627302582; cv=none; d=google.com; s=arc-20160816; b=RFFnFWps3cKpINEuBmRjjI58aIUXWDg+pUTwr+lbIAqMZ9iwo5K7liBYD/d/mcZiHY uux4+6narx3ydzBCWVx95TfFK1rbVzXK2GfTmGcSjBqMkTikhkfKAM8/uDHoIDMbU+9U eMOvLHxHsTZx2tATdZ82a3Vmh3EYxX9saE/8WjY3NAusKpsfPqwoET0HySXOilEIs0e5 17QGTG5bEEGQQz1mueGOQWF+WNL+GcXn1vuaPQxNfyjD1qK+cp/OLxxcn0DIPtWmpIc2 M/m7sbhzaWFoep19gK0W0KoIHkEpLSfifCsbeeEDzeoux8NNAVIjNJn+mXOEDUY3rZHM xbfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=QU8cYwdmsrvtBphYVUXeLz/ruYBbJBccan55c4kG70c=; b=L9KfWNBI5aNH2IrZLgiS0N5axQprCrk35mYu0HJ1gugLnnnOpgUEIKdqa7ZGBTNO1c qVBa3m2k5oWyzQp1hoyAeC+zVxUaM4NpnDa6z2bOSolOjJG9zvAqX6xjxL2iYjqWMlRX 19GrMDUND3d0e7LE/I4tvLSWZDeCsD4hyqv9mIs0Wg3tCZDyIF0SwoFdtPFMDm1uw5P9 B4KXD7ednSDf5RPwGVGuJZhEuccPxOmkpDmVEAM9mgWOzKeUU9shOPArWSMAFL6jdxlS 7AVsy4SfXN5HUdXvfJCk7zrHgLfSp4k56yBy5gPuXZOXmDPuORDWVCUJU5qRNNqgd+jU prJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=Sc0PLAp+; 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=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t26si24319140ioj.103.2021.07.26.05.29.31; Mon, 26 Jul 2021 05:29:42 -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=pass header.i=@suse.com header.s=susede1 header.b=Sc0PLAp+; 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=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234050AbhGZLrn (ORCPT + 99 others); Mon, 26 Jul 2021 07:47:43 -0400 Received: from smtp-out1.suse.de ([195.135.220.28]:55796 "EHLO smtp-out1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233959AbhGZLrm (ORCPT ); Mon, 26 Jul 2021 07:47:42 -0400 Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out1.suse.de (Postfix) with ESMTP id 4991F21F83; Mon, 26 Jul 2021 12:28:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1627302490; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=QU8cYwdmsrvtBphYVUXeLz/ruYBbJBccan55c4kG70c=; b=Sc0PLAp+3Sctjax5ynY7A1H0jpBc86Kpsj08x6eojdXFJfYun/HMGGaj4tZ0+3ilvs3Wrw 9bRwT3c8yQePfD4PwylTdxLgyFr7VkOnIo/dhcaS9i/i0K0PTd8hfUgl7rGn5j2xGi3oKp oxlY0QKRsZklkfymDOPH+HndZrKo0as= Received: from suse.cz (unknown [10.100.224.162]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay2.suse.de (Postfix) with ESMTPS id D6FAEA3B8E; Mon, 26 Jul 2021 12:28:09 +0000 (UTC) Date: Mon, 26 Jul 2021 14:28:09 +0200 From: Petr Mladek To: Jonathan Corbet Cc: Chris Down , Stephen Rothwell , linux-doc@vger.kernel.org, Linux Kernel Mailing List , Linux Next Mailing List Subject: Re: linux-next: build warning after merge of the printk tree Message-ID: References: <20210720162423.75f61ce0@canb.auug.org.au> <87o8aqt7qn.fsf@meer.lwn.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87o8aqt7qn.fsf@meer.lwn.net> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun 2021-07-25 15:16:00, Jonathan Corbet wrote: > Chris Down writes: > > > Chris Down writes: > >>+Cc: Jonathan Corbet , linux-doc@vger.kernel.org > > > > Well, let's actually Cc them this time... > > > >>Stephen Rothwell writes: > >>>After merging the printk tree, today's linux-next build (htmldocs) > >>>produced this warning: > >>> > >>>kernel/printk/printk.c:1: warning: 'printk' not found > >>> > >>>Introduced by commit > >>> > >>> 337015573718 ("printk: Userspace format indexing support") > >>> > >>>I presume that "printk" is referred to elsewhere in the documentation > >>>as being in this file. > >> > >>Hmm, this is an interesting one, because I think we still generally > >>just want to refer to the API as being `printk()`. Changing it all > >>over the place seems wrong. As you'd imagine, there are quite a few > >>references to this name, so it requires a lot of noise all over the > >>docs and inline comments. > >> > >>Jonathan and other docs folks, how can one tell Sphinx that when it > >>sees printk() it's referring to a function-like macro, or otherwise > >>squelch this reasonably? :-) > > The problem is that you moved printk(), but left the associated > kerneldoc comment tied to _printk(), which isn't what you really want to > document. The fix should look something like the attached. > > Thanks, > > jon > > --------snip here---------------------- > printk: Move the printk() kerneldoc comment to its new home > > Commit 337015573718 ("printk: Userspace format indexing support") turned > printk() into a macro, but left the kerneldoc comment for it with the (now) > _printk() function, resulting in this docs-build warning: > > kernel/printk/printk.c:1: warning: 'printk' not found > > Move the kerneldoc comment back next to the (now) macro it's meant to > describe and have the docs build find it there. > > Signed-off-by: Jonathan Corbet This looks better than my variant. I have pushed it into printk/linux.git, branch for-5.15-printk-index. Best Regards, Petr