Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2848980pxb; Tue, 12 Oct 2021 14:57:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwN9SeOvdsfIutgZoI8UjLEeqJh95YZzVrN0l0JsJ6MsqBY7mbPGzmbt8Bo/kmmStRpumSU X-Received: by 2002:a50:9dca:: with SMTP id l10mr3494454edk.61.1634075847035; Tue, 12 Oct 2021 14:57:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634075847; cv=none; d=google.com; s=arc-20160816; b=c9rHA6A0ttC9Z+vPB09t0uNxQKiWtNHkxaihqjvJATepu0NAUP5z3zAMw0/HbOlDLy STQ5tnTdRySXWvhy20iozlcHyytB+iosdxE2jIujSTuNaeXvI+rRC5ZxLNBjX73OePWL JoprcbFXipS5mv3/6gh6A44qmUdiU9Ewoj6UFlurD280XVcgZVX0p7ryUNkvaREXfFgp +9uKdYgOhVV1mdrPecPzEIUsn0vC/ViR8LTkKsQDlYY7rNYhQZdMX0wOw8mQB1T6H1l8 aDW42uKIIb6TEtoxToGS+6A60mABEYmiRB6eoVnP5GOncw4fokpWOcIR7RcbBikL+1eO cmFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=W0Vg5qoI5+m6NXL9R0LDjUO56wu5XbOC7OBN9hc5/2A=; b=m1FEHihiZGw1u+ej2ouJPOEOmuGCfiKKB/ELDrcftPqhL4aG2B2Oxt+NvRITTWYz+U p0HsetaVtieqs0OUKXM9DNYYz59P/EXEUUbb/rn/HHV0AifYYfp3LVsidqd+D9sBhVWb eWaBmQd+zJZ6WL+gXicDT2nFboHVoMVyiHhx37+qElxJ2MmwhJ+s/mb+TXJZE9QD+Xzd LFYmQ98Q0DaJYia++OGtjLVz5u/gBBgWuymN9UB+0+9Nza8NbivDGlJrCZ6KSAbUbBby XLdW2SdKKYWOSiiS8fOc+ABLsUI3CUlHza/7N06DuPn/26G1mcljJRZkVzXRPOBFNBVR WlVw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m26si18184078edb.316.2021.10.12.14.57.03; Tue, 12 Oct 2021 14:57:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235711AbhJLVzA (ORCPT + 99 others); Tue, 12 Oct 2021 17:55:00 -0400 Received: from mga09.intel.com ([134.134.136.24]:29658 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234845AbhJLVy6 (ORCPT ); Tue, 12 Oct 2021 17:54:58 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10135"; a="227177850" X-IronPort-AV: E=Sophos;i="5.85,368,1624345200"; d="scan'208";a="227177850" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Oct 2021 14:52:54 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.85,368,1624345200"; d="scan'208";a="659280302" Received: from lkp-server02.sh.intel.com (HELO 08b2c502c3de) ([10.239.97.151]) by orsmga005.jf.intel.com with ESMTP; 12 Oct 2021 14:52:51 -0700 Received: from kbuild by 08b2c502c3de with local (Exim 4.92) (envelope-from ) id 1maPha-0003wK-Vh; Tue, 12 Oct 2021 21:52:50 +0000 Date: Wed, 13 Oct 2021 05:52:33 +0800 From: kernel test robot To: Vlastimil Babka , Andrew Morton Cc: kbuild-all@lists.01.org, Linux Memory Management List , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, intel-gfx@lists.freedesktop.org, kasan-dev@googlegroups.com, Vlastimil Babka , Dmitry Vyukov , Marco Elver , Vijayanand Jitta Subject: [RFC PATCH] lib/stackdepot: stack_depot_init_mutex can be static Message-ID: <20211012215233.GA41525@800d2291961c> References: <20211012090621.1357-1-vbabka@suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211012090621.1357-1-vbabka@suse.cz> X-Patchwork-Hint: ignore User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org lib/stackdepot.c:150:1: warning: symbol 'stack_depot_init_mutex' was not declared. Should it be static? Reported-by: kernel test robot Signed-off-by: kernel test robot --- stackdepot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/stackdepot.c b/lib/stackdepot.c index 9bb5333bf02f61..89b67aef9b320b 100644 --- a/lib/stackdepot.c +++ b/lib/stackdepot.c @@ -147,7 +147,7 @@ static struct stack_record *depot_alloc_stack(unsigned long *entries, int size, #define STACK_HASH_MASK (STACK_HASH_SIZE - 1) #define STACK_HASH_SEED 0x9747b28c -DEFINE_MUTEX(stack_depot_init_mutex); +static DEFINE_MUTEX(stack_depot_init_mutex); static bool stack_depot_disable; static struct stack_record **stack_table;