pfk_ext4_deinit() is called from init code and we throw away __exit marked code when modules are built-in. Remove the __exit markings here so that we can always call this function even from __init code. Similarly for pfk_ecryptfs_deinit(). Change-Id: I80a3304d84cdf18772879efe6c4a955d873b89c4 Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
37 lines
1.1 KiB
C
37 lines
1.1 KiB
C
/* Copyright (c) 2015-2017, The Linux Foundation. All rights reserved.
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 and
|
|
* only version 2 as published by the Free Software Foundation.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*/
|
|
|
|
#ifndef _PFK_EXT4_H_
|
|
#define _PFK_EXT4_H_
|
|
|
|
#include <linux/types.h>
|
|
#include <linux/fs.h>
|
|
#include <crypto/ice.h>
|
|
#include "pfk_internal.h"
|
|
|
|
bool pfk_is_ext4_type(const struct inode *inode);
|
|
|
|
int pfk_ext4_parse_inode(const struct bio *bio,
|
|
const struct inode *inode,
|
|
struct pfk_key_info *key_info,
|
|
enum ice_cryto_algo_mode *algo,
|
|
bool *is_pfe);
|
|
|
|
bool pfk_ext4_allow_merge_bio(const struct bio *bio1,
|
|
const struct bio *bio2, const struct inode *inode1,
|
|
const struct inode *inode2);
|
|
|
|
int __init pfk_ext4_init(void);
|
|
|
|
void pfk_ext4_deinit(void);
|
|
|
|
#endif /* _PFK_EXT4_H_ */
|