Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1164980imm; Wed, 23 May 2018 11:18:13 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoFOv7yDMjTSBwiDNVKuPDmrTrN9kovEP4oCQ56eD8JrOhdwuGf9pP0DUa5QgKuODR3ttWI X-Received: by 2002:a17:902:8602:: with SMTP id f2-v6mr3959360plo.5.1527099493575; Wed, 23 May 2018 11:18:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527099493; cv=none; d=google.com; s=arc-20160816; b=LfYxKFxYgSE7X4ALFDT4GXTqUaLEdu2xyxOntH9HYBOwolTN79vhD9odXnm/AwL1a9 SC4MlCTr5UPW+UO2qZ1Nipz1mEnct4GLxfEo/2dlZ1k88gaboyxNBGrJ0pcjRhdJA+GX rwMuoGmDPVcVcvsi0qGl39lWWlHmlCoh/cuffkM51pKxMRGkzKGE3zMiqc6sjpGQH0ok P4QVVjzBKv62t+nX3VcZl57/ptfmTXYy7wzT9CaW8HMXcRIeK7a0gCtYqobfSt5kTVpG qAG4OjeFyegYiMZazvh6jNjYAtiG6Aq09vZoeVJcA+dVc6Q5Oz0fnDbbXhaySLrYncep ah8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=n8v5H1WZcGKCsnKGWbXYrsxy8bxdAYHo2UKKRooHBtw=; b=yVj5vaE7xx8aR3c1Rdwv2IA8yV8bncdwtj3bOIvUegLD5QReTflSm/ya5FHqhaoEx/ Hc5FPJg/YhLitscOyBPFdOk6rB5brkFV6g45ILnMEM5fGv6Foyhkuh26S0ki3d/uweMx Jr6vZcw9lpvOdV68WlZTmlwkvxePcNovQ1sjy9oYQJ153mwZ1dhwWTW8KS4Lwt4pFz6d yy/ALePLxIFn3uZSFELlRHQZBkq4gOwN/EkKATP0446I9RtHZ82nGhmUc4Rj0BgPoNvD +jc3pxbbCO8SmlH/TJAnZt+iQd0mhYMwn9RoNHjPGVx/jPzbGSmPVgYkLAEeS2yn0Ydc jnJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=YuVc3pQh; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p83-v6si20263322pfl.279.2018.05.23.11.17.58; Wed, 23 May 2018 11:18:13 -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; dkim=fail header.i=@gmail.com header.s=20161025 header.b=YuVc3pQh; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754829AbeEWSRn (ORCPT + 99 others); Wed, 23 May 2018 14:17:43 -0400 Received: from mail-yb0-f193.google.com ([209.85.213.193]:41264 "EHLO mail-yb0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754658AbeEWSRm (ORCPT ); Wed, 23 May 2018 14:17:42 -0400 Received: by mail-yb0-f193.google.com with SMTP id l2-v6so6686071ybp.8 for ; Wed, 23 May 2018 11:17:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=n8v5H1WZcGKCsnKGWbXYrsxy8bxdAYHo2UKKRooHBtw=; b=YuVc3pQhf+7qwycBwZfVL0scdnmu6T9Q9hZg4b8GqOzw5KyGcTm194bpBr61xS/E33 IhwwCyhOlyioVEtmU2GnWhOJF3syS04uTvE+L6X5za1k22iDQMSfBC0MpoSMNrrBSRiu Pl0b83m30C3jdhJ33fDz5Ub4xX7VMiwvt07AU/0Ejxjp2Kgi22DbVwRayuM6urRRdS4r 6dMvDFx3Tmf4S87grG4r7fPbvOj42+0dCUuiEcUioYliPmDHXKnbNROsxFjJl6DKmyO4 SA4qewqOjtLSp2kjV8Xh2IJxaAk8Npy9foePngc+v1j7fqPpNZK8gyyIf8IHDWSaoENh zMFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=n8v5H1WZcGKCsnKGWbXYrsxy8bxdAYHo2UKKRooHBtw=; b=KtrMNLrYMZuRmKsyNUB1hE9/9XCDLsQj2ePtF0h46Qav20X4P3MzEo5wgcZvehPHWW vTNXTgLGbrzHY3sUuBmXwXebqbuPLYDivyu1Qb1NixP8y+6ONKJuKB1JwAlhJ9zDUplM LSNF5mgeO4szWy7LyN1NmygY75hqeTHQ6Mo4inpwLeTqjFU7AYQGQS9MprT+qqexScb1 RBEPlUPZTUwzkx29sMNFHQOuXmXKQTVsO0jitSVSd3ktSJ+PNWPJ5e/5WDGFvb/5fGYb mZYaWFvqVsYN8xGlLpdNRtUtd+EdeYrwdvIbsgQagGh7aovv1OTYC8M5lQqWFFYykNXE 7+cg== X-Gm-Message-State: ALKqPwew++a+A/E9MY+Zmjn3rhsKMwA6cZIskof5lYVA4ycKQCh5ADPX h7CaoafBa6uYoyq4IMtr4WY= X-Received: by 2002:a25:2903:: with SMTP id p3-v6mr2332532ybp.501.1527099461452; Wed, 23 May 2018 11:17:41 -0700 (PDT) Received: from localhost ([2620:10d:c091:180::1:8428]) by smtp.gmail.com with ESMTPSA id w4-v6sm8349615ywc.84.2018.05.23.11.17.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 23 May 2018 11:17:40 -0700 (PDT) Date: Wed, 23 May 2018 11:17:39 -0700 From: Tejun Heo To: Mathieu Malaterre Cc: Lai Jiangshan , linux-kernel@vger.kernel.org Subject: Re: [PATCH] workqueue: move function definitions within CONFIG_SMP block Message-ID: <20180523181739.GQ1718769@devbig577.frc2.facebook.com> References: <20180522194732.29140-1-malat@debian.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20180522194732.29140-1-malat@debian.org> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 22, 2018 at 09:47:32PM +0200, Mathieu Malaterre wrote: > In commit 7ee681b25284 ("workqueue: Convert to state machine callbacks"), > three new function definitions were added: ‘workqueue_prepare_cpu’, > ‘workqueue_online_cpu’ and ‘workqueue_offline_cpu’. > > Move these function definitions within a CONFIG_SMP block since they are > not used outside of it. This will match function declarations in header > , and silence the following gcc warning (W=1): > > kernel/workqueue.c:4743:5: warning: no previous prototype for ‘workqueue_prepare_cpu’ [-Wmissing-prototypes] > kernel/workqueue.c:4756:5: warning: no previous prototype for ‘workqueue_online_cpu’ [-Wmissing-prototypes] > kernel/workqueue.c:4783:5: warning: no previous prototype for ‘workqueue_offline_cpu’ [-Wmissing-prototypes] > > Signed-off-by: Mathieu Malaterre Applied to wq/for-4.18. Thanks. -- tejun