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 X-Spam-Level: X-Spam-Status: No, score=-10.2 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 44230C433B4 for ; Wed, 7 Apr 2021 05:09:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0AB9E613CF for ; Wed, 7 Apr 2021 05:09:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234886AbhDGFKF (ORCPT ); Wed, 7 Apr 2021 01:10:05 -0400 Received: from verein.lst.de ([213.95.11.211]:57376 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229603AbhDGFKD (ORCPT ); Wed, 7 Apr 2021 01:10:03 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id CBF2A68B02; Wed, 7 Apr 2021 07:09:52 +0200 (CEST) Date: Wed, 7 Apr 2021 07:09:52 +0200 From: Christoph Hellwig To: Jason Gunthorpe Cc: kvm@vger.kernel.org, Kirti Wankhede , Alex Williamson , "Raj, Ashok" , Dan Williams , Christoph Hellwig , Gerd Hoffmann , Leon Romanovsky , Max Gurtovoy , Tarun Gupta Subject: Re: [PATCH v2 01/18] vfio/mdev: Fix missing static's on MDEV_TYPE_ATTR's Message-ID: <20210407050952.GA18085@lst.de> References: <0-v2-d36939638fc6+d54-vfio2_jgg@nvidia.com> <1-v2-d36939638fc6+d54-vfio2_jgg@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1-v2-d36939638fc6+d54-vfio2_jgg@nvidia.com> User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org On Tue, Apr 06, 2021 at 04:40:24PM -0300, Jason Gunthorpe wrote: > These should always be prefixed with static, otherwise compilation > will fail on non-modular builds with > > ld: samples/vfio-mdev/mbochs.o:(.data+0x2e0): multiple definition of `mdev_type_attr_name'; samples/vfio-mdev/mdpy.o:(.data+0x240): first defined here > > Fixes: a5e6e6505f38 ("sample: vfio bochs vbe display (host device for bochs-drm)") > Fixes: d61fc96f47fd ("sample: vfio mdev display - host device") > Signed-off-by: Jason Gunthorpe Looks good, Reviewed-by: Christoph Hellwig