Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp2053664pxf; Sat, 27 Mar 2021 01:18:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyVwtY/KQf0nhDyykMg2XHXB6AsqE4i0sJ6Dg1hg0lTur0+dD/7b7X+VXkD4xbDbYR5RHt4 X-Received: by 2002:a17:906:3488:: with SMTP id g8mr18794761ejb.282.1616833091077; Sat, 27 Mar 2021 01:18:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616833091; cv=none; d=google.com; s=arc-20160816; b=vu9sftMCTpZg68CtKngA6/f5j0/djdpUn9zdh3G31BHMhm8Hkmarfz6jku9xPjc28X /MbbBpKseKi+S8C08Hm0wbRASRwtW0DxA3k7bqb/GUfsrfK+qy2v6cZbaSvMzP1tdK59 NoNqK3eojKyx8aoii2+1IrJ6a4AjmP4tv+xxN5AZRePNG4ZSAsxT/sseul5QU9oHul6H lBYyzMvoQ8onyE0GdG9Pg9jxT05a+XLW/F2LbAM9HKCTmZMR4MttHkI7V67pcQi5UryL moDTMnIZb5swHcciudkMTr/lVV7Q26HtSwb3DD5zljXXcNY5hoAad17xD3H5y0lfeaQu 5LEA== 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=ZOgZ7yHve/lwLRAan25kUihsxHWEX9iEtPScoT/wf14=; b=FWa4Aew/hGvpZNjz/KLUEBi/eOypsWlu+hYVPho8TYiBatkRClX3ZwGpOYpY32nvez ljNEOCq4HQJc30+HgMMCiJ5kaqIUl5AEGTePa1z6NC2U+n5n2jgFv0LRMd2sOy25KEaT H16/xlyMVSCHNpSduH8hB1GBfUPfffv7fAOT7P7wSeHroNnCnMTGxJzhOKd1Dcd8L4w4 42WqWWL6WQsDsk6UddHNmwqg7yIbdKft38NHDkoeI1iEexurYR/ldh64zD7bYL08iiNi 7aYSK/tngUhtWuJVDEHIouSg64BpjuX+r/wbIi7Rei+6szg2uWNeN4RTfYQfwDWzALlX w0KQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j7si2753191ejm.492.2021.03.27.01.17.49; Sat, 27 Mar 2021 01:18:11 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231529AbhC0IAx (ORCPT + 99 others); Sat, 27 Mar 2021 04:00:53 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:14163 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230323AbhC0IAM (ORCPT ); Sat, 27 Mar 2021 04:00:12 -0400 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4F6rmH3QpqznWQv; Sat, 27 Mar 2021 15:57:35 +0800 (CST) Received: from huawei.com (10.175.113.32) by DGGEMS413-HUB.china.huawei.com (10.3.19.213) with Microsoft SMTP Server id 14.3.498.0; Sat, 27 Mar 2021 15:59:59 +0800 From: Shixin Liu To: Russell King CC: , , , Shixin Liu Subject: [PATCH] arm: kprobes: fix an old-style function definition Date: Sat, 27 Mar 2021 16:30:20 +0800 Message-ID: <20210327083020.1922590-1-liushixin2@huawei.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.113.32] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org I got a warning when compile kernel: arch/arm/probes/kprobes/core.c:465:12: warning: old-style function definition [-Wold-style-definition] 465 | int __init arch_init_kprobes() | ^~~~~~~~~~~~~~~~~ Fix it by add parameter 'void'. Signed-off-by: Shixin Liu --- arch/arm/probes/kprobes/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/probes/kprobes/core.c b/arch/arm/probes/kprobes/core.c index a9653117ca0d..e513d8a46776 100644 --- a/arch/arm/probes/kprobes/core.c +++ b/arch/arm/probes/kprobes/core.c @@ -462,7 +462,7 @@ static struct undef_hook kprobes_arm_break_hook = { #endif /* !CONFIG_THUMB2_KERNEL */ -int __init arch_init_kprobes() +int __init arch_init_kprobes(void) { arm_probes_decode_init(); #ifdef CONFIG_THUMB2_KERNEL -- 2.25.1