Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp67070rwd; Tue, 30 May 2023 16:21:08 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6Y6497FDrua5UmEjyB6B2jsG4umoM9zZRKk4yCJAoIHGUOIHSw7BMOUSD66GSlnjLs9K8p X-Received: by 2002:a17:90a:4607:b0:258:6eb3:44c3 with SMTP id w7-20020a17090a460700b002586eb344c3mr470673pjg.44.1685488868305; Tue, 30 May 2023 16:21:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685488868; cv=none; d=google.com; s=arc-20160816; b=PM5UJ2tz8dr7oJ4NNYrgImY1nqrrYdTem/rVV5TEll/+EO6YqtQ/9iLWJOV5R7NPgd D8MT3OVxEMQqZTUVa+XDkqDfxzv73fMjtSQxgsxmeqaf7KTX6KJwRlwmh3+O6eJ9IIq+ 2yg/PFmHH5WLIB0HbHlL4KbFBfjnCoCdP7tqCuWazENXeetjLyj7gemIlUeK7HSrI2FM 3uofaPMqFrjJ7gfbYpziR78CWHIeqlUNVxqRuTfwniyyf5tFaGbfv+IGOh87VqdEaJk0 CWZUS9TTcGKQYyAgXz0OQN1r8KDD7EI8PiyvGvXF2vRDNHqt47gFUZQm6iI7A0XPzqko XgKg== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=CZI2GFQ5z4hDm+TauY57eKWdgI0AjuUNZ6ikPxAhZrQ=; b=Qk304FTlYstxdBCP5t4RHce4hnAUmjCXL6nsRJ3rHU7urK4Gt7b53OuBTbhBLV6QUa Wp7M8V4HAu0oyS+P5HeRT1W+eEGbMHrmsL18eUnZBcd6d8QOtHBKbmKH+Qwg5Htvs8lU GTSB3pU2VvuZXzTVxOoRn3Uq7DC/IWPfjwcacu65DoHiVCG0d4W/a3GoFDPFiJw1mKnL N7Yrwy+DD110Z1KtSqX5EsFrsAdz2sxAZ1Lg2GUajmEYzyYURRZG7hkytXbRwQ/RsED2 tnQx1MAubpX5SaA2NuA/hby+8Cj0GcbyDzv22paxmwpkFCk4cZ+UtC2f+1SLArfRp7tR AnzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mtVhqmSh; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gt9-20020a17090af2c900b00250c1397245si211980pjb.121.2023.05.30.16.20.54; Tue, 30 May 2023 16:21:08 -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=@kernel.org header.s=k20201202 header.b=mtVhqmSh; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233788AbjE3XQL (ORCPT + 99 others); Tue, 30 May 2023 19:16:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45230 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231843AbjE3XQK (ORCPT ); Tue, 30 May 2023 19:16:10 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8724CAA; Tue, 30 May 2023 16:16:09 -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 0F05863508; Tue, 30 May 2023 23:16:09 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 04EE2C433EF; Tue, 30 May 2023 23:16:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1685488568; bh=e0CUxh2mVxfA/1Jqa3mCpXdqKlK7OJCF9M+9+uvD3e8=; h=From:To:Cc:Subject:Date:From; b=mtVhqmSh/FxtvcNO2dS318420LYe9zXJwprsV6aslB/NCw96f7b0j0eru+rU67Mmn HYFvT37eIHSw7S1btjOwjDqDJ2Tf7fwuD8wlAm/Zc40ypVplZ3wIRwwq5aJk+/LWds wyYdHvFoRSXpaPvsgK48yAMsvDqSpBwM1yI0FaIHkPV7LOPRqGNgS0q7TIwdYy4SQG 9g3D3pBo8lfGfDmsOArYDAmxPXqUL/jR4O5oJOjjib4r8i8gTNtw+kz5Y/efLjYs8r 5QQLnlirFWcv1lfmoYf/0Gyl33YBl87b/XVjlny1OIG23i5Epl/ofMCw3DP2gnxj4H 7vkBGDnLYyhkw== From: Josh Poimboeuf To: live-patching@vger.kernel.org Cc: linux-kernel@vger.kernel.org, kernel test robot Subject: [PATCH] livepatch: Make 'klp_stack_entries' static Date: Tue, 30 May 2023 16:15:58 -0700 Message-Id: <5115752fca6537720700f4bf5b178959dfbca41a.1685488550.git.jpoimboe@kernel.org> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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 The 'klp_stack_entries' percpu array is only used in transition.c. Make it static. Fixes: e92606fa172f ("livepatch: Convert stack entries array to percpu") Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202305171329.i0UQ4TJa-lkp@intel.com/ Signed-off-by: Josh Poimboeuf --- kernel/livepatch/transition.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/livepatch/transition.c b/kernel/livepatch/transition.c index e9fd83a02228..e54c3d60a904 100644 --- a/kernel/livepatch/transition.c +++ b/kernel/livepatch/transition.c @@ -15,7 +15,7 @@ #include "transition.h" #define MAX_STACK_ENTRIES 100 -DEFINE_PER_CPU(unsigned long[MAX_STACK_ENTRIES], klp_stack_entries); +static DEFINE_PER_CPU(unsigned long[MAX_STACK_ENTRIES], klp_stack_entries); #define STACK_ERR_BUF_SIZE 128 -- 2.40.1