Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp21383342rwd; Thu, 29 Jun 2023 15:29:17 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4eoUHDemQGp30L2C4Mf7ww/6a6RWRv+c9Ic1S7FJf7XXE+SNuYltdygnUYihQ/EBrfwRvG X-Received: by 2002:a05:6808:7c9:b0:3a1:b638:9c2c with SMTP id f9-20020a05680807c900b003a1b6389c2cmr666923oij.55.1688077757556; Thu, 29 Jun 2023 15:29:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688077757; cv=none; d=google.com; s=arc-20160816; b=FSuXWIMZj6wfbGmv3plCgFIcl6CeSqL0HN89rUhpf5+QCRcnigOFwlglXwy6YSPp0U mW+IVqAe7Hgh6ZlYoYL2DNT4VUbghLf9LFnLZ5VbQzgBunMI1bqslBRWKHe4r4NSD0Vc e0lCVogVmHDc9tsqt6LfQ1o7WTvGMsePQMM8+MfS1MmMEK/A+1aDd0xo69mU6FonTeP5 hAM+ONCMiRrCPpDZudSbTZ7TZIRz4dukAApIzaV21+PQu9kjgmZBHrgW1h37aomr4q1t EYRHBGa68GPlr5wp3pB7kXcxsw7aApZZrmY1GLnkec1g+FkifcpfUKNLH45a/BG7dypl AVfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=v2HOXN/dFzSq+BbK3zWw9kYyIXCnd6hSDikcfU87RyM=; fh=ERcUWQoPTTltwg+sf8Ag9MuWe5kOWEXNUyflZMEwPVs=; b=SKxRTD/7KLpcehlsi0QW91p2+93pURI9agA1P3iH1odl36bGmDjJ+95WFQ8acivDUg LNjeYt6LDy3EwNN358TGN2P4p1SzVqfnHJGlSQ8hqAAuwW0GU2E6bpEmJQMLIvLkbOhG vOWus/7+UhRPlPc4XBlS4sCBa/td35cy2deZE+o/RyZX53eYQvmU1TQQSZS85iHY6BRZ x+S4TORpzvqgnl4QBdRItKTmxpLE3kKoP/FfgZMwz5z/FmZJ1iuPhCHnRqCu0gRivcCr Ssm2knRdbQo1eh0zfgk8vSz+EYG+5DAvEq9S2abHYbQIybQkUd9g+79m1ZanbqSKgD9c 0Fvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=AnyuLJ63; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n51-20020a056a000d7300b006687af0b2efsi9426921pfv.27.2023.06.29.15.29.05; Thu, 29 Jun 2023 15:29:17 -0700 (PDT) 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=@infradead.org header.s=bombadil.20210309 header.b=AnyuLJ63; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230256AbjF2WWX (ORCPT + 99 others); Thu, 29 Jun 2023 18:22:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39586 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229459AbjF2WWW (ORCPT ); Thu, 29 Jun 2023 18:22:22 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 41EAA30F1 for ; Thu, 29 Jun 2023 15:22:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=v2HOXN/dFzSq+BbK3zWw9kYyIXCnd6hSDikcfU87RyM=; b=AnyuLJ636jsNN4XpDq8IvYL4+x OJsuDYS3ppbJCvM2+I+iY0edrYjoeUMng3zVkMIZeA0OoN/i78ehT16n+SIgDLiIXDGFwt3NclplX n8zdmBFlPrKq7NOgVKW0SZr9bLOMdNzSECGZRYXErlnBNu/10h3VGLz1446YoQoA+23Tq4xyDMFmC yOlb2NR0CqhLUwvRtTGbyVSNtdRYyOgpQWqCsOrHpefGCU6MdY4dte7GiXGztUOIjj0B408xKX0uD qvx43aP/+82jOay7lW/fsEa/D5qjX0pX+9Vyni25Tx8hRRXWPx13sRLeoZ918K/zcrKWDKnmsqxkI tvbpbSpg==; Received: from mcgrof by bombadil.infradead.org with local (Exim 4.96 #2 (Red Hat Linux)) id 1qF01m-002Kfg-2e; Thu, 29 Jun 2023 22:22:14 +0000 Date: Thu, 29 Jun 2023 15:22:14 -0700 From: Luis Chamberlain To: Matthieu Baerts Cc: Arnd Bergmann , Arnd Bergmann , Peter Zijlstra , "Rafael J. Wysocki" , Andrew Morton , Huacai Chen , linux-kernel@vger.kernel.org Subject: Re: [PATCH] sysctl: fix unused proc_cap_handler() function warning Message-ID: References: <20230607120857.3621364-1-arnd@kernel.org> <29968249-3fce-d53f-4515-1c7b815cd4b4@tessares.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <29968249-3fce-d53f-4515-1c7b815cd4b4@tessares.net> Sender: Luis Chamberlain X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham 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, Jun 29, 2023 at 05:00:42PM +0200, Matthieu Baerts wrote: > Hi Arnd, > > On 07/06/2023 14:08, Arnd Bergmann wrote: > > From: Arnd Bergmann > > > > Since usermodehelper_table() is marked static now, we get a > > warning about it being unused when SYSCTL is disabled: > > > > kernel/umh.c:497:12: error: 'proc_cap_handler' defined but not used [-Werror=unused-function] > > Thank you for the patch! > > We also hit the same issue on our side after today's sync with Linus' > tree. I confirm this patch fixes the issue. > > Tested-by: Matthieu Baerts > > I didn't see this patch applied in Luis' sysctl-next branch, do you know > who is taking care of it? I'll send a second pull request to Linus now. > > Just move it inside of the same #ifdef. > > > > Fixes: e6944e3b75df7 ("sysctl: move umh sysctl registration to its own file") > > A small detail: it looks like the SHA has been modified, it should be > 861dc0b46432 instead of e6944e3b75df7: > > Fixes: 861dc0b46432 ("sysctl: move umh sysctl registration to its own file") Adjusted, thanks. Luis