Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp3281703iob; Mon, 16 May 2022 18:03:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxQG7EJnWACKyg6pM2KCEOvSuARSdb4dEpg3EBRRs2E2mSDm7niSnFk2dp3nrhmNZzp/Fby X-Received: by 2002:a17:907:2ce2:b0:6f4:4c44:b66f with SMTP id hz2-20020a1709072ce200b006f44c44b66fmr17287632ejc.371.1652749388471; Mon, 16 May 2022 18:03:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652749388; cv=none; d=google.com; s=arc-20160816; b=JDeHwQOC5iuqZPALm0afExN8D1yVeccavy7Qo4pY5j9E4n562aOld8oH1ciWkGGIqf bVNoeu1lmqls9AKnyfWDuCxJZmNSZYpI6D46RVUdcL91hBlyJlJMEvv34N1VVz2ZdPBX uSHCpZv0J/4+ghiMI7ufn6j04nrLEU1My8hpzohCujNDJ4QPHYP+LuJKLeTm3VaQ4vfH cxp3dPjLWHha0s0j/n/H6r0reLs6R+JBwo2ChT6xyrBFA9e1NFeNJYoqbQh4BLE7EB78 dsPKDy4Iu8S8ttzbHk5oJu9r3IcZxTXxLFq9uhCl7QlXWlNw2yfJzbFyfF5lRQD5FUaI UI8A== 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=HXtrLe4wM5KnGNLV8EoRoh8NQPYMk6Ja6GmCeJwbR1o=; b=wQyKyW4tqt5hNntb6DQEFzH/DPmYsRfF0QkwNdtD2pLE3eJpWNgipCXv+POLWmjNI8 hxhfyYedyqTviCfPPsr0xoDrqCjfHZvX8RWaDBumSffVxVpYvdZBJ2VqaAc9eqJ+Beqm ijiNO5w/ZxgCgTmBfVL/gkQaIT01UFli6PeSkIGwzpQkm5TA1u/i1Ar3pA5wOM+6eSp/ Ic+1iVD8bT4fUu7mZ2lvcVnGwIbR4W3zaI1CvLxSlt1HLexZe7UdaqfzqO4abpgcLtzp oVdHjMSJytkiWgAJosN65DHERxruUtsA3nwtW1JxuU/QEdtBE3Znx9dRQqa4K0P945ZQ IQLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=pm9p47qi; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r3-20020aa7c143000000b00427c774ae35si10579234edp.310.2022.05.16.18.02.42; Mon, 16 May 2022 18:03:08 -0700 (PDT) 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=@infradead.org header.s=bombadil.20210309 header.b=pm9p47qi; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240432AbiEPGry (ORCPT + 99 others); Mon, 16 May 2022 02:47:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46174 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238823AbiEPGrt (ORCPT ); Mon, 16 May 2022 02:47:49 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 86CE0DF5D for ; Sun, 15 May 2022 23:47:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=HXtrLe4wM5KnGNLV8EoRoh8NQPYMk6Ja6GmCeJwbR1o=; b=pm9p47qiR0Z1/We4vfX2K/b5yy i90lk9fZff/yQaULCXj3baGA1FhA816A83ADVFJ+j8Hh9jUIOM8G9q2vpgu0IsM43UkYqubvOlsiC +O8aLGDzPkALwrSObhkMaZyaEpq07F3vvDWA1AePb/MSfBCJmvuRSzmtuMWvB9TpKYQsNdp4sGxQ0 fpNkuZe5i4LVeJgWooKNtNeY/7PsQ5dYA/FOinfdi6PBAZl8kIQGxDP6ih9P6zYw8iIKlsVH6uCG/ gUNTFzoC+PeNgo/c9o+OhyKlUTtgZDYZIGlwIX9L5h4JXT26WnzEEJOqikv1S3IJJ+biLWWnhYRhw KgyLK0CA==; Received: from hch by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1nqUWB-006FNR-3B; Mon, 16 May 2022 06:47:47 +0000 Date: Sun, 15 May 2022 23:47:47 -0700 From: Christoph Hellwig To: Greentime Hu Cc: palmer@dabbelt.com, paul.walmsley@sifive.com, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, aou@eecs.berkeley.edu Subject: Re: [PATCH v10 05/16] riscv: Add has_vector/riscv_vsize to save vector features. Message-ID: References: <221f72a2ee62cd5350edb5d6a7e8ebb17a7bc321.1652257230.git.greentime.hu@sifive.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <221f72a2ee62cd5350edb5d6a7e8ebb17a7bc321.1652257230.git.greentime.hu@sifive.com> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham 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 On Wed, May 11, 2022 at 08:31:15AM +0000, Greentime Hu wrote: > +#ifdef CONFIG_VECTOR > +#include > +EXPORT_SYMBOL(rvv_enable); > +EXPORT_SYMBOL(rvv_disable); > +#endif As far as I can tell these are not used by any modular code, just by the later added kernel mode vector enable helpers. Even if they were used this would need to be EXPORT_SYMBOL_GPL. > +/* SPDX-License-Identifier: GPL-2.0 */ > +/* > + * Copyright (C) 2012 Regents of the University of California > + * Copyright (C) 2017 SiFive > + * Copyright (C) 2019 Alibaba Group Holding Limited > + * > + * This program is free software; you can redistribute it and/or > + * modify it under the terms of the GNU General Public License > + * as published by the Free Software Foundation, version 2. > + * > + * This program is distributed in the hope that it will be useful, > + * but WITHOUT ANY WARRANTY; without even the implied warranty of > + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the > + * GNU General Public License for more details. > + */ No need for all the GPL boilerplate text when you have an SPDX tag.