Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp482127rwb; Tue, 4 Oct 2022 06:45:43 -0700 (PDT) X-Google-Smtp-Source: AMsMyM600PfOQ4WZGeCydoIX5IWTuv6y1raNu0Zu8QhVU3pClFk08T3nqLUsBfPmHJ3JcjwIYUQM X-Received: by 2002:aa7:de10:0:b0:458:e101:fe54 with SMTP id h16-20020aa7de10000000b00458e101fe54mr10772876edv.80.1664891142865; Tue, 04 Oct 2022 06:45:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664891142; cv=none; d=google.com; s=arc-20160816; b=zvGpCtJNJ+dw4b3qiXYH1ooRRi5nnNUojtL7NGl6eDMvOLSCGar5FZc77HA0LNb34Z Mr0iVpsevBdSbmdf0BCmaMngb2/nAJF509Wx1KO/6glX+HYLAdY8hHZjH1l77ElizUol zSP0ajioG8ZmNxC7j+hRbqOU7kyAqVOXo/1s1tn5OpPg4xcCzyyBgCkp8wNjYticDuqQ Ega+eKDnZKx4Qu5hb7DrfRnEsE3ngfZUtRsLdrPWJyrXOEaShWhTUA79reaO6L6+msqt BQSaQKy6zVBmTs1o3lfYEqzzS9LfXn2rg0r98CZMwhSOt4w1lnpywT094qnzq+fi4Z+1 EuOw== 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; bh=3wpjIPPBPJw2ME3ZK1QT3wS5+Uda8+hGmrVm+dQe7VQ=; b=sw+8soAqjli41l0mL1gimhMHlFIneF1F+Y+6kWvM9Xz+Mnby1kPSoS6iHVOmAm+qzu uqfODg64j9X2uhcmgh4oJRDdF60T+r+jPPJ8cUcF8a9Tb1j5LAvvM7ooNRGpdOQQuTZV MXelhLfjLbLoi63YF+ZXprWn57PKJVIDNXAQMR4dMa5DWrs9BHx/T5L7/a539WyoNUkg 93Tg48ZXiwWhfLIpU/BSxLJ26Ixoa2nVSCVgXmEashiul4P1E4EpLAIfVv20A+dzUzM/ Ib56enKGMdeOYd+GXNnzD0KxEXQo92PkihbwxhZ8nqFkrZTX/A6ARjbxZ++7eG22eStw Sagw== ARC-Authentication-Results: i=1; mx.google.com; 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 dr14-20020a170907720e00b00741a0720a2bsi10220400ejc.814.2022.10.04.06.45.17; Tue, 04 Oct 2022 06:45:42 -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; 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 S229535AbiJDMjT (ORCPT + 99 others); Tue, 4 Oct 2022 08:39:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52874 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229445AbiJDMjR (ORCPT ); Tue, 4 Oct 2022 08:39:17 -0400 Received: from michel.telenet-ops.be (michel.telenet-ops.be [IPv6:2a02:1800:110:4::f00:18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7C57CB7FF for ; Tue, 4 Oct 2022 05:39:15 -0700 (PDT) Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed50:e15b:43db:96f7:952f]) by michel.telenet-ops.be with bizsmtp id TofC2800T2GKRF306ofCfo; Tue, 04 Oct 2022 14:39:13 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1ofhCa-000g4l-1i; Tue, 04 Oct 2022 14:39:12 +0200 Received: from geert by rox.of.borg with local (Exim 4.93) (envelope-from ) id 1ofhCZ-007mx5-FO; Tue, 04 Oct 2022 14:39:11 +0200 From: Geert Uytterhoeven To: Jens Axboe , Pavel Begunkov , Anuj Gupta , Kanchan Joshi Cc: io-uring@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH -next] io_uring: Add missing inline to io_uring_cmd_import_fixed() dummy Date: Tue, 4 Oct 2022 14:39:10 +0200 Message-Id: <7404b4a696f64e33e5ef3c5bd3754d4f26d13e50.1664887093.git.geert+renesas@glider.be> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_NONE 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 If CONFIG_IO_URING is not set: include/linux/io_uring.h:65:12: error: ‘io_uring_cmd_import_fixed’ defined but not used [-Werror=unused-function] 65 | static int io_uring_cmd_import_fixed(u64 ubuf, unsigned long len, int rw, | ^~~~~~~~~~~~~~~~~~~~~~~~~ Fix this by adding the missing "inline" keyword. Fixes: a9216fac3ed8819c ("io_uring: add io_uring_cmd_import_fixed") Signed-off-by: Geert Uytterhoeven --- include/linux/io_uring.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/io_uring.h b/include/linux/io_uring.h index e10c5cc810827ab8..43bc8a2edccf5aa3 100644 --- a/include/linux/io_uring.h +++ b/include/linux/io_uring.h @@ -62,7 +62,7 @@ static inline void io_uring_free(struct task_struct *tsk) __io_uring_free(tsk); } #else -static int io_uring_cmd_import_fixed(u64 ubuf, unsigned long len, int rw, +static inline int io_uring_cmd_import_fixed(u64 ubuf, unsigned long len, int rw, struct iov_iter *iter, void *ioucmd) { return -EOPNOTSUPP; -- 2.25.1