Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp219471pxb; Thu, 21 Apr 2022 22:08:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx9Oy36zj9AfojDcil6ao+jDQbWlZNgG0oICnodB4ZBkcfKfj59CELwxR9nD2StNtvqjlbs X-Received: by 2002:a17:906:a05a:b0:6ef:a44d:2f46 with SMTP id bg26-20020a170906a05a00b006efa44d2f46mr2566902ejb.192.1650604108460; Thu, 21 Apr 2022 22:08:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650604108; cv=none; d=google.com; s=arc-20160816; b=eeBu+/wTnwLtsXMrNzGM3fgyG3NYu2hKUG9Eg6am463CXhLO35Jeb14VkwmKc+t/9Z MgEETG9HJREbeMchL2GWLbW+/X8aKvSELoFCr7UpEznKTueBl+BLO3JsNeObQcPzGe9L xvFFa73w9GuL9SQzBtJV1VWu6dgynlhl5XhnFOZYCUY5equjqIUdD44nlxkdzY8fnADL Shj/6HiP5PWOiv9vuC6BwHDNqLo7QVUievZ1KWw+nqXdQ7sdezIpiI2q9fWihixeBhzf av/PEDi79zb4oKko6bTnw5BKgLIoxhB1zn5JUFS71jkbwuvnRnpD6CgkTNOjwT++fViZ tUOQ== 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; bh=6TLmqQdfX4YkZzTLAR0rl7KghqQxWM9b+06k+s5s34E=; b=sUbNGNSnmuFRwCaoKlkPUcBRQ/hHG7B/kaSERUIGjcP8vDGuCpdkv4GYsNH/2aEE7+ 2OQ+t8U9L2Mk9+yuJY+JHUzaSVNvUTh0xMck7nOPOB1x/DZDZXUDrH6jjQDKBcZQbrIH aFjWe6ItmaE2JLQuqngWOnXPBzcKFQ+burczYNZ0pyoHxINiUOTpEoL6f5VwMRJDCGuZ 9h5JYrEmi/S64mPzNpcWrg01fwfKGMdEd1PIjX5oBtY/k+7iMkv3VYg2xonBQK747Zyc ksZMiVIEf/PHDZjEU4JimGojtJvpcsTmAZdtrUA1yODEUMghPQ0RGZgtoMx0ZolpZ2d4 ipPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=KgB0v4Cy; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 8-20020a170906024800b006e6dd216cb7si6477173ejl.799.2022.04.21.22.07.49; Thu, 21 Apr 2022 22:08:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-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=@gmail.com header.s=20210112 header.b=KgB0v4Cy; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238399AbiDUF01 (ORCPT + 99 others); Thu, 21 Apr 2022 01:26:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56812 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233065AbiDUF0Z (ORCPT ); Thu, 21 Apr 2022 01:26:25 -0400 Received: from mail-pg1-x52d.google.com (mail-pg1-x52d.google.com [IPv6:2607:f8b0:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7053EDFAB; Wed, 20 Apr 2022 22:23:37 -0700 (PDT) Received: by mail-pg1-x52d.google.com with SMTP id r83so3741221pgr.2; Wed, 20 Apr 2022 22:23:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=6TLmqQdfX4YkZzTLAR0rl7KghqQxWM9b+06k+s5s34E=; b=KgB0v4CyaZksf924eGUftWqDhu3QSb+51gwgaAmkENKuVy4kX4gevOjinZmqPsAt2b 7fee0go6Eih8NF7lBpDgm2lG5zWcEDvjZoJ1M9x3mWVeypJM0EV0ESMU7MmeI8po1fsR vk0683XdRkQ+mY1SzWIpa8K+/UBrTsQzO/4smYGYJ0Zr1bEw8MNqF+CfwtfEykCkYS95 Iyr21DNJm8IwZtknLm0M4TLceXs0Smb3xnuYot1T7kzT0DBvmTwhFpl5qD9ySnb6Si62 NmuBgHZ0KGOqQuwXwcFC1s6EJGjqXJ4SxDZ2mRMcFFWxUZJ/WAxY0PhTZmTKv/HFbxfR UYww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=6TLmqQdfX4YkZzTLAR0rl7KghqQxWM9b+06k+s5s34E=; b=ioxZt7UqIIjmfwZPKZWwzGQ4gG3rll9jjnb3OZFil/MqIFTT/1A28YUzXwkzku+ROg yufH0SqOJKuDw4TW3C3AdC5MveVHRFomGWYhtuZXwpgNn7b7njwzgIYmejmH22gEO4Tm fmAMJRBKH58NxzcD5Lm2gGwNp1m/PeHoUPxYRYMi9siY5JVWgCoEM7ULp3F39E8kfR05 VIlqa0Q0g1PBY8/k6CAUyWqfEKV+1/HzAc4CcsztgRyYUH4FBES86ooLVLeoWvCTOfQW JNaoZgY3Nw3Ba+6K0NnUF9L8g8pByvvXy1m2RACZHqNw1zaG6eUs5+ZO1tbiWeNEh0nq UeEA== X-Gm-Message-State: AOAM533wOkl4kWlpepS/Zh4Sk9hlZJ567stTkHXrVVjrhG+Kr+JA18T5 gIgLorFMSmI2VpGrzRLZFZa7vkdcKY8= X-Received: by 2002:a63:f047:0:b0:399:24bb:7fa1 with SMTP id s7-20020a63f047000000b0039924bb7fa1mr21948501pgj.397.1650518616846; Wed, 20 Apr 2022 22:23:36 -0700 (PDT) Received: from localhost ([2406:7400:63:fca5:5639:1911:2ab6:cfe6]) by smtp.gmail.com with ESMTPSA id u10-20020a17090a890a00b001cb14240c4csm1119494pjn.1.2022.04.20.22.23.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Apr 2022 22:23:36 -0700 (PDT) From: Ritesh Harjani To: linux-fscrypt@vger.kernel.org, linux-ext4@vger.kernel.org Cc: Eric Biggers , Theodore Ts'o , Jan Kara , Ritesh Harjani Subject: [RFC 1/6] fscrypt: Provide definition of fscrypt_set_test_dummy_encryption Date: Thu, 21 Apr 2022 10:53:17 +0530 Message-Id: X-Mailer: git-send-email 2.31.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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, RCVD_IN_DNSWL_NONE,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-ext4@vger.kernel.org Provide definition of fscrypt_set_test_dummy_encryption() when CONFIG_FS_ENCRYPTION is disabled. This then returns -EOPNOTSUPP. Signed-off-by: Ritesh Harjani --- include/linux/fscrypt.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/linux/fscrypt.h b/include/linux/fscrypt.h index 91ea9477e9bd..18dd6048bab3 100644 --- a/include/linux/fscrypt.h +++ b/include/linux/fscrypt.h @@ -467,6 +467,13 @@ static inline int fscrypt_set_context(struct inode *inode, void *fs_data) struct fscrypt_dummy_policy { }; +static inline int fscrypt_set_test_dummy_encryption(struct super_block *sb, + const char *arg, + struct fscrypt_dummy_policy *dummy_policy) +{ + return -EOPNOTSUPP; +} + static inline void fscrypt_show_test_dummy_encryption(struct seq_file *seq, char sep, struct super_block *sb) -- 2.31.1