Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp974298pxy; Fri, 30 Apr 2021 23:25:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwKhx+9hPaZdB3h9MxpQqdzNIRck6zlYvX1TWh5LRzQSokre/VTVvsHojkLYciZLMbnEabf X-Received: by 2002:a63:5214:: with SMTP id g20mr8288639pgb.158.1619850327359; Fri, 30 Apr 2021 23:25:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619850327; cv=none; d=google.com; s=arc-20160816; b=0qbFB881PpOZ/t28YNuEJDbd9zxGq0ziSflMTX95ppOWRG355bafpcAG4OuCDlByS1 w4xeqJn4e36AXKuaL5SRq/LaHSn8UJGWN7a4dUxsYwtci0QkGeg3k35zG5o22HlkTs0c hR098qKbCjw6UB3KkA4leDbkDQgEUcO+eM/OpF9I/+JOep59VnCDeVS9+koJDG+22Uc2 Xav35a+8//KGr1lXfxDktrC7yAcLek3/3JzhZ4sMnX55QK42Vl7tabN1Th3wm+gwHr69 /u3Yu86yXPzlk/8WMK2H9cYRWun3qYOWwN9vXoxVvkaRot2xG+aVq+BsAmMV7OJpenDT /ViA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=MkvIGcsiA88mb5rGv5g7I0vSl/lS5EG2Y9HZHxIq+B4=; b=TE3qtqK11RlbUGHC51rHKZYm/dUl3eHlKMDuAcQlpZrcaUf8PSoYob7Zr6wq4XlnP3 g0eqMJz6xBa901xlQeSh5SMoIVNuTt6sY8DFjfRpxRc4ogfAJiNpefLUP7I7229j6wsN kQ26DD8hZU3flmeLg1PW+2Qpp7QJYT9zpVeFAOXSAGTEPm5VDbcPBC7L+2VjmYIqkH2J VpAkwkB04CsIi1IyciyFoTH1/Z2zZ4md85g2PI/q1a4NMoNMIVrSCRdbCy1UVqoVfchQ xlNgnxYSISmLd1ICFBrU6xAv5EoANZPKDDnWG03mb5XG22zavwXjuwWeQe0oYza11iDn Kcqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=vvKskF8A; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p23si6309291pgk.180.2021.04.30.23.25.06; Fri, 30 Apr 2021 23:25: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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=vvKskF8A; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231236AbhEAGZM (ORCPT + 99 others); Sat, 1 May 2021 02:25:12 -0400 Received: from mail.kernel.org ([198.145.29.99]:46940 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229505AbhEAGZM (ORCPT ); Sat, 1 May 2021 02:25:12 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id F033D613C2; Sat, 1 May 2021 06:24:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1619850261; bh=X9cYeVXcga7kObVA/p1U0zrIolbkSZQkyIvB3ZJbuEc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=vvKskF8A3MqcJvyaMlaBzRiSpwXUFgxqqJHthqQW9syCx4jeqsxXZHSR1s7Lbyw4E 3wPyrmR6mxInIoxNzLFq+tNhN931Q2HKNpucp9/6KjWh2+M+2IKcnJ5MVnKZseGzHY rENlfN6cHDZgqqutaby3B12wsgoThhqjMiCCfzPs= Date: Sat, 1 May 2021 08:24:16 +0200 From: Greg Kroah-Hartman To: Enzo Matsumiya Cc: linux-leds@vger.kernel.org, linux-block@vger.kernel.org, u.kleine-koenig@pengutronix.de, Jens Axboe , Pavel Machek , linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH 1/2] block: export block_class and disk_type symbols Message-ID: References: <20210430183216.27458-1-ematsumiya@suse.de> <20210430183216.27458-2-ematsumiya@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210430183216.27458-2-ematsumiya@suse.de> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 30, 2021 at 03:32:10PM -0300, Enzo Matsumiya wrote: > 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 > /* Please please no. These should not be needed by anything. And if they really do, they must be EXPORT_SYMBOL_GPL(). thanks, greg k-h