Message ID | 20230920052139.10570-12-rdunlap@infradead.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:172:b0:3f2:4152:657d with SMTP id h50csp4100661vqi; Wed, 20 Sep 2023 05:30:47 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE7pYbdQIkPCO8Jnzu6wXGCb7yrRTzQsmxxmlj40C5RMEQw8PaLKTaoDGxemvfcR1QSzEpJ X-Received: by 2002:a17:90b:916:b0:274:4f21:deae with SMTP id bo22-20020a17090b091600b002744f21deaemr2200832pjb.35.1695213047455; Wed, 20 Sep 2023 05:30:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695213047; cv=none; d=google.com; s=arc-20160816; b=oxQEZ8sSOXIcfj2nsLfkJNfmhrbrbz0de/CV1XYd1ffrnqxeVL75TkfP6ogGNSwYo3 kayEGb/xOxa/VODrqTkOKRrJZpaBNMV2+7V7J0zStvoR3CVruCGhS/RitnUImnRUU3/j WEN1BP0j8O8/Ra+J4qsD58RW5NvjZ/vtv8TrA3vBekFpVQd1fioiP5UR9q3KyIXlH1WB F1TgLAjleZ1+gPDXj7cMMgwXVHKXfMUZFqJQAe5CloRr5iF/ikA1QtI8EHT48TrcpW7p JJaLwWk0rSV3mm6JNa+dAzMlDXXGXJRFCXN232otQoEg8akbSVngjSwIulf4wYoNJ0DQ LQnQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=u3Ft1l1JDv7ZC52Lq7+Ymsf40ejM5vNmM+ncxv9CXLE=; fh=6/+MrGEwXu3chX+JgIyVPR9luFinEXEbVHdRWlFWSv8=; b=0ABTFIwQ8IzUiW/gFzsXncCGsELFhak+ilThPxPdblT6i02jIPKWTq/H7EaU12rNU1 uRi63hnMrFV3tMPeY40G5YgA7tADOetmtuhUAnZYywgbKlUGG8VGTWw0f75RjzvKyC9S DmMkbTfyfBnhgdcHK8/3CjTkSt1I6VBQmzha+vATrmcFMCNjUSgXAvl4SCCy5uca4W8o pVpqzvR4Ep8r1Oru63iP6/fZ+cK3ESGDQsbCM14Pb5erbBTeZFevL8Iz45Bv0Et3dM2q 67HaS9LT2d4yhKYGc4hsSNgzUem4H8T7vA0bemxyANinjAXJf7lZL9cXcs1Dek2jxcNm vbOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=oUraPWiA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id s6-20020a17090a948600b00276971af989si1361002pjo.190.2023.09.20.05.30.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Sep 2023 05:30:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=oUraPWiA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id C2AFD82B2E52; Tue, 19 Sep 2023 22:22:34 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232723AbjITFWY (ORCPT <rfc822;toshivichauhan@gmail.com> + 26 others); Wed, 20 Sep 2023 01:22:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47796 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232520AbjITFVv (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 20 Sep 2023 01:21:51 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 86C56CE for <linux-kernel@vger.kernel.org>; Tue, 19 Sep 2023 22:21:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description; bh=u3Ft1l1JDv7ZC52Lq7+Ymsf40ejM5vNmM+ncxv9CXLE=; b=oUraPWiAz2WkKj3ieKbjfyRNMB ybzOBWZlLYsFk4UpVQw+IylNiJG6UcwMPV5L90XGa2hLnUv0jfPUFDG7esxrqFg11xqsp6K+vA57h iZySrxGh1VKm0Eg50/ud38QMQ+zcGUIX8cONeTVUNlOXJl3fS8tOXMD/gJfqo7rCKhsYgDlxtj2ZU VZBjA316DqchJJajOvPZfcDiCcU1G79WEEvMCEL/V/M61vcbEVIp1CWO4VH4/Slcs+/PJt/2HPhSB NjtYAfukYaPTn238BlKVZXYuOhDoZxMfq87qtNhX71ay2FX3VdQvUKyyDcaf2ljYKMc6YaSq3OYkR WHc49Gxg==; Received: from [2601:1c2:980:9ec0::9fed] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1qipej-001tym-11; Wed, 20 Sep 2023 05:21:45 +0000 From: Randy Dunlap <rdunlap@infradead.org> To: linux-kernel@vger.kernel.org Cc: Randy Dunlap <rdunlap@infradead.org>, Chris Zankel <chris@zankel.net>, Max Filippov <jcmvbkbc@gmail.com> Subject: [PATCH 11/16] xtensa: hw_breakpoint: include header for missing prototype Date: Tue, 19 Sep 2023 22:21:34 -0700 Message-ID: <20230920052139.10570-12-rdunlap@infradead.org> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20230920052139.10570-1-rdunlap@infradead.org> References: <20230920052139.10570-1-rdunlap@infradead.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Tue, 19 Sep 2023 22:22:34 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777559716769318915 X-GMAIL-MSGID: 1777559716769318915 |
Series |
xtensa: fix W=1 build warnings
|
|
Commit Message
Randy Dunlap
Sept. 20, 2023, 5:21 a.m. UTC
Add the prototype for restore_dbreak() to <asm/hw_breakpoint.h> and use
that header in hw_breakpoint.c to prevent a build warning:
arch/xtensa/kernel/hw_breakpoint.c:263:6: warning: no previous prototype for 'restore_dbreak' [-Wmissing-prototypes]
263 | void restore_dbreak(void)
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Chris Zankel <chris@zankel.net>
Cc: Max Filippov <jcmvbkbc@gmail.com>
---
arch/xtensa/include/asm/hw_breakpoint.h | 1 +
arch/xtensa/kernel/hw_breakpoint.c | 1 +
2 files changed, 2 insertions(+)
diff -- a/arch/xtensa/include/asm/hw_breakpoint.h b/arch/xtensa/include/asm/hw_breakpoint.h --- a/arch/xtensa/include/asm/hw_breakpoint.h +++ b/arch/xtensa/include/asm/hw_breakpoint.h @@ -48,6 +48,7 @@ void arch_uninstall_hw_breakpoint(struct void hw_breakpoint_pmu_read(struct perf_event *bp); int check_hw_breakpoint(struct pt_regs *regs); void clear_ptrace_hw_breakpoint(struct task_struct *tsk); +void restore_dbreak(void); #else diff -- a/arch/xtensa/kernel/hw_breakpoint.c b/arch/xtensa/kernel/hw_breakpoint.c --- a/arch/xtensa/kernel/hw_breakpoint.c +++ b/arch/xtensa/kernel/hw_breakpoint.c @@ -13,6 +13,7 @@ #include <linux/percpu.h> #include <linux/perf_event.h> #include <asm/core.h> +#include <asm/hw_breakpoint.h> /* Breakpoint currently in use for each IBREAKA. */ static DEFINE_PER_CPU(struct perf_event *, bp_on_reg[XCHAL_NUM_IBREAK]);