Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp4139480imw; Tue, 12 Jul 2022 02:35:30 -0700 (PDT) X-Google-Smtp-Source: AGRyM1um49IhZhs/M8Wy+BRmWg9OaFuosk0EBPDxxQDEj/U6sKBHSE8FOz/TTdbo/4g+Bhh10PsJ X-Received: by 2002:a05:6a00:2407:b0:528:5bbc:aa0d with SMTP id z7-20020a056a00240700b005285bbcaa0dmr22572883pfh.40.1657618530125; Tue, 12 Jul 2022 02:35:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657618530; cv=none; d=google.com; s=arc-20160816; b=YbW6ZkvcZRyRfuv7Ky8ev6PM1cPRWMGGQoteHJlIzpVEhLdURS+w4zbDBGbEddvSWL w4ZrGdSvkoWdAZCJNwt45R9NMPkTGvhiPJPMIXzwBCtInymG9l6a+0i2/oL4xu9f5Y9k e1vXYz7wCeT7SbtMfwVLkUEw9xA/CSorvWVBHxSmS8X4qQsgdpPq6/RaonIGFIst0Rme QPReZ77mbp+Mg3GHSJDINBevwL974z1ahp9oVmba+54FFRWiCGW5t4IXO7ZlEmZurdNo C+X7gBjes+/rrV2X947Hn/ngPZhgBF0w/zb4csH4Ga8dvfwc+7QYj2D7QDUmiau6wlli Ny7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=8LCnmqawoxVB9pxtCcgy2mIAwh3oOWcQhV+5PBd2TbI=; b=b791Fb6U2o/kduQV5jUbNst9hwUj8L+uarw0BdcnCfQZTbUvf9prJpUF1qBjYhq46k o7lRjOyh49WOij+AgEOg/VGZzgo655sMhTgdqK9AmLnMke4gvi8DfX3JIVCfWE60PZU+ RsQNRbIjuLLTZni6XApIgpcY9bGlb80PkG6fkMmI3nhZrP99Fod+y6h6Pi2FscsOpm6h 4+XML66HaOwKH33s6+PppOfnQgBLvOt/bgo1rgqIyF+0uC8EP/rOz/VSSw7TDm/Yb64E t6yv6CJNNrMebrawfJ/g86vzUGRWkxJwAq600rVFuSnf7WSC8LX29EGPqRHZfETBHKel NTog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=enqrt2lH; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z27-20020aa7949b000000b00527f8c1d0ebsi12685055pfk.183.2022.07.12.02.35.16; Tue, 12 Jul 2022 02:35:30 -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=@gmail.com header.s=20210112 header.b=enqrt2lH; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232605AbiGLJJF (ORCPT + 99 others); Tue, 12 Jul 2022 05:09:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38206 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232579AbiGLJJB (ORCPT ); Tue, 12 Jul 2022 05:09:01 -0400 Received: from mail-vk1-xa2d.google.com (mail-vk1-xa2d.google.com [IPv6:2607:f8b0:4864:20::a2d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B43BF1A83C; Tue, 12 Jul 2022 02:08:55 -0700 (PDT) Received: by mail-vk1-xa2d.google.com with SMTP id 7so2180665vkq.0; Tue, 12 Jul 2022 02:08:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=8LCnmqawoxVB9pxtCcgy2mIAwh3oOWcQhV+5PBd2TbI=; b=enqrt2lHLNU6D6nQ9VF2kaC4miDYEOanWmFv4N80cBCOxeLlgW1IG5ADsfmSM5q3lf 0QjRDockErrhscAvix2Fh0/eUqtaRlN5yWHn+IHyMpVj1si1Abebe1hz2XxOkC0CAY1j ozgSgxHnaBfna3vODMxnR+FAS6neU1lDjdCAwxkuHyiTILTOqEc9QJTDRjYXEpuE2JGG TjPhsRBx4eWZrMvrLROpp7s4Jdj0xkImd0p5Cbog3ZuDle4ohPluXh1uMAog2lNjD/7b x7PiNsVOWg1reZIIFLxjuOoan0BcjjZhmQ//s9hvDElOGabvrza0p+EOivVVJJsdwUW/ 7mjg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=8LCnmqawoxVB9pxtCcgy2mIAwh3oOWcQhV+5PBd2TbI=; b=yMqnfEVxcfaYiHk6DjGwUp4udUPLkUTLvFEDwnO6mIWWuxjEc+QAsvihArnSgR68s1 42UhMPTzn/HhfYtU9AqtoKyfxgMYG/NXBB558WpIXuLlADi3z/1QNv4j9QmFuw138+4v 8r6IBo6OyuVnZf9oCHYoxApdpI2Stmi+efgVRovfMw3jXgfFChIo7FaYIjdQCELtNfnu p+Q4mSG0Xpzh9i7gi+ziuJ47WiBCVROLGUDObhQYzKYp2iWdfQRtG2CZTB+Wf6sPWhxH lTeKEKvRmxpHk/GUMlGEc49LuQ8S2lD+7cquR75dpNsUbxAh5DTPz7efXUIrHP/ivjkP 9Fnw== X-Gm-Message-State: AJIora90gFdsEsrb9bVMiPMm21ezrKOY490mfy+qcwIDHFCiLDI/ZNrb 7CVLkW1U409DyVa+Sbu9cBVzq6sRNn7OGBs29lwgNFVMfyuRgZWGWPw= X-Received: by 2002:a1f:340f:0:b0:374:7b8a:378 with SMTP id b15-20020a1f340f000000b003747b8a0378mr6995690vka.37.1657616934836; Tue, 12 Jul 2022 02:08:54 -0700 (PDT) MIME-Version: 1.0 References: <20220712075255.1345991-1-chenhuacai@loongson.cn> <20220712075255.1345991-3-chenhuacai@loongson.cn> In-Reply-To: From: Huacai Chen Date: Tue, 12 Jul 2022 17:08:42 +0800 Message-ID: Subject: Re: [PATCH 3/6] M68K: cpuinfo: Fix a warning for CONFIG_CPUMASK_OFFSTACK To: Geert Uytterhoeven Cc: Huacai Chen , Arnd Bergmann , Thomas Bogendoerfer , Michal Simek , Yoshinori Sato , Rich Felker , Jeff Dike , Richard Weinberger , Anton Ivanov , loongarch@lists.linux.dev, Linux-Arch , Linux Kernel Mailing List , Guo Ren , Xuerui Wang , Jiaxun Yang , "open list:BROADCOM NVRAM DRIVER" , linux-m68k , Linux-sh list , linux-um , stable Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Hi, Geert, On Tue, Jul 12, 2022 at 5:01 PM Geert Uytterhoeven wrote: > > Hi Huacai, > > On Tue, Jul 12, 2022 at 10:53 AM Huacai Chen wrote: > > On Tue, Jul 12, 2022 at 4:33 PM Geert Uytterhoeven wrote: > > > On Tue, Jul 12, 2022 at 9:53 AM Huacai Chen wrote: > > > > When CONFIG_CPUMASK_OFFSTACK and CONFIG_DEBUG_PER_CPU_MAPS is selected, > > > > > > DEBUG_PER_CPU_MAPS depends on SMP, which is not supported on m68k, > > > and thus cannot be enabled. > > This patch is derived from MIPS and LoongArch, I search all > > architectures and change those that look the same as MIPS and > > LoongArch. > > And the warning message below is also a copy-paste from LoongArch, sorry. > > > > Since M68K doesn't support SMP, then this patch seems to make no > > difference, but does it make sense to keep consistency across all > > architectures? > > Yes, having consistency is good. But that should be mentioned in the > patch description, instead of a scary warning CCed to stable ;-) > > BTW, you probably want to update the other copy of c_start() in > arch/m68k/kernel/setup_mm.c, too. For no-SMP architectures, it seems c_start() in arch/m68k/kernel/setup_mm.c is more reasonable (just use 1, neither NR_CPUS, nor nr_cpu_ids)? Huacai > > Thanks! > > Gr{oetje,eeting}s, > > Geert > > -- > Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org > > In personal conversations with technical people, I call myself a hacker. But > when I'm talking to journalists I just say "programmer" or something like that. > -- Linus Torvalds