Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp942242pxb; Sun, 22 Aug 2021 00:53:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx5yDHDSM7uUXzqNzIFvkYj+3gtIjbj4Ch8nI5/EHq35VOcjRqa+oJ5epCfRiYb/vscgFXq X-Received: by 2002:a17:906:2bc2:: with SMTP id n2mr29784951ejg.455.1629618810205; Sun, 22 Aug 2021 00:53:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629618810; cv=none; d=google.com; s=arc-20160816; b=0N0/hvlNjr26ImoBfqWh10adMkkofdCcozQ8j913vfyy7kXd6JGHIolsK3SHZtZh4b 7KXbPy/nbRrdvQYLmLQwWPUHlC//fMjKjeE/Fo1Q7FENTwbmBkHMPojahmsrzwjS/TQn OwVl705mutppO8hrO5qLxfhqFiEwxKhh1Jb53gDnZ0flxKoYwqutnHzryy+MMQVpC7mX t3K5+W4r6H0gcPVBmAYUbHdrrM6UfVHHG/D0bOBa+P/LYuFDRnNlG0kU5Nk1RYIfzfQm y4DZrOciIHXLyIOtFqph2o4DeT0Dp+AijxdUpMDWMeXZYKHf2VdhiBMt+eDRzJ2E4gp7 t9ZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=m8xtan08Su1aPHkuXwbXQb4qxZDxvf0Qz0X3flwzJxU=; b=kx2gS7uC2pyqfYNiv6nCiX8JvYmNMZNa4jUAcGsnhTrB5Sx9z6IzbTWjp0m6rwb2SS aVo/Oak++Efw2NU7H6xC2mKpMhQiBvp7UbpnIxxpajRei3Kheh3DSQY70VhhkHThsuGu ES3ayWeB9T5uOYEKBTrvLFm08Pl33IVMWpmIxzK4t5H8BxXAgvGdLjjb1MNZ8xirCtNW 1sKlOvn89K1IAvvTA7UrkCHKNMu9aEEC+PFV8HKDOrqjyiRMO/ws/xVQJrsQvDxb76Xg q1gzOlA3QGiOlHF8B9S1in/JBO+lDZ68Xv5A/7E3Gh3gQhMh/BQ4A1k5Ciiyj2VlKGYx gqFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=KNehxyZs; 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=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r8si7261043edh.510.2021.08.22.00.53.07; Sun, 22 Aug 2021 00:53:30 -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=@chromium.org header.s=google header.b=KNehxyZs; 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=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231147AbhHVHwN (ORCPT + 99 others); Sun, 22 Aug 2021 03:52:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44436 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231795AbhHVHwJ (ORCPT ); Sun, 22 Aug 2021 03:52:09 -0400 Received: from mail-pl1-x62e.google.com (mail-pl1-x62e.google.com [IPv6:2607:f8b0:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BF6E6C061575 for ; Sun, 22 Aug 2021 00:51:28 -0700 (PDT) Received: by mail-pl1-x62e.google.com with SMTP id f1so1522367plg.3 for ; Sun, 22 Aug 2021 00:51:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=m8xtan08Su1aPHkuXwbXQb4qxZDxvf0Qz0X3flwzJxU=; b=KNehxyZsX5RaJK5y2Pm9Hy+GMM4ouGgu1mtFCNGf5Q4+XuYzcpek8mmjIelGU5Zh/K SGkkAqqI6ZtkljguX0dRdZq8VyLLpX++4gkynq16kQAfwn/sMu2R1vnWUVqCmuKBnTmr vHvxL4HNIkK65E56/fAQ7HpRp1zSvwPTX7iiY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=m8xtan08Su1aPHkuXwbXQb4qxZDxvf0Qz0X3flwzJxU=; b=EZ3oDJ64KbHBuAttIPliwlaBd9DuKp4tm/5RySXgSHsfweI5jQiNPvZKw/5L806xJP HDppWjzfo+PXAf6vXh6wxdizWBJJ2c1Tf4/48MPvMWYOj//o1DUWFHpeq2lQFWlETd1z byPWVm2QjVYvpOhwYWu72MC2mgRe0d3AWZ4tYxE6YOvQx3F7dD9B7zRhAGqykQYQYVnJ vJsuFec/x+0kXfJVTy4Aebz15iPg48t5CC9t6ypvbzcUfetnOIhHA+Ee5T/WhvSBhn4b tZb3gvfr1vE/Feh5oxwhT3kXxyMTltKkJ/VFMKQ6byngNZ1i2X+je6jkOYaiM1gF1vrF wgrQ== X-Gm-Message-State: AOAM531P4tX9/N7wwwsNywIQX1O8MG2BL7OX8v0n6iwIeP0pgZUdTU2B 4gT90caX2p0eB+xgGHR7/hwERg== X-Received: by 2002:a17:902:e744:b029:12d:6479:83a3 with SMTP id p4-20020a170902e744b029012d647983a3mr23356458plf.30.1629618688348; Sun, 22 Aug 2021 00:51:28 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id z3sm12422917pff.47.2021.08.22.00.51.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Aug 2021 00:51:27 -0700 (PDT) From: Kees Cook To: linux-kernel@vger.kernel.org Cc: Kees Cook , Rasmus Villemoes , Daniel Micay , Francis Laniel , Bart Van Assche , David Gow , linux-mm@kvack.org, clang-built-linux@googlegroups.com, linux-hardening@vger.kernel.org Subject: [PATCH for-next 03/25] stddef: Fix kerndoc for sizeof_field() and offsetofend() Date: Sun, 22 Aug 2021 00:51:00 -0700 Message-Id: <20210822075122.864511-4-keescook@chromium.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210822075122.864511-1-keescook@chromium.org> References: <20210822075122.864511-1-keescook@chromium.org> MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=973; h=from:subject; bh=LSI9Ve3iPXm24/e6+dJ/Whm/+Dq6iMvpCYAHC2kT7As=; b=owEBbQKS/ZANAwAKAYly9N/cbcAmAcsmYgBhIgH1w21LSBQACqZKJobE9QLuzQzYC1C0zIz8fHlJ j7xmpjuJAjMEAAEKAB0WIQSlw/aPIp3WD3I+bhOJcvTf3G3AJgUCYSIB9QAKCRCJcvTf3G3AJrdkD/ wKmF69TzlROZwIafqz2MLoItMJiWF/65+N6fmS2XO9e48KkVpSl2fKtlLamzp4HmXqzSDnzqrZdPk0 itFI4TMiLP++478UHgC0wuWMMe4Ducifntz4TDVW0g5+G/cwTzzgJwGz9AMHNgjY7TdhfBw4EE3c0D Jeug5F7twQ9FjEDaMzmLLynDQY/yeNO5HDDqHVdZRS6Qp2l0RhfF878rFc3Jp0ufEWS3VE/bCVlZ7x eQY2TrsxGok6P//wlSnfvOPbDermCWJr0reeYZcxyWC2YqbW++crZK5dk9aK0237tPWEG2O1QO3ofD Ac3IBz2jVy1oGQ8VmJIoxLQ9Lh85+lvUqiLs6S1VTNTlVAGB6NHYhTgWC2xVBdtVCuwsvs/Qt1xm3j LT/xKjTkZkRyGB+QGDb5XPiXh351iZH6rNoDnL+iR58vjO0MItRJqo9ydXevQg+Ul5b1XHrCiI3rzA 6c9Wk6pWdD0gJ1ch+rNk9dMJqfelisvVjpAsPQE8V4NYMfmaYgVUBqghH3LW8+LqCpidDMrXk1RM8c InBmG9X4jSf5m2HaoIoQudmq8ipqnFpqMY1T2r/AbgbTovYcSWFMXMwKGZ1+tgY8JfOJs69rtkN9pW nrxhwXPO6Od0J3Im7hVxdDvu4WFS68ohxHONWzmNrusiExiSogibF5+dCOvw== X-Developer-Key: i=keescook@chromium.org; a=openpgp; fpr=A5C3F68F229DD60F723E6E138972F4DFDC6DC026 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Adjust the comment styles so these are correctly identified as valid kern-doc. Signed-off-by: Kees Cook --- include/linux/stddef.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/stddef.h b/include/linux/stddef.h index 998a4ba28eba..8553b33143d1 100644 --- a/include/linux/stddef.h +++ b/include/linux/stddef.h @@ -20,7 +20,7 @@ enum { #endif /** - * sizeof_field(TYPE, MEMBER) + * sizeof_field() - Report the size of a struct field in bytes * * @TYPE: The structure containing the field of interest * @MEMBER: The field to return the size of @@ -28,7 +28,7 @@ enum { #define sizeof_field(TYPE, MEMBER) sizeof((((TYPE *)0)->MEMBER)) /** - * offsetofend(TYPE, MEMBER) + * offsetofend() - Report the offset of a struct field within the struct * * @TYPE: The type of the structure * @MEMBER: The member within the structure to get the end offset of -- 2.30.2