Received: by 2002:ab2:23c8:0:b0:1f2:fdbc:cb93 with SMTP id a8csp76410lqe; Tue, 26 Mar 2024 21:47:01 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUm9BQR2lGSbINqrCujPYhPDXDf6H853hJNC0fjf4S72t3AP+BwaV6D6dH6nnJofJsRhaNPqD06csY1ZGxT2kbYRYuTZzLFYxjLxSUO4Q== X-Google-Smtp-Source: AGHT+IHpS2qHM3TdkgIBlYuCykfMzkvPJIsUYrF0ktAo1wjPkA/FBOhxcccLdwH7rrGozmI833FL X-Received: by 2002:a0d:e88a:0:b0:610:bf3a:a2a3 with SMTP id r132-20020a0de88a000000b00610bf3aa2a3mr2998748ywe.28.1711514820761; Tue, 26 Mar 2024 21:47:00 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711514820; cv=pass; d=google.com; s=arc-20160816; b=UZ4NEFu4zDtQ9n6qE8sSGuxcMq+lxLXP6skXFOX6RvibVKpGnIDOce0Qk75+NFdgQa TbHWhwtwmD7+RSQf03INwPY3zEOvJrKSoMHkevATgwNPW6z3VUzAAJ146ZUzAZwC68ZN Q++hknBTNxG1lq5xYI5FUi+nxib6Sy6i+773QwJJ9dGbVpL0IXZQtP34Du30XWrWlpbK Xb8MuqT/yD/IgUj7DYypwesuabswMI2nQ7ZXKKVtYMDalfSNiPtukzWqsKTbF5QcTFAa eR18rAOLBqLm8USk7dM8lEMt46uq14RZ/dUyoOIgXXWsbk9mmhiWgnZPiDZIMbke862m C+dw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=yMtOAxSy6zJWmW6mKZyujtiV9qAtMlkG5asbEMkPM8M=; fh=qsPfLq8m3DENa0uuoGd0NZ2bnqoIgRm/QX2VFUuIeus=; b=Qco3jpvYUXK8h0up71RaTkgCBTN/fIRcCFUVg0N5mIFAK7IAYlM9XudGXrDIz+Uzi3 je3Qo+63FFKUbnof6ZC66ELk0V0KJy8f3sLFIDJaxoiaJGdsIs1DP9pH1tv8BWVtN9G8 3wPWTurP1ftEwYhZSsYLoJL8UoeaEKzOZy8A8NfVRqO2C6VJJv11BlcHHlKORXlsC4uF MiUNDtHL7hv9wiY00Qv/4Neu9SjgZAIMFgww30EdgsAYYRm11OCoP7vYJWzh8m9kfSXR aJFzSxznlCu/Did2Up3X0e6boaQD8j2X/JD90C0NONZekRY2qmCUPbcaqWRQOc9u2iLn CB5A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=qlCVrBxl; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-120299-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-120299-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id ci20-20020a05622a261400b0043139de9562si9215769qtb.510.2024.03.26.21.47.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Mar 2024 21:47:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-120299-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=qlCVrBxl; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-120299-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-120299-linux.lists.archive=gmail.com@vger.kernel.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 732951C236C5 for ; Wed, 27 Mar 2024 04:47:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4B471210D; Wed, 27 Mar 2024 04:46:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="qlCVrBxl" Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D726936B for ; Wed, 27 Mar 2024 04:46:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.137.202.133 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711514814; cv=none; b=Kxw0D3OcUs+i1W+14GKKmdDFsubzk8vnekRaSBdiYeriLeExlDc932urUv4kjK5AhUFTzzFqDgjU4kaljYo0+vcuOJkQyI/loaYxGrzsxzzfl3u53xxuQL5z8TimQb3X33fuSTTbKug9RYsxD4Puhlc1wiCKJY+fNfCufq61e8c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711514814; c=relaxed/simple; bh=fe5JVNVJ26q344L0rybfdlbQv6wcoQuYXBEVYTlnn1g=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=QbAxzVYx+syOWs64Rob03PM8TbXQVhFtLqa/mh+wODpsnCx/6w8DWkvaVdTuiBzQLx5pwxYZhjaNWv+tZjtxkfF1I6Rzz69//mudWWkYvWOhHFc48OHnMUFsR9eDumGeMpX0hJyfiKnm4duqI+fen1NJzHpOKYZtxjbenGvCm1Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org; spf=none smtp.mailfrom=infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=qlCVrBxl; arc=none smtp.client-ip=198.137.202.133 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=yMtOAxSy6zJWmW6mKZyujtiV9qAtMlkG5asbEMkPM8M=; b=qlCVrBxleP59TvWq1qxNfR4OWp 1AvF8+Z1C2um2UozsID95ACtjZRxZneIti+7+LQe5oswU0fbFaW39pna2P7xaMs/wrf/ycIWrNuE7 fNeU4f7G/vQntnDDQeINaCYmwcdWcrByabCc8iLu40ZwymgOhzSHQZv53SMstSTi7oJReYR/WPIdc OHdfixb7CMdbg8Yh51ntHoQIqstBBykR3jAvi+hvK2pIkrk4As8gd9J/1pf4dWJv6anB/OpluRS1u FPR1rEixlTGU+YLR0fkU+4UHuIEzLPTE5Da8SOcX1RTeObkw1ltDa5Z+nN4aNqj26wiqBEyubIXg/ UgEYGgiw==; Received: from [50.53.2.121] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.97.1 #2 (Red Hat Linux)) id 1rpLBa-00000007Rar-263h; Wed, 27 Mar 2024 04:46:50 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , Stephen Rothwell , Suren Baghdasaryan , Kent Overstreet , Vlastimil Babka , Andrew Morton , linux-mm@kvack.org Subject: [PATCH] mm/slab: fix kcalloc() kernel-doc warnings Date: Tue, 26 Mar 2024 21:46:49 -0700 Message-ID: <20240327044649.9199-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.44.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Fix the parameter names for kcalloc() in slab.h to prevent kernel-doc warnings: include/linux/slab.h:730: warning: Function parameter or struct member '_n' not described in 'kcalloc' include/linux/slab.h:730: warning: Function parameter or struct member '_size' not described in 'kcalloc' include/linux/slab.h:730: warning: Function parameter or struct member '_flags' not described in 'kcalloc' include/linux/slab.h:730: warning: Excess function parameter 'n' description in 'kcalloc' include/linux/slab.h:730: warning: Excess function parameter 'size' description in 'kcalloc' include/linux/slab.h:730: warning: Excess function parameter 'flags' description in 'kcalloc' Fixes: bc7b83f5e4bf ("mm/slab: enable slab allocation tagging for kmalloc and friends") Signed-off-by: Randy Dunlap Reported-by: Stephen Rothwell Link: https://lore.kernel.org/linux-next/20240325123603.1bdd6588@canb.auug.org.au/ Cc: Suren Baghdasaryan Cc: Kent Overstreet Cc: Vlastimil Babka Cc: Andrew Morton Cc: linux-mm@kvack.org --- include/linux/slab.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -- a/include/linux/slab.h b/include/linux/slab.h --- a/include/linux/slab.h +++ b/include/linux/slab.h @@ -727,7 +727,7 @@ static inline __realloc_size(2, 3) void * @size: element size. * @flags: the type of memory to allocate (see kmalloc). */ -#define kcalloc(_n, _size, _flags) kmalloc_array(_n, _size, (_flags) | __GFP_ZERO) +#define kcalloc(n, size, flags) kmalloc_array(n, size, (flags) | __GFP_ZERO) void *kmalloc_node_track_caller_noprof(size_t size, gfp_t flags, int node, unsigned long caller) __alloc_size(1);