Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp6368542rdb; Thu, 14 Dec 2023 17:01:49 -0800 (PST) X-Google-Smtp-Source: AGHT+IHF0WSomwnWhjRVfe9S8IGDQw78YUou8tf4s8kq7G3ZeVrdHp8HuQ0qdKOjbaTH+tE9fKDb X-Received: by 2002:ac8:5846:0:b0:423:ff94:4c28 with SMTP id h6-20020ac85846000000b00423ff944c28mr15003210qth.51.1702602108578; Thu, 14 Dec 2023 17:01:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702602108; cv=none; d=google.com; s=arc-20160816; b=NyS4sr7zSLSxaY+5d45mBJDQMBWO6PkyhhEdoTW5gwCwx2LxWnh0g285otsDwbxANe h+uqFx5n58mhpJB+Km2z2IU0fA1TOmiyF50LHhh50Gkd9NYT1rfVT2rCPe1TDKu4enV3 d5thYwwfJpUUH5lsAR9ZZ7tUpK4igKlwqfDlGNv4zd4pbtQByo0yxfLNwdTYt7jevTuQ gy5GW6HqtrxOCRzFzVGlYGb1lB9J89s1pl3HZn2CjJO7eqB8mvcIWFBjmJ3pgbb4FpQ3 ++awcAMurWx+Y3QbYl/jVV7psVOrZm9joI7gKPLuAsH6BsjToFx5t3GVnl5LvblsCJrq YiDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=cvr2Ur0H3dtPqApD/6gE9jtcOvzoERwrapX5poAQqaI=; fh=jCXW1t7CG+CZUeomgG1UB4AbDtqourN6NK8v171BpC4=; b=Kn2HMbXghC02Ng/bM0xcPfxkooxNlIo260ZwFrifCIZujGF9766C/M9b+sCVwkKLnG knwoTjNVK4pQNJ+qcylaW2c1HKtFDpc+NEMouF2eTd7/Ao235Q77OGyyCpGiYHEaB38e J1z7Ss5TXJHvJlLF5J6WH/w9VGzuKQeUXo5Lp3+innyDyWNkICCeQzXuO4hIA6gza2jr WOyf9dzpm8vtXEQqoIez6++vqBf/Y+fX7jUdTzxHPy9PF148FMp0o/f8gQsRkYr9LFcv zGOr7lxbQT5OOuwqvpR7QXUGIw+HniZqcANSk7cjsaOxJJSr1I08coi5TBD4t1cgqQZs 9cQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=EeohEGj+; spf=pass (google.com: domain of linux-kernel+bounces-300-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-300-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id cc24-20020a05622a411800b00423e91f2f2csi18243939qtb.74.2023.12.14.17.01.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Dec 2023 17:01:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-300-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=EeohEGj+; spf=pass (google.com: domain of linux-kernel+bounces-300-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-300-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 57E471C21F04 for ; Fri, 15 Dec 2023 01:01:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A5D99804; Fri, 15 Dec 2023 01:01:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="EeohEGj+" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-pg1-f172.google.com (mail-pg1-f172.google.com [209.85.215.172]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A7BE24C8D for ; Fri, 15 Dec 2023 01:01:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Received: by mail-pg1-f172.google.com with SMTP id 41be03b00d2f7-5bdbe2de25fso155353a12.3 for ; Thu, 14 Dec 2023 17:01:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1702602098; x=1703206898; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=cvr2Ur0H3dtPqApD/6gE9jtcOvzoERwrapX5poAQqaI=; b=EeohEGj+944dr4O1GMAii4oeeRcmUQHTT4em5So9vMXhfGenfJfu3HvDDV4OeAW0km zmTe+kWAu6gun4XmeFwg6O+HVHQHk1ANEL3rdv5encFZ5Vz9J4gX/Ij8KYIbRhpDNoNo 8U3LVfSg26fhgsZ9mtCOvqr1DOzDY7GWezl5g= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702602098; x=1703206898; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=cvr2Ur0H3dtPqApD/6gE9jtcOvzoERwrapX5poAQqaI=; b=b8lJDLQBq9SjP1QhZZB7ndqo86THDsFx3VufuRtcXWatMdicZPQZrh3Kf8EAruoocB T9rHGYSuNIMIWH9qpeWtvkIGlWsXD9aexq6T2x34HDmd6cCTYGIMDoR+/lUUN/GkMjVT vNNFVdF/R8++nom0NeLIMDhJdV+1PE+vPRSkfq4FENX126kkrDf8AbDfjwhRBNW4AzfA tZHjZ4JuP+hzuC2F6FpgwLy9+9cyl+7+mnDfJGlWW9EQYXH3zolTptDNKDUsOSsDT8PL +zXgs2etxBQ0W5psPGcpZ+muYs1GmSA4iP9Nrk5gP0ys/3WtGc4+xDFjnCH3VUjtgDOU 35tg== X-Gm-Message-State: AOJu0YzaZww2Mb8Uds4g2ViLb/vQ5PGwc+jqt3p+6hrkApTCVUEYgGW3 a4t6+ceKA31lcn7X7jQ3h3Dk8A== X-Received: by 2002:a05:6a20:8f15:b0:18f:b899:21dd with SMTP id b21-20020a056a208f1500b0018fb89921ddmr14531192pzk.47.1702602098050; Thu, 14 Dec 2023 17:01:38 -0800 (PST) Received: from www.outflux.net (198-0-35-241-static.hfc.comcastbusiness.net. [198.0.35.241]) by smtp.gmail.com with ESMTPSA id gx4-20020a056a001e0400b0068fe9c7b199sm12351686pfb.105.2023.12.14.17.01.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Dec 2023 17:01:37 -0800 (PST) Date: Thu, 14 Dec 2023 17:01:37 -0800 From: Kees Cook To: Randy Dunlap Cc: Jonathan Corbet , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org Subject: Re: [PATCH] scripts: kernel-doc: Report excess struct member descriptions Message-ID: <202312141700.E0BC0FD19@keescook> References: <20231215001451.work.746-kees@kernel.org> <16d1510c-fa3e-4fa9-ba4d-c483a22f83a4@infradead.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <16d1510c-fa3e-4fa9-ba4d-c483a22f83a4@infradead.org> On Thu, Dec 14, 2023 at 04:21:17PM -0800, Randy Dunlap wrote: > Hi Kees, > > On 12/14/23 16:14, Kees Cook wrote: > > While missing descriptions were already be reported, missing struct > > members were not. For example, previously this output was empty, but now > > produces: > > > > $ ./scripts/kernel-doc -none ./drivers/leds/leds-mlxreg.c > > ./drivers/leds/leds-mlxreg.c:42: warning: Excess struct member 'led_data' description in 'mlxreg_led_data' > > I just made a patch with similar functionality last night: > > https://lore.kernel.org/linux-doc/20231214070200.24405-1-rdunlap@infradead.org/ Ah-ha! So you're as confused as me about where the robot was getting warnings from! Your patch is better. -Kees -- Kees Cook