mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 10:37:35 +03:00
Mark functions as static
Mark functions used only in the same translation unit as static. This only includes functions that do not have a prototype in a header file either. Reviewed-by: Ryan Moeller <ryan@iXsystems.com> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Arvind Sankar <nivedita@alum.mit.edu> Closes #10470
This commit is contained in:
committed by
Brian Behlendorf
parent
1fa5c7af33
commit
65c7cc49bf
@@ -46,7 +46,7 @@ static void usage(char *);
|
||||
/*
|
||||
* psudo-randomize the buffer
|
||||
*/
|
||||
void randomize_buffer(int block_size) {
|
||||
static void randomize_buffer(int block_size) {
|
||||
int i;
|
||||
char rnd = rand() & 0xff;
|
||||
for (i = 0; i < block_size; i++)
|
||||
|
||||
@@ -918,7 +918,7 @@ enum zfs_ioc_ref {
|
||||
* Canonical reference check of /dev/zfs ioctl numbers.
|
||||
* These cannot change and new ioctl numbers must be appended.
|
||||
*/
|
||||
boolean_t
|
||||
static boolean_t
|
||||
validate_ioc_values(void)
|
||||
{
|
||||
boolean_t result = B_TRUE;
|
||||
|
||||
Reference in New Issue
Block a user