Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1034637iob; Fri, 13 May 2022 20:27:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyoDsVMvz21puapN61sWxazOVS9DpsOXZMVRK8SRJXHXRNRDClH7laP6JUbb+BD3OxBUuNS X-Received: by 2002:a5d:554a:0:b0:20a:d511:c514 with SMTP id g10-20020a5d554a000000b0020ad511c514mr6097154wrw.347.1652498878274; Fri, 13 May 2022 20:27:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652498878; cv=none; d=google.com; s=arc-20160816; b=eORy+6X0o6O/4g/tfJuoFYIWr9TyCgT9QwGU8OVMDOlLOv+CUODFDsvhmUcJutHO43 7YPvN2sTESK4V6uZ+WKSAu2/p2qwbld0NNOexBh+W/2T/nsRHNU5O9+ggHk/N+iHB0O4 6HDWtOiM56wa79ZADK+aoMhrqfj/S7VibhGsaQglQIqg3aUHSv8oZqo/1+9S1x0O8quV CZUFFT10fXIiU/iXUhOKlUyB1kJFYkJEwg2yTiEsH7aNuu1h02wDahdVGgxyfe5XttuV zXRHpcg3El2ta3IXzL2Jdv7o60kvpAA3ZGJnVwZNG8rLt5GMl1C6yJiNJg7B2loSbzgt QFHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=nRmn921Uws145i1ccNlQlVt6uZtmdUv6eL87nluvKPQ=; b=iO5v1rrCrDMii2vOoPGIrNtN+QZYXLdFxxyaXluF8+Kd5ZDUxT5O7P/QUyfrA0FrRd UhfK3Ipsu4wn0lTRDsRMKAf5QUBDzJcTxt5o9bEzyuIvr5C8HtAJaCpPEO2R/Y5e4SEY Ya8LTxKo/clLVhPBqMLGZM4ZIIi4sSAZt/jbXankX+FR8rpZoXUSdHT+P7+8sRIJEQ8s kUDnOzZlhAdagWPR8lO2pAmoPoNQAM/F4vKX/JvTzFhmB1dhiQyA6gdamt4Fg9G6WXne SlhIm9PUR0M0yh9GUpJhCq90iqV7n75WL5llFhhJjsB95PKAF3oi/pbdq4TL1jG7qAnO YtfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=TH5LiA43; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id p13-20020a5d59ad000000b0020c6b730833si4976662wrr.835.2022.05.13.20.27.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 May 2022 20:27:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=TH5LiA43; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id DB25841A235; Fri, 13 May 2022 17:05:07 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1380822AbiEMO2K (ORCPT + 99 others); Fri, 13 May 2022 10:28:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42192 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1380859AbiEMO0L (ORCPT ); Fri, 13 May 2022 10:26:11 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CEED95E742; Fri, 13 May 2022 07:25:34 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 87A5462154; Fri, 13 May 2022 14:25:33 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 960EBC3411C; Fri, 13 May 2022 14:25:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1652451932; bh=Ct0LLrtbw4fIcwNuzzkdy83wmUH3W9eNG0B4y6zLjog=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=TH5LiA43KGtbDo///OflzwbPsF7jksSewgj+tYDxx7S9vASlDctk3ucYQqJeVBQd1 Buscp6lM6cW80l5DM3jYw4Rui3T0im1/vJjsMowQdfmNOJE/158yTDTpgPwB6I4Uqc fwOXve1QqTIJQ/sGzob8YBPouWZ9cSUb2zj030Bg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Nathan Chancellor , Florian Fainelli , Thomas Bogendoerfer , Sudip Mukherjee Subject: [PATCH 4.19 01/15] MIPS: Use address-of operator on section symbols Date: Fri, 13 May 2022 16:23:23 +0200 Message-Id: <20220513142227.941595011@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220513142227.897535454@linuxfoundation.org> References: <20220513142227.897535454@linuxfoundation.org> User-Agent: quilt/0.66 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,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 From: Nathan Chancellor commit d422c6c0644bccbb1ebeefffa51f35cec3019517 upstream. When building xway_defconfig with clang: arch/mips/lantiq/prom.c:82:23: error: array comparison always evaluates to true [-Werror,-Wtautological-compare] else if (__dtb_start != __dtb_end) ^ 1 error generated. These are not true arrays, they are linker defined symbols, which are just addresses. Using the address of operator silences the warning and does not change the resulting assembly with either clang/ld.lld or gcc/ld (tested with diff + objdump -Dr). Do the same thing across the entire MIPS subsystem to ensure there are no more warnings around this type of comparison. Link: https://github.com/ClangBuiltLinux/linux/issues/1232 Signed-off-by: Nathan Chancellor Acked-by: Florian Fainelli Signed-off-by: Thomas Bogendoerfer Cc: Sudip Mukherjee Signed-off-by: Greg Kroah-Hartman --- arch/mips/bmips/setup.c | 2 +- arch/mips/lantiq/prom.c | 2 +- arch/mips/pic32/pic32mzda/init.c | 2 +- arch/mips/ralink/of.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) --- a/arch/mips/bmips/setup.c +++ b/arch/mips/bmips/setup.c @@ -174,7 +174,7 @@ void __init plat_mem_setup(void) dtb = phys_to_virt(fw_arg2); else if (fw_passed_dtb) /* UHI interface */ dtb = (void *)fw_passed_dtb; - else if (__dtb_start != __dtb_end) + else if (&__dtb_start != &__dtb_end) dtb = (void *)__dtb_start; else panic("no dtb found"); --- a/arch/mips/lantiq/prom.c +++ b/arch/mips/lantiq/prom.c @@ -81,7 +81,7 @@ void __init plat_mem_setup(void) if (fw_passed_dtb) /* UHI interface */ dtb = (void *)fw_passed_dtb; - else if (__dtb_start != __dtb_end) + else if (&__dtb_start != &__dtb_end) dtb = (void *)__dtb_start; else panic("no dtb found"); --- a/arch/mips/pic32/pic32mzda/init.c +++ b/arch/mips/pic32/pic32mzda/init.c @@ -36,7 +36,7 @@ static ulong get_fdtaddr(void) if (fw_passed_dtb && !fw_arg2 && !fw_arg3) return (ulong)fw_passed_dtb; - if (__dtb_start < __dtb_end) + if (&__dtb_start < &__dtb_end) ftaddr = (ulong)__dtb_start; return ftaddr; --- a/arch/mips/ralink/of.c +++ b/arch/mips/ralink/of.c @@ -79,7 +79,7 @@ void __init plat_mem_setup(void) */ if (fw_passed_dtb) dtb = (void *)fw_passed_dtb; - else if (__dtb_start != __dtb_end) + else if (&__dtb_start != &__dtb_end) dtb = (void *)__dtb_start; __dt_setup_arch(dtb);