From patchwork Mon May 30 08:14:50 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tobias Klauser X-Patchwork-Id: 12864381 X-Patchwork-Delegate: kuba@kernel.org Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0483DC433F5 for ; Mon, 30 May 2022 08:15:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232924AbiE3IPe (ORCPT ); Mon, 30 May 2022 04:15:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53560 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234034AbiE3IPN (ORCPT ); Mon, 30 May 2022 04:15:13 -0400 Received: from sym2.noone.org (sym.noone.org [178.63.92.236]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BADF0793A1 for ; Mon, 30 May 2022 01:14:56 -0700 (PDT) Received: by sym2.noone.org (Postfix, from userid 1002) id 4LBSrB6KvVzvjhQ; Mon, 30 May 2022 10:14:50 +0200 (CEST) From: Tobias Klauser To: "David S. Miller" , Eric Dumazet Cc: Akhmat Karakotov , netdev@vger.kernel.org Subject: [PATCH v2] socket: Use __u8 instead of u8 in uapi socket.h Date: Mon, 30 May 2022 10:14:50 +0200 Message-Id: <20220530081450.16591-1-tklauser@distanz.ch> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20220525085126.29977-1-tklauser@distanz.ch> References: <20220525085126.29977-1-tklauser@distanz.ch> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Use the uapi variant of the u8 type. Fixes: 26859240e4ee ("txhash: Add socket option to control TX hash rethink behavior") Signed-off-by: Tobias Klauser --- v2: add missing include as reported by kernel test robot include/uapi/linux/socket.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/uapi/linux/socket.h b/include/uapi/linux/socket.h index 51d6bb2f6765..62a32040ad4f 100644 --- a/include/uapi/linux/socket.h +++ b/include/uapi/linux/socket.h @@ -2,6 +2,8 @@ #ifndef _UAPI_LINUX_SOCKET_H #define _UAPI_LINUX_SOCKET_H +#include + /* * Desired design of maximum size and alignment (see RFC2553) */ @@ -31,7 +33,7 @@ struct __kernel_sockaddr_storage { #define SOCK_BUF_LOCK_MASK (SOCK_SNDBUF_LOCK | SOCK_RCVBUF_LOCK) -#define SOCK_TXREHASH_DEFAULT ((u8)-1) +#define SOCK_TXREHASH_DEFAULT ((__u8)-1) #define SOCK_TXREHASH_DISABLED 0 #define SOCK_TXREHASH_ENABLED 1