Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp4705029ybv; Tue, 11 Feb 2020 01:43:10 -0800 (PST) X-Google-Smtp-Source: APXvYqzH17dAhMdyXk42Hnu1I3UIit7oQiyihGESEzv/NpXLlzba2XPbVzcUudLdgn+AF+FHOMUB X-Received: by 2002:a05:6830:11:: with SMTP id c17mr4467320otp.360.1581414189960; Tue, 11 Feb 2020 01:43:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581414189; cv=none; d=google.com; s=arc-20160816; b=XafKwPh0LJD8ZsToSfqNyVp0k8JQnLOCsfaRE2CzAzz8RclTKLWCoAMZQ4iLIdCFxI CZWi1oCGHrVjNxKYE8c0CBKA4lLrF6+UNlzpmTI3ky0k+kYmE0Dw/Q1yoExIhA79QDFu Wtockx2ZbDzClVOqtg6n4l7yzTc7ZR1o4m4p9/+KHHit72E0hLkuCvac/XIlE9Y9wiMM ckdGmg/w28VMVw93xaeL4IbGtHgTmPEbSue7CaGgJa25O+FsBZoZ2khJgV5cS2YVYr+1 1wnvlBzd4DeFiBj8q0WZM6ScjQQVaojViLwXGg0BYBhaNTf0CLLiPlb6IL1yQliKCK6t E/wg== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=T+K7lt304CdM6Bb0Y3TjR2i5yI4qRYupL0Rlw41Xyrk=; b=e1oKlbd9n+q3gFWCj+f/j2Q/b5U2FM5WH9D7pxCsvqWAhJF8IL+ugnPa9436qtKEYM 9mnKXW68DzjTcsKChQCyWXmxUy1Rk/Cj1NhZXak90mi+Rs6yaKiXqi1nlitF0ZY8iNnR wbUu58KApYKhQou6S4XrRLCRyJF13xznhHbhzo1WF4z025CemU+wf3Y7NeUB3SCBcjDC BGISAvyrXemHpgxbeHQSuIKsKYXKHVisr45fRqEOW48ZQ5kK7JceWgfSzbt7zRyWqsGE GjguHRxet++SX75prGS/nB+VJ8uCddnTyA9MHnynEC3NWLE6i+L5F84SU/ewUBNbGCJT C74g== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e126si1612456oib.21.2020.02.11.01.42.57; Tue, 11 Feb 2020 01:43:09 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727887AbgBKJkQ (ORCPT + 99 others); Tue, 11 Feb 2020 04:40:16 -0500 Received: from bhuna.collabora.co.uk ([46.235.227.227]:32994 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727652AbgBKJkQ (ORCPT ); Tue, 11 Feb 2020 04:40:16 -0500 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: eballetbo) with ESMTPSA id 24040293ECA Subject: Re: [PATCH] platform/chrome: wilco_ec: Include asm/unaligned instead of linux/ path To: Stephen Boyd , Benson Leung Cc: linux-kernel@vger.kernel.org, Nick Crews , kbuild test robot References: <20200203174619.68861-1-swboyd@chromium.org> From: Enric Balletbo i Serra Message-ID: Date: Tue, 11 Feb 2020 10:40:11 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.3.0 MIME-Version: 1.0 In-Reply-To: <20200203174619.68861-1-swboyd@chromium.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Stephen, On 3/2/20 18:46, Stephen Boyd wrote: > It seems that we shouldn't try to include the include/linux/ path to > unaligned functions. Just include asm/unaligned.h instead so that we > don't run into compilation warnings like below. > > In file included from drivers/platform/chrome/wilco_ec/properties.c:8:0: > include/linux/unaligned/le_memmove.h:7:19: error: redefinition of 'get_unaligned_le16' > static inline u16 get_unaligned_le16(const void *p) > ^~~~~~~~~~~~~~~~~~ > In file included from arch/ia64/include/asm/unaligned.h:5:0, > from arch/ia64/include/asm/io.h:23, > from arch/ia64/include/asm/smp.h:21, > from include/linux/smp.h:68, > from include/linux/percpu.h:7, > from include/linux/arch_topology.h:9, > from include/linux/topology.h:30, > from include/linux/gfp.h:9, > from include/linux/xarray.h:14, > from include/linux/radix-tree.h:18, > from include/linux/idr.h:15, > from include/linux/kernfs.h:13, > from include/linux/sysfs.h:16, > from include/linux/kobject.h:20, > from include/linux/device.h:16, > from include/linux/platform_data/wilco-ec.h:11, > from drivers/platform/chrome/wilco_ec/properties.c:6: > include/linux/unaligned/le_struct.h:7:19: note: previous definition of 'get_unaligned_le16' was here > static inline u16 get_unaligned_le16(const void *p) > ^~~~~~~~~~~~~~~~~~ > Reported-by: kbuild test robot > Fixes: 60fb8a8e93ca ("platform/chrome: wilco_ec: Allow wilco to be compiled in COMPILE_TEST") > Signed-off-by: Stephen Boyd > --- Queued as a fix for 5.6. Thanks, Enric