Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp154870rdb; Thu, 8 Feb 2024 01:51:25 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUEAaTvmTVN3RgQT2mBUrEB7axiT+ZnjiemSTQifW01FUVvemHqCEYqCRmgaymtoX1HFYXboUIr14MpbWHW261306YHk+6dRpG8Dv95DA== X-Google-Smtp-Source: AGHT+IFqb9SxbwjPXYyA8o7QY87iI1uyH8hzOjs7u+4YjcYGFGmHTRppL1YdwWNlCQ66+HfBNVOe X-Received: by 2002:a05:6a21:78a1:b0:19e:40ea:11f6 with SMTP id bf33-20020a056a2178a100b0019e40ea11f6mr9466089pzc.17.1707385884881; Thu, 08 Feb 2024 01:51:24 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707385884; cv=pass; d=google.com; s=arc-20160816; b=YFyyouL8pXgLGgPdmPCQDgU0PtBjxi6wmRRjUVZv2LQkXvdQ7qpIoP57bQtma6eHPP eJVJpFEQ5Jezktt4URo+mdQ8F17RfEo1Pj2P+cME2bNP0UCJTkHC8gqLLwlM9wUzuDsV K+1Q+U6Y2SbFwyWpFF+RJN5hikvgxmIu6Cm6gFilRU63YfyITCJaXj4PRnLPO2FkLuvw YyC+Z+MJnSx6bXt6OdK4MQ5bbfIoMapXk9qX3jbpfOJ2zpK+CNVU3GEBTFHTkiXFEBEd WO/leJ6+h7U+2CLYHtkCogNKvHakthygImMTAcB3vOn5z6drtXIJ0GGJjWB/cKG/kzlJ zUqA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :feedback-id:dkim-signature:dkim-signature; bh=CtbWDd3+TzkoLPwwunkgdRlj99pZzuVSHHCYDHMn/68=; fh=GqhJbrs6jpFdnGzWgRPp6n7tZJhSFHgf7DZs/fmR1JM=; b=NZUBEqG37ozlojjs4viBRvmrv9JQRKDsjaCd2S2YEKBheZ3NQzLWv6qGt9KVh6a1xJ NRbRyF3TmxeoQaxM4vOLSUWqreaUy/WQR33RiApoFcPj2X/XJU4FNwVfzAN7UboLjC+s w1F2x0LEcr+yRhjH3jJX38l4hl7eKFtGOF/iXJl5kbynTF+0qtDod6qHHaUK1rK1O9KI BiTnegvS18YCecOVOB2F5vL3zhWhYj5nBUWr36eZCWOX5F9+vyD4j94GoSf3NFXNw2sf fwPpsDdJsmD8XhtDxVRikPt5LCto8zI4XxKTF+GN5nqvKQnYJjWqn2s+Khi+Pk2VaqN4 rMFw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@flygoat.com header.s=fm1 header.b=qhH84FVz; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b="pvB/VrnQ"; arc=pass (i=1 spf=pass spfdomain=flygoat.com dkim=pass dkdomain=flygoat.com dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=flygoat.com); spf=pass (google.com: domain of linux-kernel+bounces-57761-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-57761-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=flygoat.com X-Forwarded-Encrypted: i=2; AJvYcCUp7a8QmUm/7QiHzktivnHDf3u+ls3Sz0atm5Sl/CHoibkXBXRcQqn7qy6xlPh9zWRpC6QFnQgOWUqaXzWTCXswC9RP8ToarZEA+GXGUQ== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id c18-20020a170903235200b001d71313a515si4057219plh.269.2024.02.08.01.51.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 01:51:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-57761-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@flygoat.com header.s=fm1 header.b=qhH84FVz; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b="pvB/VrnQ"; arc=pass (i=1 spf=pass spfdomain=flygoat.com dkim=pass dkdomain=flygoat.com dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=flygoat.com); spf=pass (google.com: domain of linux-kernel+bounces-57761-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-57761-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=flygoat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 9BF46B26C66 for ; Thu, 8 Feb 2024 09:38:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 29FE86A8B7; Thu, 8 Feb 2024 09:38:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=flygoat.com header.i=@flygoat.com header.b="qhH84FVz"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="pvB/VrnQ" Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3F8FE6A03A; Thu, 8 Feb 2024 09:38:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=66.111.4.28 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707385087; cv=none; b=AVbnSpjY8xHl+c9kCv0VmMkJwPN4kLEHCqxO2tMX1LlgwVG9WupxmFBrABEKf7ykJzLHknyKXe3S+xEtDkvAJ21oLj4054/MSN0Ilr1kb4Pb9X1jBo1bVXPWicsMtKSoXhWrBSa3QTNQUEoM84ZLw6GMOJ1d6Dtkdc+FqkHOnt4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707385087; c=relaxed/simple; bh=KenGFnO8V0sQCx2w3bRvDG2ZWIiPIufLamD4iu2CQCQ=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=ii3bpD2PktdNJs1DFAZrA/ENCHtbEbjZwa68MnaVAGiQkT8w8Fr1KMKe0NnRi2kkFQulJ8Ny/gwvES8eH3IaSYG0otT21YJL0d1S6//lZZ463KjyMRBe5cYPURXsDhJi3rbtzk0c3NVOfKiBNoeG5jEt/eZyrmg0BR++1yIthQs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=flygoat.com; spf=pass smtp.mailfrom=flygoat.com; dkim=pass (2048-bit key) header.d=flygoat.com header.i=@flygoat.com header.b=qhH84FVz; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=pvB/VrnQ; arc=none smtp.client-ip=66.111.4.28 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=flygoat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flygoat.com Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 2A7C45C014B; Thu, 8 Feb 2024 04:38:05 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Thu, 08 Feb 2024 04:38:05 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=flygoat.com; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm1; t=1707385085; x=1707471485; bh=CtbWDd3+TzkoLPwwunkgdRlj99pZzuVSHHCYDHMn/68=; b= qhH84FVzUTJh9XebWTQFbO6NX77+WhPzit5IDV2+MRnsh81Q29yoE/Kl5AOjDkJe a3/PWVlkQYP8Vaxl5PEd+II19BneLoABpRELqEKGs5+F4iAESqAdrbehBsCIRCIu SESRvGww0SkTD8q19qS+nq7fpS/OMoLe4NCmtHN7Umvszz8Pcu/+zpR/rWhCXkuZ lpK9ChYv6PRlKsajiTvN5BPDYtqqQa/IKmMP6fEzj16gDBgsIfgcmLRBkiyYFfUY 8a2R1HzIF+LgxKSfBLpNLvzr+eiTmNIE7uZjB9gzjsI3/ecHNeafnzkGZJRn/DPR pN3JtJQ03Dgc8zTs+1q1vA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1707385085; x= 1707471485; bh=CtbWDd3+TzkoLPwwunkgdRlj99pZzuVSHHCYDHMn/68=; b=p vB/VrnQkypUQ39IhkDvl7Y2tRQjEJTG74bNIapjp5SMTajzYA7hed0Yi/k7q4MDD uA8XzzlH+AKju8RzSnivTtDH4y/XM8i5CTj89Tj71Bhcl+BaVELs01qGKJiwC0AW jQNLIVw4f2+4s61DQvaXLGgSW8KB5gInE8sHr3DHeAiMprACSQ8yNLZR56clgSxh dcbVIPkpcPu/80JdW1pN3MN/g4KIGXM4HMeoSlRGp65Bj3uBzhcCd+p70lwIN2TY JdxodqGsKx/7Y/hD/KJC2wHxcQF9tY62RAW5CFmw7C4C3FH6QNmBNkd/TATy3XNc tg7ZEZb/9EUxIwlMGNAVA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrtdeggddtgecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefkffggfgfuvfevfhfhjggtgfesthekredttddvjeenucfhrhhomheplfhirgig uhhnucgjrghnghcuoehjihgrgihunhdrhigrnhhgsehflhihghhorghtrdgtohhmqeenuc ggtffrrghtthgvrhhnpeelueffheehgeeluedvlefghfeukeejteeuveeuhffftdfguefh gefgueekffeftdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh hrohhmpehjihgrgihunhdrhigrnhhgsehflhihghhorghtrdgtohhm X-ME-Proxy: Feedback-ID: ifd894703:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 8 Feb 2024 04:38:03 -0500 (EST) Message-ID: Date: Thu, 8 Feb 2024 09:38:02 +0000 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v7 12/14] MIPS: Share generic kernel code with other architecture Content-Language: en-US To: Gregory CLEMENT , Paul Burton , Thomas Bogendoerfer , linux-mips@vger.kernel.org, Rob Herring , Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Vladimir Kondratiev , Tawfik Bayouk , Alexandre Belloni , =?UTF-8?Q?Th=C3=A9o_Lebrun?= , Thomas Petazzoni References: <20240205153503.574468-1-gregory.clement@bootlin.com> <20240205153503.574468-13-gregory.clement@bootlin.com> From: Jiaxun Yang Autocrypt: addr=jiaxun.yang@flygoat.com; keydata= xsFNBFnp/kwBEADEHKlSYJNLpFE1HPHfvsxjggAIK3ZtHTj5iLuRkEHDPiyyiLtmIgimmD3+ XN/uu2k1FFbrYiYgMjpGCXeRtdCLqkd+g9V4kYMlgi4MPHLt3X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Lj/ycBL8ujDYZ2tA9HhEaO4dW6zsQyt1v6mZffpWK+ZXb Cs8oFeACbrtNFF0nhNI6LUPH3oaVOkUoRQUYDuX6mIc4VTwMA8EoZlueKEHfZIKrRf2QYbOZ HVO98ZmbMeg= In-Reply-To: <20240205153503.574468-13-gregory.clement@bootlin.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 在 2024/2/5 15:34, Gregory CLEMENT 写道: > Some architectures might seek to utilize a significant portion of the > generic kernel code while maintaining independence from the generic > kernel due to specific peculiarities. > > This patch allows for the reuse of core code, preventing unnecessary > duplication. > > Suggested-by: Thomas Bogendoerfer > Signed-off-by: Gregory CLEMENT Reviewed-by: Jiaxun Yang Thanks! - Jiaxun > --- > arch/mips/Kbuild | 1 + > arch/mips/Kconfig | 3 +++ > arch/mips/generic/Makefile | 6 +++--- > 3 files changed, 7 insertions(+), 3 deletions(-) > > diff --git a/arch/mips/Kbuild b/arch/mips/Kbuild > index af2967bffb73d..d683993ed331c 100644 > --- a/arch/mips/Kbuild > +++ b/arch/mips/Kbuild > @@ -17,6 +17,7 @@ obj- := $(platform-y) > # mips object files > # The object files are linked as core-y files would be linked > > +obj-y += generic/ > obj-y += kernel/ > obj-y += mm/ > obj-y += net/ > diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig > index 797ae590ebdba..5549d26448941 100644 > --- a/arch/mips/Kconfig > +++ b/arch/mips/Kconfig > @@ -109,6 +109,9 @@ config MIPS_FIXUP_BIGPHYS_ADDR > config MIPS_GENERIC > bool > > +config MACH_GENERIC_CORE > + bool > + > config MACH_INGENIC > bool > select SYS_SUPPORTS_32BIT_KERNEL > diff --git a/arch/mips/generic/Makefile b/arch/mips/generic/Makefile > index e37a59bae0a62..56011d738441f 100644 > --- a/arch/mips/generic/Makefile > +++ b/arch/mips/generic/Makefile > @@ -4,9 +4,9 @@ > # Author: Paul Burton > # > > -obj-y += init.o > -obj-y += irq.o > -obj-y += proc.o > +obj-$(CONFIG_MACH_GENERIC_CORE) += init.o > +obj-$(CONFIG_MACH_GENERIC_CORE) += irq.o > +obj-$(CONFIG_MACH_GENERIC_CORE) += proc.o > > obj-$(CONFIG_YAMON_DT_SHIM) += yamon-dt.o > obj-$(CONFIG_LEGACY_BOARD_SEAD3) += board-sead3.o -- --- Jiaxun Yang