Message ID | fbd87d8e8d1e8cbe7d56941a8a1d7d82b53010d0.1694613528.git.geert@linux-m68k.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9ecd:0:b0:3f2:4152:657d with SMTP id t13csp1117374vqx; Wed, 13 Sep 2023 07:15:49 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEHXn8SjInWlYQ+f7XcoXqHksgYgNX1Ec7gujRD2qgCvyRTV3I/QSje9dNrZ0dWlbRZQobF X-Received: by 2002:a17:902:d2cd:b0:1c3:ed30:ce06 with SMTP id n13-20020a170902d2cd00b001c3ed30ce06mr1302143plc.17.1694614549071; Wed, 13 Sep 2023 07:15:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694614549; cv=none; d=google.com; s=arc-20160816; b=0iPcmKCLVPSEkeFrwD75AoyKwHoICSeKpTT9r0U0Bovu/+OQhOovqbPVoqXBgkZN6/ T65JGtQT9xAsvFGYepofqjmDU4Yrmdh282UA2rdZYEqwRQ5/KkLzEN+aaGhH7HEyo0FG NqBu72x/stgsc5kEDXa5kZNb9TTzQkJDdj82OnuYKSsseUqj1MnPr1Y10JPKVyUr0A8i HEZDelncXq8GkBkO9OZlUvwKStH2osT3AG4zNF4iPSNtIRlnFFOazlQQCvW1Wag28Ggj q3KGJRE1jAlDx0hhf5SSnHlsKHrbUF75B/lv22owaruqKYx9KhjyQaTBcV0xNGfbP/Wu DVTA== 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; bh=VxJCcOfRrpUr2/YLTho5FG6dcaeNbPuiPqUSsV84Hik=; fh=fKMC3BTGjlLXl5EvEhzqt3WHCynqYJKK7wAqLAOkWUw=; b=OB6neyVw0REE4atCDWNybDsrA5jLsYunRlS+Gaiax/doA8fcMineuL7nQEGKTPRMM4 0BtUEQrinHnKRucluySWZW1L3/ScGE/qcaFkqWdwo8z17iNzElnsGPxApH8r+6q3svri 5KXSP0PBZlxQtE+DqlV4/Hhi/oCG2th0a16QkC8k9FzFakstgESCLxJitMPel6g+XFav SEVCTZr/CH5jViA1Q7/EPGSUEJ+d4uo+ra4hb4awknKTiCDNZbVzIAfWcw9lo5maeV2J RI9nimtquJ8ZLeRmTn1sLw94Jm0yaODHMiKv9QvyeSoR7B0BlEkc7z7y8P7/h10P9tpw NvJQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id z1-20020a170903018100b001bb3406a5f7si10729108plg.11.2023.09.13.07.15.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Sep 2023 07:15:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 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 morse.vger.email (Postfix) with ESMTP id A915680225A2; Wed, 13 Sep 2023 07:10:22 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241535AbjIMOKN (ORCPT <rfc822;pwkd43@gmail.com> + 36 others); Wed, 13 Sep 2023 10:10:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53866 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241356AbjIMOJP (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 13 Sep 2023 10:09:15 -0400 Received: from albert.telenet-ops.be (albert.telenet-ops.be [IPv6:2a02:1800:110:4::f00:1a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B4A2D1BD0 for <linux-kernel@vger.kernel.org>; Wed, 13 Sep 2023 07:08:52 -0700 (PDT) Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed40:f674:9611:cd05:f25a]) by albert.telenet-ops.be with bizsmtp id lS8m2A00m3fvA4V06S8n44; Wed, 13 Sep 2023 16:08:48 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtp (Exim 4.95) (envelope-from <geert@linux-m68k.org>) id 1qgQXd-003cre-GK; Wed, 13 Sep 2023 16:08:46 +0200 Received: from geert by rox.of.borg with local (Exim 4.95) (envelope-from <geert@linux-m68k.org>) id 1qgQXu-00FV4E-Rl; Wed, 13 Sep 2023 16:08:46 +0200 From: Geert Uytterhoeven <geert@linux-m68k.org> To: linux-m68k@lists.linux-m68k.org Cc: Arnd Bergmann <arnd@arndb.de>, Finn Thain <fthain@linux-m68k.org>, Michael Schmitz <schmitzmic@gmail.com>, Philip Blundell <philb@gnu.org>, Greg Ungerer <gerg@linux-m68k.org>, Joshua Thompson <funaho@jurai.org>, Sam Creasey <sammy@sammy.net>, Laurent Vivier <laurent@vivier.eu>, linux-kernel@vger.kernel.org, Geert Uytterhoeven <geert@linux-m68k.org> Subject: [PATCH v2 11/52] m68k: mm: Include <asm/hwtest.h> for hwreg_() Date: Wed, 13 Sep 2023 16:08:01 +0200 Message-Id: <fbd87d8e8d1e8cbe7d56941a8a1d7d82b53010d0.1694613528.git.geert@linux-m68k.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <cover.1694613528.git.geert@linux-m68k.org> References: <cover.1694613528.git.geert@linux-m68k.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 (morse.vger.email [0.0.0.0]); Wed, 13 Sep 2023 07:10:22 -0700 (PDT) X-Spam-Status: No, score=-0.8 required=5.0 tests=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 morse.vger.email X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1776932145340202031 X-GMAIL-MSGID: 1776932145340202031 |
Series |
m68k: W=1 fixes
|
|
Commit Message
Geert Uytterhoeven
Sept. 13, 2023, 2:08 p.m. UTC
When building with W=1: arch/m68k/mm/hwtest.c:29:5: warning: no previous prototype for ‘hwreg_present’ [-Wmissing-prototypes] 29 | int hwreg_present(volatile void *regp) | ^~~~~~~~~~~~~ arch/m68k/mm/hwtest.c:62:5: warning: no previous prototype for ‘hwreg_write’ [-Wmissing-prototypes] 62 | int hwreg_write(volatile void *regp, unsigned short val) | ^~~~~~~~~~~ Fix this by including <asm/hwtest.h>. Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Acked-by: Arnd Bergmann <arnd@arndb.de> --- v2: - Add Acked-by. --- arch/m68k/mm/hwtest.c | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/arch/m68k/mm/hwtest.c b/arch/m68k/mm/hwtest.c index fe99aa99987e9c38..8ee7a336868868bb 100644 --- a/arch/m68k/mm/hwtest.c +++ b/arch/m68k/mm/hwtest.c @@ -26,6 +26,8 @@ #include <linux/module.h> +#include <asm/hwtest.h> + int hwreg_present(volatile void *regp) { int ret = 0;