Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp5276899rwi; Mon, 17 Oct 2022 18:41:57 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6w3GkMTfomr/bDF4P4YL9lQJoxiUvCp43AkflUROXcI/nCm4C0lxAnAGMcyNJl/xfJNkKA X-Received: by 2002:a17:907:1b12:b0:72f:9b44:f9e with SMTP id mp18-20020a1709071b1200b0072f9b440f9emr418908ejc.653.1666057317578; Mon, 17 Oct 2022 18:41:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666057317; cv=none; d=google.com; s=arc-20160816; b=yM8JkvVqBS/gn1bDSXF7naRxUnQ+N1rqiAV97Y50vlgenyvw0GNOY1N+2nJU1Gp1Xr q3BUt9lQE3UVeMY/jH2+Uoe4Oniq54RBJ/I1p/Ads2726xT8GCltoXgDdKn5C67WTlBw 8lmwWJuxNdKHsRANgQn8caak6MkaGofdtbrcEuaAAgwTFlaUbFIfYWnOjuzTpdCcVne8 qEggB68kyOnLUdgsJ3/dQ8RFjumYfHSh+Q+qWdUR+FJRbN/3rL6mcusus3q+CpKPr1hf CzoyBqFtFWG3OgnmYRAsCf07AcqHf7tQ3b8lIa/ZjO3NpakrlxHig3g0xEIPZ8ZikPs+ w1jA== 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=uV6q81OymCcdkVexTTANADAFBLsnRvOk3MRLdFHtSB4=; b=TO9eWfbJfCI+0oRFmjvl2nKl7wKkRdQ+81iJblA5Q2gfEFhSSR7JY4WXX/sD4+eIku wvzBJmPqvjSToA404U0TVG1n04s3oGxde8i/u+tbC+7PRnQDl8ds02EEArN8TkzU7b76 GzHYrYDOw+1JqAXKSJ2z7AT6wiKEEtNqKxdmi6ECvE/81WF317NQ+rPhgpy+GFxZpbqd n4FOHv60+f2BReHrKC2y5EIeC6SsiteAYKS5w9ipS6grqUCcZ2iY2qBQkYwyzJMpeXjt /ytLBJ7yzxGVzUiLGkUuJAg+hjDtsPVx/L6K04GG6sh/urHogibBu6yFw3zQxa0TDDMa ApJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=LutxZg49; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n1-20020a17090625c100b007417c6edb0asi9180882ejb.402.2022.10.17.18.41.32; Mon, 17 Oct 2022 18:41:57 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=LutxZg49; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229980AbiJRAvQ (ORCPT + 99 others); Mon, 17 Oct 2022 20:51:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44774 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229969AbiJRAvJ (ORCPT ); Mon, 17 Oct 2022 20:51:09 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CAAD579626; Mon, 17 Oct 2022 17:51:07 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id B4969B81C0C; Tue, 18 Oct 2022 00:12:11 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B390DC43140; Tue, 18 Oct 2022 00:12:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1666051930; bh=0WRq8MXZM3ZDilDA1bAGWB/EzA7Q30P8KMT3E0nCaJQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LutxZg49l1xugObS7YLlhh+r4zEU8N/36HqBaFNo3+/bmbaH/15wMFuu+5n1Y3NMc GgJQHVLR5EURA2RSfDP6Ad60cPB4HB44pi1NrVRlMOSdinEk8N6xAqSyguOVFdJZId Y3Btepx88AnMR5MpGU54P0FyGvjuIWXzHSSnebaSZ8kF2l/movcLzOyr2Hj6XtNWOp s0x614XaL40oEZfr21p8J1Ulhv7AXhwCQRoZiIi0QqoK2q7wGkybYfZTRiW/hL/56T tgAtjsmXTOi156kml+qC5ygS2TGnyGvMropgnm2pWyAExsSCeFyiwwdX4wmCsuI/AJ gUu9jEZRtxfwg== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Greg Ungerer , kernel test robot , Geert Uytterhoeven , Sasha Levin , linux-m68k@lists.linux-m68k.org Subject: [PATCH AUTOSEL 4.9 4/8] m68knommu: fix non-specific 68328 choice interrupt build failure Date: Mon, 17 Oct 2022 20:11:58 -0400 Message-Id: <20221018001202.2732458-4-sashal@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20221018001202.2732458-1-sashal@kernel.org> References: <20221018001202.2732458-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Greg Ungerer [ Upstream commit 750321ace9107e103f254bf46900629ff347eb7b ] Compiling for a classic m68k non-MMU target with no specific CPU selected fails with the following error: arch/m68k/68000/ints.c: In function 'process_int': >> arch/m68k/68000/ints.c:82:30: error: 'ISR' undeclared (first use in this function) 82 | unsigned long pend = ISR; | ^~~ This interrupt handling code is specific to the 68328 family of 68000 parts. There is a couple of variants (68EZ328, 68VZ328) and the common ancestor of them the strait 68328. The code here includes a specific header for each variant type. But if none is selected then nothing is included to supply the appropriate register and bit flags defines. Rearrange the includes so that at least one type is always included. At the very least the 68328 base type should be the fallback, so make that true. Reported-by: kernel test robot Reviewed-by: Geert Uytterhoeven Signed-off-by: Greg Ungerer Signed-off-by: Sasha Levin --- arch/m68k/68000/ints.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/m68k/68000/ints.c b/arch/m68k/68000/ints.c index cda49b12d7be..f9a5ec781408 100644 --- a/arch/m68k/68000/ints.c +++ b/arch/m68k/68000/ints.c @@ -18,12 +18,12 @@ #include #include -#if defined(CONFIG_M68328) -#include -#elif defined(CONFIG_M68EZ328) +#if defined(CONFIG_M68EZ328) #include #elif defined(CONFIG_M68VZ328) #include +#else +#include #endif /* assembler routines */ -- 2.35.1