Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp582351pxy; Fri, 30 Apr 2021 11:34:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzYF0JwHvGUWVHujXieCXoAl7db/+oX63F0KJ7mRgnzZy0Fy9pZz+PJUqaMt7YnH4Oy5W// X-Received: by 2002:a17:906:1c8f:: with SMTP id g15mr5807739ejh.20.1619807642284; Fri, 30 Apr 2021 11:34:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619807642; cv=none; d=google.com; s=arc-20160816; b=UnfUoy/jrWrukYqweG0H4I+rAyh98InPt3IZZwZD3TnlO4Ps/aU+tP3EMOWS6cA03r z0l2x2ovS/ooRgltl2nEP3USoXjJ48uy1VqHHvnK7sUN6Mx6a6J8kNL8qjt3bZq03WrT FhoOOlkP4t7JYdtnwNUxz2PIgr0QuQcBIRqQRqqdgBWewoeaKIFftjmfk3mDb1R8m/Ae nCktN671SKWV3BopnodTjOdQPprSfMECkRwU8gEdGQnxw8zX5JezmSoAajHSlmCBSET4 1vuOKYlknLdU24JQq354GudqFYfNJHc9jQ23PtBJM6AOQ21fyWG3wFE9Y4hlBxAtPrpr 8ZoQ== 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; bh=24BXih5H8hO4RgpEFyC/13owDobBa8EUlIU8TctK2CU=; b=JBbtJS5PJQF/1Wpy894Hjf1bG6ZFzMVkD4C8QM84Q80vLmbDoRLM5opynzbgKyehv/ fyy7tOjNKZhw/7fH60BNox7rnWbS/IBQsEyACL3spIR1yWwVkLsxqAMx+QqSeoEkZMt/ e+4byKnv3pYXSToS0DaXLVkiIlY7Lr7f0c+e0i60M5zg1xRY1iBioRZbYuePGILj9/Jt 80uD6m4eQPtHBMvrXahte6LxZI62vc3ePGvbLEGk50WTex+MGm2nCN97pc+KtxQ17Ii2 7i0yEWvWNYdSDCuRADhGPVhuJpad16JomU61CR1+FOeg8FKYaRwnl3O0XYRVZrkbsGfm PUDg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id do11si3740041ejc.354.2021.04.30.11.33.38; Fri, 30 Apr 2021 11:34:02 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231373AbhD3SdZ (ORCPT + 99 others); Fri, 30 Apr 2021 14:33:25 -0400 Received: from mx2.suse.de ([195.135.220.15]:59076 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229750AbhD3SdZ (ORCPT ); Fri, 30 Apr 2021 14:33:25 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 65157AFD5; Fri, 30 Apr 2021 18:32:35 +0000 (UTC) From: Enzo Matsumiya To: linux-leds@vger.kernel.org, linux-block@vger.kernel.org Cc: u.kleine-koenig@pengutronix.de, Enzo Matsumiya , Jens Axboe , Pavel Machek , Greg Kroah-Hartman , linux-kernel@vger.kernel.org Subject: [RFC PATCH 1/2] block: export block_class and disk_type symbols Date: Fri, 30 Apr 2021 15:32:10 -0300 Message-Id: <20210430183216.27458-2-ematsumiya@suse.de> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210430183216.27458-1-ematsumiya@suse.de> References: <20210430183216.27458-1-ematsumiya@suse.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Export symbols to be used by _for_each_blk() helper in LED block trigger. Signed-off-by: Enzo Matsumiya --- block/genhd.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/block/genhd.c b/block/genhd.c index 8c8f543572e6..516495179230 100644 --- a/block/genhd.c +++ b/block/genhd.c @@ -1218,6 +1218,7 @@ static void disk_release(struct device *dev) struct class block_class = { .name = "block", }; +EXPORT_SYMBOL(block_class); static char *block_devnode(struct device *dev, umode_t *mode, kuid_t *uid, kgid_t *gid) @@ -1235,6 +1236,7 @@ const struct device_type disk_type = { .release = disk_release, .devnode = block_devnode, }; +EXPORT_SYMBOL(disk_type); #ifdef CONFIG_PROC_FS /* -- 2.31.1