Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp1618078rdg; Sat, 14 Oct 2023 09:14:36 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFe2AZevn/1iuSzn2FlKFurJueYFG0AlFmB44orTPf4bjlNk6UehtCzkHFrZU7EZyR5kOR8 X-Received: by 2002:a05:6808:191:b0:3a7:3ea1:b5a0 with SMTP id w17-20020a056808019100b003a73ea1b5a0mr31762837oic.47.1697300076041; Sat, 14 Oct 2023 09:14:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697300076; cv=none; d=google.com; s=arc-20160816; b=IdUydef7nhhQHQEJeME2ZBLtS2zqdeYauR7ay4TmCiaH1kFHqKK6EGW8N824CPD6uD M7RsaNyfwt2UyeDu4qjTUHT53MKA75jFTZISvvgkTUkzRnFXr5wV39U7ahH/EnhgLWo7 8gusp+vD2a/BOSPIO15C/wR7LzfvCNqnWV2mAP3rQU/QToJ9JOLjk0B251hAV1+TF1Q5 USSAZJw/CKokWytx35RVI6tVF9pyi+W04A/lcoU6EsrgixvKC3/33FoMS01sV1mwIm7g s7UMhTn0UMj7QWJ3DbqadVL4VDJPg0i2HGMghTLE87YGSnpvArBq6l3SJvXExo1/6fx7 b5eA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date:dkim-signature; bh=8+ivNfTDHIsqHJ1JTSXb0uVQIdYQ3DRGLDEgHrf6wmY=; fh=OsxpHFVO0TTWpkd9nz9iIoXNJG/cbfzAlmsmMnvz/wI=; b=KFe9WXu4hQdb18bdvXSVgVjDthqE4VUiD+3U4TWJFC2xBE+26cTfH2wd8Lmn8aVcH8 8QAfwCKj2WaB0gSJq834b8ZsO+JTjB7UB3wRfLis0hRyls7NoGXBWf0HvMVXlB0Yg0nS MP2Tw2hEMb5jD/W64H56s4gh3Q54qKzwFvwXcS8lA4oVWa8IkcFkEOSi13VDNorysWWc nwFSHUsFQl3TSRjb+hxKR0tV2VqGoXYn9fvKGzR6o44OW3fePGY8FnDpMJpWb2HagpSS HLdmmu6BWAe4ZWw3XbXKufrBAqbByf1+6+Ajmwv4aRunQ2R/DE/TSSLvpZVg9pkfFEGz dwZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="UvODmFS/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 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 pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id h62-20020a638341000000b005aaf29151acsi3821643pge.834.2023.10.14.09.14.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 14 Oct 2023 09:14:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="UvODmFS/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id E71D080413A5; Sat, 14 Oct 2023 09:14:33 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233243AbjJNQOX (ORCPT + 99 others); Sat, 14 Oct 2023 12:14:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58650 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233227AbjJNQOV (ORCPT ); Sat, 14 Oct 2023 12:14:21 -0400 Received: from mail-ed1-x52d.google.com (mail-ed1-x52d.google.com [IPv6:2a00:1450:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 91FDAD7 for ; Sat, 14 Oct 2023 09:14:19 -0700 (PDT) Received: by mail-ed1-x52d.google.com with SMTP id 4fb4d7f45d1cf-53e84912038so521499a12.1 for ; Sat, 14 Oct 2023 09:14:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697300058; x=1697904858; darn=vger.kernel.org; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=8+ivNfTDHIsqHJ1JTSXb0uVQIdYQ3DRGLDEgHrf6wmY=; b=UvODmFS/hi9UX2xFdOxaYy8urpjdOToMJkOLov/9d7gipGogeOB7FHXjOqwZXmG3/4 8gUowlgzO3kx6sps/EhwMQkq7XPo62/BPBALKuafQJUWbILgAN+sEYPS90wWRor9G1NG lzYdiKtm14BE54tEPO7JitJaQIIe1yTTKUf+jB+6NfQuU/6MUyPsGQOjdy5yMN9LXEjJ eOKYO17/GLU/KBS/4A59xAVZNhB6VMmW5TZ3PV7BJcRxACHJIA8KuZOUxjp/I0nqkVgG q/o9WgSmMawntPz0JvxQOOWPCEnLl7QkwlZAo1jatjcWrls6R+YrddLAR94dba558FKY alfw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697300058; x=1697904858; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=8+ivNfTDHIsqHJ1JTSXb0uVQIdYQ3DRGLDEgHrf6wmY=; b=l8L930EJpxUym0CiGBCndp+ukfCfqzb3gmqPKLlf5JOE+Svb0zF89sxT07wCjlhrAX B+3g3zQb2tyFJRuJLSSvS5DS0z4QByKLdMZuTKaRXie9PpR0zvWI1KVUNhJqHP7EPaXC bEw547dGUvjwXsjGWkis+yIRmGLaIqs9lWDjd93kP11EdbZ1OQNfevoWp7JpwRrjE+w7 Y7RffvxdGNiknxGE9o7fZi1lVCZosujn15XOnlAOLOFbc3MyRIpSS1SKsPzBGcc8B+o4 sdaOzI/cx9LvGkEkDofaHUAhjGftKtmBrSk5Ry+7VxE448zIQp4xMfDA3CaLRqzU3l7q Mh1w== X-Gm-Message-State: AOJu0YyQ4pO00QOKaZlV2nR7RgHdE1JnINZJYZTsq5FKRnln5/g0XwIG +6OFcMlT/vysCSK5kpRWRndq01GT8g== X-Received: by 2002:a17:907:31c2:b0:9be:30c2:b8ff with SMTP id xf2-20020a17090731c200b009be30c2b8ffmr2805103ejb.61.1697300057731; Sat, 14 Oct 2023 09:14:17 -0700 (PDT) Received: from p183 ([46.53.253.206]) by smtp.gmail.com with ESMTPSA id hg22-20020a1709072cd600b0099d9dee8108sm1130147ejc.149.2023.10.14.09.14.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 14 Oct 2023 09:14:17 -0700 (PDT) Date: Sat, 14 Oct 2023 19:14:15 +0300 From: Alexey Dobriyan To: akpm@linux-foundation.org Cc: linux-kernel@vger.kernel.org Subject: [PATCH] smp: fix __smp_processor_id() backup macro Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, 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 pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Sat, 14 Oct 2023 09:14:34 -0700 (PDT) Every __smp_processor_id usage doesn't have arguments and every raw_smp_processor_id usage doesn't have arguments, therefore "#define __smp_processor_id(x)" can not possibly work. Signed-off-by: Alexey Dobriyan --- include/linux/smp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/include/linux/smp.h +++ b/include/linux/smp.h @@ -261,7 +261,7 @@ static inline int get_boot_cpu_id(void) * regular asm read for the stable. */ #ifndef __smp_processor_id -#define __smp_processor_id(x) raw_smp_processor_id(x) +#define __smp_processor_id() raw_smp_processor_id() #endif #ifdef CONFIG_DEBUG_PREEMPT