Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp669927ybg; Mon, 1 Jun 2020 11:14:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwwBkUNyxMcjV0dfYpl0lEjND99EWKkpNRC+nTmtlSmQrkbP9sWpdNUhlL8sdZg6MZxWqSF X-Received: by 2002:a17:906:4088:: with SMTP id u8mr21704096ejj.500.1591035288893; Mon, 01 Jun 2020 11:14:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591035288; cv=none; d=google.com; s=arc-20160816; b=yaVlT1OPnTemoM2MpzDzdjCSqIj8y2kk4jMiqzhBQdGLlrwDu8+BcP1pTEy2UEynWp kVcSzxcqIxJ93qnUwGy56tPUlMw40PZlyEWPl3+ji1rTLq2tDJJfVzSzuiilcUGEBVWA 7Zi3vrZb92zPWPOqVp0ezRj6IyxHmyUrgYwKzKbJ08WZt1LHEMcFMCSNIlHsDU8I2Ccl 7ww0e2UJUYP1mcIwRyCNGT5H6dieQ2KezMaXFH+waiUzGFXGVJ5vnoqqf+uCsKqkF555 B5ahDtirHfpDr2pqE32X0rGro/KOGKjnBsBsOjquQItpMlggJ6VipsSNQ8Pv2KVDjTNy 9jWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=WH3mksGw4qCDsPX4BALLk1vUFSdp4dfCu+7e1UrZV+c=; b=LyeJeZQ449j8ZhNONF/BaA+lhfYLhUMI5j0g1pmdFOVfFiaul8YcQuBO8JD5rY7QdY BeU/w9LKnqzWcWQJ3xED9AQkFOYa5EXBg0l2YkDfRyjKOu/puhO6MUzOQgfcn8dQpkyD v+GrhZsuACJkiPmwEYxxR9AyMz+SvEgGTlloaKlShms1bx09A69wVMVxxDTK53blwJ0S 3qA6MIHkMKz/CkzXuFhcMPcd5T45VXOe2oM2lZ3hT5NpEP5NWs7TrCOz2fWw/dP0k9e8 6d88WbUMkqg2JXnVI9WRDhKBF/GShfD3bbw3BWu6zg3P5wIiK9PiNq2sydFqZwwouCHy ljVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ufLZaANA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f17si41368edr.515.2020.06.01.11.14.25; Mon, 01 Jun 2020 11:14:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ufLZaANA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730736AbgFASLo (ORCPT + 99 others); Mon, 1 Jun 2020 14:11:44 -0400 Received: from mail.kernel.org ([198.145.29.99]:58812 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730097AbgFASLg (ORCPT ); Mon, 1 Jun 2020 14:11:36 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id BF64E2077D; Mon, 1 Jun 2020 18:11:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1591035096; bh=bZkjbWgUmSFP5X92+1FaRvbwsvKGCYrXN+2UYnKxVJk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ufLZaANAfAKRwBxEFCg4xlZVC9USOj7M1GneJ6qvKaaHxZuBPxEpQ2+VMLRpW+9ws fKcoQtkRO2CV2RYGOaouIsLuV5p6yIEWi6yevMBs2XryPozDH7kumI8bD0yhP20TFY vat2MFL1hciHFVuuJd+exouOShK+Yb+n9M8Mvd1U= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Arnd Bergmann , Andrew Morton , Guenter Roeck , Linus Torvalds , Sasha Levin Subject: [PATCH 5.4 102/142] include/asm-generic/topology.h: guard cpumask_of_node() macro argument Date: Mon, 1 Jun 2020 19:54:20 +0200 Message-Id: <20200601174048.547837342@linuxfoundation.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200601174037.904070960@linuxfoundation.org> References: <20200601174037.904070960@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Arnd Bergmann [ Upstream commit 4377748c7b5187c3342a60fa2ceb60c8a57a8488 ] drivers/hwmon/amd_energy.c:195:15: error: invalid operands to binary expression ('void' and 'int') (channel - data->nr_cpus)); ~~~~~~~~~^~~~~~~~~~~~~~~~~ include/asm-generic/topology.h:51:42: note: expanded from macro 'cpumask_of_node' #define cpumask_of_node(node) ((void)node, cpu_online_mask) ^~~~ include/linux/cpumask.h:618:72: note: expanded from macro 'cpumask_first_and' #define cpumask_first_and(src1p, src2p) cpumask_next_and(-1, (src1p), (src2p)) ^~~~~ Fixes: f0b848ce6fe9 ("cpumask: Introduce cpumask_of_{node,pcibus} to replace {node,pcibus}_to_cpumask") Fixes: 8abee9566b7e ("hwmon: Add amd_energy driver to report energy counters") Signed-off-by: Arnd Bergmann Signed-off-by: Andrew Morton Acked-by: Guenter Roeck Link: http://lkml.kernel.org/r/20200527134623.930247-1-arnd@arndb.de Signed-off-by: Linus Torvalds Signed-off-by: Sasha Levin --- include/asm-generic/topology.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/asm-generic/topology.h b/include/asm-generic/topology.h index 238873739550..5aa8705df87e 100644 --- a/include/asm-generic/topology.h +++ b/include/asm-generic/topology.h @@ -48,7 +48,7 @@ #ifdef CONFIG_NEED_MULTIPLE_NODES #define cpumask_of_node(node) ((node) == 0 ? cpu_online_mask : cpu_none_mask) #else - #define cpumask_of_node(node) ((void)node, cpu_online_mask) + #define cpumask_of_node(node) ((void)(node), cpu_online_mask) #endif #endif #ifndef pcibus_to_node -- 2.25.1