Message ID | 20231023230052.31161-1-rdunlap@infradead.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ce89:0:b0:403:3b70:6f57 with SMTP id p9csp1599959vqx; Mon, 23 Oct 2023 16:01:09 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGV6kHhCEgoj0Qcmcg7pOv2ufG//hNWGLCDTQcNv8FSfT7IA05IVdYkHseRdIzTGMsFo4Xp X-Received: by 2002:a17:90a:1a10:b0:269:c7d:aac5 with SMTP id 16-20020a17090a1a1000b002690c7daac5mr7370049pjk.3.1698102069307; Mon, 23 Oct 2023 16:01:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698102069; cv=none; d=google.com; s=arc-20160816; b=gIJWRSd6ztFtKHeK3VvvsukXhcuitER/l/YUhCbVR0/UBB1aW4yaJmysGy6cbMxiG3 wEosoAoTypiKHUYdvYxe4TqMq+szaMyJZ+D7UBs7pX2BU9u2iXBIgCFHF5Sv5bhyoCCH SNHM54UsFrCPUwfxUSRBsiHO5XfEXdF5lHfMwEFc7sMB+IxjqGiTzKO1jQAuF6CWRDCP dwwdBotzJSBc0I4r3MEHrN2d8T+aYAyPYlw9ceo6V5qcRTQfYuiULQ7qZbau5vgxY74m K5h+qkETJKTBbiaXhvaz2zogldIZj5ckpRMe4SDbooIj9MM2SZPWKoiTy4auIuopJzPp bbxw== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=aJiESMjjEjNQPs1ZAJsVANKwy/33mcSwku5Li2utrDk=; fh=ttgqz1lEGdCdciAM9rnS7ruSlI1dHc9KPOioqD8/TL8=; b=rtXCVGglID6c1NyXqxYAYnLPOhm8tpmwcSIXCor/7pj4tO7rZstfYxkYAp/Z/6VJb7 R9mrml9kTaG7Xy5a9Mm+QMSmkEJGT1V0vVzCiTnjl8+vc09HLJLTEUB1efVRSYL9tS+b K7/zhGg41wvd2iYeqss6kRi4jV6Wfu2uNifyd/cLyJT2wxm5JWFFoIRqo4xSZxpNeY8Y NwfEDaPmfnMaclyrf+obkh6E0EhhBjo/NjPUcDoqsYf5sX+kWPdxiO7GmebkCYUbFzEL oHnjtI3KC2x6oWBnurcJ92Dbdrr2D4AcjWzTiYW1t3UfLlOUxBLgjYTkJJbB4IwKfo7m 43fw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b="Xb/V7kPs"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id w10-20020a17090a8a0a00b0026305080a6fsi6992510pjn.63.2023.10.23.16.01.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 16:01:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b="Xb/V7kPs"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 3141080310C6; Mon, 23 Oct 2023 16:01:07 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231217AbjJWXA4 (ORCPT <rfc822;aposhian.dev@gmail.com> + 27 others); Mon, 23 Oct 2023 19:00:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58402 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229794AbjJWXAz (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 23 Oct 2023 19:00:55 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AF02ED6E for <linux-kernel@vger.kernel.org>; Mon, 23 Oct 2023 16:00:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=aJiESMjjEjNQPs1ZAJsVANKwy/33mcSwku5Li2utrDk=; b=Xb/V7kPsrwNQrH9FYK0R940atT AhC8GjfBt6EfQ5/AMPdVcm9AwgVFT8cFLZOoIq6Wh/enXTUkuZHZMZ3iUDJAhF3vr0E+tMSpJ2bMg RvcvhcLCuCoH0QwXBP4upF9R54G8IsBXu8i0tGNpkGj1r3RgF1HwuV4aOa/wJJrdoM7n+j0KX1Nq0 dCRab9ZDfKy7KNt28zTT3K/Wsq8bH2SDZ6gWbY17kSKIfglNHr0gpV+ZW/t4AcSZ5tWirmX6NFALJ xMUXIezjCn8no4R8NOpbV3e3jKs9tmxx+RPJFrae+EZrOsehlWs0nqBFFVNEXwc4Vav4zuEq6vdbB DAWhLyPQ==; Received: from [50.53.46.231] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1qv3um-008Pw5-2t; Mon, 23 Oct 2023 23:00:52 +0000 From: Randy Dunlap <rdunlap@infradead.org> To: linux-kernel@vger.kernel.org Cc: Randy Dunlap <rdunlap@infradead.org>, Keith Busch <kbusch@kernel.org>, Jens Axboe <axboe@fb.com>, Christoph Hellwig <hch@lst.de>, Sagi Grimberg <sagi@grimberg.me>, Hannes Reinecke <hare@suse.de>, linux-nvme@lists.infradead.org Subject: [PATCH] nvme-keyring: add MODULE_LICENSE() Date: Mon, 23 Oct 2023 16:00:52 -0700 Message-ID: <20231023230052.31161-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Mon, 23 Oct 2023 16:01:07 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780589075685250198 X-GMAIL-MSGID: 1780589075685250198 |
Series |
nvme-keyring: add MODULE_LICENSE()
|
|
Commit Message
Randy Dunlap
Oct. 23, 2023, 11 p.m. UTC
When NVME_KEYRING=y (NVME_AUTH is not set), there is a modpost build
error:
ERROR: modpost: missing MODULE_LICENSE() in drivers/nvme/common/nvme-common.o
so add a MODULE_LICENSE() to keyring.c (copied from auth.c).
Fixes: 9d77eb527784 ("nvme-keyring: register '.nvme' keyring")
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Keith Busch <kbusch@kernel.org>
Cc: Jens Axboe <axboe@fb.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Sagi Grimberg <sagi@grimberg.me>
Cc: Hannes Reinecke <hare@suse.de>
Cc: linux-nvme@lists.infradead.org
---
drivers/nvme/common/keyring.c | 2 ++
1 file changed, 2 insertions(+)
Comments
On 10/24/23 01:00, Randy Dunlap wrote: > When NVME_KEYRING=y (NVME_AUTH is not set), there is a modpost build > error: > > ERROR: modpost: missing MODULE_LICENSE() in drivers/nvme/common/nvme-common.o > > so add a MODULE_LICENSE() to keyring.c (copied from auth.c). > > Fixes: 9d77eb527784 ("nvme-keyring: register '.nvme' keyring") > Signed-off-by: Randy Dunlap <rdunlap@infradead.org> > Cc: Keith Busch <kbusch@kernel.org> > Cc: Jens Axboe <axboe@fb.com> > Cc: Christoph Hellwig <hch@lst.de> > Cc: Sagi Grimberg <sagi@grimberg.me> > Cc: Hannes Reinecke <hare@suse.de> > Cc: linux-nvme@lists.infradead.org > --- > drivers/nvme/common/keyring.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff -- a/drivers/nvme/common/keyring.c b/drivers/nvme/common/keyring.c > --- a/drivers/nvme/common/keyring.c > +++ b/drivers/nvme/common/keyring.c > @@ -180,3 +180,5 @@ void nvme_keyring_exit(void) > key_put(nvme_keyring); > } > EXPORT_SYMBOL_GPL(nvme_keyring_exit); > + > +MODULE_LICENSE("GPL v2"); Reviewed-by: Hannes Reinecke <hare@suse.de> Cheers, Hannes
Looks good:
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
diff -- a/drivers/nvme/common/keyring.c b/drivers/nvme/common/keyring.c --- a/drivers/nvme/common/keyring.c +++ b/drivers/nvme/common/keyring.c @@ -180,3 +180,5 @@ void nvme_keyring_exit(void) key_put(nvme_keyring); } EXPORT_SYMBOL_GPL(nvme_keyring_exit); + +MODULE_LICENSE("GPL v2");