SPL_LINUX_TRY_COMPILE([
#include <asm/atomic.h>
],[
- atomic64_t *ptr;
+ atomic64_t *ptr __attribute__ ((unused));
],[
have_atomic64_t=yes
AC_DEFINE(HAVE_ATOMIC64_T, 1,
SPL_LINUX_TRY_COMPILE([
#include <linux/types.h>
],[
- uintptr_t *ptr;
+ uintptr_t *ptr __attribute__ ((unused));
],[
AC_MSG_RESULT([yes])
AC_DEFINE(HAVE_UINTPTR_T, 1,
SPL_LINUX_TRY_COMPILE([
#include <linux/workqueue.h>
],[
- struct work_struct work;
+ struct work_struct work __attribute__ ((unused));
INIT_WORK(&work, NULL, NULL);
],[
AC_MSG_RESULT(yes)
SPL_LINUX_TRY_COMPILE([
#include <linux/sysctl.h>
],[
- return register_sysctl_table(NULL,0);
+ (void) register_sysctl_table(NULL, 0);
],[
AC_MSG_RESULT(yes)
AC_DEFINE(HAVE_2ARGS_REGISTER_SYSCTL, 1,
SPL_LINUX_TRY_COMPILE([
#include <linux/namei.h>
],[
- struct nameidata nd;
+ struct nameidata nd __attribute__ ((unused));
nd.path.mnt = NULL;
nd.path.dentry = NULL;
SPL_LINUX_TRY_COMPILE([
#include <linux/sysctl.h>
],[
- struct ctl_table ctl;
+ struct ctl_table ctl __attribute__ ((unused));
ctl.ctl_name = 0;
],[
AC_MSG_RESULT(yes)
SPL_LINUX_TRY_COMPILE([
#include <linux/time.h>
],[
- struct timespec a, b, c = { 0 };
+ struct timespec a = { 0 };
+ struct timespec b = { 0 };
+ struct timespec c __attribute__ ((unused));
c = timespec_sub(a, b);
],[
AC_MSG_RESULT(yes)
SPL_LINUX_TRY_COMPILE([
#include <linux/utsname.h>
],[
- struct new_utsname *a = init_utsname();
+ struct new_utsname *a __attribute__ ((unused));
+ a = init_utsname();
],[
AC_MSG_RESULT(yes)
AC_DEFINE(HAVE_INIT_UTSNAME, 1, [init_utsname() is available])
#endif
],[
struct files_struct *files = current->files;
- struct fdtable *fdt = files_fdtable(files);
+ struct fdtable *fdt __attribute__ ((unused));
+ fdt = files_fdtable(files);
],[
AC_MSG_RESULT(yes)
AC_DEFINE(HAVE_FILES_FDTABLE, 1, [files_fdtable() is available])
SPL_LINUX_TRY_COMPILE([
#include <linux/slab.h>
],[
- void *a = kmalloc_node(1, GFP_KERNEL, 0);
+ void *a __attribute__ ((unused));
+ a = kmalloc_node(1, GFP_KERNEL, 0);
],[
AC_MSG_RESULT(yes)
AC_DEFINE(HAVE_KMALLOC_NODE, 1, [kmalloc_node() is available])
SPL_LINUX_TRY_COMPILE([
#include <linux/mutex.h>
],[
- struct mutex mtx;
+ struct mutex mtx __attribute__ ((unused));
mtx.owner = NULL;
],[
AC_MSG_RESULT(yes)
SPL_LINUX_TRY_COMPILE([
#include <linux/mm.h>
],[
- unsigned long state;
+ unsigned long state __attribute__ ((unused));
state = global_page_state(0);
],[
AC_MSG_RESULT(yes)
SPL_LINUX_TRY_COMPILE([
#include <linux/mm.h>
],[
- enum zone_stat_item zsi;
+ enum zone_stat_item zsi __attribute__ ((unused));
zsi = NR_FREE_PAGES;
],[
AC_MSG_RESULT(yes)
SPL_LINUX_TRY_COMPILE([
#include <linux/mm.h>
],[
- enum zone_stat_item zsi;
+ enum zone_stat_item zsi __attribute__ ((unused));
zsi = NR_INACTIVE;
],[
AC_MSG_RESULT(yes)
SPL_LINUX_TRY_COMPILE([
#include <linux/mm.h>
],[
- enum zone_stat_item zsi;
+ enum zone_stat_item zsi __attribute__ ((unused));
zsi = NR_INACTIVE_ANON;
],[
AC_MSG_RESULT(yes)
SPL_LINUX_TRY_COMPILE([
#include <linux/mm.h>
],[
- enum zone_stat_item zsi;
+ enum zone_stat_item zsi __attribute__ ((unused));
zsi = NR_INACTIVE_FILE;
],[
AC_MSG_RESULT(yes)
SPL_LINUX_TRY_COMPILE([
#include <linux/mm.h>
],[
- enum zone_stat_item zsi;
+ enum zone_stat_item zsi __attribute__ ((unused));
zsi = NR_ACTIVE;
],[
AC_MSG_RESULT(yes)
SPL_LINUX_TRY_COMPILE([
#include <linux/mm.h>
],[
- enum zone_stat_item zsi;
+ enum zone_stat_item zsi __attribute__ ((unused));
zsi = NR_ACTIVE_ANON;
],[
AC_MSG_RESULT(yes)
SPL_LINUX_TRY_COMPILE([
#include <linux/mm.h>
],[
- enum zone_stat_item zsi;
+ enum zone_stat_item zsi __attribute__ ((unused));
zsi = NR_ACTIVE_FILE;
],[
AC_MSG_RESULT(yes)
SPL_LINUX_TRY_COMPILE([
#include <linux/cred.h>
],[
- struct cred *cr;
+ struct cred *cr __attribute__ ((unused));
cr = NULL;
],[
AC_MSG_RESULT(yes)
main (void)
{
- atomic64_t *ptr;
+ atomic64_t *ptr __attribute__ ((unused));
;
return 0;
main (void)
{
- uintptr_t *ptr;
+ uintptr_t *ptr __attribute__ ((unused));
;
return 0;
main (void)
{
- struct work_struct work;
+ struct work_struct work __attribute__ ((unused));
INIT_WORK(&work, NULL, NULL);
;
main (void)
{
- return register_sysctl_table(NULL,0);
+ (void) register_sysctl_table(NULL, 0);
;
return 0;
main (void)
{
- struct nameidata nd;
+ struct nameidata nd __attribute__ ((unused));
nd.path.mnt = NULL;
nd.path.dentry = NULL;
main (void)
{
- struct ctl_table ctl;
+ struct ctl_table ctl __attribute__ ((unused));
ctl.ctl_name = 0;
;
main (void)
{
- struct timespec a, b, c = { 0 };
+ struct timespec a = { 0 };
+ struct timespec b = { 0 };
+ struct timespec c __attribute__ ((unused));
c = timespec_sub(a, b);
;
main (void)
{
- struct new_utsname *a = init_utsname();
+ struct new_utsname *a __attribute__ ((unused));
+ a = init_utsname();
;
return 0;
{
struct files_struct *files = current->files;
- struct fdtable *fdt = files_fdtable(files);
+ struct fdtable *fdt __attribute__ ((unused));
+ fdt = files_fdtable(files);
;
return 0;
main (void)
{
- void *a = kmalloc_node(1, GFP_KERNEL, 0);
+ void *a __attribute__ ((unused));
+ a = kmalloc_node(1, GFP_KERNEL, 0);
;
return 0;
main (void)
{
- struct mutex mtx;
+ struct mutex mtx __attribute__ ((unused));
mtx.owner = NULL;
;
main (void)
{
- unsigned long state;
+ unsigned long state __attribute__ ((unused));
state = global_page_state(0);
;
main (void)
{
- enum zone_stat_item zsi;
+ enum zone_stat_item zsi __attribute__ ((unused));
zsi = NR_FREE_PAGES;
;
main (void)
{
- enum zone_stat_item zsi;
+ enum zone_stat_item zsi __attribute__ ((unused));
zsi = NR_INACTIVE;
;
main (void)
{
- enum zone_stat_item zsi;
+ enum zone_stat_item zsi __attribute__ ((unused));
zsi = NR_INACTIVE_ANON;
;
main (void)
{
- enum zone_stat_item zsi;
+ enum zone_stat_item zsi __attribute__ ((unused));
zsi = NR_INACTIVE_FILE;
;
main (void)
{
- enum zone_stat_item zsi;
+ enum zone_stat_item zsi __attribute__ ((unused));
zsi = NR_ACTIVE;
;
main (void)
{
- enum zone_stat_item zsi;
+ enum zone_stat_item zsi __attribute__ ((unused));
zsi = NR_ACTIVE_ANON;
;
main (void)
{
- enum zone_stat_item zsi;
+ enum zone_stat_item zsi __attribute__ ((unused));
zsi = NR_ACTIVE_FILE;
;
main (void)
{
- struct cred *cr;
+ struct cred *cr __attribute__ ((unused));
cr = NULL;
;
main (void)
{
- atomic64_t *ptr;
+ atomic64_t *ptr __attribute__ ((unused));
;
return 0;
main (void)
{
- uintptr_t *ptr;
+ uintptr_t *ptr __attribute__ ((unused));
;
return 0;
main (void)
{
- struct work_struct work;
+ struct work_struct work __attribute__ ((unused));
INIT_WORK(&work, NULL, NULL);
;
main (void)
{
- return register_sysctl_table(NULL,0);
+ (void) register_sysctl_table(NULL, 0);
;
return 0;
main (void)
{
- struct nameidata nd;
+ struct nameidata nd __attribute__ ((unused));
nd.path.mnt = NULL;
nd.path.dentry = NULL;
main (void)
{
- struct ctl_table ctl;
+ struct ctl_table ctl __attribute__ ((unused));
ctl.ctl_name = 0;
;
main (void)
{
- struct timespec a, b, c = { 0 };
+ struct timespec a = { 0 };
+ struct timespec b = { 0 };
+ struct timespec c __attribute__ ((unused));
c = timespec_sub(a, b);
;
main (void)
{
- struct new_utsname *a = init_utsname();
+ struct new_utsname *a __attribute__ ((unused));
+ a = init_utsname();
;
return 0;
{
struct files_struct *files = current->files;
- struct fdtable *fdt = files_fdtable(files);
+ struct fdtable *fdt __attribute__ ((unused));
+ fdt = files_fdtable(files);
;
return 0;
main (void)
{
- void *a = kmalloc_node(1, GFP_KERNEL, 0);
+ void *a __attribute__ ((unused));
+ a = kmalloc_node(1, GFP_KERNEL, 0);
;
return 0;
main (void)
{
- struct mutex mtx;
+ struct mutex mtx __attribute__ ((unused));
mtx.owner = NULL;
;
main (void)
{
- unsigned long state;
+ unsigned long state __attribute__ ((unused));
state = global_page_state(0);
;
main (void)
{
- enum zone_stat_item zsi;
+ enum zone_stat_item zsi __attribute__ ((unused));
zsi = NR_FREE_PAGES;
;
main (void)
{
- enum zone_stat_item zsi;
+ enum zone_stat_item zsi __attribute__ ((unused));
zsi = NR_INACTIVE;
;
main (void)
{
- enum zone_stat_item zsi;
+ enum zone_stat_item zsi __attribute__ ((unused));
zsi = NR_INACTIVE_ANON;
;
main (void)
{
- enum zone_stat_item zsi;
+ enum zone_stat_item zsi __attribute__ ((unused));
zsi = NR_INACTIVE_FILE;
;
main (void)
{
- enum zone_stat_item zsi;
+ enum zone_stat_item zsi __attribute__ ((unused));
zsi = NR_ACTIVE;
;
main (void)
{
- enum zone_stat_item zsi;
+ enum zone_stat_item zsi __attribute__ ((unused));
zsi = NR_ACTIVE_ANON;
;
main (void)
{
- enum zone_stat_item zsi;
+ enum zone_stat_item zsi __attribute__ ((unused));
zsi = NR_ACTIVE_FILE;
;
main (void)
{
- struct cred *cr;
+ struct cred *cr __attribute__ ((unused));
cr = NULL;
;