Received: by 10.213.65.68 with SMTP id h4csp638000imn; Fri, 6 Apr 2018 06:34:26 -0700 (PDT) X-Google-Smtp-Source: AIpwx48Qo1x/oAKb1U5yozUMETCjY537PPgcWf895qoJhYfW4NPexBDn1jdf91Ka17AqM5zZKAnW X-Received: by 2002:a17:902:590e:: with SMTP id o14-v6mr3398213pli.229.1523021666054; Fri, 06 Apr 2018 06:34:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523021666; cv=none; d=google.com; s=arc-20160816; b=g+afElsQaQ9jZMRYqcmockyHJ5bMt47lC18bCgD/tXK2GXTPdzVX2VcoPispa6mMg2 JX/CkCWHLaKdnkp3TCCqWy7SgEXHm1DuvQ8JNVPohlcod56c3sNv2Tqo/oCywkM11Rxu f1gJVJ6A8Cb7np4cFDhEqvamQO4MCfAHDyWo0FfdGMJq+TYUf+ZfUFHYHHCDNUOrFcEO WdNB6XT298tlYuN2yB1HC6Bctp5D/qxGQkHJt7Bism7Mfy1YXRV6fiQ5A2o42NqlBlp/ axm0phUAst12NO2n1H4hF+UG8FAcGn7721GcXPrDJLZQDCJf89GsRj9rWpJIU1kPdwCR /rhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=D53GJICjBd8ypNiX4XJKrYljAWP0EmWdE2WCs8V3o2o=; b=m0QlpWwD78Smgfi0oq0bqAk2QD31B6qsW6sf316qQVE5CAD0mLsFgt9tJRCkTOwM24 K/N4N4yiADvSmBOq8qLrrTpmXOmvtwKVRCD9GlAh24wde1BNaPioh6Wvupsrosgwmz2f UzYy+Z1B9FbBoW/yUtFcF7fP5sSHZR3S6dBUMmBlWbpPe9rOVHW1qaroGZ0aB1a8vM1q JjDv5DMyoJzT7IbEYottJFkyNuajl2+V69YN3NdsOXxff40B3vGAJ+7RuVLvB/yBnAgO jjXo5DSFehKgMaU7vyhLuj96jE7H08aBn5FtyxJNi9pUqoqSEL1lx82NljPxeuGKWLuT XKqg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 2-v6si8468485pla.436.2018.04.06.06.34.12; Fri, 06 Apr 2018 06:34:26 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755508AbeDFNdG (ORCPT + 99 others); Fri, 6 Apr 2018 09:33:06 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:57724 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755179AbeDFNdE (ORCPT ); Fri, 6 Apr 2018 09:33:04 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 4C501AD2; Fri, 6 Apr 2018 13:33:03 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Matthias Kaehlcke , Grant Grundler , Rusty Russell , Greg Hackmann , Michael Davidson , Andrew Morton , Thomas Gleixner , Nathan Chancellor Subject: [PATCH 4.9 017/102] genirq: Use cpumask_available() for check of cpumask variable Date: Fri, 6 Apr 2018 15:22:58 +0200 Message-Id: <20180406084334.023785777@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180406084331.507038179@linuxfoundation.org> References: <20180406084331.507038179@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.9-stable review patch. If anyone has any objections, please let me know. ------------------ From: Matthias Kaehlcke commit d170fe7dd992b313d4851ae5ab77ee7a51ed8c72 upstream. This fixes the following clang warning when CONFIG_CPUMASK_OFFSTACK=n: kernel/irq/manage.c:839:28: error: address of array 'desc->irq_common_data.affinity' will always evaluate to 'true' [-Werror,-Wpointer-bool-conversion] Signed-off-by: Matthias Kaehlcke Cc: Grant Grundler Cc: Rusty Russell Cc: Greg Hackmann Cc: Michael Davidson Cc: Andrew Morton Link: http://lkml.kernel.org/r/20170412182030.83657-2-mka@chromium.org Signed-off-by: Thomas Gleixner Cc: Nathan Chancellor Signed-off-by: Greg Kroah-Hartman --- kernel/irq/manage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/kernel/irq/manage.c +++ b/kernel/irq/manage.c @@ -850,7 +850,7 @@ irq_thread_check_affinity(struct irq_des * This code is triggered unconditionally. Check the affinity * mask pointer. For CPU_MASK_OFFSTACK=n this is optimized out. */ - if (desc->irq_common_data.affinity) + if (cpumask_available(desc->irq_common_data.affinity)) cpumask_copy(mask, desc->irq_common_data.affinity); else valid = false;