Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp2471744ybk; Mon, 11 May 2020 23:39:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz279UG8d21/6a5GyKsasFwGQFk+MuQoeDW/3UB5jeUSbJyGqmlvyuzCdZ8Tp6ScW2M+do/ X-Received: by 2002:a05:6402:3092:: with SMTP id de18mr1537786edb.109.1589265566157; Mon, 11 May 2020 23:39:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589265566; cv=none; d=google.com; s=arc-20160816; b=1AvfuhhvbT7L1MbUNVvkYei/HrAbaqQacaZmQxRfOng13MU84VClQ1QOeBa9VA1HEV XxGxkydR/9wgFWB9ppCPvrWu4V/0DhJPoO/MGnDs0s08ZUhnWhclkS1oUrSaB4Y+BvJv FnysVDhifvNgPy1hkgyaztpMzmDeJ/FdZc+TIqnABnXxieRAhiBfin+vGyhMpgNP50KL 7n2GZeXcESGZo6cy/oqfreKzaIGofWPdyBFXJGg+QwozyDym9r9vGgTVVpXwftix9/cM v5u2ivqBbEvp3wzgkb49Hbv8IIA347bbTLb0H6h4UIaPhrizPhGgaK8YRDfK8TlosuTk MO6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Uajlj0vn8iVuIWxdxvNlVpeu9pNPutcN8OXzxhnDGLU=; b=gQvZ+tOBJ5n1JxQ+r3XdvxYfWWT0oxVQ1q4K2S7aZlyONqC9YnZKlgklYp5+BcpRTk a3CBRiw0/pfgDaZ7ohr9/ixIbIq7w9Efkn2zpkI2k7bEkiqXH0/37PUSPpwn4XXi8xML hiC7OQ8jspKi/GbB+/7dC/6Gr0z7SWHmJUQBiXaSEZXIT7F6BjE6HvUFXQJuLS/L6TQO FsqCUUAF+Q5GIa5C1fON4aRyNjnEn01hjWG9XlH5uhT7NGGggAuNHDHs38hfD+J4OPLn Q4rArgZQMSAliEMg4oFlejWaycVhhl3xQxlHpaHuM7p/1UXsUgH72GtNDfAxs4CMtnsA AMBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=XLI8Ef5w; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w9si4154704eja.287.2020.05.11.23.39.03; Mon, 11 May 2020 23:39:26 -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; dkim=pass header.i=@kernel.org header.s=default header.b=XLI8Ef5w; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728803AbgELGhj (ORCPT + 99 others); Tue, 12 May 2020 02:37:39 -0400 Received: from mail.kernel.org ([198.145.29.99]:41840 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725536AbgELGhj (ORCPT ); Tue, 12 May 2020 02:37:39 -0400 Received: from localhost (unknown [213.57.247.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 8C24E20752; Tue, 12 May 2020 06:37:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1589265458; bh=XaJzdYSi4MgUFXsfxFcBr/AwcDZLznlRsdGp3exbcNM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XLI8Ef5wYzdiOUNT5ZDhMCz6RpIyQ/FIhTvFlehqtejKfgzBujoAANi1ywV5vIk8N nV+tpEiDxm2wksUhZxNFg1Q6JcXBX9OlnNFfF5nbbU+PH8Il9oyDtgf7RUAo1LrUIq DgK5hy83Lxi/GN0Uj2TYYbucRYwzlFuNSezb7Usk= From: Leon Romanovsky To: Andrew Morton , Andrey Konovalov , Andrey Ryabinin Cc: Leon Romanovsky , kasan-dev@googlegroups.com, linux-mm@kvack.org, Michal Marek , linux-kernel@vger.kernel.org Subject: [PATCH rdma-next 1/2] kasan: fix compilation warnings due to missing function prototypes Date: Tue, 12 May 2020 09:37:27 +0300 Message-Id: <20200512063728.17785-2-leon@kernel.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200512063728.17785-1-leon@kernel.org> References: <20200512063728.17785-1-leon@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Leon Romanovsky __asan_report_* function generates the following warnings while compiling kernel, add them to the internal header to be aligned with other __asan_* function prototypes. mm/kasan/generic_report.c:130:6: warning: no previous prototype for '__asan_report_load1_noabort' [-Wmissing-prototypes] 130 | void __asan_report_load##size##_noabort(unsigned long addr) \ | ^~~~~~~~~~~~~~~~~~ mm/kasan/generic_report.c:143:1: note: in expansion of macro 'DEFINE_ASAN_REPORT_LOAD' 143 | DEFINE_ASAN_REPORT_LOAD(1); | ^~~~~~~~~~~~~~~~~~~~~~~ <...> mm/kasan/generic_report.c:137:6: warning: no previous prototype for '__asan_report_store1_noabort' [-Wmissing-prototypes] 137 | void __asan_report_store##size##_noabort(unsigned long addr) \ | ^~~~~~~~~~~~~~~~~~~ mm/kasan/generic_report.c:148:1: note: in expansion of macro 'DEFINE_ASAN_REPORT_STORE' 148 | DEFINE_ASAN_REPORT_STORE(1); | ^~~~~~~~~~~~~~~~~~~~~~~~ Fixes: 0b24becc810d ("kasan: add kernel address sanitizer infrastructure") Signed-off-by: Leon Romanovsky --- mm/kasan/kasan.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/mm/kasan/kasan.h b/mm/kasan/kasan.h index e8f37199d885..d428e588c700 100644 --- a/mm/kasan/kasan.h +++ b/mm/kasan/kasan.h @@ -230,15 +230,27 @@ void __asan_load16(unsigned long addr); void __asan_store16(unsigned long addr); void __asan_load1_noabort(unsigned long addr); +void __asan_report_load1_noabort(unsigned long addr); void __asan_store1_noabort(unsigned long addr); +void __asan_report_store1_noabort(unsigned long addr); void __asan_load2_noabort(unsigned long addr); +void __asan_report_load2_noabort(unsigned long addr); void __asan_store2_noabort(unsigned long addr); +void __asan_report_store2_noabort(unsigned long addr); void __asan_load4_noabort(unsigned long addr); +void __asan_report_load4_noabort(unsigned long addr); void __asan_store4_noabort(unsigned long addr); +void __asan_report_store4_noabort(unsigned long addr); void __asan_load8_noabort(unsigned long addr); +void __asan_report_load8_noabort(unsigned long addr); void __asan_store8_noabort(unsigned long addr); +void __asan_report_store8_noabort(unsigned long addr); void __asan_load16_noabort(unsigned long addr); +void __asan_report_load16_noabort(unsigned long addr); void __asan_store16_noabort(unsigned long addr); +void __asan_report_store16_noabort(unsigned long addr); +void __asan_report_load_n_noabort(unsigned long addr, size_t size); +void __asan_report_store_n_noabort(unsigned long addr, size_t size); void __asan_set_shadow_00(const void *addr, size_t size); void __asan_set_shadow_f1(const void *addr, size_t size); -- 2.26.2