Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4825168iob; Mon, 9 May 2022 02:30:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxmsgjNLLkmhSd8KY7X9fbaCyk8BN0xy8P7J0C8sNtdbncDVpWeR+XzfCJUIFXivByI6FGN X-Received: by 2002:a63:4b5e:0:b0:3c2:4706:d9d5 with SMTP id k30-20020a634b5e000000b003c24706d9d5mr12435614pgl.43.1652088623552; Mon, 09 May 2022 02:30:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652088623; cv=none; d=google.com; s=arc-20160816; b=JUSMMKTJd2NW5583fyNfkhZfcxvLczl287/rl8Lw7DKcvtJtmH9cpd0EOIF0v5xBDg tYm1WTGE0x8NndHq0wO1yNiQ256F/Fi5/YEU+kxEMA3Bxqe6VGoA8D+PhP1Y4kgaP5Cr ZLUnXxWPLHdFAYVBbhubf//ptW1L876PQYe3FrgQV9/NgHUsnxrhUzN7PqhwxA9kXdVU 5mVcy0Pp6mgd4ZvXB0WDZudJTvVMcPWtEPQRm0Q1vkLe/CLqVxQRhOO2gTCyoFeMqz4e fI/wEJXB0/83EIPl7Q2FLQ3yXXVChx1H5YNgvUykF4U5ipW/kKiqQSaKnl8UNGO2e8g9 q+fQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=XKJtgH586QUGkr3z2wYu8z+b6ngnpTDcdk5KmOpCqGI=; b=DZZomMlIbPBo+0JFL91WXuQiGxnEDjL8sqYgzW4VKlMAJFAooA1/2rnWiazeEhD35X q95RMpDO4zjx6eAtit88qlEnoYLowsUlVVtDgSwpdLzvYPM7GeEhj37H8KnINapk8viW onaoH62url+JD1e0RBcnxh97fPYX9o70kwsqp28T055k3ip5ZwyYsWJiPIZotirZMu9h x+qbBp8/HH3zgvwyMx7Q4yhEtQtpmzaf0CD31ZJ0140rR2rzSYir8+O0Hxgl0FWbHaI0 PgdZGIqTtc9dCd1VkayTK+gVUOJ7g8DblEfJK8Vy+SM+gwabvWTXMDoeL53DIIFIysHi 0tDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=X8J+s7AS; 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=linaro.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id b3-20020a63cf43000000b003c66b4c5d6csi9055558pgj.857.2022.05.09.02.30.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 May 2022 02:30:23 -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=@linaro.org header.s=google header.b=X8J+s7AS; 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=linaro.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 6142E1C3464; Mon, 9 May 2022 02:18:04 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236445AbiEFPHb (ORCPT + 99 others); Fri, 6 May 2022 11:07:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60008 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1442622AbiEFPHK (ORCPT ); Fri, 6 May 2022 11:07:10 -0400 Received: from mail-oi1-x231.google.com (mail-oi1-x231.google.com [IPv6:2607:f8b0:4864:20::231]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 396526B0A3 for ; Fri, 6 May 2022 08:03:22 -0700 (PDT) Received: by mail-oi1-x231.google.com with SMTP id q8so7734199oif.13 for ; Fri, 06 May 2022 08:03:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=XKJtgH586QUGkr3z2wYu8z+b6ngnpTDcdk5KmOpCqGI=; b=X8J+s7AS7hSEDfFe6mjBS00+2UQhkvmP3CHWz/iV35z/Os31BUtlG7YZnnhOj+hbyF PNiBSicEMiG1/DlaxIWO2uQbw93RgTB8tunTF3+GtFOyFp2X1hi7g9JzMQ2rhzrdn+wS bYL8/HPHqbptcot0tKR05gFv4yS406NP6I9iExd3k4sjRn1Ecg/t5yTpbDOBB+mYhHQd W8iUGCldbEpnCF65z6tPAv+jy1WeH+NX0jzhwIBGJoUJAKptzNIclH/YBQ0Lzja/zGRz Z/ffi5/Fa81bVh1bCi0RdX+WTHZw6e05Ef2eoEJ0XRjodK8cLHbvYNYZZ6MxCpQk49Ej ntGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=XKJtgH586QUGkr3z2wYu8z+b6ngnpTDcdk5KmOpCqGI=; b=NiSikZj/rASS4vjyqQUMs+HbYKNbTMKuQCe5XleDtKfPk7Y0hCCLwXndLjR6wDWpR2 K6Wuj1WR5VaAmlLwzmzpJx734xgh8Na/IZjoYH+Fqj46SweellhoqyxHGMBGWhN/uKpy rYTPBKhjY8GzYLm5eqPJkLiuNsk4ZzD72oHe8yrWBS/PP9ezoy/vjknc4NmTG2CKBXP8 w2DqcND+jdmJDUlmzD/0BbEYT46+M7WyHMHZAgqykopQR20264X0xjVML3HbszwfJIYj e8BSDVtl842GzxqLA4tMBGdZBAJfy289pxUQOIDp4wKTBsT+quNL841wi8Q59dX229Ls J20g== X-Gm-Message-State: AOAM533dI5xfvO0GGIrFIElElRfmxrIQHCcTSBeujArsL12mnyEBPej8 crKg6G1ROl7s0/016aFprx6k8A== X-Received: by 2002:aca:61c1:0:b0:2ec:d091:ff53 with SMTP id v184-20020aca61c1000000b002ecd091ff53mr5006039oib.235.1651849401460; Fri, 06 May 2022 08:03:21 -0700 (PDT) Received: from builder.lan (104-57-184-186.lightspeed.austtx.sbcglobal.net. [104.57.184.186]) by smtp.gmail.com with ESMTPSA id e21-20020a056808111500b00325cda1ffb9sm1665311oih.56.2022.05.06.08.03.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 May 2022 08:03:20 -0700 (PDT) From: Bjorn Andersson To: agross@kernel.org, Tom Rix Cc: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: Re: (subset) [PATCH] soc: qcom: pdr: use static for servreg_* variables Date: Fri, 6 May 2022 10:03:09 -0500 Message-Id: <165184936433.73465.7411487617454793164.b4-ty@linaro.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220422173806.21982-1-trix@redhat.com> References: <20220422173806.21982-1-trix@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,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=no 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 On Fri, 22 Apr 2022 13:38:06 -0400, Tom Rix wrote: > Sparse reports this repesentative issue > pdr_internal.h:31:22: warning: symbol 'servreg_location_entry_ei' was not declared. Should it be static? > Similar for other servreg_* > > Global variables should not be defined in header files. > This only works because pdr_internal.h is only included > by pdr_interface.c. Single file use variables should be > static so add static to their storage-class specifiers. > > [...] Applied, thanks! [1/1] soc: qcom: pdr: use static for servreg_* variables commit: 28e3dc8f8cd37eedc14e97e80a7a2e33359491df Best regards, -- Bjorn Andersson