Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp3152024ybz; Sun, 3 May 2020 18:39:56 -0700 (PDT) X-Google-Smtp-Source: APiQypIjTTfiMKeERs4Ag2h3rOha3vtJkqlc9LD1hPpo1GMILfU5MeeUam89pVkret5RFrVJcAb5 X-Received: by 2002:a17:906:8286:: with SMTP id h6mr13229148ejx.28.1588556396689; Sun, 03 May 2020 18:39:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588556396; cv=none; d=google.com; s=arc-20160816; b=E+6aD/Y/P7G9UHoaYTSbZ4/CtmhpMaZvNnaQvBE9YpzfgarJLT2KOzE6cow4N/AQGM MJi1YzHDfjib7L1/VFvfop+pMESlR2yRmYfxrfNg47yR7KHb4gRCyIlxmEkXavCtnhGa O9mZ2WAxLOiz9aarvgHS0eulzf5Js0nZqNTjw1vUTL+TwkvaPi7j2jofJ7kiCRQX1bGF c+ImGX8dr2Rna5F6Tk29PTeD8TP5e7NO8rXm2oIxTh7ciCUnEosWizRed6BDv8Y7zDg6 1AS1/hv1qSj2zwnMhfm/mpte//FdLnWSQS0D7oHTf0g5VsvUqaAjd1/Bi+ZMQ8Fxui9+ LgIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:dkim-signature; bh=PpHwFTOG0mlqnI+PjUDnj6xMN8HOuMQ6y5aV84Dqvhg=; b=yiheGBQ3zBngNTJOnw/ol9EhTVB1w/dYKi2UAz/UYVGTUFAeCCwFRdc1i4I+e4u3AD aIkrLJyON3fQQljXtVFdhG9hiSyrHM7UrjiNxi1nS+4IeIE6wFVarA9caZ/uZytPvuNI anc9X4JqnKiIHIOHK+Vf22KkAnFG5abscu3kZFgcfx9YRykhv45vkPsp9tiA3P+8XLIh Zz/aD8gCysC91G5FOUa9XeSHzAjHk1WhRArBYvtk7tPEyEXwakDqtSo9F7c2oZ744uWT a3fkWKfCf7sdOts5WS4mI0zX3yrXEr0wOKWZ8O6H8P7iBKcB0u0mcx0AyNnPhkb72GcX pBsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=P+yJzoL4; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lw23si5829340ejb.423.2020.05.03.18.39.33; Sun, 03 May 2020 18:39:56 -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=@canb.auug.org.au header.s=201702 header.b=P+yJzoL4; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726630AbgEDBZ7 (ORCPT + 99 others); Sun, 3 May 2020 21:25:59 -0400 Received: from bilbo.ozlabs.org ([203.11.71.1]:60847 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726421AbgEDBZ6 (ORCPT ); Sun, 3 May 2020 21:25:58 -0400 Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 49FlYH0HjSz9sSr; Mon, 4 May 2020 11:25:55 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=canb.auug.org.au; s=201702; t=1588555556; bh=vc2ocq2LVzS7oNXSMpHcVG3xe33e0fBbGhPZyRYagfM=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=P+yJzoL4bKmQgxZi1HZa5TPP9rwqF/h2NThx+pjTcMdtdBDNff/3h228jqwzsXE2b NQJQhDYncXGB0zYQeDkYjscr4OF+6Rqxpr31OS5Obez0CGvi8oBiJ3Y2azikMftqQt U+jzCD47pLK/nuTaLkh3aiYDzUWWzf1IbXyuYsgSqVM3RNmpilPBYaN/E+R7RNNqo1 WT9ab3XNgwxWwK5N/cas1cph5490Z5afc6RVZtTmbZpHUnnVlwPo1486wsKlO+zmPg yu1OUHXML1YrIkeJQ8m9spCLWXR6FJr3ec9jOEGd6cjZcxZe1mrlNfBUbSa4Vnfgr4 ZNwuqxT3rnTxQ== Date: Mon, 4 May 2020 11:25:52 +1000 From: Stephen Rothwell To: Christoph Hellwig Cc: Kees Cook , Iurii Zaikin , Alexei Starovoitov , Daniel Borkmann , linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, netdev@vger.kernel.org, bpf@vger.kernel.org Subject: Re: [PATCH 3/5] sysctl: remove all extern declaration from sysctl.c Message-ID: <20200504112552.4dbdd2a9@canb.auug.org.au> In-Reply-To: <20200424064338.538313-4-hch@lst.de> References: <20200424064338.538313-1-hch@lst.de> <20200424064338.538313-4-hch@lst.de> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/Ze/S33mgpR/AlQdumg8GhV7"; protocol="application/pgp-signature"; micalg=pgp-sha256 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --Sig_/Ze/S33mgpR/AlQdumg8GhV7 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi Christoph, On Fri, 24 Apr 2020 08:43:36 +0200 Christoph Hellwig wrote: > > Extern declarations in .c files are a bad style and can lead to > mismatches. Use existing definitions in headers where they exist, > and otherwise move the external declarations to suitable header > files. >=20 > Signed-off-by: Christoph Hellwig > --- > include/linux/coredump.h | 4 ++++ > include/linux/file.h | 2 ++ > include/linux/mm.h | 2 ++ > include/linux/mmzone.h | 2 ++ > include/linux/pid.h | 3 +++ > include/linux/sysctl.h | 8 +++++++ > kernel/sysctl.c | 45 +++------------------------------------- > 7 files changed, 24 insertions(+), 42 deletions(-) A couple of suggestions for another patch (since this one is in a shared branch in Al's tree now): There is an "extern struct ctl_table random_table[];" in drivers/char/random.c which is redundant now (in fact always was). There is already an "extern struct ctl_table epoll_table[];" in include/linux/poll.h, so could have included that in kernel/sysctl.c instead of adding the new one in include/linux/sysctl.h --=20 Cheers, Stephen Rothwell --Sig_/Ze/S33mgpR/AlQdumg8GhV7 Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEENIC96giZ81tWdLgKAVBC80lX0GwFAl6vbyAACgkQAVBC80lX 0GxFGwf/WH/cv5RMadV9dmdAfJGI/cu7ozy5lgpWNwTKsdi4ITqe5NGRhPUzU4yW G2MRxjhFk0AMvRQWk9cdWriceLeojws2iI4W6ht10nYedCXG70ee+MJ/TEx7VJ5f +Cff6GVaFu+4/qF04l/XTgi75XrzhNxQx3EptjGJg89jeJoKB219icmdSfwb8lBE RzU/qAufZ62wf5ClRmbyMJ0rj0RqdpKI/Jg+gD/rYE9HnveOnyLkFRDY7Zn5s7H8 k+TPkw9I4xlWwDYr6cp43CX4rfGlZNoByoYat5ExYbvsjtPk9ygEYm9liKVKgIqh riEp/3lZakla9sctllvU4m6A6mIQJQ== =LZ1e -----END PGP SIGNATURE----- --Sig_/Ze/S33mgpR/AlQdumg8GhV7--