Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp40580pxj; Wed, 16 Jun 2021 19:42:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx5xsW2buHXRdO+WdZsE7YwTVEdaBmcfl2rsUnk+GCA93QWBf0D7LzMA0CDmV7Q89JJEh5Y X-Received: by 2002:a5d:804c:: with SMTP id b12mr1870778ior.15.1623897778677; Wed, 16 Jun 2021 19:42:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623897778; cv=none; d=google.com; s=arc-20160816; b=xiBPMD8BwLlp0M6uJZN7IWXghZ4UJzXSQyf5OOTzWeQRqdQK3jBWQZv5WWSB8fo6bn LDxhypBRxwaqlzzlFTBs1F4R+2benRt3Vaihj5vjCfaiuXubw4bqFyFeRLvy6w60Onxv RCjsmT73o6ZzB/3POCo+7b0NCmWevG0v6Z3X+jGBZjIPpTcKsEyyHr/BXTGxxud6bYFR nVVsGckFJ8ZDQtZWOD9B/DOsJrDijYMxAWmljAOxaRa2TjrtQSAk+ntN44l02ul09Hxb PtZXpg1Ccb0jvFx2Ol3gxqqQ7sfclzlSdXF+b19fDDZFi0lCX20+d7kiUtclf0iCqt1B 4lFA== 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 :ironport-sdr:ironport-sdr; bh=S3iXT5MMbDDs5m+OOUUCCX9BmMRhLqQwj0ZtQ43lDSs=; b=h2TyyjieM2sDjc6T0LDXPqRQP3H/nvrYtSqeZ7O4gz3XlSpTwxiWPmSruW+ZRXd/Cw 6+UwcnQS0Q5sSxYNVbuLqyui85evCoZQVRmBAzPdzjaoVpDPCNh9L9wEx6pLCwnmXmFM s6uWmDFKPj4DmPbqC5myOHC/NlD6fOFllX3NxgzBWgmxNltGb04bWENjTEC/LM1UbW0e cm0FHb/i9Srx1YAZdJVEx42WzGS5ZKYPgw/6lhmEqfDeGZtaCU7q5O1x+e9DTPs1TG5K ZePLle045pVuaw7tNEN0jpRHtr8O4IfQoApi1BvcFycDF6a61s+jDeTVGvZeD+70JyRg lrEA== 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 p11si4122472ioo.38.2021.06.16.19.42.47; Wed, 16 Jun 2021 19:42:58 -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 S231459AbhFQAok (ORCPT + 99 others); Wed, 16 Jun 2021 20:44:40 -0400 Received: from mga14.intel.com ([192.55.52.115]:50410 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230291AbhFQAoi (ORCPT ); Wed, 16 Jun 2021 20:44:38 -0400 IronPort-SDR: Oo+CyOqD0/Ee27Vl0fK5Bxsp+DiGLzCDTQ2FMiUmE0Hy45LnGPU66tez7sptgSY6lxw2o+QSoe 2JlgmTGwoPEA== X-IronPort-AV: E=McAfee;i="6200,9189,10017"; a="206097893" X-IronPort-AV: E=Sophos;i="5.83,278,1616482800"; d="scan'208";a="206097893" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Jun 2021 17:42:31 -0700 IronPort-SDR: 0ZDQ3heCk7d8sWgkK+uJ75YifobXY8g1yDR4ju7fsak6k+xLccplvf54fuLBvYOgj0mCOCDeyd PIDyOh5vwbeg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.83,278,1616482800"; d="scan'208";a="554227126" Received: from lkp-server01.sh.intel.com (HELO 4aae0cb4f5b5) ([10.239.97.150]) by orsmga004.jf.intel.com with ESMTP; 16 Jun 2021 17:42:29 -0700 Received: from kbuild by 4aae0cb4f5b5 with local (Exim 4.92) (envelope-from ) id 1ltg72-0001ep-PR; Thu, 17 Jun 2021 00:42:28 +0000 Date: Thu, 17 Jun 2021 08:42:02 +0800 From: kernel test robot To: "Rafael J. Wysocki" , Linux ACPI Cc: kbuild-all@lists.01.org, LKML , Hans de Goede Subject: [RFC PATCH] ACPI: scan: __acpi_device_add() can be static Message-ID: <20210617004201.GA151976@f10223fe78f9> References: <3070024.5fSG56mABF@kreacher> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3070024.5fSG56mABF@kreacher> 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 drivers/acpi/scan.c:660:5: warning: symbol '__acpi_device_add' was not declared. Should it be static? Reported-by: kernel test robot Signed-off-by: kernel test robot --- scan.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/acpi/scan.c b/drivers/acpi/scan.c index be8b149244220..f30ab5a55a9a4 100644 --- a/drivers/acpi/scan.c +++ b/drivers/acpi/scan.c @@ -657,8 +657,8 @@ static int acpi_tie_acpi_dev(struct acpi_device *adev) return 0; } -int __acpi_device_add(struct acpi_device *device, - void (*release)(struct device *)) +static int __acpi_device_add(struct acpi_device *device, + void (*release)(struct device *)) { struct acpi_device_bus_id *acpi_device_bus_id; int result;