Commit 1f12bf86 authored by Simon Ruderich's avatar Simon Ruderich
Browse files

slsm: use -Wextra -Wconversion -Wno-unused-parameter

parent 9c4d31e9
ccflags-y := -Wextra -Wconversion -Wno-unused-parameter
obj-$(CONFIG_SECURITY_SLSM) += slsm.o
slsm-y := tree.o passtfs.o path.o lsm.o
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#pragma GCC diagnostic ignored "-Wsign-conversion"
#include <linux/binfmts.h>
#include <linux/fs.h>
#include <linux/kernel.h>
......@@ -8,6 +12,8 @@
#include <linux/socket.h>
#include <net/af_unix.h>
#pragma GCC diagnostic pop
#include "path.h"
#include "tree.h"
......
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#pragma GCC diagnostic ignored "-Wsign-conversion"
#include <linux/security.h>
#include <linux/slab.h>
#include <linux/string.h>
......@@ -7,6 +11,8 @@
#include <linux/uaccess.h>
#include <linux/lsm_hooks.h>
#pragma GCC diagnostic pop
#include "tree.h"
struct passtfs_privdata {
......
......@@ -12,6 +12,10 @@
* License.
*/
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#pragma GCC diagnostic ignored "-Wsign-conversion"
#include <linux/dcache.h>
#include <linux/magic.h>
#include <linux/mount.h>
......@@ -22,6 +26,8 @@
#include <linux/slab.h>
#include <linux/fs_struct.h>
#pragma GCC diagnostic pop
#include "path.h"
/**
......
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#pragma GCC diagnostic ignored "-Wsign-conversion"
#include <linux/slab.h>
#include <linux/string.h>
#pragma GCC diagnostic pop
#include "tree.h"
#define CHILD_CAP 4
......
#ifndef __SLSM_TREE_H
#define __SLSM_TREE_H
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#pragma GCC diagnostic ignored "-Wsign-conversion"
#include <linux/fs.h>
#include <linux/mutex.h>
#pragma GCC diagnostic pop
/**
* struct tree_node - a node in the rules tree
* @name: last component in the path leading to this node
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment