Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp585339pxb; Fri, 16 Apr 2021 12:56:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxE4G5Fr2+Pa17XB2xhXuHibKbwoJO/4ittMDeCCfVChtz6tGqeTPCY0BS63kydthi1iulI X-Received: by 2002:a17:90a:4a8e:: with SMTP id f14mr11739763pjh.20.1618602959815; Fri, 16 Apr 2021 12:55:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618602959; cv=none; d=google.com; s=arc-20160816; b=G9uuY1/1a2+uB8HkGnXrXJ3yab6Bit4p1/2+faRXOSGKAxiACAM3T5J+09Jc6r0dz9 w0nt452QMGnfWpzNLK8Xw9xRzvOLeiKHupOQpSF4MYFDaaG/3DIt0lx+6/da6rTaGmEe TcbkblSaPHxsDya7AmIsv7dC27TK0xtmKTJLfor9ZQDITFkNV6WcfjPRmVpdIcleTzjl hVBBm4vnCKU9A97c18/W4OS3RNmlf2CeCg6srgsXS3dwtLaUux2LfcjvrSh/t77QuN2s c4bQN378kqanf2NciLUVikfkJP/X93sAPQPKVpvOQl6qSakpM4atOGSI1jOeerZk7+0N MP5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:from:subject :mime-version:message-id:date:dkim-signature; bh=RZqwj6m8TBP3bx39/d80KNH3lL63gm95f3IfpC2WPAw=; b=PLowNhEFUImyFSdqOh/b4k7367R2pVxyXSaFfa4BkZHiTJ+UdcdRrpt9ZYv5KjlaGZ OauxwcQo19hIszUaBcDhgSE/4ab+pgErDLSDtBGiVsL/xGBObp8Cp0wDrVVHs23hZqo1 TvDkKKxf4cnNY07kkghIPu8X7Se94THD4up3RI6uiV9NPpx7X8BsFWDd8Yx1uHmq/02r It12DtUm2aUZs2v3WxT4seP6qQsKKYcTADi6wrXAscTDdHHYUrqg0ZgIutBWtnrFpHGU Yj0VSB7vN0cL+uBszJqBzW8YYzg+bw9LieJ54VzfGi8kLKa/SDu5Q2dXpyaz4F3LX4RJ z+9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=c7iplFB1; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u7si7763173pfu.213.2021.04.16.12.55.39; Fri, 16 Apr 2021 12:55:59 -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=@google.com header.s=20161025 header.b=c7iplFB1; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235749AbhDPToA (ORCPT + 99 others); Fri, 16 Apr 2021 15:44:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57408 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235258AbhDPTn7 (ORCPT ); Fri, 16 Apr 2021 15:43:59 -0400 Received: from mail-yb1-xb49.google.com (mail-yb1-xb49.google.com [IPv6:2607:f8b0:4864:20::b49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CFFFDC061574 for ; Fri, 16 Apr 2021 12:43:34 -0700 (PDT) Received: by mail-yb1-xb49.google.com with SMTP id e9so7319114ybq.22 for ; Fri, 16 Apr 2021 12:43:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:message-id:mime-version:subject:from:to:cc :content-transfer-encoding; bh=RZqwj6m8TBP3bx39/d80KNH3lL63gm95f3IfpC2WPAw=; b=c7iplFB1GYP8zl0qF5ZJbIy0g7CyeuUK6pMZ9j7jTApuIHxp41ePtEFAA2RDPgkd44 FmXQpL1rFLTJR0K0T6qXRXAmSl87dmpYXN4lCs4DZlQNe3ASK9Mm5Sl4NTGRD+RB3wYK Z/zQKuokU+o8phRbjteymFf3rzbtaui4M1+AYlT4QRpapDRlyoPAF5fM6IWlyFz8/Daf L88+J8XDFt9junqaR5uJ+Wv78FSdV6nVSw2tvLnWK/Jvy92xjA2P7Ye8uUWcV4bQiidY PVydvqdfGe6uL/r5+btGmzmFAuUQ39pUNrq9Df2OOV6moA9bxGnayKOOSxCJNgOHZnWr 9wnA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:message-id:mime-version:subject:from:to:cc :content-transfer-encoding; bh=RZqwj6m8TBP3bx39/d80KNH3lL63gm95f3IfpC2WPAw=; b=aTl037PUhStZewA2wPCP9Nd/4ZrGcK+NHUhw8/gVt99tVbQR81RaphEQJHVdMQ/IFk VylrbLuBW9sJDixxycK0W7wxERDGbdiTJI7dOXpNRzwHjZhik1fft6OX7BpvA5AJFuNG i+/ryTgqzTtCaUU7g8Q8tR7TCVVgxKd+r2SeWY/3PGY58tm9Irf+ZCmC7apGlbo//Ijz DK+ftsx3ICPE8Hb7aQcF15VMpDJUPgaWVKXc2z5cvMLaqze+P+PZ8P7JfmjhF1xBIvA1 +8Tkzu4LmSOAmEGZ+DB62rIQ9xV993oo2vNXoGj/hDuWFGX3GLS3SDUtWpozrLZ9YqO7 LDoA== X-Gm-Message-State: AOAM531XdXY8YZ94/FWkZlg1aDPoSLZkjNF70zS8zBwpBDNT+cMZETPp 4JF5SosfyZ+8vA3D7jUFeXKaEMB/ue88wg== X-Received: from xllamas.c.googlers.com ([fda3:e722:ac3:10:7f:e700:c0a8:b1]) (user=cmllamas job=sendgmr) by 2002:a25:c3c5:: with SMTP id t188mr1083037ybf.36.1618602213999; Fri, 16 Apr 2021 12:43:33 -0700 (PDT) Date: Fri, 16 Apr 2021 19:43:00 +0000 Message-Id: <20210416194300.3952208-1-cmllamas@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.31.1.368.gbe11c130af-goog Subject: [PATCH] static_call: fix unused variable warning From: Carlos Llamas To: Peter Zijlstra , Josh Poimboeuf , Jason Baron , Steven Rostedt , Ard Biesheuvel , Ingo Molnar Cc: linux-kernel@vger.kernel.org, Carlos Llamas , "kernelci . org bot" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 'mod' is not used when !CONFIG_MODULES. Mark as __maybe_unused to fix the following warning: kernel/static_call.c: In function =E2=80=98__static_call_update=E2=80=99: kernel/static_call.c:153:18: warning: unused variable =E2=80=98mod=E2=80=99= [-Wunused-variable] 153 | struct module *mod =3D site_mod->mod; | ^~~ Fixes: 9183c3f9ed71 ("static_call: Add inline static call infrastructure") Reported-by: kernelci.org bot Signed-off-by: Carlos Llamas --- kernel/static_call.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/static_call.c b/kernel/static_call.c index 2c5950b0b90e..8211a34251f8 100644 --- a/kernel/static_call.c +++ b/kernel/static_call.c @@ -150,7 +150,7 @@ void __static_call_update(struct static_call_key *key, = void *tramp, void *func) =20 for (site_mod =3D &first; site_mod; site_mod =3D site_mod->next) { bool init =3D system_state < SYSTEM_RUNNING; - struct module *mod =3D site_mod->mod; + struct module __maybe_unused *mod =3D site_mod->mod; =20 if (!site_mod->sites) { /* --=20 2.31.1.368.gbe11c130af-goog