Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1720823pxj; Wed, 19 May 2021 12:17:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzBMOv17Dul4zBusFhP69OqbOQ+1UAKol0ZuM5TR6hKr8O7ZPh71Dp8DAuvNKEKTbcHukRv X-Received: by 2002:a05:6402:34c8:: with SMTP id w8mr598849edc.243.1621451870662; Wed, 19 May 2021 12:17:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621451870; cv=none; d=google.com; s=arc-20160816; b=u9oz3NGyk+1upouEdGcXSVt6oANJoAq/yDoaRO+YfrQQaeRkQkDFsy7le+9PYZpA/v luNMrwPj3exxAWdYP2pi78a9kBwIulXfyUZSZF/U6qzyGxV3o3CjNez51XNtWXe1ZxXf lGv9KhDAxWBA5empY9tl5kGqIR3BiOfE4GGt4cHTgcvzs1wU0z+nVUStopLC2cgCDiP1 GS+/A1yoUP69v7WfNBRcgc3jkOmRLHNfbjB/gitFLn8RLGAxr9kNo5U029CuF9cYWBsB C/KE2EFAzuJNaGoS1GnaxERHGg6p8CmXVYlW/wIX3eg39rY1n4kuNg0i+hgc2LdCjdzu QqMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=cBTkwNkqtl0bwo7RL+1MKuzKVHLBRT54Q8u/UF9Imvk=; b=pbuupO0l4Sas1aCrKfrD0augKXazy89RE/zT1QFzyjLnxtZ5QTcAWNE9c4/Wyyojqw EmrTs7J18a8fSpp/0HieCo3n1t27nOvDVCBkuNvG5St8vYBYMn5Dnxjcc3Hivt8DEIT9 F7m6WgTfTNXqMnrqZonBksHQMD2Pn9iXw8nlxMqGoFTCEdMK1bUQNMnjgNW0Zz4wvQVu kcO3FDLVdMg4aNKbLqnWtRATmXc8sDSzRGsBrhjZqIChzw4dh1d+zzbgg6Q+yP6ibnNk hUgnQ3x4VC2nssaQDSj3AI0YsCvgyEyYdv65R2G5WeryLjPOm5M4poZsiZUs4eIz7L/7 O4xg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id eb8si129101edb.103.2021.05.19.12.17.24; Wed, 19 May 2021 12:17:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232045AbhESG3d (ORCPT + 99 others); Wed, 19 May 2021 02:29:33 -0400 Received: from lucky1.263xmail.com ([211.157.147.131]:45764 "EHLO lucky1.263xmail.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230037AbhESG3c (ORCPT ); Wed, 19 May 2021 02:29:32 -0400 Received: from localhost (unknown [192.168.167.69]) by lucky1.263xmail.com (Postfix) with ESMTP id 6E6ACBA2D7; Wed, 19 May 2021 22:15:07 +0800 (CST) X-MAIL-GRAY: 0 X-MAIL-DELIVERY: 1 X-ADDR-CHECKED: 0 X-ANTISPAM-LEVEL: 2 X-ABS-CHECKED: 0 Received: from localhost.localdomain (unknown [111.207.172.18]) by smtp.263.net (postfix) whith ESMTP id P31907T140446896060160S1621405685834478_; Wed, 19 May 2021 14:28:06 +0800 (CST) X-IP-DOMAINF: 1 X-UNIQUE-TAG: X-RL-SENDER: zhaoxiao@uniontech.com X-SENDER: zhaoxiao@uniontech.com X-LOGIN-NAME: zhaoxiao@uniontech.com X-FST-TO: linux-mips@vger.kernel.org X-RCPT-COUNT: 4 X-SENDER-IP: 111.207.172.18 X-ATTACHMENT-NUM: 0 X-System-Flag: 0 From: zhaoxiao To: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Cc: tsbogend@alpha.franken.de, zhaoxiao Subject: [PATCH] arch/mips/kernel/asm-offsets.c: Make local functions static Date: Wed, 19 May 2021 14:28:04 +0800 Message-Id: <20210519062804.30047-1-zhaoxiao@uniontech.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fixes the following W=1 kernel build warning(s): arch/mips/kernel/asm-offsets.c:26:6: warning: no previous prototype for 'output_ptreg_defines' [-Wmissing-prototypes] void output_ptreg_defines(void) ^~~~~~~~~~~~~~~~~~~~ arch/mips/kernel/asm-offsets.c:78:6: warning: no previous prototype for 'output_task_defines' [-Wmissing-prototypes] void output_task_defines(void) ^~~~~~~~~~~~~~~~~~~ arch/mips/kernel/asm-offsets.c:93:6: warning: no previous prototype for 'output_thread_info_defines' [-Wmissing-prototypes] void output_thread_info_defines(void) ^~~~~~~~~~~~~~~~~~~~~~~~~~ arch/mips/kernel/asm-offsets.c:109:6: warning: no previous prototype for 'output_thread_defines' [-Wmissing-prototypes] void output_thread_defines(void) ^~~~~~~~~~~~~~~~~~~~~ arch/mips/kernel/asm-offsets.c:137:6: warning: no previous prototype for 'output_thread_fpu_defines' [-Wmissing-prototypes] void output_thread_fpu_defines(void) ^~~~~~~~~~~~~~~~~~~~~~~~~ arch/mips/kernel/asm-offsets.c:180:6: warning: no previous prototype for 'output_mm_defines' [-Wmissing-prototypes] void output_mm_defines(void) ^~~~~~~~~~~~~~~~~ arch/mips/kernel/asm-offsets.c:241:6: warning: no previous prototype for 'output_sc_defines' [-Wmissing-prototypes] void output_sc_defines(void) ^~~~~~~~~~~~~~~~~ arch/mips/kernel/asm-offsets.c:254:6: warning: no previous prototype for 'output_signal_defined' [-Wmissing-prototypes] void output_signal_defined(void) ^~~~~~~~~~~~~~~~~~~~~ arch/mips/kernel/asm-offsets.c:347:6: warning: no previous prototype for 'output_kvm_defines' [-Wmissing-prototypes] void output_kvm_defines(void) Signed-off-by: zhaoxiao --- arch/mips/kernel/asm-offsets.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/arch/mips/kernel/asm-offsets.c b/arch/mips/kernel/asm-offsets.c index 5735b2cd6f2a..2dc1ecb12c00 100644 --- a/arch/mips/kernel/asm-offsets.c +++ b/arch/mips/kernel/asm-offsets.c @@ -23,7 +23,7 @@ #include -void output_ptreg_defines(void) +static void output_ptreg_defines(void) { COMMENT("MIPS pt_regs offsets."); OFFSET(PT_R0, pt_regs, regs[0]); @@ -75,7 +75,7 @@ void output_ptreg_defines(void) BLANK(); } -void output_task_defines(void) +static void output_task_defines(void) { COMMENT("MIPS task_struct offsets."); OFFSET(TASK_STATE, task_struct, state); @@ -90,7 +90,7 @@ void output_task_defines(void) BLANK(); } -void output_thread_info_defines(void) +static void output_thread_info_defines(void) { COMMENT("MIPS thread_info offsets."); OFFSET(TI_TASK, thread_info, task); @@ -106,7 +106,7 @@ void output_thread_info_defines(void) BLANK(); } -void output_thread_defines(void) +static void output_thread_defines(void) { COMMENT("MIPS specific thread_struct offsets."); OFFSET(THREAD_REG16, task_struct, thread.reg16); @@ -134,7 +134,7 @@ void output_thread_defines(void) } #ifdef CONFIG_MIPS_FP_SUPPORT -void output_thread_fpu_defines(void) +static void output_thread_fpu_defines(void) { OFFSET(THREAD_FPU, task_struct, thread.fpu); @@ -177,7 +177,7 @@ void output_thread_fpu_defines(void) } #endif -void output_mm_defines(void) +static void output_mm_defines(void) { COMMENT("Size of struct page"); DEFINE(STRUCT_PAGE_SIZE, sizeof(struct page)); @@ -216,7 +216,7 @@ void output_mm_defines(void) } #ifdef CONFIG_32BIT -void output_sc_defines(void) +static void output_sc_defines(void) { COMMENT("Linux sigcontext offsets."); OFFSET(SC_REGS, sigcontext, sc_regs); @@ -238,7 +238,7 @@ void output_sc_defines(void) #endif #ifdef CONFIG_64BIT -void output_sc_defines(void) +static void output_sc_defines(void) { COMMENT("Linux sigcontext offsets."); OFFSET(SC_REGS, sigcontext, sc_regs); @@ -251,7 +251,7 @@ void output_sc_defines(void) } #endif -void output_signal_defined(void) +static void output_signal_defined(void) { COMMENT("Linux signal numbers."); DEFINE(_SIGHUP, SIGHUP); @@ -344,7 +344,7 @@ void output_pm_defines(void) #endif #ifdef CONFIG_MIPS_FP_SUPPORT -void output_kvm_defines(void) +static void output_kvm_defines(void) { COMMENT(" KVM/MIPS Specific offsets. "); -- 2.20.1