Received: by 10.223.185.116 with SMTP id b49csp1181057wrg; Fri, 23 Feb 2018 13:26:21 -0800 (PST) X-Google-Smtp-Source: AH8x227ChBy09Lt5g2WbqOsFDtdLP10e2or+xxk42cyQir9Ye1ZNt/kmsW3kR4F/7WnQGjW+oOzL X-Received: by 10.98.234.22 with SMTP id t22mr3052285pfh.56.1519421181366; Fri, 23 Feb 2018 13:26:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519421181; cv=none; d=google.com; s=arc-20160816; b=psM4p6bYRWRJlklhWa5cLoXFRzxonlNhG8xmm7e0koIPGDDHEK4Bm5SwS20ffESh9d CPVhCCADCKnAJWwI8uPNA/0BrVOPSnswkPVq1GOyVfZM4qCH0VwUwAzAfUIDcggmws2+ 3fqwwaAOmkOiR8gsHIYTS9wzpJFq4bTbd0ly4Hq/07dc49Y3r3bTE5hqmJBenJecpv+a 0V1sTGMfaLDXBrJGIw0aiiIkR4kZm0PBqfusZ8r1wV+BvHI3KFQIO3g10lcNQmjW+/Og JLQAo55wPGBV4aQIjyV1CxrRZeVizOyOXoBhih/mnq5MxzsBWhbyIvzIUWW/I2ipW9WU CKag== 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 :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=kmdGWrTFD5UdPEoOl8nP128PsC+TL7PBtHSUmPcsaJg=; b=FEEah/+ML/nNP+K5+JQV/CbYZ+Qo6kUAItAsBDdYJiGzIYm4Q0z+x6ZFK3RNELa4sY bNndwFK1zBKomfEW1WXz8L8Z56cAvIjBfldmfJkWwzM7pNakFgbi4BU+Y0L5XA/MU1Eq Sq46piNzHvVYXqhC2uwSHAV67a4QILPwRDaWUEaqwOMCg5KM1bLWSklA1jS4NZh4+jEx 4WMeNoePD1/CIeb77t8yZjEKGU8LaJPlTkglvc3gRX8BswZDmY6wbqfSZPX28vHW/WOO 0Ao0ZJDcv8oMzBbxC/vQyC/UwkQPtwqeLA9iYe70/mqiMvjOPJBIqskDcCvmoN5YFqse XFlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@paul-moore-com.20150623.gappssmtp.com header.s=20150623 header.b=U71Cjyxz; 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 v20si2012953pgc.137.2018.02.23.13.26.04; Fri, 23 Feb 2018 13:26:21 -0800 (PST) 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=@paul-moore-com.20150623.gappssmtp.com header.s=20150623 header.b=U71Cjyxz; 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 S1752014AbeBWVZV (ORCPT + 99 others); Fri, 23 Feb 2018 16:25:21 -0500 Received: from mail-lf0-f66.google.com ([209.85.215.66]:42924 "EHLO mail-lf0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751895AbeBWVZT (ORCPT ); Fri, 23 Feb 2018 16:25:19 -0500 Received: by mail-lf0-f66.google.com with SMTP id t204so14270564lff.9 for ; Fri, 23 Feb 2018 13:25:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paul-moore-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=kmdGWrTFD5UdPEoOl8nP128PsC+TL7PBtHSUmPcsaJg=; b=U71CjyxzWIa0LybKsFpK1JnqQJ6plGOZ4X22DWjBbi6XRQagtTmrWLLAbIRjH0t544 z5WfldPFwECo5mV/TWv3ycsxDpjQ7VzxpH3W9nGI+68HR1X2nb2XHUuijhww6VHwCAwa 7qfGpfuZWqwzA0NPpt8YgEBc6AH4QYtKPiRxM/dJMKd5Tl9fytI5JpELyXt0YtjZNX5o 9/AMtEpUbxYPZ0aRFOu0YJfFMmWIgZ68SOPMBwGea4oc6Dn+m7afoiI6mEdPrbofvx9n 3bnZAQRAYtbsTHPZ2GJv8Yg4azmFj2nOwVQ+dL9HeAt5q82Y+dF5d1sjDMXnAeelH9FS O5Gw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=kmdGWrTFD5UdPEoOl8nP128PsC+TL7PBtHSUmPcsaJg=; b=fUR04rwxa5MQD6CuwhSIyeNfsUyUDycMtAZ3ygU9atzxaFFcGoXoJl3GJ9f2WS20Km ncGoWQ++MaUu9ZEuhVVYUar0UtCk+s7JxiaQFj70uvRUAS+j57kPU4tdcYYPegcpTy3e PU4XHwVSvzkWUSX9Xm4vE3qQGLHouO4OpE11j6eY76CXvDn19iODKRmH/D9R345GdbFm YOKdFisSfSK37HTO27pbgea60J73+ycxRD928VNQQdVorgmTGktVQ99FShDrnCf+LS24 auxW51c5xgD50jrEJnPUxP8+JsXJhr0JbcnzRKpc1yx6rV5FBlsMoPH4pqXtBLbdfL8S wgTQ== X-Gm-Message-State: APf1xPCC0uTMLQhx1kfFeZrMBxrUg/g7658Y07uqMr9lMbi/q0f/wsg6 VW/01wzW1/nwoTdiJeDXKdumacVaDUetK10eWoE/ X-Received: by 10.46.17.220 with SMTP id 89mr2265527ljr.87.1519421118382; Fri, 23 Feb 2018 13:25:18 -0800 (PST) MIME-Version: 1.0 Received: by 10.25.216.167 with HTTP; Fri, 23 Feb 2018 13:25:17 -0800 (PST) X-Originating-IP: [108.20.156.165] In-Reply-To: <20180223211235.2402024-1-arnd@arndb.de> References: <20180223211235.2402024-1-arnd@arndb.de> From: Paul Moore Date: Fri, 23 Feb 2018 16:25:17 -0500 Message-ID: Subject: Re: [PATCH] selinux: fix typo in selinux_netlbl_sctp_sk_clone declaration To: Arnd Bergmann , Richard Haines Cc: Stephen Smalley , Eric Paris , James Morris , "Serge E. Hallyn" , Martin Kepplinger , selinux@tycho.nsa.gov, linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org 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 Fri, Feb 23, 2018 at 4:12 PM, Arnd Bergmann wrote: > A missing 'struct' keyword caused a build error when CONFIG_NETLABEL > is disabled: > > In file included from security/selinux/hooks.c:99: > security/selinux/include/netlabel.h:135:66: error: unknown type name 'sock' > static inline void selinux_netlbl_sctp_sk_clone(struct sock *sk, sock *newsk) > ^~~~ > security/selinux/hooks.c: In function 'selinux_sctp_sk_clone': > security/selinux/hooks.c:5188:2: error: implicit declaration of function 'selinux_netlbl_sctp_sk_clone'; did you mean 'selinux_netlbl_inet_csk_clone'? [-Werror=implicit-function-declaration] > > Fixes: db97c9f9d312 ("selinux: Add SCTP support") > Signed-off-by: Arnd Bergmann > --- > security/selinux/include/netlabel.h | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) Thanks, merged and pushed to selinux/next. Richard was going to submit a patch for that, but I don't think he would mind you beating him :) > diff --git a/security/selinux/include/netlabel.h b/security/selinux/include/netlabel.h > index 6ef4953431dc..8671de09c363 100644 > --- a/security/selinux/include/netlabel.h > +++ b/security/selinux/include/netlabel.h > @@ -132,7 +132,8 @@ static inline void selinux_netlbl_inet_csk_clone(struct sock *sk, u16 family) > { > return; > } > -static inline void selinux_netlbl_sctp_sk_clone(struct sock *sk, sock *newsk) > +static inline void selinux_netlbl_sctp_sk_clone(struct sock *sk, > + struct sock *newsk) > { > return; > } > -- > 2.9.0 > -- paul moore www.paul-moore.com