Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3490269ybi; Mon, 29 Jul 2019 07:27:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqxLvHqF7Q/uE9Ojn3du4Lrc1o/FpbVpRczhOMXHhPNQErfBavhWUsMG2hNQ2r0Gq1K4tXpq X-Received: by 2002:a17:90a:9b8a:: with SMTP id g10mr109720257pjp.66.1564410461810; Mon, 29 Jul 2019 07:27:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564410461; cv=none; d=google.com; s=arc-20160816; b=zzS0KnZmS5+VqfvLRg7cLfHFmKIsoBD8Usx9dqHvlQNGQu1K7m8H3LiT7SEQBk9Gsp B7Zudb6NC3zusgGng9D2xfzEXbZiXJ1b0d0hatI4JJ9zFIsBLA5G1z7FM0aLbI1zRI40 mhFka9vWTwbkG1/Ag32F0ZriIWZ52UtQcl0XJIhLaGLK6Gc3ORqAn+DjNhFWe683x6Ot QWT2ZlqRmpcNIfO3ia/y47jzmCm7gDh9+h6J0cH3VmTTQlbvAlnDiinclDgyPWrDPTvx DWeASkSBMuF7wLPiWiNK4+ZBgDYTWg4sJDV89a77SmAn5u1UmPVTummMTvrEv4zcw2rY MHqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature:dkim-filter; bh=uSPQx/lOeIWy3VSnjzeRdBwGgXuOHDLD+EQgSpgUB+Q=; b=pWxoqFKIXsDaQFlLyQsRorvI0OIoseuWricpHQGPF6Ccz98yV2TF7yxJtajIyZWR31 jrk+k6GzyHqUmw7B0hoaEac+PlfGjLJ+Ytbd8UqpOLqe7Xuw58A93L8N/YxDmOum7SEs ywHjm1/sguvBl2qJTJ4VTG3vGb3eYJp8SdMTqmQ3W41glPMhOuRjlykgPUgXWZf7QE/I HpQ07rsWEQsq7WP2XkyPPuFpjul1xcaMlRGdbdgvHp5RrgtDIoup2HG7LBxC3h0xs7EN 8qf8B8YvY6p+JYR6CvtA7tqZpUHzlPMXce3mt8RpYnzB3UTQ2yJx5YRpL6lgyJxTpQvH mJHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=DHLEfAhP; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s6si16359231plq.213.2019.07.29.07.27.26; Mon, 29 Jul 2019 07:27:41 -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=pass header.i=@nifty.com header.s=dec2015msa header.b=DHLEfAhP; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728581AbfG2OIs (ORCPT + 99 others); Mon, 29 Jul 2019 10:08:48 -0400 Received: from conssluserg-03.nifty.com ([210.131.2.82]:51348 "EHLO conssluserg-03.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728391AbfG2OIp (ORCPT ); Mon, 29 Jul 2019 10:08:45 -0400 Received: from mail-vk1-f177.google.com (mail-vk1-f177.google.com [209.85.221.177]) (authenticated) by conssluserg-03.nifty.com with ESMTP id x6TE8XuF013627; Mon, 29 Jul 2019 23:08:33 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-03.nifty.com x6TE8XuF013627 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1564409314; bh=uSPQx/lOeIWy3VSnjzeRdBwGgXuOHDLD+EQgSpgUB+Q=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=DHLEfAhPo6fyvFS/z/p2S642b0+jDXKEd//M2loX+Hjh9ZIkssKftTmqCQzzpEb1v V+0gKA9uAW+2Fo3GQ7vJaV3hMNwKki9SFpvZRrsOwvguJt+7M7slgVFQR1E+t3aqrJ 3fJgS33rRwcnA/amwMcbbDS6hcibUcBDTqViHt1BraEKmC00yHqKSYiG0nmikqjP8o O9GrmyIvuRUmlmofCjbHkBsugKBiDsf8H32gpbvbuZTsbiXWV+rfszZR7HdpOonbhE BkdlYNxH2TY9Crr5xZvwuJnSpV9F9kYG9Ssy5P3RH0Fes+6vd7Z7pCklCbtiS7Mve6 ayU0f4Zv7H/Nw== X-Nifty-SrcIP: [209.85.221.177] Received: by mail-vk1-f177.google.com with SMTP id b64so11976993vke.13; Mon, 29 Jul 2019 07:08:33 -0700 (PDT) X-Gm-Message-State: APjAAAWcqPWChJKILf5dv4D7fbh115EHMIPWeKdbo+xRxlfy7n/R9AeI b/JEZpkL5E5DykZaKrMonvz/MCLXr7tq2nlCHR8= X-Received: by 2002:a1f:b0b:: with SMTP id 11mr40548573vkl.64.1564409312295; Mon, 29 Jul 2019 07:08:32 -0700 (PDT) MIME-Version: 1.0 References: <20190728155138.29803-1-yamada.masahiro@socionext.com> <20190729131528.4vl6zpyyoyqd7np6@salvia> In-Reply-To: <20190729131528.4vl6zpyyoyqd7np6@salvia> From: Masahiro Yamada Date: Mon, 29 Jul 2019 23:07:56 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] netfilter: add include guard to xt_connlabel.h To: Pablo Neira Ayuso Cc: Jozsef Kadlecsik , Florian Westphal , Netfilter Development Mailing list , coreteam@netfilter.org, Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 29, 2019 at 10:15 PM Pablo Neira Ayuso wrote: > > On Mon, Jul 29, 2019 at 12:51:38AM +0900, Masahiro Yamada wrote: > > Add a header include guard just in case. > > Applied to nf.git, thanks. > > BTW, is the _UAPI_ prefix really needed? I can see netfilter headers > under include/uapi/ sometimes are prefixed by UAPI and sometimes not. The _UAPI prefix will be useful when you happen to add the corresponding kernel-space header since it is often the case to have the same name headers for kernel-space and uapi. For example, compare the include guards of the following. include/linux/kernel.h include/uapi/linux/kernel.h Or, if you want to see an example for netfilter, include/linux/netfilter/xt_hashlimit.h include/uapi/linux/netfilter/xt_hashlimit.h I recommend to add _UAPI prefix to headers under include/uapi/ to avoid include guard conflict. The _UAPI prefix is ripped off by scripts/headers_install.sh when exported to user-space. -- Best Regards Masahiro Yamada