Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp3128620lqp; Mon, 25 Mar 2024 23:17:16 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUiKPBJ2sHsb5ZeT550a5mhA9VDHpDr6H3TGRRQ4eRmQ4vkKDFo2B6NuN5ODxwv5M+6woRLwkd7IcwjXyRqEnVdNSeDonMJ+9aZUZPK9Q== X-Google-Smtp-Source: AGHT+IF60sVk7+MBCP9lxE4L3VfsquyKyI7Dq1lGLwo3lrcaFiGoqvSuYUUdBqL7/kxy5Je8lZXp X-Received: by 2002:a05:6122:4d1a:b0:4d3:45a2:ae4f with SMTP id fi26-20020a0561224d1a00b004d345a2ae4fmr6733549vkb.14.1711433836474; Mon, 25 Mar 2024 23:17:16 -0700 (PDT) Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id f4-20020a0562141d2400b00691872e5527si9285017qvd.36.2024.03.25.23.17.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 23:17:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-118400-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=neutral (body hash did not verify) header.i=@google.com header.s=20230601 header.b=T7dem5P3; arc=fail (body hash mismatch); spf=pass (google.com: domain of linux-kernel+bounces-118400-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-118400-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=REJECT sp=REJECT dis=QUARANTINE) header.from=google.com 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 F05D41C2D925 for ; Tue, 26 Mar 2024 06:17:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 931D712B149; Tue, 26 Mar 2024 06:17:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=google.com header.i=@google.com header.b="T7dem5P3" Received: from mail-yb1-f172.google.com (mail-yb1-f172.google.com [209.85.219.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 06ADF12AAEB for ; Tue, 26 Mar 2024 06:17:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711433830; cv=none; b=JfVe19DKb//xx1dd+Q3iL05LxdakPxRytANdX1VOY1yBTMMz3t0PdhOo7UWyVIW9HNgQfsRrPAcxyuGOcc6tjTbG0i9a3t6j+r1XQiHPuiSc3XVbU5yDN363w635fyqf7BltptfgUYnkuKnGKiM5E8+wmne4UyIHCG7774bnOhA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711433830; c=relaxed/simple; bh=cjpYESOM7QMMIUabp8rtA0I+OebgB6BIhZxP8vFNojE=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=an5sb16cYSGTBCi3RblhK4bEb0u1G/VReEaFXNub7VCgaZNfc9M5oaTZy4qFLqpREUcZ1amFvPLtLjbtKe+hA59m7EiSDRTBVubnK2AmCaeKF8f8JgK4v5EobpDhE9CqmunqhE7IdOmB7BmHafaU+lZqPeFTkX9Uy72j1EteL2k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=T7dem5P3; arc=none smtp.client-ip=209.85.219.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=google.com Received: by mail-yb1-f172.google.com with SMTP id 3f1490d57ef6-ddaad2aeab1so3328474276.3 for ; Mon, 25 Mar 2024 23:17:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1711433828; x=1712038628; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=z496Fd73CRYseME+3jY6zyut4smUZ0eN3AIP9fOLqdk=; b=T7dem5P31ZTUMamKiNjXX/VzUANyV9bvdtsleVMrndS24LM4lW0mApPWFmeFplgU5M WUt6oeTSNzgYe+WcJuWZ1QOFMT11WPF7x8a8J+Fur3Thar7LTgJZXFa90rfqzPQ/qhRQ Kt23puhb+bUhTQeM43DHeU9zuC9JN7VmHTebFKnh/vyvkLNUBuFYz6DpACbIuCfVtz4d dKA3KqJof+sncu++9yyEgj8oX9qzJwzaynJwsrbyXZ2ZAU4zIblsNLMtIPtVFloL2aoh c5lG3byFZZBuJ1ShR67Oty1U7caRgvPbcRto2PdA9lCwSaHjhPkGQY3ROVWHsCRZdEpL pKCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711433828; x=1712038628; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=z496Fd73CRYseME+3jY6zyut4smUZ0eN3AIP9fOLqdk=; b=mDyQ/VOm37tH6beGqmpA36/1PEwmTlzHMD7o73n/bVnyepGAhOMhPItFYVIgLhSAwq jC4tFLV376/iCL7BQ4MlFo+tIAGIiHi0ekRVlrXydxO1zGORHsgG/I7DnxU7f67u+SpE w8h/OAB7Nnhd6tK620q+YDZaun6S7j8O/ct29uykYMJeTRWJ4khQMDFx0AEp2BZmJ/8b QZNLhYrs+JBdg3iOIdH0q0s6WhrsWCnyySYLu5mPExZVRZOa62YLXU6WpKxnrBmG+wiR tt5SDVJzyD9K5ZjWrwGTKzf4LocSuaPYsJewmcUc8lI5pCZwa58UBgithLb2L4BkTGLY FBlA== X-Forwarded-Encrypted: i=1; AJvYcCV+HUAl7tdRN17CybLz29YVsKcoXmtapqV1hyp1ohfv+y7Ro43FpQMlXvCtIbwgaC9od8QTdNVJO/0M0C7xYafGPXhOYtERx6b/Kisk X-Gm-Message-State: AOJu0YxP6/g8xT45y51syXeUWz+umxmKC5qnVra2B4Nbl0o7IPGFKaWj uRbE93xqplAtRwWOvqJAEDBpwxDNW4KGzm/6HZ2r5QHomExTrOLcii2LmVjWpJZ700xi8u7O0Zt N4jM4btfgF7ld2XJqCLL0P/fdEh/5L37gQClH X-Received: by 2002:a25:c793:0:b0:dc7:3165:2db1 with SMTP id w141-20020a25c793000000b00dc731652db1mr7239261ybe.49.1711433827791; Mon, 25 Mar 2024 23:17:07 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240325123603.1bdd6588@canb.auug.org.au> <5e1321ca-0d46-4e9d-a6e5-0560d99f65ff@infradead.org> In-Reply-To: <5e1321ca-0d46-4e9d-a6e5-0560d99f65ff@infradead.org> From: Suren Baghdasaryan Date: Mon, 25 Mar 2024 23:16:55 -0700 Message-ID: Subject: Re: linux-next: build warnings after merge of the mm tree To: Randy Dunlap Cc: Stephen Rothwell , Linux Doc Mailing List , Jonathan Corbet , Andrew Morton , Kent Overstreet , Linux Kernel Mailing List , Linux Next Mailing List Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Mar 25, 2024 at 10:44=E2=80=AFPM Randy Dunlap wrote: > > > > On 3/25/24 19:19, Suren Baghdasaryan wrote: > > On Sun, Mar 24, 2024 at 6:36=E2=80=AFPM Stephen Rothwell wrote: > >> > >> Hi all, > >> > >> After merging the mm tree, today's linux-next build (htmldocs) produce= d > >> these warnings: > >> > >> include/linux/slab.h:545: warning: expecting prototype for kmem_cache_= alloc(). Prototype was for kmem_cache_alloc_noprof() instead > >> include/linux/slab.h:652: warning: expecting prototype for kmalloc(). = Prototype was for kmalloc_noprof() instead > >> include/linux/slab.h:692: warning: expecting prototype for kmalloc_arr= ay(). Prototype was for kmalloc_array_noprof() instead > >> include/linux/slab.h:714: warning: expecting prototype for krealloc_ar= ray(). Prototype was for krealloc_array_noprof() instead > >> 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' descr= iption in 'kcalloc' > >> include/linux/slab.h:730: warning: Excess function parameter 'size' de= scription in 'kcalloc' > >> include/linux/slab.h:730: warning: Excess function parameter 'flags' d= escription in 'kcalloc' > >> include/linux/slab.h:774: warning: expecting prototype for kzalloc(). = Prototype was for kzalloc_noprof() instead > >> mm/slab_common.c:1217: warning: expecting prototype for krealloc(). Pr= ototype was for krealloc_noprof() instead > >> mm/util.c:751: warning: expecting prototype for __vcalloc(). Prototype= was for __vcalloc_noprof() instead > >> mm/vmalloc.c:3897: warning: expecting prototype for vmalloc(). Prototy= pe was for vmalloc_noprof() instead > >> mm/vmalloc.c:3916: warning: expecting prototype for vmalloc_huge(). Pr= ototype was for vmalloc_huge_noprof() instead > >> mm/vmalloc.c:3953: warning: expecting prototype for vmalloc_user(). Pr= ototype was for vmalloc_user_noprof() instead > >> mm/mempool.c:245: warning: expecting prototype for mempool_init(). Pro= totype was for mempool_init_noprof() instead > >> mm/mempool.c:271: warning: Function parameter or struct member 'gfp_ma= sk' not described in 'mempool_create_node_noprof' > >> mm/mempool.c:271: warning: Function parameter or struct member 'node_i= d' not described in 'mempool_create_node_noprof' > >> mm/mempool.c:271: warning: expecting prototype for mempool_create_node= (). Prototype was for mempool_create_node_noprof() instead > >> > >> Introduced by commits > >> > >> c64e38ed88d1 ("mm/slab: enable slab allocation tagging for kmalloc a= nd friends") > >> ea7b8933f21b ("mempool: hook up to memory allocation profiling") > >> 576477564ede ("mm: vmalloc: enable memory allocation profiling") > >> > >> from the mm-unstable branch of the mm tree. > > > > Thanks for the report, Stephen! > > Let us check with Randy Dunlap how we should handle these. I assume we > > still want documentation to document kmalloc(), not kmalloc_noprof(). > > Maybe there is a way to mute these warnings. > > A proposed patch is here: > https://lore.kernel.org/lkml/20240326054149.2121-1-rdunlap@infradead.or= g/T/#u Thanks! I'll change back all the instances in the documentation where we replaced original names with _noprof versions. > > > -- > #Randy