Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp416350yba; Wed, 24 Apr 2019 03:36:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqzLfUKbjFLtBGorRC4+TLPOAnC9kDrFG9tyrlvv4ni+cKZBGQ9dPE0FsW6jGhZ5BWumdOni X-Received: by 2002:a63:1c6:: with SMTP id 189mr28990655pgb.22.1556102187192; Wed, 24 Apr 2019 03:36:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556102187; cv=none; d=google.com; s=arc-20160816; b=rP8bWZLIR0AiwqX1mLiw/UOsxsfMJuw+1a6lJARvSye67It9i9/0SJ6X4rMZ0IyBeT Q0krFZWyigfZJZqLEo0w1CsW+Tx3Azjw93u7/sPLl2OwwTn9047biyqcf8h76J+bo7UV evW5BIAcs/zL7GRPvO4ZCRUPhKDSSULiP3jd4S5jfl7nSs8Nr+HSu4hSqQ2xPnYoj1CE V5tCUx1yXRRS1Ilmawr9PUFddwteltwE1W7oUy9/khsVcZwGqnNfhPQ4LoFIhjReJ+El X8pVZs6S0UFNPPQFhyfffZUA7xnBNMul91ze2CMwtTz/h6N3Y7b/H2MJR2JZvktc9QZf a73g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=7NH2jZ+jVLT55l7/l/NhXDDW+1G5wLxZmMdqxSi3S+A=; b=KH6ixVfZy2eFgt3UjWbkUwA04E15tLhqzNAlGHWlTXDSfdfu4AKHCUA6rdYOj3vyuT oA3V1e+zNwggTYv9swnpwrpdG+KrldnHvil3Wjt8pY0LUVPpJKDH9pKjibhcos+Z7cqQ kpQ7njeFm/pD9rK8Ui06p7WAA0AJl7Q5lWk0d2ZoBx9ZpD/0vZztdF1Qfzlib39pSwpf gQ8wxwvEcpgWLbPNsWyOtFFjeNNND7yMUxZUP5DvN+duhE2j1kc4bjAgb2ElHsaiGlar wfjMQ0xkF45x/E5bLHQFCkUjXdrFIKRKaQnS0MwrCGJ/Ff7T3KL8853w9yB1c4Y1ZDiE COUQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k33si18982667pld.27.2019.04.24.03.36.12; Wed, 24 Apr 2019 03:36:27 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728644AbfDXKfA (ORCPT + 99 others); Wed, 24 Apr 2019 06:35:00 -0400 Received: from mout.kundenserver.de ([212.227.126.134]:37775 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727032AbfDXKe7 (ORCPT ); Wed, 24 Apr 2019 06:34:59 -0400 Received: from orion.localdomain ([95.114.95.254]) by mrelayeu.kundenserver.de (mreue011 [212.227.15.167]) with ESMTPSA (Nemesis) id 1MIMOy-1hXUrf1As0-00EMiV; Wed, 24 Apr 2019 12:34:51 +0200 From: "Enrico Weigelt, metux IT consult" To: linux-kernel@vger.kernel.org Cc: axboe@kernel.dk, linux-ide@vger.kernel.org, linux-nvme@lists.infradead.org Subject: [PATCH 1/3] drivers: nvme: target: core: fix build break Date: Wed, 24 Apr 2019 12:34:39 +0200 Message-Id: <1556102081-11820-2-git-send-email-info@metux.net> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1556102081-11820-1-git-send-email-info@metux.net> References: <1556102081-11820-1-git-send-email-info@metux.net> X-Provags-ID: V03:K1:J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@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Build breaks: drivers/nvme/target/core.c: In function 'nvmet_req_alloc_sgl': drivers/nvme/target/core.c:939:12: error: implicit declaration of \ function 'sgl_alloc'; did you mean 'bio_alloc'? \ [-Werror=implicit-function-declaration] req->sg = sgl_alloc(req->transfer_len, GFP_KERNEL, &req->sg_cnt); ^~~~~~~~~ bio_alloc drivers/nvme/target/core.c:939:10: warning: assignment makes pointer \ from integer without a cast [-Wint-conversion] req->sg = sgl_alloc(req->transfer_len, GFP_KERNEL, &req->sg_cnt); ^ drivers/nvme/target/core.c: In function 'nvmet_req_free_sgl': drivers/nvme/target/core.c:952:3: error: implicit declaration of \ function 'sgl_free'; did you mean 'ida_free'? [-Werror=implicit-function-declaration] sgl_free(req->sg); ^~~~~~~~ ida_free Cause: 1. missing include to 2. SGL_ALLOC needs to be enabled Therefore adding the missing include, as well as Kconfig dependency. Signed-off-by: Enrico Weigelt, metux IT consult --- drivers/nvme/target/Kconfig | 1 + drivers/nvme/target/core.c | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/nvme/target/Kconfig b/drivers/nvme/target/Kconfig index d94f25c..3ef0a4e 100644 --- a/drivers/nvme/target/Kconfig +++ b/drivers/nvme/target/Kconfig @@ -3,6 +3,7 @@ config NVME_TARGET tristate "NVMe Target support" depends on BLOCK depends on CONFIGFS_FS + select SGL_ALLOC help This enabled target side support for the NVMe protocol, that is it allows the Linux kernel to implement NVMe subsystems and diff --git a/drivers/nvme/target/core.c b/drivers/nvme/target/core.c index b3e765a..08851f5 100644 --- a/drivers/nvme/target/core.c +++ b/drivers/nvme/target/core.c @@ -8,6 +8,7 @@ #include #include #include +#include #include "nvmet.h" -- 1.9.1