Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4064969rwd; Tue, 23 May 2023 02:33:25 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6SSenygeM7B8pR14/BXCjPisJzpiRtg070ZsHHnKrv4JZYUUL1dV3GAQC/IMrG507FGMW9 X-Received: by 2002:a05:6a21:100c:b0:101:e4f3:5336 with SMTP id nk12-20020a056a21100c00b00101e4f35336mr11084354pzb.27.1684834404803; Tue, 23 May 2023 02:33:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684834404; cv=none; d=google.com; s=arc-20160816; b=SV3vG+vqi4LN+Nd6nfZ2I3gtYrNmlNKRNQyuvOkT2z0mY/zk+GmNzoadsdrJQjVeys mWemaQfaLcBIFwHmOJkJMdKAfwnLwjpgVYoVaL7waEF9NbDmWzvAOJRRs9gG5R+UiGC+ eX78uqB+9LBCyQNs69RZhEtOQPGZqTljnD7dZSajJDWbUyrTskHCGPUIyRcFox2/Em6V Hq18sfowAJfHIKRHxlkjWrBJZ/ynoY5qErQLNy0EIwH33pin4GIGzR9VhOoTnuixQJAm lKKnMIHlSP8qflGGQjmkm6uJwaX0mEuyqiug+wWZEe4Q26NlI0Z94zE27s8sd9bmxZmV MrBw== 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=T9XFrPgIOEE3z4UkMA7mpWU3DHfciBVqdtZrptN6t1Q=; b=lg0ePaA+b3wxCCCXgUu+L1N+gp2+G7nP0pm3Ys1sJMwgcqLg2mPt88PBhfsofZAujn lRuVxZKIMuXR6PNBZq+JRQrZ1YHorCfDNCdyljhRIxCBoIi0vJSe3fP9Hn6IDKB6cxpM mgw0exK+HxL130OoU5Of6abDjJ0fy9ry465QMPKcbLX1JwIm5axr+PpOl4VNIfvKlQT0 co116fOfQnNP6LzfPqRM5+b8S32laCLauvpAsFKy5NHlRiP+bJ4ajJhvWzWsP7/BJ3x9 lGKQcaGL9GW5twMN9RvOy/TIpzCFi3ot2iFnFWV3XLRPuM9aEMxDaYzDadlVsl18g0rC 9ATg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@126.com header.s=s110527 header.b=H5oDEmCH; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=126.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 188-20020a6205c5000000b00643430939acsi6196451pff.164.2023.05.23.02.33.09; Tue, 23 May 2023 02:33:24 -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=@126.com header.s=s110527 header.b=H5oDEmCH; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=126.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235751AbjEWJ3S (ORCPT + 99 others); Tue, 23 May 2023 05:29:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51854 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230082AbjEWJ3R (ORCPT ); Tue, 23 May 2023 05:29:17 -0400 Received: from m126.mail.126.com (m126.mail.126.com [220.181.12.35]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id DDDE194; Tue, 23 May 2023 02:29:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=126.com; s=s110527; h=From:Subject:Date:Message-Id:MIME-Version: Content-Type; bh=T9XFrPgIOEE3z4UkMA7mpWU3DHfciBVqdtZrptN6t1Q=; b=H5oDEmCHE2HO7xLFiVbELyazzf7htlEKkv5cqqfqOXWOVgFzFDRYDcRT3a5tGH O21lLahNht0Ho2v2v+m8LZk0XNKZtchfizKzxaBwX2Ydm5cNUjY7OOJZTrgHBg4g 5yOWVCWYZs+48uT571jZ0vaiHNJluVKORc9yQchW+yxVQ= Received: from localhost.localdomain (unknown [116.128.244.169]) by zwqz-smtp-mta-g0-1 (Coremail) with SMTP id _____wDnJT7LhmxkKE__AA--.2945S2; Tue, 23 May 2023 17:26:35 +0800 (CST) From: lingfuyi To: asml.silence@gmail.com, axboe@kernel.dk Cc: io-uring@vger.kernel.org, linux-kernel@vger.kernel.org, lingfuyi , k2ci Subject: [PATCH] io_uring: fix compile error when CONFIG_IO_URING not set Date: Tue, 23 May 2023 17:26:29 +0800 Message-Id: <20230523092629.3402710-1-lingfuyi@126.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-CM-TRANSID: _____wDnJT7LhmxkKE__AA--.2945S2 X-Coremail-Antispam: 1Uf129KBjvdXoW7Jw4xGryfJryUKF1xJry7Jrb_yoWDXwc_u3 Z3tw1j9r4fZryIvw18Gr1IqryYgw1xZFy7Wr93Kw15ZFnrua1kG3ykZFykJrySgrs7urnr Ca95G3s7JF129jkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7xRRTa0JUUUUU== X-Originating-IP: [116.128.244.169] X-CM-SenderInfo: polqwwxx1lqiyswou0bp/1tbiuQtzR1pEAp1ACwABsN X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,SPF_HELO_NONE, SPF_PASS,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 when compile with ARCH=mips CROSS_COMPILE=mips-linux-gnu- , and CONFIG_IO_URING is not set , compile will case some error like this: drivers/nvme/host/ioctl.c:555:37: error: initialization of ‘const struct nvme_uring_cmd *’ from ‘int’ makes pointer from integer without a cast [-Werror=int-conversion] Reported-by: k2ci Signed-off-by: lingfuyi --- include/linux/io_uring.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/linux/io_uring.h b/include/linux/io_uring.h index 7fe31b2cd02f..c76809f59617 100644 --- a/include/linux/io_uring.h +++ b/include/linux/io_uring.h @@ -98,6 +98,10 @@ static inline void io_uring_files_cancel(void) static inline void io_uring_free(struct task_struct *tsk) { } +static inline const void *io_uring_sqe_cmd(const struct io_uring_sqe *sqe) +{ + return NULL; +} static inline const char *io_uring_get_opcode(u8 opcode) { return ""; -- 2.20.1