Message ID | b9178e864d6c5e06c177d53bc4cce6d689f94d78.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 t13csp1113343vqx; Wed, 13 Sep 2023 07:10:23 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGM/owiWt3zRZ5M2lPpvnM7V+R2nbY88TOjHeUp0O2bEaQ576Nmu/O4HiM9felP9u4GtBtJ X-Received: by 2002:a17:902:db03:b0:1b8:af5e:853c with SMTP id m3-20020a170902db0300b001b8af5e853cmr3916638plx.26.1694614222853; Wed, 13 Sep 2023 07:10:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694614222; cv=none; d=google.com; s=arc-20160816; b=f5dJ2IGtUqRC5NAGpv/Y954/51Ld3xvVXsCJ4HMrLj6E81LvPUbnZTu7FyAgbZlUUB 9uU3umWWMJOkWiLdUSLJfhgzRyy+C7vc5Vnm51UUvSDNR393iNY/Fdnwm/TzhY6WkB3Z tqRfz4oK39+0+d34ScnSDIy/h8a1kUeAzl81bQ5HdVU1PTy56J1Gk6k3g1smdoyqBs2i 4uvlExDmiPKnfNlfOmDlE0jHZfikhpvABQ8GipNN8enWLuOUGzY3keKPx9elXqmxs2SX 68NkUIv9RoliiSxSa3y2qU8yrJqo9KikIG7h2iZelImyddLSQSZQyGsBohCqpCrQu0Qu q7ow== 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=I80zwdN3OfuNZjSmSdEQmVrxxVvr4ycRyySugMnYfEY=; fh=fKMC3BTGjlLXl5EvEhzqt3WHCynqYJKK7wAqLAOkWUw=; b=OtXscb06HA3VUi0SQTrLGABiEW0VftXFfdmN4f6VNLzRLWApI0cZE+8DfF6C/JrG6X H6w3ItCw0a57cuMInXup6ddDBRKQO1fPO683TMHrSRt16d8TU7l59T8UiQScY/EoO8Bl KNeHKcjOCU4dKWeJs3SM8u4wKBGbwu3DLM6MN4FsRaRLDG8Z1gByg3Jy25ZWLkp+pFZn YBSJhOpi0BafPLrvtMMuRQ/KUd5g9gIa9AVvmRkYb9ErRGPfN2WZoNfYUgQZaMbrpoBu /6cJXWhsBwKkUImNymkLTl3TZvXdUkx+F1wgZCbpvkkEVW7A8SmAmrGyfKkCU41WI4s7 S1fA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id n6-20020a170903110600b001b878f9e11csi10672250plh.54.2023.09.13.07.10.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Sep 2023 07:10:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 AFE5080BB1ED; Wed, 13 Sep 2023 07:10:18 -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 S241394AbjIMOKF (ORCPT <rfc822;pwkd43@gmail.com> + 36 others); Wed, 13 Sep 2023 10:10:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53824 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241347AbjIMOJO (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 13 Sep 2023 10:09:14 -0400 Received: from riemann.telenet-ops.be (riemann.telenet-ops.be [IPv6:2a02:1800:110:4::f00:10]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9239F1FCE for <linux-kernel@vger.kernel.org>; Wed, 13 Sep 2023 07:08:53 -0700 (PDT) Received: from xavier.telenet-ops.be (xavier.telenet-ops.be [IPv6:2a02:1800:120:4::f00:14]) by riemann.telenet-ops.be (Postfix) with ESMTPS id 4Rm2PH2q0Sz4x20h for <linux-kernel@vger.kernel.org>; Wed, 13 Sep 2023 16:08:51 +0200 (CEST) Received: from ramsan.of.borg ([84.195.187.55]) by xavier.telenet-ops.be with bizsmtp id lS8q2A0021C8whw01S8q3q; Wed, 13 Sep 2023 16:08:51 +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 1qgQXe-003ctI-8w; Wed, 13 Sep 2023 16:08:47 +0200 Received: from geert by rox.of.borg with local (Exim 4.95) (envelope-from <geert@linux-m68k.org>) id 1qgQXv-00FV6L-Ja; Wed, 13 Sep 2023 16:08:47 +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 37/52] m68k: sun3/3x: Include <asm/config.h> for config_sun3*() Date: Wed, 13 Sep 2023 16:08:27 +0200 Message-Id: <b9178e864d6c5e06c177d53bc4cce6d689f94d78.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 (fry.vger.email [0.0.0.0]); Wed, 13 Sep 2023 07:10:18 -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 fry.vger.email X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1776931802867451009 X-GMAIL-MSGID: 1776931802867451009 |
Series |
m68k: W=1 fixes
|
|
Commit Message
Geert Uytterhoeven
Sept. 13, 2023, 2:08 p.m. UTC
When building with W=1: arch/m68k/sun3/config.c:123:13: warning: no previous prototype for ‘config_sun3’ [-Wmissing-prototypes] 126 | void __init config_sun3(void) | ^~~~~~~~~~~ arch/m68k/sun3x/config.c:42:13: warning: no previous prototype for ‘config_sun3x’ [-Wmissing-prototypes] 42 | void __init config_sun3x(void) | ^~~~~~~~~~~~ Fix this by including <asm/config.h> Fixes: 91d7b75a5888c182 ("m68k: Add asm/config.h") Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Acked-by: Arnd Bergmann <arnd@arndb.de> --- v2: - Add Acked-by. --- arch/m68k/sun3/config.c | 1 + arch/m68k/sun3x/config.c | 1 + 2 files changed, 2 insertions(+)
diff --git a/arch/m68k/sun3/config.c b/arch/m68k/sun3/config.c index 203f428a0344a735..b932250c9e7ffbae 100644 --- a/arch/m68k/sun3/config.c +++ b/arch/m68k/sun3/config.c @@ -32,6 +32,7 @@ #include <asm/irq.h> #include <asm/sections.h> #include <asm/sun3ints.h> +#include <asm/config.h> char sun3_reserved_pmeg[SUN3_PMEGS_NUM]; diff --git a/arch/m68k/sun3x/config.c b/arch/m68k/sun3x/config.c index 37121a0f12531fef..3a10cda636fc38fb 100644 --- a/arch/m68k/sun3x/config.c +++ b/arch/m68k/sun3x/config.c @@ -19,6 +19,7 @@ #include <asm/sun3ints.h> #include <asm/setup.h> #include <asm/oplib.h> +#include <asm/config.h> #include "time.h"