From mboxrd@z Thu Jan 1 00:00:00 1970 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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 44216C433EF for ; Fri, 5 Nov 2021 10:22:28 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 210756124F for ; Fri, 5 Nov 2021 10:22:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233103AbhKEKZG (ORCPT ); Fri, 5 Nov 2021 06:25:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56260 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230110AbhKEKZF (ORCPT ); Fri, 5 Nov 2021 06:25:05 -0400 Received: from mail-ed1-x533.google.com (mail-ed1-x533.google.com [IPv6:2a00:1450:4864:20::533]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 99C96C061714 for ; Fri, 5 Nov 2021 03:22:25 -0700 (PDT) Received: by mail-ed1-x533.google.com with SMTP id g14so30816455edz.2 for ; Fri, 05 Nov 2021 03:22:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=67g/16Zrh0Kxtmp5M9YzHHZvRj8XJzzpY2MX8AJR3cc=; b=aD+xqcgPV/MXOkur99WgvJZCB0/7YNGmqyxJCDBKrVDYsUXPkM2DKQx/BX4eMBChGE 8/hic/T1epL2A6eXSPVFTjvMcktH3e04O4Uk7nX65hsyDJifgKv5HIR/7jBJx1b2CngD MUWaCjT4n26mcGzYd2lvn8NG2magx7x+ES0QYecVf3mMI4jEaYW7gc5ZUqGYTn3GxRKX QMVMkIJYhS4ReQMQUhbVcuogqtOWWGIrjtHPc6HwS4nBs0uKW98Wx4MIsX68Vpe7gqhs cRC4jmuR/SZUNcqLI+L2fGQpq9J+dCS5lmdyZzz+wJGVh92u4Ik9WP3SZoyxe3kENF7A G7zg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=67g/16Zrh0Kxtmp5M9YzHHZvRj8XJzzpY2MX8AJR3cc=; b=PBlOgsDl4g1kGH0QrTleCeM/aXPVTk1O7gNtsFNn+E62SXM0LTUJWjOvv9IcJOhjAv sF2aT9wdveBShn/p47khKC+Abtn4WCGZheY55VQgMgd7AN0/O2dsjriqDeceUTd03Q/N /CpDXEW2gGCGv7YuXtUVr/z7FF6xkXQkoMnqiZh4OSasw8BKUO/1Ukumji2Y4pujNM/q eEuYDmsPWKQ1Th4gZcV3YoJ6z1eZIXDXjiCvrCRXw8mWIdajnd3GxXEl5oWOTy09a1D+ jiqQqKGomy30nsa6olkU0R/JSbq3ngzlroaF9l1Tdr12nCqvWx6Ozn3nmIUb62C8ljrY uvPg== X-Gm-Message-State: AOAM53034sn1IjKGkFBSrOhjm3fhMmWr8QsdZ7HayIHfEYTdNP3XV6kf djsjYFezUxuX7CaLKKtTmb607v4W3rcW+AqXafuuYevQKKQ= X-Google-Smtp-Source: ABdhPJyQ8QgEkhTclPmA0LiYhDy5SN5jNlQGb3fx94SJBTWnhL9yOitBK+z8bFm/WQggIv+dxZjizkG01SoeS9tQGaI= X-Received: by 2002:aa7:cb09:: with SMTP id s9mr78350545edt.359.1636107744161; Fri, 05 Nov 2021 03:22:24 -0700 (PDT) MIME-Version: 1.0 References: <202111050644.9HQjbpIQ-lkp@intel.com> In-Reply-To: <202111050644.9HQjbpIQ-lkp@intel.com> From: Andy Shevchenko Date: Fri, 5 Nov 2021 12:21:48 +0200 Message-ID: Subject: Re: drivers/media/v4l2-core/v4l2-ioctl.c:303:28: warning: taking address of packed member 'pixelformat' of class or structure 'v4l2_pix_format_mplane' may result in an unaligned pointer value To: kernel test robot Cc: Sakari Ailus , llvm@lists.linux.dev, kbuild-all@lists.01.org, Linux Kernel Mailing List , Thomas Zimmermann , Petr Mladek , Andy Shevchenko Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Nov 5, 2021 at 12:24 AM kernel test robot wrote: > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master > head: c1e2e0350ce37f633b5ce3ce1cdf4428513fc2a2 > commit: e927e1e0f0dd3e353d5556503a71484008692c82 v4l: ioctl: Use %p4cc printk modifier to print FourCC codes > date: 9 months ago > config: mips-randconfig-r011-20211101 (attached as .config) > compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 82ed106567063ea269c6d5669278b733e173a42f) > reproduce (this is a W=1 build): > wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross > chmod +x ~/bin/make.cross > # install mips cross compiling tool for clang build > # apt-get install binutils-mips-linux-gnu > # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=e927e1e0f0dd3e353d5556503a71484008692c82 > git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git > git fetch --no-tags linus master > git checkout e927e1e0f0dd3e353d5556503a71484008692c82 > # save the attached .config to linux build tree > COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=mips > > If you fix the issue, kindly add following tag as appropriate > Reported-by: kernel test robot > > All warnings (new ones prefixed by >>): > > >> drivers/media/v4l2-core/v4l2-ioctl.c:303:28: warning: taking address of packed member 'pixelformat' of class or structure 'v4l2_pix_format_mplane' may result in an unaligned pointer value [-Waddress-of-packed-member] Yeah, I discussed it with Sakari a few months ago. Dunno what is the outcome. TL;DR: some are easy to fix, i.e. by dropping __packed, the rest needs more thinking... -- With Best Regards, Andy Shevchenko