Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp5332310rwl; Wed, 28 Dec 2022 17:19:51 -0800 (PST) X-Google-Smtp-Source: AMrXdXs2tEsOyJUmRSkkRYYADS8jCSnazYzsawRPkrybDL7gmnGsAZfBWV4/8saMt1kXL4jO80Li X-Received: by 2002:a17:907:3e26:b0:839:74cf:7c4f with SMTP id hp38-20020a1709073e2600b0083974cf7c4fmr29696138ejc.8.1672276791055; Wed, 28 Dec 2022 17:19:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672276791; cv=none; d=google.com; s=arc-20160816; b=PhmX4/sSdDDj/frDa4D6o3ax4kP1GDzIivcMf66GagpvWnqM3KkLvi5Ke8m/JOFpNv UzjhJMzi4kM4obyHZyeOrAVutWAIm6HdOLq3TaFbQmmNFlVMNwkqKK2Zk5cQnS1z322b 4on3Bbbs0brvGlAk0IGkPvpzr9a03+y8AoywWyi0VzGHVzbxdDDzFXnT5cWgbt8b2Fpb rbWnkAmdLpEyiboGZQ0/7Ex+dXf0LK0NFMtniFW70yrQxUEtjQ+zoTESAdCSaLerv1DY jbwfKIT3oeQ9I1d57GtXH1vperMIkBYN9e9KTrWJotcZ4cLojMnnXY8asAuSz4fC1hf5 LJmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=GstWgD6pi9exQ0bv5bGn3BCV+taiIfBYlUvekjsyeZY=; b=wluc5W2JY6AcwlFI3bCnssp5KDBGNMgGoa1PSMLSPdBYE8FFrWsVYsVyeqZK6lxiPF SgZIwjVbPc9Ah/OvXKelIN+B8ERakzuW+4d/xaGR9kTTGrbElI6vmpH/TDtGPgrpREwO y+k8YkHjS6ShLSJrzs1M/21O8yneN7BW0U9ORt8tOwGgoetk8ZbdiVN7tR4r/POGbPE8 GE3xrQ6LWS7MvkNqlqkV11CaBA+6WUnlazmO9XZUzrTEVnXOs5eiVojaDWT9Ft5VxENd 9AMBlpzfccm27/cFJ9rfetDss6AGqUv49w44JbDojtEod6yCQSghTIWKZUlhGxlgl5wH 767w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=K2Iip4Yf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nd42-20020a17090762aa00b0077d26491a9csi15592521ejc.141.2022.12.28.17.19.36; Wed, 28 Dec 2022 17:19:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=K2Iip4Yf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231956AbiL2BHV (ORCPT + 62 others); Wed, 28 Dec 2022 20:07:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57436 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230071AbiL2BHS (ORCPT ); Wed, 28 Dec 2022 20:07:18 -0500 Received: from mail-ot1-x336.google.com (mail-ot1-x336.google.com [IPv6:2607:f8b0:4864:20::336]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1953E13DFA for ; Wed, 28 Dec 2022 17:07:18 -0800 (PST) Received: by mail-ot1-x336.google.com with SMTP id k7-20020a056830168700b0067832816190so10766491otr.1 for ; Wed, 28 Dec 2022 17:07:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=GstWgD6pi9exQ0bv5bGn3BCV+taiIfBYlUvekjsyeZY=; b=K2Iip4YfjTPzPv5Slmn56NAQiSADHK2Ch5wPeGXTuK38j7VbcAcuTcsIEAe3zRdNVt hBom8WFoogY4Wy7Y1zEmuLe3e4XERVlKRAc70q6ZYznLlkuSM2nvJqgahtuAS1hdBSCk DS53GKvdfdT/eYcbN4EMYXZwn3geq/TltULwpH86vE5+GESw9NUitWMsjrkJ1PFAgn7l JRze5JuFdPrrzW/t1XQLQ1Pa1Ex6nRL46sXg9Uy+O6MIEN+tsXPKmSe/lEgPS9TG8lE8 x/HEXwHfWE3wk/cSv2iT1toK/BEZwmRCDGSor6khDQObfJwrTglk3SMWzZq9/MVA/113 2jWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=GstWgD6pi9exQ0bv5bGn3BCV+taiIfBYlUvekjsyeZY=; b=cQ1Tm+R85jFAoJsZFI/J5YDd+1bqHWbv1yzErJZ679pWwNBBL0yoqg9L+jFbC55C6k ay+52cJCNlLiEWCdeZc99squDvMZ2iOSBkP994jYLes/hTQZ/Nipp9Q1ajW4UQ6iGBRQ EHOG844TdlwZCKj/xgB4K9ymjU4j0ClF6D9AYFaR/NylnhbQ1gC7AAatrYZf5S8SVFaI t94Zip5RmvAollGTWJCNkw7p/34d9VyvmrRK1Ela75nIih+ko6o0YA9kBLeovk8SHIbl l9aGOXEMua/I8KEApQ8c3EQPVPJEooiWpJWiPRyAQHabuxtbrIlzsrWs1odJMtbafa2W pq6w== X-Gm-Message-State: AFqh2kqJOCdfcxKEepl0L3CJf34wesk+StnE7A4GHq3lAKr9jz4kHO9T 6vtmK8tK5H1DehBRicwT4jbA5E+8QMTjxcjLEMfXtQ== X-Received: by 2002:a9d:750d:0:b0:66e:abbc:cfe4 with SMTP id r13-20020a9d750d000000b0066eabbccfe4mr1774657otk.102.1672276037445; Wed, 28 Dec 2022 17:07:17 -0800 (PST) MIME-Version: 1.0 References: <20221215163822.542622-1-arnd@kernel.org> In-Reply-To: <20221215163822.542622-1-arnd@kernel.org> From: Linus Walleij Date: Thu, 29 Dec 2022 02:09:11 +0100 Message-ID: Subject: Re: [PATCH] pinctrl: sp7021: fix unused function warning To: Arnd Bergmann Cc: Dvorkin Dmitry , Wells Lu , Arnd Bergmann , William Dean , linux-arm-kernel@lists.infradead.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, 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 lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Dec 15, 2022 at 5:38 PM Arnd Bergmann wrote: > From: Arnd Bergmann > > sppctl_gpio_inv_get is only used from the debugfs code inside > of an #ifdef, so we get a warning without that: > > drivers/pinctrl/sunplus/sppctl.c:393:12: error: 'sppctl_gpio_inv_get' defined but not used [-Werror=unused-function] > 393 | static int sppctl_gpio_inv_get(struct gpio_chip *chip, unsigned int offset) > | ^~~~~~~~~~~~~~~~~~~ > > Replace the #ifdef with an IS_ENABLED() check that avoids the warning. > > Fixes: aa74c44be19c ("pinctrl: Add driver for Sunplus SP7021") > Signed-off-by: Arnd Bergmann Patch applied! Yours, Linus Walleij