Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp3163351imw; Mon, 11 Jul 2022 03:16:49 -0700 (PDT) X-Google-Smtp-Source: AGRyM1t7zBOxmz4W3IwG2R/VbZPhoSSZ/gP9zeUSSjvruajiPZ02SPw/pk0gWJQX0Nv1nc02iFzZ X-Received: by 2002:a17:906:cc15:b0:72b:5e0d:9a2a with SMTP id ml21-20020a170906cc1500b0072b5e0d9a2amr2197829ejb.614.1657534609605; Mon, 11 Jul 2022 03:16:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657534609; cv=none; d=google.com; s=arc-20160816; b=fTxsF7Ilo9bRdcylkkQrkr++Hra4WEVrE0rJRWwzpP0tR0b0sq8iz0m5LmhZNGD05z JZWewcHywkJ5SgmFhKQZfrbjJLx9hbAuaJx+T3OimXiz1XvRRkGzOzPjZmkbG+b2FDWN YQ1XSbrPkbkWUx6PccH489bg85a+cK715NcWc/Vn4ID3EVM9sxhmRlvOHd78yVrc+g8H zDPYEGwus1GE+/0u9RftqHnMXcTvF3PZcmxpSZ3xqHIc/As4LJjPGSea3vKVbIn+1kYf pURf2XjS4visPXSPJ8Bormw51Se3vfnYWAmr0y+dddRkiNKVxhvtqFpY4EHekyfHmxh9 ls6g== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=ezyRKLqzX2GO2HVrS267bpUqP11VfUxdzf6Hpz36QHA=; b=NSAiPtFaz5ElIGPtmS8IJKVo9WIZdJ5IYvdYTmmeg5XZeMa3t1paHGJO4JBDCv0/2y mwSfC/tznLsjUOUmi3G1CTsHfYY7tKkv4T5VYthgR9yM1PXmwP9xRS2VJPaEKaDpYQqI Ap5IQ9Ko1dZyzml6CoJPRx4bFFzN9ru9JbptUfs0ox64gFegvwuUOvX6GcC2F4LC4om1 U4bM/RdwMpF2lcQ8Xi9Ip4FfxBFh3oFzC5OioYVx7Y0zMPaLUKcbBgDCBt+gxNeOixyK 5Qg6SaiNjegEvcCZwqnk365H7PlRwcHU/pDvlfG3qss+jiKkHwmqT4Pk/aiD2iCN/QZp 117g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=jlv2r9V2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r4-20020a170906a20400b007262d20d6cesi8949154ejy.200.2022.07.11.03.16.24; Mon, 11 Jul 2022 03:16:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=jlv2r9V2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232098AbiGKJYJ (ORCPT + 99 others); Mon, 11 Jul 2022 05:24:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55724 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231967AbiGKJXS (ORCPT ); Mon, 11 Jul 2022 05:23:18 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5FCF5BE31; Mon, 11 Jul 2022 02:13:52 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id D10516121F; Mon, 11 Jul 2022 09:13:51 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DCCDAC34115; Mon, 11 Jul 2022 09:13:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1657530831; bh=SKoJobLuXWL5FRX92QKZJyelch0U0Zzj/8c/a3u1sTk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jlv2r9V2rOhT/aDKaPBfi2n954tgaMP3JsIPHmDj93nqbVR70S5AY5nxsjyeyxNXc 3Es7DoPlhhEWAo+C7jaiXdI0kbqMBmPLIPgMrJSf6OV0gMF7HBpycagEjZfr9LSv5c LICjO3B3srhXTAxlQkNuM2kCwPDZOZxB2av/Ll+c= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, kernel test robot , Alison Schofield , Dan Williams Subject: [PATCH 5.10 18/55] memregion: Fix memregion_free() fallback definition Date: Mon, 11 Jul 2022 11:07:06 +0200 Message-Id: <20220711090542.303296560@linuxfoundation.org> X-Mailer: git-send-email 2.37.0 In-Reply-To: <20220711090541.764895984@linuxfoundation.org> References: <20220711090541.764895984@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Dan Williams commit f50974eee5c4a5de1e4f1a3d873099f170df25f8 upstream. In the CONFIG_MEMREGION=n case, memregion_free() is meant to be a static inline. 0day reports: In file included from drivers/cxl/core/port.c:4: include/linux/memregion.h:19:6: warning: no previous prototype for function 'memregion_free' [-Wmissing-prototypes] Mark memregion_free() static. Fixes: 33dd70752cd7 ("lib: Uplevel the pmem "region" ida to a global allocator") Reported-by: kernel test robot Reviewed-by: Alison Schofield Link: https://lore.kernel.org/r/165601455171.4042645.3350844271068713515.stgit@dwillia2-xfh Signed-off-by: Dan Williams Signed-off-by: Greg Kroah-Hartman --- include/linux/memregion.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/include/linux/memregion.h +++ b/include/linux/memregion.h @@ -16,7 +16,7 @@ static inline int memregion_alloc(gfp_t { return -ENOMEM; } -void memregion_free(int id) +static inline void memregion_free(int id) { } #endif