Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp3118813lqp; Mon, 25 Mar 2024 22:44:15 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVG0SeNgkY6PaZodWlmpkqrHnoaMZu+znoWnFqfZjyd3EfHq0fqQWDoCiRiXXTCOSLgaaeyl/LSBurZ63XMPYSdwQg0e3nNQXAwh+yohg== X-Google-Smtp-Source: AGHT+IFZs6PbMMuqelD8n+JsPppx7Roe+3hM0gfGAzLENBJiZZLCaRw6aGwm3YWe4SurCWyXUtpI X-Received: by 2002:a05:620a:2113:b0:78a:4331:1d0 with SMTP id l19-20020a05620a211300b0078a433101d0mr9580093qkl.66.1711431855472; Mon, 25 Mar 2024 22:44:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711431855; cv=pass; d=google.com; s=arc-20160816; b=TZ4Ww+9biEZmK5V5gd8pj2TXRmhyxMzVRk9ef/vKOtLnFf2c2iHPq3zTOhXrySiPtD fZqrZy87nsvASL2jQwDr53107tN/9EGZIDB1ESp/1hoCXLXLoP40yXYOtDdFmlm4urBs Bm2r1Qx/bgrrYNEdrQYvQHRWjbM3PZu+lfiBg6hEJB62tcaZiNs870VVEG2IN1B6ZDa4 4CAaK9MBeCdKUoYEHOu0fE6Dd4jQsJCWXz2TiYa4dj3EsW05TbO31yatpKvqvrrvTFX/ zqoneceFJuWoTJFidw8bHzPBNNf6yMzWa4GJfCQOBXGZuiCbMXLZXUptPrSnexW439vn Y8dg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=B7ubNl0s9pj4zKsixRowhvQt20MjA4ggloW4HBz7kcA=; fh=wc/nxrhvsu3MhoQkqKcjNwmn038sl+MRYtNsbglpe5E=; b=vLWtEYNFg7MVyI0jm8JQ5sgIPSEZIeAsTH3mcxm/rf4a8fFJO9QXw6RQICGRGE/Vou MAaJvwYlKCfIiHg+RMdLk93k4AgGWoGOwqrPJY/TWb9v2GksJ0Aeia8i27CgEVK7Eh6F zGl3MkTkbiKArXfyGMyK4qY5q8VIOnwcLf+ImGh+8Qz/CPw4/7V4I7rcXA4F9hFAvO6o Ag8GOQAhG6q3ICeUzRISFPFhKVU6Rs5KjhZUIc5KMjTFhPLZcwRv+1wnO1ncBBE0gwUl 0ETaWiISuuhM4s3xkG1pl2/wfg9Kbahd8MGisdrGsaqCuUhFi0rlQmirapR/irbX3Vpf 6/fQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=uxmAGfaz; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-118379-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-118379-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 b1-20020a05620a04e100b0078a4bb3cef9si5636056qkh.567.2024.03.25.22.44.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 22:44:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-118379-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=uxmAGfaz; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-118379-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-118379-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 2F81F1C30371 for ; Tue, 26 Mar 2024 05:44:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 07CD2823C7; Tue, 26 Mar 2024 05:44:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="uxmAGfaz" 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 BD0B8446BA; Tue, 26 Mar 2024 05:44:08 +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=1711431850; cv=none; b=XkPdWXlHmHg1O9dSQt+ogU2U/BrihwY3smMulqvm0/i7fWxx/4zPnfknQ4BETORhsL2l7nHmKEBjaB+ioxgfNV5y9Ici4yOgYwH42jZeIdjQpmW/aiaFZ6fK3VAfg0SQvSpfYSJb/GnaDbMqEiKTxgysFhTT1Tuixe9HShTYYec= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711431850; c=relaxed/simple; bh=tvQqxPyvFgOefL6xeKRQZhrzxYEj/ITsWdt1PsilITA=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=d2NeZhUF6cDSeCxUQwrB5Bt18Y/3d7spJJbR8bKxY8VQJil+DGugCf5gXjomPM5RCw4QSZxtS28Ykqedyvdp6dDkn/9uc3CDKavehiEsMFX//4V92S3zX5yMLF1aXyIKEm+8vJ/F9+5uBl8QIf+iEVnNf+VqeNKjWhEuPifKTSQ= 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=uxmAGfaz; 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: Content-Type:In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date: Message-ID:Sender:Reply-To:Content-ID:Content-Description; bh=B7ubNl0s9pj4zKsixRowhvQt20MjA4ggloW4HBz7kcA=; b=uxmAGfazzOu06FH/R0g2JvhtUy EGVJ26Drp9hC+U4EBwaKJ6uA7DDo403PCk9GxwZmaaslD/DXz4kHnooyCcsu9lkYlVKfD19QAaokw 55qKprqaeI15YsdybJUEfp+OTs1CWJ6goSmLmVk6DO7quABRMj1d4sHzKgX7olD2JSFKxSbUFbcG8 9F5V6C9IjsrjvfBEwEOuJ9BHemiJfg7NaR/O2YuE5/hassVAtrPAYGDWo0Cl9FOXbBLxR1RvVRKo5 abd4rkq+IU2Ec3+C3kavNPYfV+FXsWiX/ZFw8MvzLEOe+odwrUAyjTuCGatq7dL0ij3QXA0kK4MY4 hOXA+9tQ==; Received: from [50.53.2.121] (helo=[192.168.254.15]) by bombadil.infradead.org with esmtpsa (Exim 4.97.1 #2 (Red Hat Linux)) id 1rozbT-00000003AWu-2Eob; Tue, 26 Mar 2024 05:44:07 +0000 Message-ID: <5e1321ca-0d46-4e9d-a6e5-0560d99f65ff@infradead.org> Date: Mon, 25 Mar 2024 22:44:06 -0700 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: linux-next: build warnings after merge of the mm tree Content-Language: en-US To: Suren Baghdasaryan , Stephen Rothwell , Linux Doc Mailing List , Jonathan Corbet Cc: Andrew Morton , Kent Overstreet , Linux Kernel Mailing List , Linux Next Mailing List References: <20240325123603.1bdd6588@canb.auug.org.au> From: Randy Dunlap In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 3/25/24 19:19, Suren Baghdasaryan wrote: > On Sun, Mar 24, 2024 at 6:36 PM Stephen Rothwell wrote: >> >> Hi all, >> >> After merging the mm tree, today's linux-next build (htmldocs) produced >> 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_array(). Prototype was for kmalloc_array_noprof() instead >> include/linux/slab.h:714: warning: expecting prototype for krealloc_array(). 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' 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' >> 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(). Prototype 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(). Prototype was for vmalloc_noprof() instead >> mm/vmalloc.c:3916: warning: expecting prototype for vmalloc_huge(). Prototype was for vmalloc_huge_noprof() instead >> mm/vmalloc.c:3953: warning: expecting prototype for vmalloc_user(). Prototype was for vmalloc_user_noprof() instead >> mm/mempool.c:245: warning: expecting prototype for mempool_init(). Prototype was for mempool_init_noprof() instead >> mm/mempool.c:271: warning: Function parameter or struct member 'gfp_mask' not described in 'mempool_create_node_noprof' >> mm/mempool.c:271: warning: Function parameter or struct member 'node_id' 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 and 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.org/T/#u -- #Randy