From patchwork Thu Sep 7 13:41:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 137682 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ab0a:0:b0:3f2:4152:657d with SMTP id m10csp77885vqo; Thu, 7 Sep 2023 11:30:33 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFeW42RfpsA3U2fwPv+Cs79GhOQVX5ZQqsRMjCdDmcn9ppoa+55iulvFCyT9dTGOIhz+68Y X-Received: by 2002:a17:90a:ce8c:b0:262:ecd9:ed09 with SMTP id g12-20020a17090ace8c00b00262ecd9ed09mr328613pju.33.1694111433309; Thu, 07 Sep 2023 11:30:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694111433; cv=none; d=google.com; s=arc-20160816; b=fC8ZfGLKjLVTcprRryx74tT99YjhraBF60j2gahJfgo+lC3l7Vl0tRKbxgn+jlc4MH O1D6XKM/wvLgJfYK3IJZ21J+SLYJKHAa0X6Dy/M45K1WfdfSud9Bubj3q8wM1lgQlsXb X7dqoVHFnAqSOEAr7xei+JCYmDo3EBMkQAx6vUkdJXAnUpcS3fBKBOUrXRVk/tIhmuk/ ALh6rOFkmCDMPSPCVRZ/Qgg6dBcYJHa0fCoXGgfaJAfZGT97jWx1US9hwBMRegbDTWG5 NMflZAlg+dl8cuzqYysHn3n3ZfeAB4VBh9J6SZ6IlCalXodXtWy7zXRdoFfwYJq13/4+ +fyw== 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=RpwNICKWtg5V9cVHZRnOPfdYZVzOeigGhFpQcXEIFNc=; fh=fKMC3BTGjlLXl5EvEhzqt3WHCynqYJKK7wAqLAOkWUw=; b=OZYv4D7I3uU3xfP7OzELoSanJp9zDk69fjw2UWq6/vA2dfaF4wYV5BsbP5PITDr8W/ BYiybjWXjnIgsx9mlbFURLIqCoBx9rDhEUHhse3JM0VVNExyqOF0zmQtcNf6z2pVm1eV Yap2kQKP5paC2d2ltKjLVssKtc2lo2tXAMlwt8smuObHmNZJspnJQ9KcdBumbIY2js3b g8nIgDTPNtnKmbB7W+WbwpGab2YNbSNdY7E0nT+ZdAaSk/rjkZfKPNQiSWn99qx4UQAc WvAqF6uK+MSRZtmqR/lpk/94W4xyN7QCjpYUBT2PiugCs79GEdeLSzFS5PNhNgIHiG2+ rucQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y17-20020a637d11000000b005638179cecasi219957pgc.833.2023.09.07.11.30.05; Thu, 07 Sep 2023 11:30:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236773AbjIGQNR (ORCPT + 99 others); Thu, 7 Sep 2023 12:13:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58498 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237849AbjIGQMm (ORCPT ); Thu, 7 Sep 2023 12:12:42 -0400 Received: from cantor.telenet-ops.be (cantor.telenet-ops.be [IPv6:2a02:1800:120:4::f00:10]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7407055AB for ; Thu, 7 Sep 2023 09:09:44 -0700 (PDT) Received: from andre.telenet-ops.be (andre.telenet-ops.be [IPv6:2a02:1800:120:4::f00:15]) by cantor.telenet-ops.be (Postfix) with ESMTPS id 4RhL6D02ddz4xT4y for ; Thu, 7 Sep 2023 15:43:00 +0200 (CEST) Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed40:c214:2eac:128d:f67e]) by andre.telenet-ops.be with bizsmtp id j1hx2A00L2mGBSJ011hxG2; Thu, 07 Sep 2023 15:41:59 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtp (Exim 4.95) (envelope-from ) id 1qeFGQ-002m8Q-8f; Thu, 07 Sep 2023 15:41:57 +0200 Received: from geert by rox.of.borg with local (Exim 4.95) (envelope-from ) id 1qeFGf-00CMft-GC; Thu, 07 Sep 2023 15:41:57 +0200 From: Geert Uytterhoeven To: linux-m68k@lists.linux-m68k.org Cc: Arnd Bergmann , Finn Thain , Michael Schmitz , Philip Blundell , Greg Ungerer , Joshua Thompson , Sam Creasey , Laurent Vivier , linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH 11/52] m68k: mm: Include for hwreg_() Date: Thu, 7 Sep 2023 15:41:12 +0200 Message-Id: X-Mailer: git-send-email 2.34.1 In-Reply-To: References: MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1776404590416611947 X-GMAIL-MSGID: 1776404590416611947 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 . Signed-off-by: Geert Uytterhoeven --- 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 +#include + int hwreg_present(volatile void *regp) { int ret = 0;