Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp2524951rdg; Mon, 14 Aug 2023 05:33:02 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG0bn8FBLQD2MKbtIqB7s1c8uKIWhfoNdC3YZ1IDVQ7QTcR+u5KgubLjA9/FarALtMjBvu2 X-Received: by 2002:ac2:4bcf:0:b0:4fe:1bca:d921 with SMTP id o15-20020ac24bcf000000b004fe1bcad921mr7660080lfq.21.1692016381984; Mon, 14 Aug 2023 05:33:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692016381; cv=none; d=google.com; s=arc-20160816; b=vJQsPh3orQvk/BijQ5caOWKf6GZR1weRWDThhJsp5H/vzgrwAyPSdsrM0dhJOYtPCy HVb44QInNirNlLs3r8m6kw8csf/GYcTvX0cqNWeTY/9Wu5IashJiL6ZVvMuXtJSHjSMH OeV7ReZF4fb/fI5JPvtDz07yuU1oFPHtAsfaisNquONnDv3H8745aqng7lfEbB6K8mlb vx+blVhLCIe18gL2Ak+4TaoxVZzAmwLr1xADa7WkAZGvriL4IGqVeAB8UliUeGLI1Jsl kv78V77heZIiingoJHdKyTZXkIHBY521SaSdNaEvzO075EwfVadOXplvaS9phMGwNv71 ecvA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:dkim-signature; bh=jL1kZwcY6dMGheLY8VT1W4i0RrpIBAIOY7mmAx3IYPo=; fh=SYIOFnU7G0Eul0wP/vmVfIqNCnAeISDzZlW1Rs3yKnI=; b=RMZmGwYU0QCGy2z3DJ75ZIWAneCXVqTtRqJ+PMXY5sCFOAP00TLTPLH9cpB7gXi7Mz LQjeKCWT4LYnc3gBWlffSHN9Dt5MAMJ34zD2a3HexsAldpt0s4cu0cjUZVVS168Q5eed /1Rfgp6vIPNVQqJazyeMgsk3B0HCT3h+0lTT0USQR7U2dnJyuayQVLIbYG25Rrh5JN9+ V/PC2rklzRB6xJiiZvltL4t4OOXFiEHavg00mPD19z7s7sWl5hb6lPtQVYN79/88YjAn 90CzlncHvUGefTcG9Gd5usYl3j7Ly+1ixT7wbwp02XfTBAX7Utd4d6XPIBLqg5K3aTbh 3ang== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=uAHti5OU; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; 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=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r14-20020aa7c14e000000b005236b793109si7791008edp.545.2023.08.14.05.32.37; Mon, 14 Aug 2023 05:33:01 -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=@suse.de header.s=susede2_rsa header.b=uAHti5OU; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; 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=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230021AbjHNL4S (ORCPT + 99 others); Mon, 14 Aug 2023 07:56:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48894 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232952AbjHNL4O (ORCPT ); Mon, 14 Aug 2023 07:56:14 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CBF3F1718 for ; Mon, 14 Aug 2023 04:55:57 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id EF9C61F383; Mon, 14 Aug 2023 11:55:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1692014142; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=jL1kZwcY6dMGheLY8VT1W4i0RrpIBAIOY7mmAx3IYPo=; b=uAHti5OULqy1iJ5qmMzTrzOF6pTrc5xqpfsWoBPDm1NJkWLKqcY0eF0MuZyco55vDqFy/3 04s0QtHEHSRP+hcqGnX8XGhcj/VrRuA2crNQfdR0/x89+A2KvGmvhUouUQqagQ0LzOYgs6 kuO68j+1j9veDlPvIVWFOpHC/4Zt0Tg= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1692014142; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=jL1kZwcY6dMGheLY8VT1W4i0RrpIBAIOY7mmAx3IYPo=; b=/BNv0d28eGiNeGRIzGncA5HIj+CcukrrsT4YlPvInlRECmfiNmi/JQX1Jspu0ikpcRa+g3 2552VMJ97kmHkoBg== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id CA617138EE; Mon, 14 Aug 2023 11:55:42 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id ENERMD4W2mRnMAAAMHmgww (envelope-from ); Mon, 14 Aug 2023 11:55:42 +0000 From: Takashi Iwai To: alsa-devel@alsa-project.org Cc: linux-kernel@vger.kernel.org, Takashi Iwai , Alexander Viro Subject: [PATCH 01/25] iov_iter: Export import_ubuf() Date: Mon, 14 Aug 2023 13:54:59 +0200 Message-Id: <20230814115523.15279-2-tiwai@suse.de> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20230814115523.15279-1-tiwai@suse.de> References: <20230814115523.15279-1-tiwai@suse.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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_PASS 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 Export import_ubuf() to be used in sound subsystem for generic memory handling as Linus suggested. It's used for constructing an iov_iter of a single segment user-space copy for PCM data. Cc: Alexander Viro Link: https://lore.kernel.org/r/CAHk-=wh-mUL6mp4chAc6E_UjwpPLyCPRCJK+iB4ZMD2BqjwGHA@mail.gmail.com Signed-off-by: Takashi Iwai --- lib/iov_iter.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/iov_iter.c b/lib/iov_iter.c index e4dc809d1075..3743bbcbbb89 100644 --- a/lib/iov_iter.c +++ b/lib/iov_iter.c @@ -1544,6 +1544,7 @@ int import_ubuf(int rw, void __user *buf, size_t len, struct iov_iter *i) iov_iter_ubuf(i, rw, buf, len); return 0; } +EXPORT_SYMBOL_GPL(import_ubuf); /** * iov_iter_restore() - Restore a &struct iov_iter to the same state as when -- 2.35.3