From patchwork Thu Oct 5 03:51:00 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 114833 Delivered-To: patch@linaro.org Received: by 10.140.22.163 with SMTP id 32csp143192qgn; Wed, 4 Oct 2017 20:51:21 -0700 (PDT) X-Received: by 10.98.10.133 with SMTP id 5mr2557421pfk.346.1507175481200; Wed, 04 Oct 2017 20:51:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1507175481; cv=none; d=google.com; s=arc-20160816; b=OhO8ZyHBWWMBdQ6yBwHxcRhA40uHlf9dyob4+cqy6iUejROYUUPyyVY77xAqXcWSWk Bu/FppirR0fzfVpEOfeJQJOS6YqmmDFl8agIF8JPqwm8paPZaQWrN1AGzVLPDw1Bu7LC H82IC+Xr1LcMPUiHK+dfCNnJ7fFu8q5Qn3zCoppXlkdrajz1aU9uhE5mMcU75r2Dqrqe Du4ZJJh1jBjKJtJIhzsa5ocn+DfNJO6q2rmc+KOPKkXPUluFgKOW6srAO9xor/UJZe9b mvmq6J3O0R9gfWQe7pdSjnsRPqhSPKkGy9mTuLG6i/3NHyPWn/dcuNzl2ZA3fGoYbQzl qmmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=I3+wLQUTTKXeXsm1RKsoIbI7bc5Ci+3c8A7LtHn1WvM=; b=hI0U/sTWhiVR1lGup3GoJUd1BsE9gt/LHOuTlZy44AqZsF0I/ttmlOJqY06CxMmzjA RjpTi7Wbd++uOgXw6jm51ttEaSZ19jdeXTyABKY8qxvVPOdXWpz//nbRDpMasFM4BzgX fYp0TDv7vNSniLwL8jYB8Tw1ey+bp0BVEg2C3Kg0Iaf8GTsvPvi3a2hmFyWIZADeJrtx OGqlAiZRdNTildXNuT60B/sL2kjaI13LNDLplXwzEqulRNaQDl0A0JQMtxuy3JGTHVAr Xjy9e7d2PhdOQg0PWxDNNzOorK20t38HoPdClFT7e5jn5LcDd6nWy7ndLCyO2u2Tpc1l qJgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=iceLVqJ7; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y7si7273996pfy.222.2017.10.04.20.51.20; Wed, 04 Oct 2017 20:51:21 -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=@linaro.org header.s=google header.b=iceLVqJ7; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751942AbdJEDvS (ORCPT + 26 others); Wed, 4 Oct 2017 23:51:18 -0400 Received: from mail-pf0-f176.google.com ([209.85.192.176]:50445 "EHLO mail-pf0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751746AbdJEDvM (ORCPT ); Wed, 4 Oct 2017 23:51:12 -0400 Received: by mail-pf0-f176.google.com with SMTP id m63so7323765pfk.7 for ; Wed, 04 Oct 2017 20:51:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=I3+wLQUTTKXeXsm1RKsoIbI7bc5Ci+3c8A7LtHn1WvM=; b=iceLVqJ7QWFOvKJ2xoS0uapbT22dDZZzZX6bRD4/pr7pPWrOeA5NpPrrX5J4QCqJjz 9f1WifMY9KovsueyNVC/XB5mXUyKeO2jhUofOjx8FHCYG3RSM0VNP+WdZxxMKUF11DDD bh9IQpKTZH+8vwNLaRQKNBeDQ7C3Tp4X2RXwE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=I3+wLQUTTKXeXsm1RKsoIbI7bc5Ci+3c8A7LtHn1WvM=; b=d631KGvqLVY6FkAJrR6wuxcDbetCJd44oT6U2Lb0hSpbV7bmyubGLh+iLXwJMoTeem URERDyKEW3bSmRNoBOF8FgPUFBVZHI8ybfA5QKqK3w/4N8ynkdZshH+TyYfYyo3VRIp0 p83bxJtkIc6HENuovn1zkUJf8X+V1ETAhJbAsIfCwXP5zaAxlGGR64Wxq/KqjecmftX0 zt7F35ScKupyWqdxCc7PgRVsciFrUjAJGobvpDEP9/Slu1/08H08o8GuVMOZc4XPR6Xt jwfhlJJFCUxa5U/H3Y6rUKPQtBcq2yk3PVrI/u/r3pgdLjjoJUfZ+BmkFleMO8KcoNrw UfDA== X-Gm-Message-State: AHPjjUh0/rCI1IS2QdI9DGbtdzJLfoVFdvejEc8u4BUMsUgF24hbx259 AKAnMb4dD+kL37GF7WGlVYsbcg== X-Google-Smtp-Source: AOwi7QCx8Rpl8CkDwcojbjwn3iE3POorjnT9+kxyiIPKyhhCZbzk2fpgMoUmgwXC3E4ro1CIcb3miQ== X-Received: by 10.98.71.20 with SMTP id u20mr21811432pfa.23.1507175471826; Wed, 04 Oct 2017 20:51:11 -0700 (PDT) Received: from localhost.localdomain (ip68-111-217-79.sd.sd.cox.net. [68.111.217.79]) by smtp.gmail.com with ESMTPSA id f131sm13067035pfc.27.2017.10.04.20.51.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 04 Oct 2017 20:51:11 -0700 (PDT) From: Bjorn Andersson To: "David S. Miller" Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Chris Lew Subject: [RESEND PATCH 2/7] net: qrtr: Move constants to header file Date: Wed, 4 Oct 2017 20:51:00 -0700 Message-Id: <20171005035105.14677-3-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20171005035105.14677-1-bjorn.andersson@linaro.org> References: <20171005035105.14677-1-bjorn.andersson@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The constants are used by both the name server and clients, so clarify their value and move them to the uapi header. Signed-off-by: Bjorn Andersson --- include/uapi/linux/qrtr.h | 3 +++ net/qrtr/qrtr.c | 2 -- 2 files changed, 3 insertions(+), 2 deletions(-) -- 2.12.0 diff --git a/include/uapi/linux/qrtr.h b/include/uapi/linux/qrtr.h index 9d76c566f66e..63e8803e4d90 100644 --- a/include/uapi/linux/qrtr.h +++ b/include/uapi/linux/qrtr.h @@ -4,6 +4,9 @@ #include #include +#define QRTR_NODE_BCAST 0xffffffffu +#define QRTR_PORT_CTRL 0xfffffffeu + struct sockaddr_qrtr { __kernel_sa_family_t sq_family; __u32 sq_node; diff --git a/net/qrtr/qrtr.c b/net/qrtr/qrtr.c index 7e4b49a8349e..15981abc042c 100644 --- a/net/qrtr/qrtr.c +++ b/net/qrtr/qrtr.c @@ -61,8 +61,6 @@ struct qrtr_hdr { } __packed; #define QRTR_HDR_SIZE sizeof(struct qrtr_hdr) -#define QRTR_NODE_BCAST ((unsigned int)-1) -#define QRTR_PORT_CTRL ((unsigned int)-2) struct qrtr_sock { /* WARNING: sk must be the first member */