lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:   Sun, 2 Oct 2022 23:29:38 +0800
From:   kernel test robot <lkp@...el.com>
To:     David Howells <dhowells@...hat.com>
Cc:     llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
        Ammar Faizi <ammarfaizi2@...weeb.org>,
        GNU/Weeb Mailing List <gwml@...r.gnuweeb.org>,
        linux-kernel@...r.kernel.org
Subject: [ammarfaizi2-block:dhowells/linux-fs/rxrpc-ringless-2 4/21]
 net/rxrpc/net_ns.c:104:2: error: call to undeclared function
 'proc_create_net_single_write'; ISO C99 and later do not support implicit
 function declarations

tree:   https://github.com/ammarfaizi2/linux-block dhowells/linux-fs/rxrpc-ringless-2
head:   aa169b82970ee3a28536a72e5008190796625570
commit: bf9ab219b6a6e2270b91811e5611b0c50a9ce9ce [4/21] rxrpc: Add stats procfile and DATA packet stats
config: hexagon-randconfig-r041-20221002
compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 791a7ae1ba3efd6bca96338e10ffde557ba83920)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://github.com/ammarfaizi2/linux-block/commit/bf9ab219b6a6e2270b91811e5611b0c50a9ce9ce
        git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block
        git fetch --no-tags ammarfaizi2-block dhowells/linux-fs/rxrpc-ringless-2
        git checkout bf9ab219b6a6e2270b91811e5611b0c50a9ce9ce
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=hexagon SHELL=/bin/bash net/rxrpc/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@...el.com>

All errors (new ones prefixed by >>):

>> net/rxrpc/net_ns.c:104:2: error: call to undeclared function 'proc_create_net_single_write'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
           proc_create_net_single_write("stats", S_IFREG | 0644, rxnet->proc_net,
           ^
   1 error generated.


vim +/proc_create_net_single_write +104 net/rxrpc/net_ns.c

    39	
    40	/*
    41	 * Initialise a per-network namespace record.
    42	 */
    43	static __net_init int rxrpc_init_net(struct net *net)
    44	{
    45		struct rxrpc_net *rxnet = rxrpc_net(net);
    46		int ret, i;
    47	
    48		rxnet->live = true;
    49		get_random_bytes(&rxnet->epoch, sizeof(rxnet->epoch));
    50		rxnet->epoch |= RXRPC_RANDOM_EPOCH;
    51	
    52		INIT_LIST_HEAD(&rxnet->calls);
    53		spin_lock_init(&rxnet->call_lock);
    54		atomic_set(&rxnet->nr_calls, 1);
    55	
    56		atomic_set(&rxnet->nr_conns, 1);
    57		INIT_LIST_HEAD(&rxnet->conn_proc_list);
    58		INIT_LIST_HEAD(&rxnet->service_conns);
    59		rwlock_init(&rxnet->conn_lock);
    60		INIT_WORK(&rxnet->service_conn_reaper,
    61			  rxrpc_service_connection_reaper);
    62		timer_setup(&rxnet->service_conn_reap_timer,
    63			    rxrpc_service_conn_reap_timeout, 0);
    64	
    65		atomic_set(&rxnet->nr_client_conns, 0);
    66		rxnet->kill_all_client_conns = false;
    67		spin_lock_init(&rxnet->client_conn_cache_lock);
    68		spin_lock_init(&rxnet->client_conn_discard_lock);
    69		INIT_LIST_HEAD(&rxnet->idle_client_conns);
    70		INIT_WORK(&rxnet->client_conn_reaper,
    71			  rxrpc_discard_expired_client_conns);
    72		timer_setup(&rxnet->client_conn_reap_timer,
    73			    rxrpc_client_conn_reap_timeout, 0);
    74	
    75		INIT_HLIST_HEAD(&rxnet->local_endpoints);
    76		mutex_init(&rxnet->local_mutex);
    77	
    78		hash_init(rxnet->peer_hash);
    79		spin_lock_init(&rxnet->peer_hash_lock);
    80		for (i = 0; i < ARRAY_SIZE(rxnet->peer_keepalive); i++)
    81			INIT_LIST_HEAD(&rxnet->peer_keepalive[i]);
    82		INIT_LIST_HEAD(&rxnet->peer_keepalive_new);
    83		timer_setup(&rxnet->peer_keepalive_timer,
    84			    rxrpc_peer_keepalive_timeout, 0);
    85		INIT_WORK(&rxnet->peer_keepalive_work, rxrpc_peer_keepalive_worker);
    86		rxnet->peer_keepalive_base = ktime_get_seconds();
    87	
    88		ret = -ENOMEM;
    89		rxnet->proc_net = proc_net_mkdir(net, "rxrpc", net->proc_net);
    90		if (!rxnet->proc_net)
    91			goto err_proc;
    92	
    93		proc_create_net("calls", 0444, rxnet->proc_net, &rxrpc_call_seq_ops,
    94				sizeof(struct seq_net_private));
    95		proc_create_net("conns", 0444, rxnet->proc_net,
    96				&rxrpc_connection_seq_ops,
    97				sizeof(struct seq_net_private));
    98		proc_create_net("peers", 0444, rxnet->proc_net,
    99				&rxrpc_peer_seq_ops,
   100				sizeof(struct seq_net_private));
   101		proc_create_net("locals", 0444, rxnet->proc_net,
   102				&rxrpc_local_seq_ops,
   103				sizeof(struct seq_net_private));
 > 104		proc_create_net_single_write("stats", S_IFREG | 0644, rxnet->proc_net,
   105					     rxrpc_stats_show, rxrpc_stats_clear, NULL);
   106		return 0;
   107	
   108	err_proc:
   109		rxnet->live = false;
   110		return ret;
   111	}
   112	

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

View attachment "config" of type "text/plain" (115753 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ