From patchwork Wed Nov 16 11:53:45 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Martinez Canillas X-Patchwork-Id: 20991 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp101913wru; Wed, 16 Nov 2022 04:07:29 -0800 (PST) X-Google-Smtp-Source: AA0mqf4E/wBTIl6fr4MnSO6CsgIAdf5QEsjeztxbl8gvSAFp/yVjZ1YC14sudiUCXqptHhFuQteV X-Received: by 2002:a05:6a02:108:b0:476:f92e:f7a5 with SMTP id bg8-20020a056a02010800b00476f92ef7a5mr42498pgb.188.1668600449530; Wed, 16 Nov 2022 04:07:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668600449; cv=none; d=google.com; s=arc-20160816; b=ZZZ08b77U33TiHH1tg7QPT22N7Kp/pBVTgnpngl9+jnOOZRenj8gMbDvtmCYeeUpyX VHD6d0mAmY3zv2prys4Haksblt+B6fg1OE73OvToPVmaqCqLCoo0qMt9wB2vfh7yW+6G V8WlVDQXiE/fA/52Ly6NrAtsJBmpr27v3EfoCk3jEFaQBshuunABomLjlXf27dj4xjEV 1HpFTrlndiBEi08ioORLT6cixCdLTedkY8CLwZQcu5fjeOHDhdb5eiQOOXjgvb98xchV U22Dgy4EgTEZMjANu2UXxoGxpb1NGS31zwJifmJy45RB88NvB4GyhiQnlzZ1N+Xhuuhe kdKA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=YSf6lqgrQaBsJ/0K/DNRpP5ozpW+gGv/TdDdDL02QJw=; b=Tegpz9ZIx2y9UWh8j856AYHG74uhLRD3VbjQXZet9J6cbMCMAPsf5wtdyzygtOmEUp Hy7P/hjFLxyH1xcY7qwlyQxXSjWP1rSZI6kIP07uu8VWEgowtCRaw64rE7WTIe8Q22CT eTkaFT0dlFJj36RsUVNeuaGWk5QkK2FQEfhGS+TYbX3SOrFVX6N4lJRr0Ut2tgxDQTnE XbaKVJXjYS3jeg64AdCT9r+iy5WZAfUBERDJhOCI04nbwc87n2D62s/FuAG5hIJe0EqR 7H5GwW/hbIojmSgqAze8k5I3tKkZNzOvy08elQSPvcHPF4kvSIMFJaRd7txe7g9Yc/vT dyNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=FsLKCX7S; 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=redhat.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s207-20020a632cd8000000b0044d72a10aafsi14826358pgs.34.2022.11.16.04.07.11; Wed, 16 Nov 2022 04:07:29 -0800 (PST) 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=@redhat.com header.s=mimecast20190719 header.b=FsLKCX7S; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233506AbiKPMD0 (ORCPT + 99 others); Wed, 16 Nov 2022 07:03:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46758 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233082AbiKPMCl (ORCPT ); Wed, 16 Nov 2022 07:02:41 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DD2001D0F4 for ; Wed, 16 Nov 2022 03:54:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1668599651; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=YSf6lqgrQaBsJ/0K/DNRpP5ozpW+gGv/TdDdDL02QJw=; b=FsLKCX7SARWHlN2STo569LXtDTj/gVSjc0p/iDXGnJGQ/TWbVJu5KxNNkKfdE6FEZOjfEx Xh8lvbDlOO3aFqWUZcbnv8aJDsdJ/oesI48uGNnjOTyLpZGQQkio9lu/u9Q8/kmVsexjFV T8dD7AxJ23y2fxaQI0YHchBhoLQ2dsI= Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-584-W-SSFQZGNyC-xodecIby_Q-1; Wed, 16 Nov 2022 06:54:10 -0500 X-MC-Unique: W-SSFQZGNyC-xodecIby_Q-1 Received: by mail-wm1-f71.google.com with SMTP id 203-20020a1c02d4000000b003cfe9e8e3f9so162746wmc.0 for ; Wed, 16 Nov 2022 03:54:09 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=YSf6lqgrQaBsJ/0K/DNRpP5ozpW+gGv/TdDdDL02QJw=; b=ri6fmDzqWsQ8HO8WVlkzFXzOlqN930p+csUrTbM4VM+MRjj8qUNQJCafgJ9LkHgGT1 JHzAFTPK34S3KiVKoeCKFVhnYYaPeubWXwoTGXhM2xE3vtR8Loe2yLwPzpTYp7jBcMiO WOvjYf9gJjyxTDbOm2Kr6sR1JGO0WttXodTyo6GBu7d34zUStpPl2X8oZEShGIzh6k7K IuIzUZY9YzjJNa7NizNppiy6foaNY04DEE5qJ+uUDqWrIK+gYC7vv/BFRT64zN8GNl63 65s3aYWJ9ydFUAyj26TXPOuMP0Bg06sKNdSItHKJ451B3ZIXPfeMmim41PwBynwdACwP pEag== X-Gm-Message-State: ANoB5pntSCNfdvEkGT+YFbM8x9aId3pUJpEOk+ZoIpEiyHrabP7dMhBk SpY/SZWz3Zz24RBguvGz9xxDJKx49aFInWPnC7XBmrMDQi9pH7/Y7fGU3tOGlqZ0JJRsBhVbIj3 jGefK/LOxET0HEVj/6i7waSWxxLTvSIxqfr0F4sfftPAU6VeqanoybaHnY01dCkBIDWq3I6HD4a E= X-Received: by 2002:a5d:4525:0:b0:236:5d8d:630d with SMTP id j5-20020a5d4525000000b002365d8d630dmr13215847wra.462.1668599647053; Wed, 16 Nov 2022 03:54:07 -0800 (PST) X-Received: by 2002:a5d:4525:0:b0:236:5d8d:630d with SMTP id j5-20020a5d4525000000b002365d8d630dmr13215823wra.462.1668599646828; Wed, 16 Nov 2022 03:54:06 -0800 (PST) Received: from minerva.home (205.pool92-176-231.dynamic.orange.es. [92.176.231.205]) by smtp.gmail.com with ESMTPSA id m28-20020a05600c3b1c00b003cf37c5ddc0sm2059939wms.22.2022.11.16.03.54.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Nov 2022 03:54:06 -0800 (PST) From: Javier Martinez Canillas To: linux-kernel@vger.kernel.org Cc: Brian Masney , Bjorn Andersson , Douglas Anderson , John Stultz , Peter Robinson , Enric Balletbo i Serra , Steev Klimaszewski , Rob Herring , Daniel Vetter , linux-arm-msm@vger.kernel.org, Saravana Kannan , Greg Kroah-Hartman , Javier Martinez Canillas , Alexei Starovoitov , Jakub Kicinski , Krzysztof Kozlowski , "Rafael J. Wysocki" Subject: [PATCH v2 1/4] driver core: Make driver_deferred_probe_timeout a static variable Date: Wed, 16 Nov 2022 12:53:45 +0100 Message-Id: <20221116115348.517599-2-javierm@redhat.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221116115348.517599-1-javierm@redhat.com> References: <20221116115348.517599-1-javierm@redhat.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=unavailable 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749654384655951846?= X-GMAIL-MSGID: =?utf-8?q?1749654384655951846?= It is not used outside of its compilation unit, so there's no need to export this variable. Signed-off-by: Javier Martinez Canillas Reviewed-by: Andrew Halaney Acked-by: John Stultz --- (no changes since v1) drivers/base/dd.c | 6 ++---- include/linux/device/driver.h | 1 - 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/base/dd.c b/drivers/base/dd.c index 3dda62503102..040b4060f903 100644 --- a/drivers/base/dd.c +++ b/drivers/base/dd.c @@ -257,13 +257,11 @@ static int deferred_devs_show(struct seq_file *s, void *data) DEFINE_SHOW_ATTRIBUTE(deferred_devs); #ifdef CONFIG_MODULES -int driver_deferred_probe_timeout = 10; +static int driver_deferred_probe_timeout = 10; #else -int driver_deferred_probe_timeout; +static int driver_deferred_probe_timeout; #endif -EXPORT_SYMBOL_GPL(driver_deferred_probe_timeout); - static int __init deferred_probe_timeout_setup(char *str) { int timeout; diff --git a/include/linux/device/driver.h b/include/linux/device/driver.h index 2114d65b862f..50d0a416a5e7 100644 --- a/include/linux/device/driver.h +++ b/include/linux/device/driver.h @@ -240,7 +240,6 @@ driver_find_device_by_acpi_dev(struct device_driver *drv, const void *adev) } #endif -extern int driver_deferred_probe_timeout; void driver_deferred_probe_add(struct device *dev); int driver_deferred_probe_check_state(struct device *dev); void driver_init(void);