Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1707955ybk; Thu, 21 May 2020 13:17:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxcnDcoayAQVgS5h7G8v3IJmDjXBsydAkefHlatCwk1mcvGb2PuM4air93Nk58Sgf3QUbal X-Received: by 2002:a50:870c:: with SMTP id i12mr429896edb.258.1590092274632; Thu, 21 May 2020 13:17:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590092274; cv=none; d=google.com; s=arc-20160816; b=vSXgo1jrKt1gii6ukTuhP1lKKKLz9PctPqc1p2tUTLkS089zIKQ9Iwis2wuQ9NrN6J YWKUkZjrt71Nbjai14bqAYOKvZdeJ2WmBT7N9TBImcduTgit5U5QunFjfvba3X/ynfsw Tjgtm/w/ROo7Gf2TqsxgtvtfF5x6EuRgfhCRDac82xARJeMMJOjesbWozqW/RAgTIF8H TFOKmGfXhmW6qcYeikIHLUu5TtRXfV/89mKGkDifrDhZ/0BZbXy8k1Q0Mzlxc2ok7xld ANAjy32dKKNqBCsA77STKcwmQ/MGi1WJoPHIkIApV15DdiWYOXgfcC+1XYm+JGIyS2ZN FFdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=ykPBpfghEkaJrtuGzYq9XDbQCLWwTIuOGMMo38hIZHQ=; b=i+7N0XLbpKo1pMGRZ8hlo6/2mGu7moU7+rg/biDHj0+U/xsjKFxxmapSGiONcrgmyi a4HVSkYaJM1kDVn8c/CZkERkI/CPu0z+UX+VgEtfnJ2cjgknYxSHuhrtFlz61EiUi6Qh 336UdSXtJV0ZZO5CYhhyvhCUeHpdAqyMi72twNuVhDUyx+ljaVKd91ST1BzifKylebc9 rrOcgcka05A7iNoidC72euFz7OHLqoNyNj/g8ibwOfvIJqsbFcrJp6WN+7wWoIqNEbZy wWas6RDx2rZAB2qsy4K+gB6hby6RBf1/lH5dZZ22L7wVBqte2izIR9ObD0P/j+y27ic8 DDkg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-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 a4si3682700eje.276.2020.05.21.13.17.18; Thu, 21 May 2020 13:17:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728368AbgEUUOb (ORCPT + 99 others); Thu, 21 May 2020 16:14:31 -0400 Received: from mout-p-202.mailbox.org ([80.241.56.172]:13450 "EHLO mout-p-202.mailbox.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726814AbgEUUOa (ORCPT ); Thu, 21 May 2020 16:14:30 -0400 Received: from smtp1.mailbox.org (smtp1.mailbox.org [80.241.60.240]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by mout-p-202.mailbox.org (Postfix) with ESMTPS id 49Sgnc6gLGzQlGc; Thu, 21 May 2020 22:14:28 +0200 (CEST) X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp1.mailbox.org ([80.241.60.240]) by spamfilter06.heinlein-hosting.de (spamfilter06.heinlein-hosting.de [80.241.56.125]) (amavisd-new, port 10030) with ESMTP id mIKNOPuHvLEp; Thu, 21 May 2020 22:14:25 +0200 (CEST) From: Hauke Mehrtens To: johannes.berg@intel.com Cc: ndesaulniers@google.com, pihsun@chromium.org, linux-wireless@vger.kernel.org, Hauke Mehrtens Subject: [PATCH] wireless: Use linux/stddef.h instead of stddef.h Date: Thu, 21 May 2020 22:14:22 +0200 Message-Id: <20200521201422.16493-1-hauke@hauke-m.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: E706A1758 X-Rspamd-Score: 0.28 / 15.00 / 15.00 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org When compiling inside the kernel include linux/stddef.h instead of stddef.h. When I compile this header file in backports for power PC I run into a conflict with ptrdiff_t. I was unable to reproduce this in mainline kernel. I still would like to fix this problem in the kernel. Fixes: 6989310f5d43 ("wireless: Use offsetof instead of custom macro.") Signed-off-by: Hauke Mehrtens --- include/uapi/linux/wireless.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/uapi/linux/wireless.h b/include/uapi/linux/wireless.h index a2c006a364e0..24f3371ad826 100644 --- a/include/uapi/linux/wireless.h +++ b/include/uapi/linux/wireless.h @@ -74,7 +74,11 @@ #include /* for "struct sockaddr" et al */ #include /* for IFNAMSIZ and co... */ -#include /* for offsetof */ +#ifdef __KERNEL__ +# include /* for offsetof */ +#else +# include /* for offsetof */ +#endif /***************************** VERSION *****************************/ /* -- 2.20.1